wd-view是一套UI组件库,包含丰富的常用组件,可以快速搭建页面。
1、页面中引入js
<script src="https://unpkg.com/vue@next"></script>
<script src="https://cdn.jsdelivr.net/gh/inagora/wd-view/dist/index.js"></script>
2、引入css
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/inagora/wd-view/dist/index.css" />
注意:如果要使用日期组件,需要在页面中引入moment.js
3、使用组件
Vue.createApp({})
.use(WdView)
.mount('#app');
1、通过npm安装
npm install --save @inagora/wd-view
2、使用组件
Vue.createApp({})
.use(WdView)
.mount('#app');
https://inagora.github.io/wd-view/install.html
MIT