A Vue.js 3 UI library
node:>=16.0.0
这里推荐pnpm
进行安装
pnpm install @wei-design/web-vue --save
<link
rel="stylesheet"
href="//unpkg.com/@wei-design/web-vue/lib/style.css"
/>
<script src="//unpkg.com/@wei-design/web-vue"></script>
<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...