@luck-design-biz/luckda 0.0.22 → 0.0.23

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 (251) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +40 -49
  3. package/es/components/Builder/index.js +4 -4
  4. package/es/components/LdAutoForm/index.js +7 -9
  5. package/es/components/LdCard/index.js +5 -6
  6. package/es/components/LdCard/model.js +1 -1
  7. package/es/components/LdCom/index.js +2 -2
  8. package/es/components/LdFormList/index.js +19 -17
  9. package/es/components/LdGrid/index.js +11 -12
  10. package/es/components/LdGrid/model.js +1 -1
  11. package/es/components/LdGridForm/index.js +10 -10
  12. package/es/components/LdGridForm/index.less +7 -7
  13. package/es/components/LdInfoPanel/index.js +2 -2
  14. package/es/components/LdRuntimeCom/index.js +42 -0
  15. package/es/components/LdTree/index.js +3 -4
  16. package/es/components/LdTree/index.less +36 -36
  17. package/es/helper/FromItems.js +1 -1
  18. package/es/helper/action.js +8 -8
  19. package/es/helper/form.js +16 -16
  20. package/es/helper/index.less +7 -7
  21. package/es/helper/ldBuilder.js +1 -1
  22. package/es/helper/ldComBuild.js +4 -4
  23. package/es/index.js +10 -9
  24. package/es/lowcode/constants/api-url.js +2 -0
  25. package/es/lowcode/constants/event-topics.js +23 -0
  26. package/es/lowcode/constants/index.js +12 -0
  27. package/es/lowcode/engine/factory/DataFactory.js +1 -0
  28. package/es/lowcode/engine/meta/button.props.default.json +8 -0
  29. package/es/lowcode/engine/meta/cardlist.props.default.json +10 -0
  30. package/es/lowcode/engine/meta/components/button.json +104 -0
  31. package/es/lowcode/engine/meta/components/card-list.json +143 -0
  32. package/es/lowcode/engine/meta/components/drawer.json +143 -0
  33. package/es/lowcode/engine/meta/components/form.json +116 -0
  34. package/es/lowcode/engine/meta/components/iframe.json +31 -0
  35. package/es/lowcode/engine/meta/components/image.json +113 -0
  36. package/es/lowcode/engine/meta/components/imex.json +81 -0
  37. package/es/lowcode/engine/meta/components/jsx.json +24 -0
  38. package/es/lowcode/engine/meta/components/layout.json +107 -0
  39. package/es/lowcode/engine/meta/components/link.json +111 -0
  40. package/es/lowcode/engine/meta/components/modal.json +120 -0
  41. package/es/lowcode/engine/meta/components/section.json +107 -0
  42. package/es/lowcode/engine/meta/components/split.json +71 -0
  43. package/es/lowcode/engine/meta/components/table.json +161 -0
  44. package/es/lowcode/engine/meta/components/tabs.json +140 -0
  45. package/es/lowcode/engine/meta/components/text.json +65 -0
  46. package/es/lowcode/engine/meta/components/tree.json +156 -0
  47. package/es/lowcode/engine/meta/components-list.json +122 -0
  48. package/es/lowcode/engine/meta/drawer.props.default.json +10 -0
  49. package/es/lowcode/engine/meta/form.props.default.json +5 -0
  50. package/es/lowcode/engine/meta/iframe.props.default.json +3 -0
  51. package/es/lowcode/engine/meta/image.props.default.json +8 -0
  52. package/es/lowcode/engine/meta/imex.props.default.json +4 -0
  53. package/es/lowcode/engine/meta/jsx.props.default.json +1 -0
  54. package/es/lowcode/engine/meta/layout.props.default.json +5 -0
  55. package/es/lowcode/engine/meta/link.props.default.json +6 -0
  56. package/es/lowcode/engine/meta/modal.props.default.json +11 -0
  57. package/es/lowcode/engine/meta/section.props.default.json +9 -0
  58. package/es/lowcode/engine/meta/split.props.default.json +5 -0
  59. package/es/lowcode/engine/meta/table.props.default.json +10 -0
  60. package/es/lowcode/engine/meta/tabs.props.default.json +10 -0
  61. package/es/lowcode/engine/meta/text.props.default.json +4 -0
  62. package/es/lowcode/engine/meta/tree.props.default.json +9 -0
  63. package/es/lowcode/engine/provider/ContextProvider.js +164 -0
  64. package/es/lowcode/engine/provider/EventBusProvider.js +120 -0
  65. package/es/lowcode/engine/tools/dataProcess.js +188 -0
  66. package/es/lowcode/engine/tools/helper.js +4 -0
  67. package/es/lowcode/engine/tools/lcid.js +16 -0
  68. package/es/lowcode/index.js +3 -0
  69. package/es/lowcode/painter/Components.js +104 -0
  70. package/es/lowcode/painter/Design.js +97 -0
  71. package/es/lowcode/painter/I18n.js +5 -0
  72. package/es/lowcode/painter/Outline.js +202 -0
  73. package/es/lowcode/painter/Panel.js +8 -0
  74. package/es/lowcode/painter/Ribbon.js +136 -0
  75. package/es/lowcode/painter/components/PanelItem.js +20 -0
  76. package/es/lowcode/painter/components/RuleInput.js +105 -0
  77. package/es/lowcode/painter/index.js +19 -0
  78. package/es/lowcode/painter/panel-section/LayoutRatio.js +123 -0
  79. package/es/lowcode/painter/panel-section/Radio.js +58 -0
  80. package/es/lowcode/painter/style/components.less +90 -0
  81. package/es/lowcode/painter/style/design.less +38 -0
  82. package/es/lowcode/painter/style/index.less +7 -0
  83. package/es/lowcode/painter/style/layout-ratio.less +51 -0
  84. package/es/lowcode/painter/style/outline.less +26 -0
  85. package/es/lowcode/painter/style/panel-item.less +21 -0
  86. package/es/lowcode/painter/style/panel.less +5 -0
  87. package/es/lowcode/painter/style/radio.less +24 -0
  88. package/es/lowcode/painter/style/ribbon.less +4 -0
  89. package/es/lowcode/painter/style/rule-input.less +13 -0
  90. package/es/lowcode/view/Canvas.js +135 -0
  91. package/es/lowcode/view/Loading.js +23 -0
  92. package/es/lowcode/view/Page.js +55 -0
  93. package/es/lowcode/view/index.js +18 -0
  94. package/es/lowcode/view/lc-components/Box/index.js +21 -0
  95. package/es/lowcode/view/lc-components/Button/index.js +37 -0
  96. package/es/lowcode/view/lc-components/CardList/index.js +20 -0
  97. package/es/lowcode/view/lc-components/Dialog/index.js +50 -0
  98. package/es/lowcode/view/lc-components/Dialog/index.less +3 -0
  99. package/es/lowcode/view/lc-components/Drawer/index.js +46 -0
  100. package/es/lowcode/view/lc-components/Form/index.js +20 -0
  101. package/es/lowcode/view/lc-components/Iframe/index.js +20 -0
  102. package/es/lowcode/view/lc-components/ImEx/index.js +20 -0
  103. package/es/lowcode/view/lc-components/Image/index.js +20 -0
  104. package/es/lowcode/view/lc-components/JSX/index.js +20 -0
  105. package/es/lowcode/view/lc-components/Layout/index.js +24 -0
  106. package/es/lowcode/view/lc-components/Link/index.js +20 -0
  107. package/es/lowcode/view/lc-components/Section/index.js +34 -0
  108. package/es/lowcode/view/lc-components/Split/index.js +21 -0
  109. package/es/lowcode/view/lc-components/Table/index.js +23 -0
  110. package/es/lowcode/view/lc-components/Tabs/index.js +21 -0
  111. package/es/lowcode/view/lc-components/Text/index.js +23 -0
  112. package/es/lowcode/view/lc-components/Tree/index.js +20 -0
  113. package/es/lowcode/view/lc-components/Wrapper.js +45 -0
  114. package/es/lowcode/view/style/canvas.less +5 -0
  115. package/es/lowcode/view/style/loading.less +84 -0
  116. package/es/lowcode/view/style/page.less +6 -0
  117. package/es/services.js +1 -1
  118. package/es/upload/Form/gridForm.js +29 -7
  119. package/es/upload/Form/index.js +1 -1
  120. package/es/upload/Form/index.less +7 -7
  121. package/es/upload/FormItem/index.js +30 -18
  122. package/es/upload/index.js +3 -3
  123. package/es/utils/action.js +1 -1
  124. package/es/utils/form.js +26 -26
  125. package/es/utils/grid.js +22 -26
  126. package/es/utils/index.js +3 -3
  127. package/lib/components/Builder/index.js +3 -5
  128. package/lib/components/LdAutoForm/index.js +5 -8
  129. package/lib/components/LdCard/index.js +5 -7
  130. package/lib/components/LdCom/index.js +6 -11
  131. package/lib/components/LdFormList/index.js +15 -13
  132. package/lib/components/LdGrid/index.js +10 -12
  133. package/lib/components/LdGridForm/index.js +6 -7
  134. package/lib/components/LdGridForm/index.less +7 -7
  135. package/lib/components/LdInfoPanel/index.js +2 -3
  136. package/lib/components/LdPop/index.js +2 -4
  137. package/lib/components/LdRuntimeCom/index.js +49 -0
  138. package/lib/components/LdTree/index.js +2 -4
  139. package/lib/components/LdTree/index.less +36 -36
  140. package/lib/helper/FromItems.js +15 -29
  141. package/lib/helper/action.js +9 -11
  142. package/lib/helper/form.js +18 -20
  143. package/lib/helper/index.less +7 -7
  144. package/lib/helper/ldBuilder.js +1 -2
  145. package/lib/helper/ldComBuild.js +7 -11
  146. package/lib/index.js +9 -1
  147. package/lib/lowcode/constants/api-url.js +8 -0
  148. package/lib/lowcode/constants/event-topics.js +29 -0
  149. package/lib/lowcode/constants/index.js +18 -0
  150. package/lib/lowcode/engine/factory/DataFactory.js +3 -0
  151. package/lib/lowcode/engine/meta/button.props.default.json +8 -0
  152. package/lib/lowcode/engine/meta/cardlist.props.default.json +10 -0
  153. package/lib/lowcode/engine/meta/components/button.json +104 -0
  154. package/lib/lowcode/engine/meta/components/card-list.json +143 -0
  155. package/lib/lowcode/engine/meta/components/drawer.json +143 -0
  156. package/lib/lowcode/engine/meta/components/form.json +116 -0
  157. package/lib/lowcode/engine/meta/components/iframe.json +31 -0
  158. package/lib/lowcode/engine/meta/components/image.json +113 -0
  159. package/lib/lowcode/engine/meta/components/imex.json +81 -0
  160. package/lib/lowcode/engine/meta/components/jsx.json +24 -0
  161. package/lib/lowcode/engine/meta/components/layout.json +107 -0
  162. package/lib/lowcode/engine/meta/components/link.json +111 -0
  163. package/lib/lowcode/engine/meta/components/modal.json +120 -0
  164. package/lib/lowcode/engine/meta/components/section.json +107 -0
  165. package/lib/lowcode/engine/meta/components/split.json +71 -0
  166. package/lib/lowcode/engine/meta/components/table.json +161 -0
  167. package/lib/lowcode/engine/meta/components/tabs.json +140 -0
  168. package/lib/lowcode/engine/meta/components/text.json +65 -0
  169. package/lib/lowcode/engine/meta/components/tree.json +156 -0
  170. package/lib/lowcode/engine/meta/components-list.json +122 -0
  171. package/lib/lowcode/engine/meta/drawer.props.default.json +10 -0
  172. package/lib/lowcode/engine/meta/form.props.default.json +5 -0
  173. package/lib/lowcode/engine/meta/iframe.props.default.json +3 -0
  174. package/lib/lowcode/engine/meta/image.props.default.json +8 -0
  175. package/lib/lowcode/engine/meta/imex.props.default.json +4 -0
  176. package/lib/lowcode/engine/meta/jsx.props.default.json +1 -0
  177. package/lib/lowcode/engine/meta/layout.props.default.json +5 -0
  178. package/lib/lowcode/engine/meta/link.props.default.json +6 -0
  179. package/lib/lowcode/engine/meta/modal.props.default.json +11 -0
  180. package/lib/lowcode/engine/meta/section.props.default.json +9 -0
  181. package/lib/lowcode/engine/meta/split.props.default.json +5 -0
  182. package/lib/lowcode/engine/meta/table.props.default.json +10 -0
  183. package/lib/lowcode/engine/meta/tabs.props.default.json +10 -0
  184. package/lib/lowcode/engine/meta/text.props.default.json +4 -0
  185. package/lib/lowcode/engine/meta/tree.props.default.json +9 -0
  186. package/lib/lowcode/engine/provider/ContextProvider.js +172 -0
  187. package/lib/lowcode/engine/provider/EventBusProvider.js +128 -0
  188. package/lib/lowcode/engine/tools/dataProcess.js +201 -0
  189. package/lib/lowcode/engine/tools/helper.js +11 -0
  190. package/lib/lowcode/engine/tools/lcid.js +22 -0
  191. package/lib/lowcode/index.js +20 -0
  192. package/lib/lowcode/painter/Components.js +112 -0
  193. package/lib/lowcode/painter/Design.js +105 -0
  194. package/lib/lowcode/painter/I18n.js +12 -0
  195. package/lib/lowcode/painter/Outline.js +210 -0
  196. package/lib/lowcode/painter/Panel.js +16 -0
  197. package/lib/lowcode/painter/Ribbon.js +151 -0
  198. package/lib/lowcode/painter/components/PanelItem.js +26 -0
  199. package/lib/lowcode/painter/components/RuleInput.js +112 -0
  200. package/lib/lowcode/painter/index.js +26 -0
  201. package/lib/lowcode/painter/panel-section/LayoutRatio.js +131 -0
  202. package/lib/lowcode/painter/panel-section/Radio.js +65 -0
  203. package/lib/lowcode/painter/style/components.less +90 -0
  204. package/lib/lowcode/painter/style/design.less +38 -0
  205. package/lib/lowcode/painter/style/index.less +7 -0
  206. package/lib/lowcode/painter/style/layout-ratio.less +51 -0
  207. package/lib/lowcode/painter/style/outline.less +26 -0
  208. package/lib/lowcode/painter/style/panel-item.less +21 -0
  209. package/lib/lowcode/painter/style/panel.less +5 -0
  210. package/lib/lowcode/painter/style/radio.less +24 -0
  211. package/lib/lowcode/painter/style/ribbon.less +4 -0
  212. package/lib/lowcode/painter/style/rule-input.less +13 -0
  213. package/lib/lowcode/view/Canvas.js +150 -0
  214. package/lib/lowcode/view/Loading.js +30 -0
  215. package/lib/lowcode/view/Page.js +63 -0
  216. package/lib/lowcode/view/index.js +25 -0
  217. package/lib/lowcode/view/lc-components/Box/index.js +29 -0
  218. package/lib/lowcode/view/lc-components/Button/index.js +45 -0
  219. package/lib/lowcode/view/lc-components/CardList/index.js +28 -0
  220. package/lib/lowcode/view/lc-components/Dialog/index.js +58 -0
  221. package/lib/lowcode/view/lc-components/Dialog/index.less +3 -0
  222. package/lib/lowcode/view/lc-components/Drawer/index.js +54 -0
  223. package/lib/lowcode/view/lc-components/Form/index.js +28 -0
  224. package/lib/lowcode/view/lc-components/Iframe/index.js +28 -0
  225. package/lib/lowcode/view/lc-components/ImEx/index.js +28 -0
  226. package/lib/lowcode/view/lc-components/Image/index.js +28 -0
  227. package/lib/lowcode/view/lc-components/JSX/index.js +28 -0
  228. package/lib/lowcode/view/lc-components/Layout/index.js +32 -0
  229. package/lib/lowcode/view/lc-components/Link/index.js +28 -0
  230. package/lib/lowcode/view/lc-components/Section/index.js +42 -0
  231. package/lib/lowcode/view/lc-components/Split/index.js +29 -0
  232. package/lib/lowcode/view/lc-components/Table/index.js +31 -0
  233. package/lib/lowcode/view/lc-components/Tabs/index.js +29 -0
  234. package/lib/lowcode/view/lc-components/Text/index.js +31 -0
  235. package/lib/lowcode/view/lc-components/Tree/index.js +28 -0
  236. package/lib/lowcode/view/lc-components/Wrapper.js +52 -0
  237. package/lib/lowcode/view/style/canvas.less +5 -0
  238. package/lib/lowcode/view/style/loading.less +84 -0
  239. package/lib/lowcode/view/style/page.less +6 -0
  240. package/lib/upload/Form/gridForm.js +27 -6
  241. package/lib/upload/Form/index.js +1 -2
  242. package/lib/upload/Form/index.less +7 -7
  243. package/lib/upload/FormItem/index.js +30 -19
  244. package/lib/upload/GridCell/index.js +1 -2
  245. package/lib/utils/form.js +26 -29
  246. package/lib/utils/grid.js +23 -28
  247. package/lowcode.js +1 -0
  248. package/package.json +157 -78
  249. package/upload.js +1 -1
  250. package/utils.js +1 -1
  251. package/README.zh-CN.md +0 -51
@@ -0,0 +1,111 @@
1
+ {
2
+ "component": "Link",
3
+ "name": "超链",
4
+ "icon": "icon-link",
5
+ "group": "basic",
6
+ "groupName": "基础",
7
+ "desc": "用于创建可点击的链接,以便用户可以跳转到其他页面或访问相关内容。超链组件提供了简单而直观的方式来创建和管理链接。",
8
+ "props": [
9
+ {
10
+ "key": "id",
11
+ "desc": "唯一标识",
12
+ "type": "string",
13
+ "disabled": true
14
+ },
15
+ {
16
+ "key": "content",
17
+ "name": "内容",
18
+ "desc": "超链接的展示内容",
19
+ "type": "string"
20
+ },
21
+ {
22
+ "key": "textOverflow",
23
+ "name": "单行截断",
24
+ "desc": "文字超过一行,使甲...显示;开后此项后,同时会显示html标签的title",
25
+ "type": "boolean",
26
+ "default": false
27
+ },
28
+ {
29
+ "key": "type",
30
+ "name": "链接类型",
31
+ "desc": "链接打开的内容类型选择",
32
+ "type": "radio",
33
+ "options": [
34
+ {
35
+ "label": "内部页面",
36
+ "value": "page"
37
+ },
38
+ {
39
+ "label": "外部链接",
40
+ "value": "url"
41
+ }
42
+ ],
43
+ "default": "page"
44
+ },
45
+ {
46
+ "key": "url",
47
+ "name": "链接地址",
48
+ "desc": "选择链接类型为url时配置",
49
+ "type": "string"
50
+ },
51
+ {
52
+ "key": "isLayer",
53
+ "name": "弹窗打开",
54
+ "desc": "是否以弹窗形式打开",
55
+ "type": "boolean",
56
+ "default": false
57
+ },
58
+ {
59
+ "key": "params",
60
+ "name": "携带参数",
61
+ "desc": "超链的携带参数",
62
+ "type": "string"
63
+ },
64
+ {
65
+ "key": "serials",
66
+ "name": "资源串",
67
+ "desc": "挂接模块资源串",
68
+ "type": "string"
69
+ },
70
+ {
71
+ "key": "effect",
72
+ "name": "资源串效果",
73
+ "desc": "当资源串条件生效时按钮的效果",
74
+ "type": "radio",
75
+ "options": [
76
+ {
77
+ "label": "禁用",
78
+ "value": "disable"
79
+ },
80
+ {
81
+ "label": "隐藏",
82
+ "value": "hidden"
83
+ }
84
+ ],
85
+ "default": "hidden"
86
+ }
87
+ ],
88
+ "style": {},
89
+ "advance": {
90
+ "events": [
91
+ {
92
+ "key": "onMount",
93
+ "name": "组件首次渲染时",
94
+ "desc": "在组件首次渲染时,执行方法",
95
+ "func": "(params)=>{\n\t\n}"
96
+ },
97
+ {
98
+ "key": "onUnmount",
99
+ "name": "组件卸载时",
100
+ "desc": "在组件卸载时,执行方法。",
101
+ "func": "(params)=>{\n\t\n}"
102
+ },
103
+ {
104
+ "key": "beforeClick",
105
+ "name": "点击事件",
106
+ "desc": "点击文本时,执行方法",
107
+ "func": "(e,parmas)=>{\n\t\n}"
108
+ }
109
+ ]
110
+ }
111
+ }
@@ -0,0 +1,120 @@
1
+ {
2
+ "component": "Modal",
3
+ "name": "对话框",
4
+ "desc": "需要用户处理事务,又不希望跳转页面以致打断工作流程时,可以使用 Modal 在当前页面正中打开一个浮层,承载相应的操作。",
5
+ "icon": "icon-modal",
6
+ "group": "basic",
7
+ "groupName": "基础",
8
+ "props": [
9
+ {
10
+ "key": "id",
11
+ "desc": "唯一标识",
12
+ "type": "string",
13
+ "disabled": true
14
+ },
15
+ {
16
+ "key": "title",
17
+ "name": "标题",
18
+ "desc": "对话框左上角的标题",
19
+ "type": "string",
20
+ "default": "对话框"
21
+ },
22
+ {
23
+ "key": "width",
24
+ "name": "宽度",
25
+ "desc": "对话框的宽度",
26
+ "type": "string",
27
+ "default": "700px"
28
+ },
29
+ {
30
+ "key": "height",
31
+ "name": "高度",
32
+ "desc": "对话框的高度",
33
+ "type": "string",
34
+ "default": "60vh"
35
+ },
36
+ {
37
+ "key": "fullScreen",
38
+ "name": "默认全屏",
39
+ "desc": "对话框打开默认全屏",
40
+ "type": "boolean",
41
+ "default": false
42
+ },
43
+ {
44
+ "key": "fullable",
45
+ "name": "支持全屏切换",
46
+ "desc": "可以通过右上角按钮切换全屏状态",
47
+ "type": "boolean",
48
+ "default": true
49
+ },
50
+ {
51
+ "key": "defaultOpen",
52
+ "name": "默认显示",
53
+ "desc": "默认是否显示",
54
+ "type": "boolean",
55
+ "default": false
56
+ },
57
+ {
58
+ "key": "mask",
59
+ "name": "显示遮罩",
60
+ "desc": "是否展示遮罩",
61
+ "type": "boolean",
62
+ "default": false
63
+ },
64
+ {
65
+ "key": "keyboard",
66
+ "name": "ESC关闭",
67
+ "desc": "是否支持键盘 esc 关闭",
68
+ "type": "boolean",
69
+ "default": true
70
+ },
71
+ {
72
+ "key": "footer",
73
+ "name": "底部按钮是否显示",
74
+ "desc": "是否显示底部按钮区域",
75
+ "type": "boolean",
76
+ "default": true
77
+ },
78
+ {
79
+ "key": "btnGroup",
80
+ "name": "按钮组",
81
+ "desc": "底部按钮区域的按钮组(参考按钮配置)",
82
+ "type": "_ActionSelector"
83
+ }
84
+ ],
85
+ "style": {},
86
+ "advance": {
87
+ "events": [
88
+ {
89
+ "key": "onMount",
90
+ "name": "组件首次渲染时",
91
+ "desc": "在组件首次渲染时,执行方法",
92
+ "func": "(params)=>{\n\t\n}"
93
+ },
94
+ {
95
+ "key": "onUnmount",
96
+ "name": "组件卸载时",
97
+ "desc": "在组件卸载时,执行方法。",
98
+ "func": "(params)=>{\n\t\n}"
99
+ },
100
+ {
101
+ "key": "onOpen",
102
+ "name": "对话框打开时",
103
+ "desc": "在对话框打开时,执行方法",
104
+ "func": "(params)=>{\n\t\n}"
105
+ },
106
+ {
107
+ "key": "onClose",
108
+ "name": "对话框关闭时",
109
+ "desc": "在对话框打开时,执行方法,promise反馈false无法截断关闭",
110
+ "func": "(params)=>{\n\t\n}"
111
+ },
112
+ {
113
+ "key": "onButtonClick",
114
+ "name": "按钮组点击",
115
+ "desc": "点击按钮组某个按钮时,执行方法",
116
+ "func": "(buttonKey,params)=>{\n\t\n}"
117
+ }
118
+ ]
119
+ }
120
+ }
@@ -0,0 +1,107 @@
1
+ {
2
+ "component": "Section",
3
+ "name": "分组",
4
+ "icon": "icon-section",
5
+ "group": "container",
6
+ "groupName": "布局",
7
+ "desc": "分组组件用于将相关组件或内容进行分组和组织。使用户能够轻松创建具有分组效果的界面,并根据需要进行定制。s",
8
+ "props": [
9
+ {
10
+ "key": "fieldId",
11
+ "name": "唯一标识",
12
+ "desc": "组件的唯一标识符,不能够与其它组件重名,不能够为空,且只能够使用以字母开头的,下划线以及数字的组合",
13
+ "type": "string",
14
+ "disabled": true
15
+ },
16
+ {
17
+ "key": "collapse",
18
+ "name": "折叠",
19
+ "desc": "是否采用折叠分组",
20
+ "type": "boolean",
21
+ "default": true
22
+ },
23
+ {
24
+ "key": "showHeader",
25
+ "name": "显示头部",
26
+ "desc": "表示是否分组显示头部(仅在非折叠情况下有效)",
27
+ "type": "boolean",
28
+ "default": true
29
+ },
30
+ {
31
+ "key": "title",
32
+ "name": "分组标题",
33
+ "desc": "表示分组标题的名称",
34
+ "type": "string",
35
+ "default": "分组"
36
+ },
37
+ {
38
+ "key": "icon",
39
+ "name": "图标",
40
+ "desc": "用于设置分组标题前面的图标",
41
+ "type": "Icon"
42
+ },
43
+ {
44
+ "key": "tooltip",
45
+ "name": "用户提示",
46
+ "desc": "用于设置分组的用户提示",
47
+ "type": "string"
48
+ },
49
+ {
50
+ "key": "subtitle",
51
+ "name": "副标题插槽",
52
+ "desc": "分组副标题的插槽内容",
53
+ "type": "string"
54
+ },
55
+ {
56
+ "key": "extra",
57
+ "name": "扩展区域插槽",
58
+ "desc": "分组扩展区域的插槽内容",
59
+ "type": "string"
60
+ },
61
+ {
62
+ "key": "showHeaderDivider",
63
+ "name": "头部分割线",
64
+ "desc": "是否展示头部分割线(仅在非折叠情况下有效)",
65
+ "type": "boolean",
66
+ "default": true
67
+ },
68
+ {
69
+ "key": "showBorder",
70
+ "name": "显示边框",
71
+ "desc": "是否展示分组边框(仅在非折叠情况下有效)",
72
+ "type": "boolean",
73
+ "default": false
74
+ },
75
+ {
76
+ "key": "withMargin",
77
+ "name": "外边距",
78
+ "desc": "是否展示外边距",
79
+ "type": "boolean",
80
+ "default": false
81
+ },
82
+ {
83
+ "key": "withPadding",
84
+ "name": "内边距",
85
+ "desc": "是否展示内边距",
86
+ "type": "boolean",
87
+ "default": true
88
+ }
89
+ ],
90
+ "style": {},
91
+ "advance": {
92
+ "events": [
93
+ {
94
+ "key": "onMount",
95
+ "name": "组件首次渲染时",
96
+ "desc": "在组件首次渲染时,执行方法",
97
+ "func": "(params)=>{\n\t\n}"
98
+ },
99
+ {
100
+ "key": "onUnmount",
101
+ "name": "组件卸载时",
102
+ "desc": "在组件卸载时,执行方法。",
103
+ "func": "(params)=>{\n\t\n}"
104
+ }
105
+ ]
106
+ }
107
+ }
@@ -0,0 +1,71 @@
1
+ {
2
+ "component": "Split",
3
+ "name": "分割面板容器",
4
+ "icon": "icon-split",
5
+ "group": "container",
6
+ "groupName": "布局",
7
+ "desc": "分割面板容器是一种可以通过拖拽分割线调整面板大小的容器组件,用于创建页面布局或需要调整可视区域的布局场景",
8
+ "props": [
9
+ {
10
+ "key": "fieldId",
11
+ "name": "唯一标识",
12
+ "desc": "组件的唯一标识符,不能够与其它组件重名,不能够为空,且只能够使用以字母开头的,下划线以及数字的组合",
13
+ "type": "string",
14
+ "disabled": true
15
+ },
16
+ {
17
+ "key": "display",
18
+ "name": "展现形式",
19
+ "desc": "表示分割面板容器的展现形式",
20
+ "type": "_SplitDisplay",
21
+ "default": "normal"
22
+ },
23
+ {
24
+ "key": "split",
25
+ "name": "分割方向",
26
+ "desc": "分割面板容器的分割方向(仅display为normal时有效)",
27
+ "type": "radio",
28
+ "options": [
29
+ {
30
+ "label": "垂直",
31
+ "value": "vertical"
32
+ },
33
+ {
34
+ "label": "水平",
35
+ "value": "horizontal"
36
+ }
37
+ ],
38
+ "default": "vertical"
39
+ },
40
+ {
41
+ "key": "ratio",
42
+ "name": "比率",
43
+ "desc": "表示分割面板容器所占比例的比率(仅display为normal时有效)",
44
+ "type": "string",
45
+ "default": "1:3"
46
+ }
47
+ ],
48
+ "style": {},
49
+ "advance": {
50
+ "events": [
51
+ {
52
+ "key": "onMount",
53
+ "name": "组件首次渲染时",
54
+ "desc": "在组件首次渲染时,执行方法",
55
+ "func": "(params)=>{\n\t\n}"
56
+ },
57
+ {
58
+ "key": "onUnmount",
59
+ "name": "组件卸载时",
60
+ "desc": "在组件卸载时,执行方法。",
61
+ "func": "(params)=>{\n\t\n}"
62
+ },
63
+ {
64
+ "key": "onChange",
65
+ "name": "尺寸变化事件",
66
+ "desc": "在面板尺寸发生变化时,执行方法",
67
+ "func": "(value)=>{\n\t\n}"
68
+ }
69
+ ]
70
+ }
71
+ }
@@ -0,0 +1,161 @@
1
+ {
2
+ "component": "Table",
3
+ "name": "表格",
4
+ "desc": "用于展示和管理数据,实现数据的可视化和交互。用户可以根据配置数据集和表格属性,快速构建表格。",
5
+ "icon": "icon-table",
6
+ "group": "advance",
7
+ "groupName": "高级",
8
+ "props": [
9
+ {
10
+ "key": "id",
11
+ "desc": "唯一标识",
12
+ "type": "string",
13
+ "disabled": true
14
+ },
15
+ {
16
+ "key": "dateset",
17
+ "name": "数据集",
18
+ "desc": "选择系统中的可用树形数据集",
19
+ "type": "_DataSetSelector"
20
+ },
21
+ {
22
+ "key": "autoLoad",
23
+ "name": "首次数据自动加载",
24
+ "desc": "首次数据是否自动加载,若存在必须带搜索条件再加载的情况,需要关闭",
25
+ "type": "boolean",
26
+ "default": true
27
+ },
28
+ {
29
+ "key": "readOnly",
30
+ "name": "是否只读",
31
+ "desc": "卡片列表是否只读",
32
+ "type": "boolean",
33
+ "default": false
34
+ },
35
+ {
36
+ "key": "isFlow",
37
+ "name": "是否流式",
38
+ "desc": "是否流式(不分页)",
39
+ "type": "boolean",
40
+ "default": false
41
+ },
42
+ {
43
+ "key": "defaultPageSize",
44
+ "name": "默认分页数",
45
+ "desc": "isFlow为false时设置,默认单页分页数",
46
+ "type": "number",
47
+ "default": 30
48
+ },
49
+ {
50
+ "key": "batchOperations",
51
+ "name": "批量操作",
52
+ "desc": "批量操作配置",
53
+ "type": "_CardListActionSelector"
54
+ },
55
+ {
56
+ "key": "actionTitle",
57
+ "name": "操作列标题",
58
+ "desc": "操作列的标题",
59
+ "type": "string",
60
+ "default": "操作列"
61
+ },
62
+ {
63
+ "key": "actionWidth",
64
+ "name": "操作列宽度",
65
+ "desc": "操作列宽度设置",
66
+ "type": "number",
67
+ "default": 100
68
+ },
69
+ {
70
+ "key": "actionHidden",
71
+ "name": "操作列是否隐藏",
72
+ "desc": "操作列是否隐藏",
73
+ "type": "boolean",
74
+ "default": false
75
+ },
76
+ {
77
+ "key": "maxWebShownActionCount",
78
+ "name": "操作列最大展示数",
79
+ "desc": "操作列最大展示数,超出最大数变为最大展示数-1+更多",
80
+ "type": "number",
81
+ "default": 2
82
+ },
83
+ {
84
+ "key": "actions",
85
+ "name": "操作项",
86
+ "desc": "单行操作项",
87
+ "type": "_ActionSelector"
88
+ },
89
+ {
90
+ "key": "batchActions",
91
+ "name": "批量操作项",
92
+ "desc": "批量操作项",
93
+ "type": "_ActionSelector"
94
+ },
95
+ {
96
+ "key": "rowStyle",
97
+ "name": "行样式",
98
+ "desc": "向行添加 CSS 样式",
99
+ "type": "_CSSEditor"
100
+ },
101
+ {
102
+ "key": "cellStyle",
103
+ "name": "行样式",
104
+ "desc": "向行添加 CSS 样式",
105
+ "type": "_CSSEditor"
106
+ }
107
+ ],
108
+ "style": {},
109
+ "advance": {
110
+ "events": [
111
+ {
112
+ "key": "onMount",
113
+ "name": "组件首次渲染时",
114
+ "desc": "在组件首次渲染时,执行方法",
115
+ "func": "(params)=>{\n\t\n}"
116
+ },
117
+ {
118
+ "key": "onUnmount",
119
+ "name": "组件卸载时",
120
+ "desc": "在组件卸载时,执行方法。",
121
+ "func": "(params)=>{\n\t\n}"
122
+ },
123
+ {
124
+ "key": "onBatchOperationsClick",
125
+ "name": "批量操作点击",
126
+ "desc": "点击操作的回调函数",
127
+ "func": "(key, selectedRows)=>{\n\t\n}"
128
+ },
129
+ {
130
+ "key": "onActionClick",
131
+ "name": "操作列点击",
132
+ "desc": "点击操作的回调函数",
133
+ "func": "(itemData)=>{\n\t\n}"
134
+ },
135
+ {
136
+ "key": "actionRender",
137
+ "name": "操作列定制渲染",
138
+ "desc": "返回为false时,该操作不可见",
139
+ "func": "(title, rowData)=>{\n\t\n}"
140
+ },
141
+ {
142
+ "key": "onRowClick",
143
+ "name": "行单击",
144
+ "desc": "单击表格行时,执行方法",
145
+ "func": "(data, rowIndex, params)=>{\n\t\n}"
146
+ },
147
+ {
148
+ "key": "onRowDoubleClick",
149
+ "name": "行双击",
150
+ "desc": "双击表格行时,执行方法",
151
+ "func": "(data, rowIndex, params)=>{\n\t\n}"
152
+ },
153
+ {
154
+ "key": "onCellRender",
155
+ "name": "单元格渲染",
156
+ "desc": "当单元格渲染时,执行方法",
157
+ "func": "(data,rowIndex,column,params)=>{\n\t\n}"
158
+ }
159
+ ]
160
+ }
161
+ }