开发微信小程序中,为了符合开发需求自定义了 “折叠栏“、“普通表格“、“遮罩弹层”组件,已独立抽取出来的组件作出以下总结,便于后续在其他小程序项目中使用
github地址:https://github.com/HeaventTso/zayer-miniprogram
Zayer-miniprogram自定义组件说明文档:
一.Zayer-flod折叠栏组件
- 在引入页面的json文件中定义
"usingComponents": {
"zayer-flod" : "组件存放路径/zayer-flod/index"
}
- 在wxml页面中直接调用
<zayer-flod title="折叠栏标题" expand="{ {true}}" withIcon="{ { true }}" withAttach="{ { true }}" stopFlod="{ { false }}">
<image slot="icon" src="" />
<text slot="title_right" >备注信息</text>
<view slot="content">
-----------
折叠内容区域