@cloudbase/weda-ui 1.0.21 → 2.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. package/package.json +6 -4
  2. package/src/configs/components/button.json +0 -2
  3. package/src/configs/components/calendar.json +5 -2
  4. package/src/configs/components/carousel.json +18 -9
  5. package/src/configs/components/chart/bar.json +12 -6
  6. package/src/configs/components/chart/line.json +8 -4
  7. package/src/configs/components/chart/pie.json +8 -4
  8. package/src/configs/components/dataView.json +11 -6
  9. package/src/configs/components/form/radio.json +27 -0
  10. package/src/configs/components/form/select.json +2 -2
  11. package/src/configs/components/graphicCard.json +6 -2
  12. package/src/configs/components/image.json +12 -6
  13. package/src/configs/components/link.json +6 -3
  14. package/src/configs/components/listView.json +21 -11
  15. package/src/configs/components/lottery.json +153 -0
  16. package/src/configs/components/navLayout.json +12 -6
  17. package/src/configs/components/richtextview.json +2 -1
  18. package/src/configs/components/scrollVeiw.json +24 -12
  19. package/src/configs/components/swiper.json +18 -9
  20. package/src/configs/components/tabs.json +4 -2
  21. package/src/configs/components/text.json +10 -5
  22. package/src/configs/index.js +2 -0
  23. package/src/docs/common/format.tsx +112 -0
  24. package/src/docs/common/tableView.css +164 -0
  25. package/src/docs/common/tableView.tsx +273 -0
  26. package/src/docs/compsdocs/chart/Bar.mdx +159 -0
  27. package/src/docs/compsdocs/chart/Line.mdx +100 -0
  28. package/src/docs/compsdocs/chart/Pie.mdx +83 -0
  29. package/src/docs/compsdocs/chart/_category_.json +1 -0
  30. package/src/docs/compsdocs/chart/statisticsCard.mdx +51 -0
  31. package/src/docs/compsdocs/database/DataView.mdx +33 -0
  32. package/src/docs/compsdocs/database/ListView.mdx +33 -0
  33. package/src/docs/compsdocs/database/_category_.json +1 -0
  34. package/src/docs/compsdocs/form/Form.mdx +35 -0
  35. package/src/docs/compsdocs/form/FormCheckbox.mdx +35 -0
  36. package/src/docs/compsdocs/form/FormDate.mdx +30 -0
  37. package/src/docs/compsdocs/form/FormEmail.mdx +30 -0
  38. package/src/docs/compsdocs/form/FormImageUploader.mdx +31 -0
  39. package/src/docs/compsdocs/form/FormInput.mdx +30 -0
  40. package/src/docs/compsdocs/form/FormLocation.mdx +64 -0
  41. package/src/docs/compsdocs/form/FormPhone.mdx +30 -0
  42. package/src/docs/compsdocs/form/FormRadio.mdx +35 -0
  43. package/src/docs/compsdocs/form/FormRegion.mdx +30 -0
  44. package/src/docs/compsdocs/form/FormSelect.mdx +36 -0
  45. package/src/docs/compsdocs/form/FormSwitch.mdx +30 -0
  46. package/src/docs/compsdocs/form/FormTextarea.mdx +30 -0
  47. package/src/docs/compsdocs/form/FormTime.mdx +30 -0
  48. package/src/docs/compsdocs/form/FormUploadFile.mdx +30 -0
  49. package/src/docs/compsdocs/form/FormUrl.mdx +30 -0
  50. package/src/docs/compsdocs/form/_category_.json +1 -0
  51. package/src/docs/compsdocs/grid/Card.mdx +32 -0
  52. package/src/docs/compsdocs/grid/Container.mdx +42 -0
  53. package/src/docs/compsdocs/grid/Footer.mdx +31 -0
  54. package/src/docs/compsdocs/grid/GridLayout.mdx +32 -0
  55. package/src/docs/compsdocs/grid/Header.mdx +31 -0
  56. package/src/docs/compsdocs/grid/Layout.mdx +25 -0
  57. package/src/docs/compsdocs/grid/List.mdx +31 -0
  58. package/src/docs/compsdocs/grid/ScrollView.mdx +37 -0
  59. package/src/docs/compsdocs/grid/Swiper.mdx +58 -0
  60. package/src/docs/compsdocs/grid/_category_.json +1 -0
  61. package/src/docs/compsdocs/media/Icon.mdx +31 -0
  62. package/src/docs/compsdocs/media/Image.mdx +55 -0
  63. package/src/docs/compsdocs/media/_category_.json +1 -0
  64. package/src/docs/compsdocs/model/ModelCreate.mdx +20 -0
  65. package/src/docs/compsdocs/model/ModelDetail.mdx +20 -0
  66. package/src/docs/compsdocs/model/ModelTable.mdx +24 -0
  67. package/src/docs/compsdocs/model/ModelUpdate.mdx +21 -0
  68. package/src/docs/compsdocs/model/PageLayout.mdx +21 -0
  69. package/src/docs/compsdocs/model/_category_.json +1 -0
  70. package/src/docs/compsdocs/navmenu/Classification.mdx +38 -0
  71. package/src/docs/compsdocs/navmenu/NavBar.mdx +43 -0
  72. package/src/docs/compsdocs/navmenu/NavLayout.mdx +30 -0
  73. package/src/docs/compsdocs/navmenu/TabBar.mdx +43 -0
  74. package/src/docs/compsdocs/navmenu/TabBarItem.mdx +29 -0
  75. package/src/docs/compsdocs/navmenu/_category_.json +1 -0
  76. package/src/docs/compsdocs/senior/Lottery.mdx +48 -0
  77. package/src/docs/compsdocs/senior/Modal.mdx +58 -0
  78. package/src/docs/compsdocs/senior/SlotMachine.mdx +52 -0
  79. package/src/docs/compsdocs/senior/_category_.json +1 -0
  80. package/src/docs/compsdocs/show/Calendar.mdx +29 -0
  81. package/src/docs/compsdocs/show/Divider.mdx +31 -0
  82. package/src/docs/compsdocs/show/GraphicCard.mdx +30 -0
  83. package/src/docs/compsdocs/show/Item.mdx +32 -0
  84. package/src/docs/compsdocs/show/ItemList.mdx +47 -0
  85. package/src/docs/compsdocs/show/Media.mdx +25 -0
  86. package/src/docs/compsdocs/show/StatusTip.mdx +25 -0
  87. package/src/docs/compsdocs/show/Swiper.mdx +33 -0
  88. package/src/docs/compsdocs/show/Tabs.mdx +38 -0
  89. package/src/docs/compsdocs/show/_category_.json +1 -0
  90. package/src/docs/compsdocs/show/button.mdx +25 -0
  91. package/src/docs/compsdocs/text/Link.mdx +43 -0
  92. package/src/docs/compsdocs/text/RichTextView.mdx +36 -0
  93. package/src/docs/compsdocs/text/Text.mdx +31 -0
  94. package/src/docs/compsdocs/text/Title.mdx +32 -0
  95. package/src/docs/compsdocs/text/_category_.json +1 -0
  96. package/src/docs/compsdocs/wxOpen/Phone.mdx +60 -0
  97. package/src/docs/compsdocs/wxOpen/Share.mdx +46 -0
  98. package/src/docs/compsdocs/wxOpen/UserInfo.mdx +60 -0
  99. package/src/docs/compsdocs/wxOpen/_category_.json +4 -0
  100. package/src/index.js +2 -0
  101. package/src/mp/components/button/index.js +18 -2
  102. package/src/mp/components/button/index.wxml +7 -4
  103. package/src/mp/components/form/form/index.wxml +1 -2
  104. package/src/mp/components/form/formcell/index.wxml +1 -1
  105. package/src/mp/components/form/formcell/index.wxss +17 -0
  106. package/src/mp/components/form/input/index.wxss +15 -0
  107. package/src/mp/components/form/location/index.wxss +4 -6
  108. package/src/mp/components/form/select/index.js +13 -23
  109. package/src/mp/components/form/select/index.wxss +4 -0
  110. package/src/mp/components/form/select/region/index.js +6 -3
  111. package/src/mp/components/form/textarea/index.js +1 -1
  112. package/src/mp/components/form/textarea/index.wxss +4 -0
  113. package/src/mp/components/form/uploader/index.json +3 -2
  114. package/src/mp/components/form/uploader/index.wxml +11 -7
  115. package/src/mp/components/form/uploader/index.wxss +20 -2
  116. package/src/mp/components/form/uploader/weui-uploader.js +209 -0
  117. package/src/mp/components/form/uploader/weui-uploader.json +7 -0
  118. package/src/mp/components/form/uploader/weui-uploader.wxml +45 -0
  119. package/src/mp/components/form/uploader/weui-uploader.wxss +1 -0
  120. package/src/mp/components/form/uploaderFile/index.wxss +4 -4
  121. package/src/mp/components/image/index.wxss +3 -2
  122. package/src/mp/components/listView/index.js +5 -16
  123. package/src/mp/components/lottery/index.js +270 -0
  124. package/src/mp/components/lottery/index.json +4 -0
  125. package/src/mp/components/lottery/index.wxml +43 -0
  126. package/src/mp/components/lottery/index.wxss +317 -0
  127. package/src/mp/components/wxOpenApi/phone/index.js +1 -1
  128. package/src/mp/index.json +4 -3
  129. package/src/mp/style/weda-ui.wxss +14 -0
  130. package/src/mp/utils/constant.js +15 -0
  131. package/src/mp/utils/lodash.js +2 -0
  132. package/src/web/components/button/index.tsx +7 -7
  133. package/src/web/components/calendar/index.jsx +1 -1
  134. package/src/web/components/carousel/index.tsx +8 -8
  135. package/src/web/components/chart/common/config/line.js +1 -1
  136. package/src/web/components/form/checkbox/index.tsx +6 -0
  137. package/src/web/components/form/form/index.css +5 -1
  138. package/src/web/components/form/form/index.tsx +3 -1
  139. package/src/web/components/form/formcell/index.css +22 -1
  140. package/src/web/components/form/formcell/index.tsx +11 -6
  141. package/src/web/components/form/input/index.css +7 -12
  142. package/src/web/components/form/location/components/LocationH5/index.css +4 -7
  143. package/src/web/components/form/location/components/LocationH5/location.h5.jsx +1 -1
  144. package/src/web/components/form/radio/index.tsx +6 -0
  145. package/src/web/components/form/select/h5.tsx +5 -24
  146. package/src/web/components/form/select/index.css +11 -0
  147. package/src/web/components/form/select/index.tsx +4 -17
  148. package/src/web/components/form/textarea/index.css +4 -0
  149. package/src/web/components/form/textarea/index.tsx +2 -2
  150. package/src/web/components/form/tips/index.css +4 -0
  151. package/src/web/components/form/tips/index.tsx +4 -3
  152. package/src/web/components/form/uploader/index.css +26 -2
  153. package/src/web/components/form/uploader/uploader.h5.tsx +81 -56
  154. package/src/web/components/form/uploaderFile/index.css +2 -4
  155. package/src/web/components/image/index.css +5 -5
  156. package/src/web/components/image/index.tsx +6 -7
  157. package/src/web/components/index.js +1 -0
  158. package/src/web/components/link/index.tsx +2 -2
  159. package/src/web/components/listView/index.tsx +6 -19
  160. package/src/web/components/lottery/index.css +327 -0
  161. package/src/web/components/lottery/index.tsx +567 -0
  162. package/src/web/components/lottery/lotteryUtil.ts +130 -0
  163. package/src/web/components/navLayout/index.tsx +2 -2
  164. package/src/web/components/navigationBar/index.tsx +0 -1
  165. package/src/web/components/picker/timePicker.tsx +2 -2
  166. package/src/web/components/slot/index.tsx +1 -1
  167. package/src/web/components/text/index.tsx +6 -6
  168. package/src/web/utils/{constant.js → constant.ts} +17 -2
  169. package/src/web/utils/lodash.ts +2 -0
  170. package/src/web/weda-ui.css +5 -1
@@ -0,0 +1,30 @@
1
+ # 时间选择
2
+
3
+ <TableLayoutView
4
+ componentKey="FormTime"
5
+ type="description"
6
+ origin="lowCode"
7
+ ></TableLayoutView>
8
+
9
+ ## 使用说明
10
+
11
+ 1. 放入「表单容器」组件后,可实现数据源数据的提交与显示
12
+ 2. 当父级表单容器组件已经绑定数据源后,利用「字段绑定」属性可绑定该数据源中的字段,实现新增/查看/更新对应字段的数据
13
+
14
+ ## 属性介绍
15
+
16
+ import TableLayoutView from '../../common/tableView';
17
+
18
+ <TableLayoutView
19
+ componentKey="FormTime"
20
+ type="attribute"
21
+ origin="lowCode"
22
+ ></TableLayoutView>
23
+
24
+ ## 事件介绍
25
+
26
+ <TableLayoutView
27
+ componentKey="FormTime"
28
+ type="event"
29
+ origin="lowCode"
30
+ ></TableLayoutView>
@@ -0,0 +1,30 @@
1
+ # 文件上传
2
+
3
+ <TableLayoutView
4
+ componentKey="FormUploadFile"
5
+ type="description"
6
+ origin="lowCode"
7
+ ></TableLayoutView>
8
+
9
+ ## 使用说明
10
+
11
+ 1. 放入「表单容器」组件后,可实现数据源数据的提交与显示
12
+ 2. 当父级表单容器组件已经绑定数据源后,利用「字段绑定」属性可绑定该数据源中的字段,实现新增/查看/更新对应字段的数据
13
+
14
+ ## 属性介绍
15
+
16
+ import TableLayoutView from '../../common/tableView';
17
+
18
+ <TableLayoutView
19
+ componentKey="FormUploadFile"
20
+ type="attribute"
21
+ origin="lowCode"
22
+ ></TableLayoutView>
23
+
24
+ ## 事件介绍
25
+
26
+ <TableLayoutView
27
+ componentKey="FormUploadFile"
28
+ type="event"
29
+ origin="lowCode"
30
+ ></TableLayoutView>
@@ -0,0 +1,30 @@
1
+ # URL 地址
2
+
3
+ <TableLayoutView
4
+ componentKey="FormUrl"
5
+ type="description"
6
+ origin="lowCode"
7
+ ></TableLayoutView>
8
+
9
+ ## 使用说明
10
+
11
+ 1. 放入「表单容器」组件后,可实现数据源数据的提交与显示
12
+ 2. 当父级表单容器组件已经绑定数据源后,利用「字段绑定」属性可绑定该数据源中的字段,实现新增/查看/更新对应字段的数据
13
+
14
+ ## 属性介绍
15
+
16
+ import TableLayoutView from '../../common/tableView';
17
+
18
+ <TableLayoutView
19
+ componentKey="FormUrl"
20
+ type="attribute"
21
+ origin="lowCode"
22
+ ></TableLayoutView>
23
+
24
+ ## 事件介绍
25
+
26
+ <TableLayoutView
27
+ componentKey="FormUrl"
28
+ type="event"
29
+ origin="lowCode"
30
+ ></TableLayoutView>
@@ -0,0 +1 @@
1
+ { "label": "表单", "position": 20 }
@@ -0,0 +1,32 @@
1
+ # 卡片布局
2
+
3
+ <TableLayoutView
4
+ componentKey="Card"
5
+ type="description"
6
+ origin="lowCode"
7
+ ></TableLayoutView>
8
+
9
+ ## 使用说明
10
+
11
+ 垂直布局组件可以通过在其自带的插槽中插入组件,实现标准的纵向布局效果。
12
+
13
+ ![](https://qcloudimg.tencent-cloud.cn/raw/66af38eb338dab6a1d7ff9d2d48e48ff.png)
14
+
15
+
16
+ ## 属性介绍
17
+
18
+ import TableLayoutView from '../../common/tableView';
19
+
20
+ <TableLayoutView
21
+ componentKey="Card"
22
+ type="attribute"
23
+ origin="lowCode"
24
+ ></TableLayoutView>
25
+
26
+ ## 事件介绍
27
+
28
+ <TableLayoutView
29
+ componentKey="Card"
30
+ type="event"
31
+ origin="lowCode"
32
+ ></TableLayoutView>
@@ -0,0 +1,42 @@
1
+ # 普通容器
2
+
3
+ <TableLayoutView
4
+ componentKey="Container"
5
+ type="description"
6
+ origin="sourceCode"
7
+ ></TableLayoutView>
8
+
9
+ ## 使用说明
10
+
11
+ 普通容器存在多种使用场景,对于应用的搭建有着重要的作用
12
+
13
+ ### 使用普通容器进行组件样式的统一控制
14
+
15
+ 普通容器常被作为其他组件的父级节点进行使用,当普通容器的样式属性修改时,其子节点的组件也会随之进行修改
16
+
17
+ ![](https://qcloudimg.tencent-cloud.cn/raw/6789641ff7a752b2cb2fe77c94fdeb3a.png)
18
+
19
+ ### 使用普通容器进行组件的循环遍历展示
20
+
21
+ 我们可以将普通容器绑定循环后,实现其子节点组件的循环展示,如下图所示,具体操作方式可参考文档: [组件循环说明](https://cloud.tencent.com/document/product/1301/58434)
22
+
23
+ ![](https://qcloudimg.tencent-cloud.cn/raw/9cdb80ecd07ea73cbdb0c644cb788208.png)
24
+
25
+
26
+ ## 属性介绍
27
+
28
+ import TableLayoutView from '../../common/tableView';
29
+
30
+ <TableLayoutView
31
+ componentKey="Container"
32
+ type="attribute"
33
+ origin="sourceCode"
34
+ ></TableLayoutView>
35
+
36
+ ## 事件介绍
37
+
38
+ <TableLayoutView
39
+ componentKey="Container"
40
+ type="event"
41
+ origin="sourceCode"
42
+ ></TableLayoutView>
@@ -0,0 +1,31 @@
1
+ # 页脚容器
2
+
3
+ <TableLayoutView
4
+ componentKey="Footer"
5
+ type="description"
6
+ origin="lowCode"
7
+ ></TableLayoutView>
8
+
9
+ ## 使用说明
10
+
11
+ 当组件放置在页脚容器中时,组件位置便会固定展示在页面的底部。
12
+
13
+ ![](https://qcloudimg.tencent-cloud.cn/raw/2f2c5df2b1072ded515e033fde785f19.png)
14
+
15
+ ## 属性介绍
16
+
17
+ import TableLayoutView from '../../common/tableView';
18
+
19
+ <TableLayoutView
20
+ componentKey="Footer"
21
+ type="attribute"
22
+ origin="lowCode"
23
+ ></TableLayoutView>
24
+
25
+ ## 事件介绍
26
+
27
+ <TableLayoutView
28
+ componentKey="Footer"
29
+ type="event"
30
+ origin="lowCode"
31
+ ></TableLayoutView>
@@ -0,0 +1,32 @@
1
+ # 网格布局
2
+
3
+ <TableLayoutView
4
+ componentKey="GridLayout"
5
+ type="description"
6
+ origin="lowCode"
7
+ ></TableLayoutView>
8
+
9
+ ## 使用说明
10
+
11
+ 网格布局组件可以通过配置区生成对应比例的插槽,用于帮助更好的实现横向的排列效果。
12
+
13
+ ![](https://qcloudimg.tencent-cloud.cn/raw/6ed4e14bb69eede45c745c845f6f6675.png)
14
+
15
+
16
+ ## 属性介绍
17
+
18
+ import TableLayoutView from '../../common/tableView';
19
+
20
+ <TableLayoutView
21
+ componentKey="GridLayout"
22
+ type="attribute"
23
+ origin="lowCode"
24
+ ></TableLayoutView>
25
+
26
+ ## 事件介绍
27
+
28
+ <TableLayoutView
29
+ componentKey="GridLayout"
30
+ type="event"
31
+ origin="lowCode"
32
+ ></TableLayoutView>
@@ -0,0 +1,31 @@
1
+ # 页头容器
2
+
3
+ <TableLayoutView
4
+ componentKey="Header"
5
+ type="description"
6
+ origin="lowCode"
7
+ ></TableLayoutView>
8
+
9
+ ## 使用说明
10
+
11
+ 当组件放置在页头容器中时,组件位置便会固定展示在页面的顶部,常用于展示标题。
12
+
13
+ ![](https://qcloudimg.tencent-cloud.cn/raw/91fcc54d14e1440773fb68ec294bcfc1.png)
14
+
15
+ ## 属性介绍
16
+
17
+ import TableLayoutView from '../../common/tableView';
18
+
19
+ <TableLayoutView
20
+ componentKey="Header"
21
+ type="attribute"
22
+ origin="lowCode"
23
+ ></TableLayoutView>
24
+
25
+ ## 事件介绍
26
+
27
+ <TableLayoutView
28
+ componentKey="Header"
29
+ type="event"
30
+ origin="lowCode"
31
+ ></TableLayoutView>
@@ -0,0 +1,25 @@
1
+ # 垂直布局
2
+
3
+ <TableLayoutView
4
+ componentKey="Layout"
5
+ type="description"
6
+ origin="lowCode"
7
+ ></TableLayoutView>
8
+
9
+ ## 属性介绍
10
+
11
+ import TableLayoutView from '../../common/tableView';
12
+
13
+ <TableLayoutView
14
+ componentKey="Layout"
15
+ type="attribute"
16
+ origin="lowCode"
17
+ ></TableLayoutView>
18
+
19
+ ## 事件介绍
20
+
21
+ <TableLayoutView
22
+ componentKey="Layout"
23
+ type="event"
24
+ origin="lowCode"
25
+ ></TableLayoutView>
@@ -0,0 +1,31 @@
1
+ # 分组列表容器
2
+
3
+ <TableLayoutView
4
+ componentKey="List"
5
+ type="description"
6
+ origin="lowCode"
7
+ ></TableLayoutView>
8
+
9
+ ## 使用说明
10
+
11
+ 使用分组列表容器的自带插槽即可快速的实现列表的分组效果,常与**列表项**组件配合使用。
12
+
13
+ ![](https://qcloudimg.tencent-cloud.cn/raw/f0ada7b2b47704710b9d14b0e009a9a3.png)
14
+
15
+ ## 属性介绍
16
+
17
+ import TableLayoutView from '../../common/tableView';
18
+
19
+ <TableLayoutView
20
+ componentKey="List"
21
+ type="attribute"
22
+ origin="lowCode"
23
+ ></TableLayoutView>
24
+
25
+ ## 事件介绍
26
+
27
+ <TableLayoutView
28
+ componentKey="List"
29
+ type="event"
30
+ origin="lowCode"
31
+ ></TableLayoutView>
@@ -0,0 +1,37 @@
1
+ # 滚动容器
2
+
3
+ <TableLayoutView
4
+ componentKey="ScrollView"
5
+ type="description"
6
+ origin="sourceCode"
7
+ ></TableLayoutView>
8
+
9
+ ## 使用说明
10
+
11
+ 滚动容器可以实现页面或功能模块的滚动效果,当滚动容器内组件内容占用的总宽度/高度大于滚动容器本身的宽度/高度时,便会出现滚动条,通过滑动滚动条滑动来查看容器内的全部内容,示例如下:
12
+
13
+ 1. 拖入一个滚动容器组件,将高度设置为300
14
+
15
+ ![](https://qcloudimg.tencent-cloud.cn/raw/15e8ca4864efeda01609b062fc867675.png)
16
+
17
+ 2. 在滚动容器中添加三个图片组件,每个图片组件的高度设为200,这样容器内的组件高度便大于了容器本身的高度,滚动条出现。
18
+
19
+ ![](https://qcloudimg.tencent-cloud.cn/raw/aca40c58815769adad57f551b994a8fe.png)
20
+
21
+ ## 属性介绍
22
+
23
+ import TableLayoutView from '../../common/tableView';
24
+
25
+ <TableLayoutView
26
+ componentKey="ScrollView"
27
+ type="attribute"
28
+ origin="sourceCode"
29
+ ></TableLayoutView>
30
+
31
+ ## 事件介绍
32
+
33
+ <TableLayoutView
34
+ componentKey="ScrollView"
35
+ type="event"
36
+ origin="sourceCode"
37
+ ></TableLayoutView>
@@ -0,0 +1,58 @@
1
+ # 轮播容器
2
+
3
+ <TableLayoutView
4
+ componentKey="Swiper"
5
+ type="description"
6
+ origin="sourceCode"
7
+ ></TableLayoutView>
8
+
9
+ ## 使用方法
10
+
11
+ ### 通过数据源数据/变量控制对轮播图的展示内容进行控制
12
+
13
+ 当存在需要使用数据进行轮播图内容管理的场景下,我们可以使用轮播容器组件实现,操作方式如下:
14
+
15
+ 1. 在编辑区中添加一个轮播容器组件,并将图片组件添加轮播容器的子节点下
16
+
17
+ ![](https://qcloudimg.tencent-cloud.cn/raw/a21ba8b333eea0ca66a89e395c772edc.png)
18
+
19
+ 2. 为图片组件通过绑定循环功能,绑定用来控制轮播图内容的循环/普通变量,绑定完成后轮播图即可根据变量中的数据进行渲染
20
+
21
+ ![](https://qcloudimg.tencent-cloud.cn/raw/e713f95b5ae74eb7b55a1ac7c683a1e3.png)
22
+
23
+ ### 使用轮播容器实现高级的轮播场景
24
+
25
+ 我们可以使用轮播容器实现更为复杂的轮播场景,如下图所示:
26
+
27
+ ![](https://qcloudimg.tencent-cloud.cn/raw/3e8f4b15877539b0fb8a6e49fd5ccf5b.png)
28
+
29
+ 1. 为轮播容器的子节点下添加普通容器组件,并在普通容器组件的子节点下添加图片以及按钮组件
30
+
31
+ ![](https://qcloudimg.tencent-cloud.cn/raw/06b7e81713821bf352763ef9ceda52b5.png)
32
+
33
+ 2. 设置按钮组件的定位模式为**固定**,并进行位置的调整后即可实现类似的复杂轮播场景。
34
+
35
+ ![](https://qcloudimg.tencent-cloud.cn/raw/293a179b0b2ed580c97d4e0ba9dcc5a3.png)
36
+
37
+
38
+ ## 属性介绍
39
+
40
+ import TableLayoutView from '../../common/tableView';
41
+
42
+ <TableLayoutView
43
+ componentKey="Swiper"
44
+ type="attribute"
45
+ origin="sourceCode"
46
+ ></TableLayoutView>
47
+
48
+ ## 事件介绍
49
+
50
+ <TableLayoutView
51
+ componentKey="Swiper"
52
+ type="event"
53
+ origin="sourceCode"
54
+ ></TableLayoutView>
55
+
56
+ ## 组件使用限制
57
+
58
+ 需注意,由于小程序端样式限制问题,轮播容器中的图片高度不得设置为auto,否则将无法渲染。
@@ -0,0 +1 @@
1
+ { "label": "布局容器", "position": 40 }
@@ -0,0 +1,31 @@
1
+ # 图标
2
+
3
+ <TableLayoutView
4
+ componentKey="Icon"
5
+ type="description"
6
+ origin="lowCode"
7
+ ></TableLayoutView>
8
+
9
+ ## 使用说明
10
+
11
+ 可以通过在图标组件的配置区中选择微搭提供的内置icon实现图标的展示效果并调整图标颜色等参数,同时图标组件也支持用户对图标进行自定义的上传。
12
+
13
+ ![](https://qcloudimg.tencent-cloud.cn/raw/5cd6ab3affb14dc404ddcd939aa6a220.png)
14
+
15
+ ## 属性介绍
16
+
17
+ import TableLayoutView from '../../common/tableView';
18
+
19
+ <TableLayoutView
20
+ componentKey="Icon"
21
+ type="attribute"
22
+ origin="lowCode"
23
+ ></TableLayoutView>
24
+
25
+ ## 事件介绍
26
+
27
+ <TableLayoutView
28
+ componentKey="Icon"
29
+ type="event"
30
+ origin="lowCode"
31
+ ></TableLayoutView>
@@ -0,0 +1,55 @@
1
+ # 图片
2
+
3
+ <TableLayoutView
4
+ componentKey="Image"
5
+ type="description"
6
+ origin="sourceCode"
7
+ ></TableLayoutView>
8
+
9
+ ## 使用说明
10
+
11
+ ### 展示微搭素材中心图片
12
+
13
+ 在图片组件的配置区中点击icon,即可调起微搭的素材中心,在素材中心上传或选择对应的图片素材后便可以在页面中进行图片的展示。
14
+
15
+ ![](https://qcloudimg.tencent-cloud.cn/raw/e8f7807bf68597e6f61d7a7fe8517109.png)
16
+
17
+ ### 展示url图片
18
+
19
+ 图片组件同样支持对图片url进行渲染展示,仅需在配置区中输入对应的图片url便可以完成图片的渲染。
20
+
21
+ ![](https://qcloudimg.tencent-cloud.cn/raw/d41b668fd07f55df539507474569dbdb.png)
22
+
23
+ ### 绑定变量实现图片展示
24
+
25
+ 当变量内容为图片url的时候,图片组件支持绑定变量并对其进行渲染,示例如下:
26
+
27
+ 1. 创建一个普通变量,并将其初始值填写为图片的url
28
+
29
+ ![](https://qcloudimg.tencent-cloud.cn/raw/bccd4aff2ae2b17b229b9dbec37e24d4.png)
30
+
31
+ 2. 点击图片组件配置区的绑定按钮,并绑定该变量,可以看到图片已经被正常渲染
32
+
33
+ ![](https://qcloudimg.tencent-cloud.cn/raw/dd90f11577ff88d15db608dfc57817c4.png)
34
+
35
+ ## 属性介绍
36
+
37
+ import TableLayoutView from '../../common/tableView';
38
+
39
+ <TableLayoutView
40
+ componentKey="Image"
41
+ type="attribute"
42
+ origin="sourceCode"
43
+ ></TableLayoutView>
44
+
45
+ ## 事件介绍
46
+
47
+ <TableLayoutView
48
+ componentKey="Image"
49
+ type="event"
50
+ origin="sourceCode"
51
+ ></TableLayoutView>
52
+
53
+ ## 组件使用限制
54
+
55
+ 需注意,由于小程序端样式限制问题,图片组件的高度不得设置为auto,否则将无法渲染。
@@ -0,0 +1 @@
1
+ { "label": "多媒体", "position": 50 }
@@ -0,0 +1,20 @@
1
+ # 新增组件
2
+
3
+ ## 适用场景
4
+
5
+ 用于新增单条数据
6
+
7
+ ## 使用说明
8
+
9
+ 在创建模型应用、模型页面时,会自动在数据的新增页面生成该组件,并与数据的更新/查看/管理表格页面构建关联关系,实现对应的页面跳转逻辑
10
+
11
+ ## 属性介绍
12
+
13
+ | 属性名 | 类型 | 属性分组 | 默认值 | 说明 |
14
+ | ---------- | -------- | -------- | ------ | ------------------ |
15
+ | 绑定数据源 | `object` | 基础属性 | - | 展示数据的数据来源 |
16
+ | 按钮 | `array` | 按钮配置 | - | 设置组件中的按钮 |
17
+
18
+ ## 事件介绍
19
+
20
+
@@ -0,0 +1,20 @@
1
+ # 详情组件
2
+
3
+ ## 适用场景
4
+
5
+ 用于查看数据详情
6
+
7
+ ## 使用说明
8
+
9
+ 在创建模型应用、模型页面时,会自动在数据的查看页面生成该组件,并与数据的新增/更新/管理表格页面构建关联关系,实现对应的页面跳转逻辑
10
+
11
+ ## 属性介绍
12
+
13
+ | 属性名 | 类型 | 属性分组 | 默认值 | 说明 |
14
+ | ---------- | -------- | -------- | ------ | ------------------ |
15
+ | 绑定数据源 | `object` | 基础属性 | - | 展示数据的数据来源 |
16
+ | 按钮 | `array` | 按钮配置 | - | 设置组件中的按钮 |
17
+
18
+ ## 事件介绍
19
+
20
+
@@ -0,0 +1,24 @@
1
+ # 表格组件
2
+
3
+ ## 适用场景
4
+
5
+ 用于以表格形式展示列表数据
6
+
7
+ ## 使用说明
8
+
9
+ 在创建模型应用、模型页面时,会自动在数据的管理表格页面生成该组件,并与数据的新增/更新/查看页面构建关联关系,实现对应的页面跳转逻辑![](https://qcloudimg.tencent-cloud.cn/raw/d42cd232d5f05c47544286a46bcab537.png)
10
+
11
+
12
+ ## 属性介绍
13
+
14
+ | 属性名 | 类型 | 属性分组 | 默认值 | 说明 |
15
+ | ---------- | -------- | -------------- | ----------- | ------------------ |
16
+ | 绑定数据源 | `object` | 基础属性 | - | 展示数据的数据来源 |
17
+ | 搜索方式 | - | 基础属性 | "searchbox" | |
18
+ | 筛选字段 | - | 基础属性 | - | |
19
+ | 按钮 | `array` | 顶部按钮配置 | - | 设置组件中的按钮 |
20
+ | 按钮 | `array` | 操作列按钮配置 | - | 设置组件中的按钮 |
21
+
22
+ ## 事件介绍
23
+
24
+
@@ -0,0 +1,21 @@
1
+ # 更新组件
2
+
3
+ ## 适用场景
4
+
5
+ 用于更新现有单条数据
6
+
7
+ ## 使用说明
8
+
9
+ 在创建模型应用、模型页面时,会自动在数据的更新页面生成该组件,并与数据的新增/查看/管理表格页面构建关联关系,实现对应的页面跳转逻辑
10
+
11
+
12
+ ## 属性介绍
13
+
14
+ | 属性名 | 类型 | 属性分组 | 默认值 | 说明 |
15
+ | ---------- | -------- | -------- | ------ | ------------------ |
16
+ | 绑定数据源 | `object` | 基础属性 | - | 展示数据的数据来源 |
17
+ | 按钮 | `array` | 按钮配置 | - | 设置组件中的按钮 |
18
+
19
+ ## 事件介绍
20
+
21
+
@@ -0,0 +1,21 @@
1
+ # 布局组件
2
+
3
+ ## 适用场景
4
+
5
+ 用于构建带有顶部导航的页面布局
6
+
7
+ ## 使用说明
8
+
9
+ 组件顶部区域标题可自定义,中间内容插槽区域中可放入其他组件用于构建页面内容
10
+
11
+ ![](https://qcloudimg.tencent-cloud.cn/raw/5f6380288d48e9b12f7d906358965f11.png)
12
+
13
+ ## 属性介绍
14
+
15
+ | 属性名 | 类型 | 属性分组 | 默认值 | 说明 |
16
+ | -------- | -------- | -------- | -------- | ---------------------- |
17
+ | 页面标题 | `string` | 基础属性 | 页面标题 | 组件顶部显示的标题内容 |
18
+
19
+ ## 事件介绍
20
+
21
+
@@ -0,0 +1 @@
1
+ { "label": "模型组件", "position": 75 }
@@ -0,0 +1,38 @@
1
+ # 侧边导航面板
2
+
3
+ <TableLayoutView
4
+ componentKey="Classification"
5
+ type="description"
6
+ origin="lowCode"
7
+ ></TableLayoutView>
8
+
9
+ ## 使用说明
10
+
11
+ 使用侧边导航面板组件可以实现页面的左侧Tab切换效果,当在组件配置区点击新增标签时,在大纲树中会生成对应的**内容插槽**,我们可以通过在内容插槽中放置对应组件实现不同Tab的的内容构建,以下文为例:
12
+
13
+ 1. 在侧边导航面板组件的两个内容插槽中分别添加两个文本组件,并为两个文本组件设置不同的内容
14
+
15
+ ![](https://qcloudimg.tencent-cloud.cn/raw/0b5640a94e57826585ea975d66b1b56d.png)
16
+
17
+ 2. 可以看到,当进行Tab切换时,不同的Tab便呈现出了不同的文本组件内容
18
+
19
+ ![](https://qcloudimg.tencent-cloud.cn/raw/3b40f7e41c7e4b42c143119937e24996.png)
20
+
21
+
22
+ ## 属性介绍
23
+
24
+ import TableLayoutView from '../../common/tableView';
25
+
26
+ <TableLayoutView
27
+ componentKey="Classification"
28
+ type="attribute"
29
+ origin="lowCode"
30
+ ></TableLayoutView>
31
+
32
+ ## 事件介绍
33
+
34
+ <TableLayoutView
35
+ componentKey="Classification"
36
+ type="event"
37
+ origin="lowCode"
38
+ ></TableLayoutView>