1.3.6 • Published 1 year ago
vue-links-ui v1.3.6
vue-links-ui
Project setup
npm install
Compiles and hot-reloads for development
npm run serve
Compiles and minifies for production
npm run build
Lints and fixes files
npm run lint
使用组件库
安装组件库依赖全局注册
在需要使用的vue项目中npm install vue-links-ui添加进来,然后在main.js中进行全局注册,如下:
import { createApp } from 'vue'
import App from './App.vue'
import vueLinksUi from 'vue-links-ui'
const app = createApp(App)
//组件注册
app.use(vueLinksUi)
app.mount('#app')
按需引入
import { createApp } from 'vue'
import App from './App.vue'
import {batchSelect} from 'vue-links-ui'
const app = createApp(App)
//组件注册
app.use(batchSelect)
app.mount('#app')
在组件中使用
<template>
<div>
<batch-select></batch-select>
</div>
</template>
组件API
使用Ant Design of Vue 3.x 版本Api, see https://www.antdv.com/docs/vue/introduce-cn