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