forget0909-Angle-Qi

微信小程序之官方UI框架 iView UI使用

一、搭环境

     官网:https://weapp.iviewui.com/docs/guide/start

 

1 GitHub 下载 iView Weapp 的代码,将 dist 目录拷贝到自己的项目中。然后按照如下的方式使用组件,以 Button 为例,其它组件在对应的文档页查看:

① 添加需要的组件。在页面的 json 中配置(路径根据自己项目位置配置):

"usingComponents": {

"i-button": "../../dist/button/index"}

②  wxml 中使用组件:

<i-button type="primary" bind:click="handleClick">这是一个按钮</i-button>

 

2、或按以下方式在微信开发者工具中查看:

# 从 GitHub 下载后,安装依赖npm install

# 编译组件npm run dev

然后,将 examples 目录在微信开发者工具中打开即可。

3、分包加载

   https://developers.weixin.qq.com/miniprogram/dev/framework/subpackages/basic.html

分类:

技术点:

相关文章:

  • 2021-08-24
  • 2021-12-08
  • 2021-12-18
  • 2022-12-23
  • 2021-09-29
  • 2021-12-10
  • 2022-01-08
  • 2021-11-20
猜你喜欢
  • 2021-05-31
  • 2021-12-15
  • 2021-06-30
  • 2021-09-03
  • 2021-12-10
  • 2021-05-06
  • 2021-10-07
相关资源
相似解决方案