@naive-ui-pro/radio
TypeScript icon, indicating that this package has built-in type declarations

0.3.1 • Public • Published

naive-ui-pro-components

See our website naive-ui-pro-components for more information.

Install

Using pnpm:

pnpm install --save naive-ui-pro-components

or using yarn:

yarn add naive-ui-pro-components

Usage

Globals

import { createApp } from 'vue'
import NaiveUIProComponents from 'naive-ui-pro-components'
import App from './App.vue'

const app = createApp(App)

app.use(NaiveUIProComponents)

On-Demand Import (Recommended)

Install the unplugin-vue-components and unplugin-auto-import plugins, which will automatically import all components and APIs from naive-ui-pro-components.

npm install -D unplugin-vue-components unplugin-auto-import

Vite

// vite.config.ts
import { defineConfig } from 'vite'
import AutoImport from 'unplugin-auto-import/vite'
import Components from 'unplugin-vue-components/vite'
import NaiveUIProResolver from 'naive-ui-pro-components/resolver'
import NaiveUIProImports from 'naive-ui-pro-components/imports'

export default defineConfig({
  // ...
  plugins: [
    // ...
    AutoImport({
      imports: [NaiveUIProImports()],
    }),
    Components({
      resolvers: [NaiveUIProResolver()],
    }),
  ],
})

Webpack

// webpack.config.js
const AutoImport = require('unplugin-auto-import/webpack')
const Components = require('unplugin-vue-components/webpack')
const NaiveUIProResolver = require('naive-ui-pro-components/resolver')
const NaiveUIProImports = require('naive-ui-pro-components/imports')

module.exports = {
  // ...
  plugins: [
    // ...
    AutoImport({
      imports: [NaiveUIProImports()],
    }),
    Components({
      resolvers: [NaiveUIProResolver()],
    }),
  ],
}

Readme

Keywords

none

Package Sidebar

Install

npm i @naive-ui-pro/radio

Weekly Downloads

1

Version

0.3.1

License

none

Unpacked Size

33.4 kB

Total Files

9

Last publish

Collaborators

  • tuimao