k-view-vue
v0.3.4
Published
Wei Design - A Vue.js 3 UI library, web3-vue-demo
Downloads
132
Maintainers
Readme
k-view-vue
A Vue.js 3 UI library
安装
node:>=16.0.0
npm
这里推荐pnpm
进行安装
pnpm install k-view-vue --save
cdn
unpkg
<link rel="stylesheet" href="//unpkg.com/k-view-vue/lib/style.css" />
<script src="//unpkg.com/k-view-vue"></script>
jsdelivr
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/k-view-vue/lib/style.css" />
<script src="//cdn.jsdelivr.net/npm/k-view-vue"></script>
使用
全局引入
在main.js
中
import { createApp } from 'vue'
import App from './App.vue'
// 完整引入组件库
import WeDesign from 'k-view-vue'
const app = createApp(App)
// 全局安装
app.use(WeDesign).mount('#app')
组件当中
<WeButton :loading="true">按钮组件</WeButton>
按需引入
main.js
中
import { createApp } from 'vue'
import App from './App.vue'
// 按需引入
import { Button } from 'k-view-vue'
const app = createApp(App)
app.use(Button).mount('#app')
组件当中
<WeButton :loading="true">按钮组件</WeButton>
版本记录
有问题欢迎 issue...