前言
iView weapp 是iview針對微信小程序開發組件庫。
- iView Weapp 地址:https://weapp.iviewui.com/docs/guide/start
- github地址: https://github.com/TalkingData/iview-weapp
使用過程
將iview weapp項目clone下來,將文件下的dist
文件夾內容copy下來,放到static
文件下新建的iview
中
在pages中的頁面文件夾下新建main.json
(如果沒有mian.json新建)
將使用的組件導入進來
{
"usingComponents": {
"i-button": "../../../static/iview/button/index"
}
}
可以在.vue 文件中直接按照iView Weapp文檔中引用了