tianheng-ui 0.1.0 → 0.1.2

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 (254) hide show
  1. package/README.md +9 -18
  2. package/lib/039af9192b9bb277966ceb4e4ce29c41.js +16 -0
  3. package/lib/2d84c80112a372bc149cad3464e90fa3.js +1617 -0
  4. package/lib/5977b934a4c6b480790864ea01303173.js +10834 -0
  5. package/lib/7745f3e776488705a38e62f85adad54d.js +16 -0
  6. package/lib/de8dee841ffdaaede3a2254deef30376.js +15395 -0
  7. package/lib/e78eab250e7f8ccac3d918dfdb06ca10.js +8904 -0
  8. package/lib/theme-chalk/fonts/PingFang.ttf +0 -0
  9. package/lib/theme-chalk/fonts/bpmn.eot +0 -0
  10. package/lib/theme-chalk/fonts/bpmn.svg +224 -0
  11. package/lib/theme-chalk/fonts/bpmn.ttf +0 -0
  12. package/lib/theme-chalk/fonts/bpmn.woff +0 -0
  13. package/lib/theme-chalk/fonts/bpmn.woff2 +0 -0
  14. package/lib/theme-chalk/fonts/fontawesome-webfont.eot +0 -0
  15. package/lib/theme-chalk/fonts/fontawesome-webfont.svg +2671 -0
  16. package/lib/theme-chalk/fonts/fontawesome-webfont.ttf +0 -0
  17. package/lib/theme-chalk/fonts/fontawesome-webfont.woff +0 -0
  18. package/lib/theme-chalk/fonts/fontawesome-webfont.woff2 +0 -0
  19. package/lib/theme-chalk/fonts/iconfont.eot +0 -0
  20. package/lib/theme-chalk/fonts/iconfont.svg +155 -0
  21. package/lib/theme-chalk/fonts/iconfont.ttf +0 -0
  22. package/lib/theme-chalk/fonts/iconfont.woff +0 -0
  23. package/lib/theme-chalk/fonts/iconfont.woff2 +0 -0
  24. package/lib/theme-chalk/images/notData.png +0 -0
  25. package/lib/theme-chalk/index.scss +31 -0
  26. package/lib/theme-chalk/js/Log.js +99 -0
  27. package/lib/theme-chalk/js/axios.js +86 -0
  28. package/lib/theme-chalk/js/store/getters.js +5 -0
  29. package/lib/theme-chalk/js/store/modules/makingForm.js +21 -0
  30. package/lib/theme-chalk/js/store/store.js +26 -0
  31. package/lib/theme-chalk/styles/button.scss +501 -0
  32. package/lib/theme-chalk/styles/card.scss +29 -0
  33. package/lib/theme-chalk/styles/cell.scss +54 -0
  34. package/lib/theme-chalk/styles/codeEditor.scss +9 -0
  35. package/lib/theme-chalk/styles/col.scss +151 -0
  36. package/lib/theme-chalk/styles/dialog.scss +56 -0
  37. package/lib/theme-chalk/styles/empty.scss +22 -0
  38. package/lib/theme-chalk/styles/feature.scss +46 -0
  39. package/lib/theme-chalk/styles/font.css +7 -0
  40. package/lib/theme-chalk/styles/grid.scss +41 -0
  41. package/lib/theme-chalk/styles/icon.css +1944 -0
  42. package/lib/theme-chalk/styles/imagePreview.scss +113 -0
  43. package/lib/theme-chalk/styles/img.scss +35 -0
  44. package/lib/theme-chalk/styles/reset.scss +17 -0
  45. package/lib/theme-chalk/styles/root.css +64 -0
  46. package/lib/theme-chalk/styles/row.scss +23 -0
  47. package/lib/theme-chalk/styles/upload.scss +744 -0
  48. package/lib/theme-chalk/styles/variable.scss +80 -0
  49. package/lib/tianheng-ui.js +116 -0
  50. package/package.json +86 -48
  51. package/packages/Button/index.js +8 -0
  52. package/packages/Button/index.vue +80 -0
  53. package/packages/Card/index.js +8 -0
  54. package/packages/Card/index.vue +37 -0
  55. package/packages/Cell/index.js +8 -0
  56. package/packages/Cell/index.vue +68 -0
  57. package/packages/CodeEditor/index.js +8 -0
  58. package/packages/CodeEditor/index.vue +177 -0
  59. package/packages/Col/index.js +8 -0
  60. package/packages/Col/index.vue +43 -0
  61. package/packages/Dialog/index.js +8 -0
  62. package/packages/Dialog/index.vue +129 -0
  63. package/packages/Empty/index.js +8 -0
  64. package/packages/Empty/index.vue +35 -0
  65. package/packages/FormMaking/FormConfig.vue +60 -0
  66. package/packages/FormMaking/GenerateForm.vue +308 -0
  67. package/packages/FormMaking/GenerateFormItem.vue +887 -0
  68. package/packages/FormMaking/GenerateFormItemH5.vue +825 -0
  69. package/packages/FormMaking/Upload/index.vue +572 -0
  70. package/packages/FormMaking/WidgetConfig.vue +472 -0
  71. package/packages/FormMaking/WidgetForm.vue +159 -0
  72. package/packages/FormMaking/WidgetFormItem.vue +187 -0
  73. package/packages/FormMaking/custom/config.js +762 -0
  74. package/packages/FormMaking/custom/configs/alliance.vue +0 -0
  75. package/packages/FormMaking/custom/configs/blank.vue +54 -0
  76. package/packages/FormMaking/custom/configs/button.vue +172 -0
  77. package/packages/FormMaking/custom/configs/cascader.vue +175 -0
  78. package/packages/FormMaking/custom/configs/cell.vue +81 -0
  79. package/packages/FormMaking/custom/configs/checkbox.vue +234 -0
  80. package/packages/FormMaking/custom/configs/color.vue +137 -0
  81. package/packages/FormMaking/custom/configs/date.vue +158 -0
  82. package/packages/FormMaking/custom/configs/divider.vue +61 -0
  83. package/packages/FormMaking/custom/configs/editor.vue +71 -0
  84. package/packages/FormMaking/custom/configs/filler.vue +57 -0
  85. package/packages/FormMaking/custom/configs/grid.vue +103 -0
  86. package/packages/FormMaking/custom/configs/image.vue +138 -0
  87. package/packages/FormMaking/custom/configs/input.vue +176 -0
  88. package/packages/FormMaking/custom/configs/number.vue +140 -0
  89. package/packages/FormMaking/custom/configs/radio.vue +211 -0
  90. package/packages/FormMaking/custom/configs/rate.vue +109 -0
  91. package/packages/FormMaking/custom/configs/select.vue +305 -0
  92. package/packages/FormMaking/custom/configs/slider.vue +142 -0
  93. package/packages/FormMaking/custom/configs/switch.vue +130 -0
  94. package/packages/FormMaking/custom/configs/table.vue +105 -0
  95. package/packages/FormMaking/custom/configs/table_h5.vue +102 -0
  96. package/packages/FormMaking/custom/configs/tabs.vue +175 -0
  97. package/packages/FormMaking/custom/configs/text.vue +71 -0
  98. package/packages/FormMaking/custom/configs/textarea.vue +167 -0
  99. package/packages/FormMaking/custom/configs/time.vue +153 -0
  100. package/packages/FormMaking/custom/configs/upload.vue +155 -0
  101. package/packages/FormMaking/custom/index.js +32 -0
  102. package/packages/FormMaking/custom/items/alliance.vue +132 -0
  103. package/packages/FormMaking/custom/items/blank.vue +16 -0
  104. package/packages/FormMaking/custom/items/button.vue +27 -0
  105. package/packages/FormMaking/custom/items/cascader.vue +29 -0
  106. package/packages/FormMaking/custom/items/cell.vue +18 -0
  107. package/packages/FormMaking/custom/items/checkbox.vue +46 -0
  108. package/packages/FormMaking/custom/items/color.vue +19 -0
  109. package/packages/FormMaking/custom/items/date.vue +29 -0
  110. package/packages/FormMaking/custom/items/divider.vue +14 -0
  111. package/packages/FormMaking/custom/items/editor.vue +22 -0
  112. package/packages/FormMaking/custom/items/filler.vue +17 -0
  113. package/packages/FormMaking/custom/items/grid.vue +130 -0
  114. package/packages/FormMaking/custom/items/image.vue +70 -0
  115. package/packages/FormMaking/custom/items/input.vue +33 -0
  116. package/packages/FormMaking/custom/items/login.vue +13 -0
  117. package/packages/FormMaking/custom/items/number.vue +24 -0
  118. package/packages/FormMaking/custom/items/radio.vue +44 -0
  119. package/packages/FormMaking/custom/items/rate.vue +20 -0
  120. package/packages/FormMaking/custom/items/select.vue +32 -0
  121. package/packages/FormMaking/custom/items/slider.vue +34 -0
  122. package/packages/FormMaking/custom/items/switch.vue +22 -0
  123. package/packages/FormMaking/custom/items/table.vue +106 -0
  124. package/packages/FormMaking/custom/items/table_h5.vue +126 -0
  125. package/packages/FormMaking/custom/items/tabs.vue +145 -0
  126. package/packages/FormMaking/custom/items/text.vue +18 -0
  127. package/packages/FormMaking/custom/items/textarea.vue +37 -0
  128. package/packages/FormMaking/custom/items/time.vue +32 -0
  129. package/packages/FormMaking/custom/items/upload.vue +102 -0
  130. package/packages/FormMaking/custom/mixins/index.js +61 -0
  131. package/packages/FormMaking/custom/register.js +18 -0
  132. package/packages/FormMaking/generate.js +5 -0
  133. package/packages/FormMaking/iconfont/demo.css +539 -0
  134. package/packages/FormMaking/iconfont/demo_index.html +1159 -0
  135. package/packages/FormMaking/iconfont/iconfont.css +189 -0
  136. package/packages/FormMaking/iconfont/iconfont.eot +0 -0
  137. package/packages/FormMaking/iconfont/iconfont.js +1 -0
  138. package/packages/FormMaking/iconfont/iconfont.svg +155 -0
  139. package/packages/FormMaking/iconfont/iconfont.ttf +0 -0
  140. package/packages/FormMaking/iconfont/iconfont.woff +0 -0
  141. package/packages/FormMaking/iconfont/iconfont.woff2 +0 -0
  142. package/packages/FormMaking/index.js +33 -0
  143. package/packages/FormMaking/index.vue +807 -0
  144. package/packages/FormMaking/lang/en-US.js +187 -0
  145. package/packages/FormMaking/lang/zh-CN.js +187 -0
  146. package/packages/FormMaking/making.js +9 -0
  147. package/packages/FormMaking/styles/cover.scss +41 -0
  148. package/packages/FormMaking/styles/index.scss +785 -0
  149. package/packages/FormMaking/util/generateCode.js +163 -0
  150. package/packages/FormMaking/util/index.js +33 -0
  151. package/packages/FormMaking/util/request.js +28 -0
  152. package/packages/Grid/index.js +8 -0
  153. package/packages/Grid/index.vue +21 -0
  154. package/packages/GridItem/index.js +8 -0
  155. package/packages/GridItem/index.vue +69 -0
  156. package/packages/Icons/index.js +8 -0
  157. package/packages/Icons/index.vue +377 -0
  158. package/packages/Image/index.js +8 -0
  159. package/packages/Image/index.vue +146 -0
  160. package/packages/ImagePreview/index.js +8 -0
  161. package/packages/ImagePreview/index.vue +386 -0
  162. package/packages/Row/index.js +8 -0
  163. package/packages/Row/index.vue +33 -0
  164. package/packages/Table/action.js +8 -0
  165. package/packages/Table/action.vue +168 -0
  166. package/packages/Table/column.vue +63 -0
  167. package/packages/Table/index.js +8 -0
  168. package/packages/Table/index.vue +327 -0
  169. package/packages/Table/search.js +8 -0
  170. package/packages/Table/search.vue +163 -0
  171. package/packages/Table/tools.js +8 -0
  172. package/packages/Table/tools.vue +49 -0
  173. package/packages/TableMaking/custom/configs/fieldSearch.vue +17 -0
  174. package/packages/TableMaking/custom/configs/fieldTable.vue +15 -0
  175. package/packages/TableMaking/custom/items/search/index.vue +158 -0
  176. package/packages/TableMaking/custom/items/tools/index.vue +49 -0
  177. package/packages/TableMaking/generate.js +5 -0
  178. package/packages/TableMaking/generateTable.vue +560 -0
  179. package/packages/TableMaking/index.vue +229 -0
  180. package/packages/TableMaking/making.js +5 -0
  181. package/packages/TableMaking/util/index.js +433 -0
  182. package/packages/TableMaking/widgetConfig.vue +390 -0
  183. package/packages/TableMaking/widgetTable.vue +305 -0
  184. package/packages/Upload/ajax.js +85 -0
  185. package/packages/Upload/index.js +8 -0
  186. package/packages/Upload/index.vue +325 -0
  187. package/packages/Upload/upload-dragger.vue +70 -0
  188. package/packages/Upload/upload-list.vue +121 -0
  189. package/packages/Upload/upload.vue +193 -0
  190. package/packages/VueEditor/index.js +8 -0
  191. package/packages/VueEditor/index.vue +38 -0
  192. package/packages/Workflow/Log.js +99 -0
  193. package/packages/Workflow/designer/ProcessDesigner.vue +628 -0
  194. package/packages/Workflow/designer/index.js +7 -0
  195. package/packages/Workflow/designer/plugins/content-pad/contentPadProvider.js +390 -0
  196. package/packages/Workflow/designer/plugins/content-pad/index.js +6 -0
  197. package/packages/Workflow/designer/plugins/defaultEmpty.js +24 -0
  198. package/packages/Workflow/designer/plugins/descriptor/activitiDescriptor.json +1071 -0
  199. package/packages/Workflow/designer/plugins/descriptor/camundaDescriptor.json +1087 -0
  200. package/packages/Workflow/designer/plugins/descriptor/flowableDescriptor.json +1215 -0
  201. package/packages/Workflow/designer/plugins/extension-moddle/activiti/activitiExtension.js +74 -0
  202. package/packages/Workflow/designer/plugins/extension-moddle/activiti/index.js +9 -0
  203. package/packages/Workflow/designer/plugins/extension-moddle/camunda/extension.js +148 -0
  204. package/packages/Workflow/designer/plugins/extension-moddle/camunda/index.js +6 -0
  205. package/packages/Workflow/designer/plugins/extension-moddle/flowable/flowableExtension.js +74 -0
  206. package/packages/Workflow/designer/plugins/extension-moddle/flowable/index.js +9 -0
  207. package/packages/Workflow/designer/plugins/palette/CustomPalette.js +156 -0
  208. package/packages/Workflow/designer/plugins/palette/index.js +6 -0
  209. package/packages/Workflow/designer/plugins/palette/paletteProvider.js +160 -0
  210. package/packages/Workflow/designer/plugins/translate/customTranslate.js +41 -0
  211. package/packages/Workflow/designer/plugins/translate/zh.js +238 -0
  212. package/packages/Workflow/highlight/index.js +5 -0
  213. package/packages/Workflow/index.js +34 -0
  214. package/packages/Workflow/index.vue +399 -0
  215. package/packages/Workflow/modules/auto-place/CustomAutoPlace.js +81 -0
  216. package/packages/Workflow/modules/auto-place/index.js +6 -0
  217. package/packages/Workflow/modules/custom-renderer/CustomRenderer.js +17 -0
  218. package/packages/Workflow/modules/custom-renderer/index.js +6 -0
  219. package/packages/Workflow/modules/rules/CustomRules.js +16 -0
  220. package/packages/Workflow/modules/rules/index.js +6 -0
  221. package/packages/Workflow/palette/ProcessPalette.vue +106 -0
  222. package/packages/Workflow/palette/index.js +7 -0
  223. package/packages/Workflow/penal/PropertiesPanel.vue +245 -0
  224. package/packages/Workflow/penal/base/ElementBaseInfo.vue +80 -0
  225. package/packages/Workflow/penal/flow-condition/FlowCondition.vue +142 -0
  226. package/packages/Workflow/penal/form/ElementForm.vue +367 -0
  227. package/packages/Workflow/penal/index.js +7 -0
  228. package/packages/Workflow/penal/listeners/ElementListeners.vue +299 -0
  229. package/packages/Workflow/penal/listeners/UserTaskListeners.vue +322 -0
  230. package/packages/Workflow/penal/listeners/template.js +178 -0
  231. package/packages/Workflow/penal/listeners/utilSelf.js +64 -0
  232. package/packages/Workflow/penal/multi-instance/ElementMultiInstance.vue +200 -0
  233. package/packages/Workflow/penal/other/ElementOtherConfig.vue +59 -0
  234. package/packages/Workflow/penal/properties/ElementProperties.vue +135 -0
  235. package/packages/Workflow/penal/signal-message/SignalAndMessage.vue +104 -0
  236. package/packages/Workflow/penal/task/ElementTask.vue +73 -0
  237. package/packages/Workflow/penal/task/task-components/ReceiveTask.vue +97 -0
  238. package/packages/Workflow/penal/task/task-components/ScriptTask.vue +85 -0
  239. package/packages/Workflow/penal/task/task-components/UserTask.vue +535 -0
  240. package/packages/Workflow/theme/element-variables.scss +70 -0
  241. package/packages/Workflow/theme/index.scss +2 -0
  242. package/packages/Workflow/theme/process-designer.scss +157 -0
  243. package/packages/Workflow/theme/process-panel.scss +107 -0
  244. package/packages/Workflow/translations.js +25 -0
  245. package/packages/Workflow/utils.js +71 -0
  246. package/packages/index.js +160 -0
  247. package/babel.config.js +0 -15
  248. package/index.js +0 -11
  249. package/public/favicon.ico +0 -0
  250. package/public/index.html +0 -17
  251. package/src/App.vue +0 -28
  252. package/src/assets/logo.png +0 -0
  253. package/src/components/HelloWorld.vue +0 -58
  254. package/src/main.js +0 -8
@@ -0,0 +1,762 @@
1
+ export const basicComponents = [
2
+ {
3
+ name: "单行文本",
4
+ type: "input",
5
+ icon: "icon-input",
6
+ options: {
7
+ width: "100%",
8
+ labelWidth: 100,
9
+ isLabelWidth: false,
10
+ defaultValue: "",
11
+ dataType: "string",
12
+ pattern: "",
13
+ placeholder: "",
14
+ maxlength: -1, //字符长度
15
+ required: false, //必填
16
+ disabled: false, //禁用
17
+ readonly: false, //只读
18
+ clearable: false, //清除
19
+ showWordLimit: false, //字数统计
20
+ showPassword: false, //切换密码
21
+ prefixIcon: "", //头部图标
22
+ suffixIcon: "", //尾部图标
23
+ prepend: "", //前置插槽
24
+ append: "", //后置插槽
25
+ hidden: false,
26
+ hideLabel: false
27
+ },
28
+ events: {
29
+ onChange: "",
30
+ onFocus: "",
31
+ onBlur: ""
32
+ },
33
+ rules: []
34
+ },
35
+ {
36
+ name: "多行文本",
37
+ type: "textarea",
38
+ icon: "icon-diy-com-textarea",
39
+ options: {
40
+ width: "100%",
41
+ labelWidth: 100,
42
+ isLabelWidth: false,
43
+ defaultValue: "",
44
+ dataType: "string",
45
+ pattern: "",
46
+ placeholder: "",
47
+ maxlength: -1,
48
+ rows: 2,
49
+ showWordLimit: false,
50
+ minRows: 2,
51
+ maxRows: 5,
52
+ required: false,
53
+ disabled: false,
54
+ readonly: false,
55
+ clearable: false,
56
+ hidden: false,
57
+ hideLabel: false
58
+ },
59
+ events: {
60
+ onChange: "",
61
+ onFocus: "",
62
+ onBlur: ""
63
+ }
64
+ },
65
+ {
66
+ name: "单元格",
67
+ type: "cell",
68
+ icon: "icon-ic",
69
+ options: {
70
+ width: "100%",
71
+ height: "40px",
72
+ labelWidth: 100,
73
+ isLabelWidth: false,
74
+ title: "标题",
75
+ value: "内容",
76
+ label: "副标题",
77
+ defaultValue: "",
78
+ customClass: "",
79
+ textAlign: "right",
80
+ hidden: false,
81
+ hideLabel: false
82
+ }
83
+ },
84
+ {
85
+ name: "文字",
86
+ type: "text",
87
+ icon: "icon-wenzishezhi-",
88
+ options: {
89
+ width: "100%",
90
+ height: "",
91
+ labelWidth: 100,
92
+ isLabelWidth: false,
93
+ defaultValue: "",
94
+ customClass: "",
95
+ textAlign: "left",
96
+ hidden: false,
97
+ hideLabel: false
98
+ }
99
+ },
100
+ {
101
+ name: "单选框组",
102
+ type: "radio",
103
+ icon: "icon-radio-active",
104
+ options: {
105
+ width: "",
106
+ labelWidth: 100,
107
+ isLabelWidth: false,
108
+ inline: false,
109
+ defaultValue: "",
110
+ showLabel: false,
111
+ options: [
112
+ {
113
+ value: "Option 1",
114
+ label: "Option 1"
115
+ },
116
+ {
117
+ value: "Option 2",
118
+ label: "Option 2"
119
+ },
120
+ {
121
+ value: "Option 3",
122
+ label: "Option 3"
123
+ }
124
+ ],
125
+ required: false,
126
+ props: {
127
+ value: "id",
128
+ label: "name",
129
+ children: "children"
130
+ },
131
+ remote: false,
132
+ remoteFunc: {},
133
+ remoteOptions: [],
134
+ disabled: false,
135
+ border: false, //边框
136
+ buttonType: false //替换成按钮
137
+ },
138
+ events: {
139
+ onChange: ""
140
+ }
141
+ },
142
+ {
143
+ name: "多选框组",
144
+ type: "checkbox",
145
+ icon: "icon-check-box",
146
+ options: {
147
+ width: "",
148
+ labelWidth: 100,
149
+ isLabelWidth: false,
150
+ inline: false,
151
+ defaultValue: [],
152
+ showLabel: false,
153
+ options: [
154
+ {
155
+ value: "Option 1"
156
+ },
157
+ {
158
+ value: "Option 2"
159
+ },
160
+ {
161
+ value: "Option 3"
162
+ }
163
+ ],
164
+ required: false,
165
+ props: {
166
+ value: "id",
167
+ label: "name",
168
+ children: "children"
169
+ },
170
+ remote: false,
171
+ remoteFunc: {},
172
+ remoteOptions: [],
173
+ disabled: false,
174
+ border: false, //边框
175
+ buttonType: false, //替换成按钮
176
+ min: 0,
177
+ max: 0,
178
+ hidden: false,
179
+ hideLabel: false
180
+ },
181
+ events: {
182
+ onChange: ""
183
+ }
184
+ },
185
+ {
186
+ name: "时间选择器",
187
+ type: "time",
188
+ icon: "icon-time",
189
+ options: {
190
+ width: "100%",
191
+ labelWidth: 100,
192
+ isLabelWidth: false,
193
+ defaultValue: "00:00:00",
194
+ placeholder: "",
195
+ startPlaceholder: "",
196
+ endPlaceholder: "",
197
+ isRange: false,
198
+ arrowControl: true,
199
+ format: "HH:mm:ss",
200
+ pickerOptions: { selectableRange: ["00:00:00", "23:59:59"] },
201
+ readonly: false,
202
+ disabled: false,
203
+ editable: true,
204
+ clearable: true,
205
+ required: false,
206
+ hidden: false,
207
+ hideLabel: false
208
+ },
209
+ events: {
210
+ onChange: "",
211
+ onFocus: "",
212
+ onBlur: ""
213
+ }
214
+ },
215
+ {
216
+ name: "日期选择器",
217
+ type: "date",
218
+ icon: "icon-date",
219
+ options: {
220
+ width: "100%",
221
+ labelWidth: 100,
222
+ isLabelWidth: false,
223
+ defaultValue: "",
224
+ readonly: false,
225
+ disabled: false,
226
+ editable: true,
227
+ clearable: true,
228
+ placeholder: "",
229
+ startPlaceholder: "",
230
+ endPlaceholder: "",
231
+ type: "date",
232
+ format: "yyyy-MM-dd",
233
+ timestamp: false,
234
+ required: false
235
+ },
236
+ events: {
237
+ onChange: "",
238
+ onFocus: "",
239
+ onBlur: ""
240
+ }
241
+ },
242
+ {
243
+ name: "下拉选择框",
244
+ type: "select",
245
+ icon: "icon-select",
246
+ options: {
247
+ width: "100%",
248
+ labelWidth: 100,
249
+ isLabelWidth: false,
250
+ defaultValue: "",
251
+ multiple: false,
252
+ disabled: false,
253
+ clearable: false,
254
+ placeholder: "",
255
+ required: false,
256
+ showLabel: false,
257
+ collapseTags: false,
258
+ allowCreate: false,
259
+ options: [
260
+ {
261
+ value: "Option 1"
262
+ },
263
+ {
264
+ value: "Option 2"
265
+ },
266
+ {
267
+ value: "Option 3"
268
+ }
269
+ ],
270
+ filterable: false,
271
+ props: {
272
+ value: "id",
273
+ label: "name",
274
+ children: "children"
275
+ },
276
+ remote: false,
277
+ remoteFunc: {},
278
+ remoteOptions: [],
279
+ hidden: false,
280
+ hideLabel: false
281
+ },
282
+ events: {
283
+ onChange: "",
284
+ onFocus: "",
285
+ onBlur: ""
286
+ }
287
+ },
288
+ {
289
+ name: "颜色选择器",
290
+ type: "color",
291
+ icon: "icon-color",
292
+ options: {
293
+ labelWidth: 100,
294
+ isLabelWidth: false,
295
+ defaultValue: "",
296
+ predefine: [
297
+ "#1989FA",
298
+ "#67C23A",
299
+ "#FF976A",
300
+ "#EE0A24",
301
+ "#000000",
302
+ "#333333",
303
+ "#666666",
304
+ "#999999",
305
+ "#FFFFFF"
306
+ ],
307
+ disabled: false,
308
+ showAlpha: false,
309
+ required: false,
310
+ hidden: false,
311
+ hideLabel: false
312
+ },
313
+ events: {
314
+ onChange: ""
315
+ }
316
+ },
317
+ {
318
+ name: "开关",
319
+ type: "switch",
320
+ icon: "icon-switch",
321
+ options: {
322
+ width: 70,
323
+ labelWidth: 100,
324
+ isLabelWidth: false,
325
+ defaultValue: false,
326
+ switchInactiveText: "",
327
+ switchActiveText: "",
328
+ switchInactiveColor: "#C0CCDA",
329
+ switchActiveColor: "#409EFF",
330
+ required: false,
331
+ disabled: false,
332
+ hidden: false,
333
+ hideLabel: false
334
+ },
335
+ events: {
336
+ onChange: ""
337
+ }
338
+ },
339
+ {
340
+ name: "按钮",
341
+ type: "button",
342
+ icon: "icon-ic",
343
+ options: {
344
+ customClass: "",
345
+ defaultValue: "Button",
346
+ width: "",
347
+ height: "",
348
+ labelWidth: 100,
349
+ isLabelWidth: false,
350
+ dataBind: false,
351
+ buttonSize: "small",
352
+ buttonType: "",
353
+ buttonPlain: false,
354
+ buttonRound: false,
355
+ buttonCircle: false,
356
+ buttonIcon: "",
357
+ textAlign: "center",
358
+ tableColumn: false,
359
+ remote: false,
360
+ disabled: false,
361
+ loading: false,
362
+ hidden: false,
363
+ hideLabel: false
364
+ },
365
+ events: {
366
+ onClick: ""
367
+ },
368
+ rules: []
369
+ },
370
+ {
371
+ name: "计数器",
372
+ type: "number",
373
+ icon: "icon-number",
374
+ options: {
375
+ width: "",
376
+ labelWidth: 100,
377
+ isLabelWidth: false,
378
+ required: false,
379
+ defaultValue: 0,
380
+ min: 1,
381
+ max: 2,
382
+ step: 1,
383
+ disabled: false,
384
+ controlsPosition: false,
385
+ step: 1, //递增递减步数
386
+ precision: 1, //精度
387
+ hidden: false,
388
+ hideLabel: false
389
+ },
390
+ events: {
391
+ onChange: "",
392
+ onFocus: "",
393
+ onBlur: ""
394
+ }
395
+ },
396
+ {
397
+ name: "滑块",
398
+ type: "slider",
399
+ icon: "icon-slider",
400
+ options: {
401
+ width: "100%",
402
+ height: "40px",
403
+ labelWidth: 100,
404
+ isLabelWidth: false,
405
+ defaultValue: 0,
406
+ disabled: false,
407
+ required: false,
408
+ min: 0,
409
+ max: 100,
410
+ step: 1,
411
+ showInput: false,
412
+ range: false,
413
+ vertical: false,
414
+ showTooltip: true,
415
+ formatTooltip: 1, //格式化
416
+ showStops: false, //间断点
417
+ hidden: false,
418
+ hideLabel: false
419
+ },
420
+ events: {
421
+ onChange: ""
422
+ }
423
+ },
424
+ {
425
+ name: "评分",
426
+ type: "rate",
427
+ icon: "icon-pingfen1",
428
+ options: {
429
+ labelWidth: 100,
430
+ isLabelWidth: false,
431
+ defaultValue: 0,
432
+ max: 5,
433
+ disabled: false,
434
+ allowHalf: false,
435
+ required: false,
436
+ showText: false,
437
+ hidden: false,
438
+ hideLabel: false,
439
+ auxiliaryValue: ["极差", "失望", "一般", "满意", "惊喜"] //辅助文字
440
+ },
441
+ events: {
442
+ onChange: ""
443
+ }
444
+ },
445
+ {
446
+ name: "图片",
447
+ type: "image",
448
+ icon: "icon-ic",
449
+ options: {
450
+ defaultValue: [
451
+ {
452
+ url:
453
+ "https://fuss10.elemecdn.com/a/3f/3302e58f9a181d2509f3dc0fa68b0jpeg.jpeg"
454
+ },
455
+ {
456
+ url:
457
+ "https://fuss10.elemecdn.com/1/34/19aa98b1fcb2781c4fba33d850549jpeg.jpeg"
458
+ },
459
+ {
460
+ url:
461
+ "https://fuss10.elemecdn.com/0/6f/e35ff375812e6b0020b6b4e8f9583jpeg.jpeg"
462
+ }
463
+ ],
464
+ width: "",
465
+ height: "200px",
466
+ fit: "fill",
467
+ borderRadius: "",
468
+ displayStyle: "inline-block",
469
+ errorSrc: "",
470
+ isLoding: false,
471
+ hidden: false,
472
+ hideLabel: false,
473
+ isLazy: true
474
+ }
475
+ },
476
+ {
477
+ name: "文件",
478
+ type: "upload",
479
+ icon: "icon-tupian",
480
+ options: {
481
+ width: "",
482
+ labelWidth: 100,
483
+ isLabelWidth: false,
484
+ defaultValue: [],
485
+ size: {
486
+ width: 100,
487
+ height: 100
488
+ },
489
+ tokenFunc: "funcGetToken",
490
+ token: "",
491
+ domain: "https://tcdn.form.making.link/",
492
+ disabled: false,
493
+ length: 8,
494
+ autoUpload: false,
495
+ isQiniu: false,
496
+ //isDelete: false,
497
+ min: 0,
498
+ //isEdit: false,
499
+ remote: false,
500
+ remoteFunc: {},
501
+ action: "https://jsonplaceholder.typicode.com/posts/",
502
+ disabled: false,
503
+ required: false,
504
+ multiple: false,
505
+ elUploadTip: "",
506
+ listType: "default", //展示方式
507
+ drag: false //拖拽上传
508
+ }
509
+ },
510
+ {
511
+ name: "编辑器",
512
+ type: "editor",
513
+ icon: "icon-fuwenbenkuang",
514
+ options: {
515
+ width: "100%",
516
+ height: "",
517
+ labelWidth: 100,
518
+ isLabelWidth: false,
519
+ defaultValue: "",
520
+ disabled: false,
521
+ required: false,
522
+ hidden: false,
523
+ hideLabel: false
524
+ }
525
+ },
526
+ {
527
+ name: "级联选择器",
528
+ type: "cascader",
529
+ icon: "icon-jilianxuanze",
530
+ options: {
531
+ width: "",
532
+ labelWidth: 100,
533
+ isLabelWidth: false,
534
+ defaultValue: [],
535
+ placeholder: "",
536
+ disabled: false,
537
+ clearable: false,
538
+ required: false,
539
+ showAllLevels: false, //只显示最后一级
540
+ collapseTags: false,
541
+ filterable: false, //搜索
542
+ prepend: "",
543
+ append: "",
544
+ props: {
545
+ value: "id",
546
+ label: "name",
547
+ children: "children",
548
+ multiple: false,
549
+ expandTrigger: "hover",
550
+ checkStrictly: false //选择任意一级选项
551
+ },
552
+ remote: true,
553
+ remoteFunc: {},
554
+ remoteOptions: [],
555
+ hidden: false,
556
+ hideLabel: false
557
+ },
558
+ events: {
559
+ onChange: ""
560
+ }
561
+ }
562
+ ];
563
+
564
+ export const advanceComponents = [
565
+ {
566
+ name: "子表单",
567
+ type: "table",
568
+ icon: "icon-table",
569
+ options: {
570
+ height: "",
571
+ defaultValue: "",
572
+ customClass: "",
573
+ labelWidth: 100,
574
+ isLabelWidth: false,
575
+ dataBind: true,
576
+ validatorCheck: false,
577
+ validator: "",
578
+ paging: false,
579
+ pageSize: 5,
580
+ tableColumn: false,
581
+ hidden: false,
582
+ hideLabel: false,
583
+ disabled: false,
584
+ required: false,
585
+ isAdd: true,
586
+ isDelete: true,
587
+ isSerial: true, // 显示序号
588
+ border: false, // 显示边框
589
+ stripe: false, // 是否为斑马纹
590
+ showHeader: true, // 是否显示表头
591
+ highlightCurrentRow: false // 是否高亮当前行
592
+ },
593
+ list: []
594
+ },
595
+ {
596
+ name: "子表单H5",
597
+ type: "table_h5",
598
+ icon: "icon-table",
599
+ options: {
600
+ defaultValue: "",
601
+ customClass: "",
602
+ labelWidth: 100,
603
+ isLabelWidth: false,
604
+ dataBind: true,
605
+ validatorCheck: false,
606
+ validator: "",
607
+ paging: false,
608
+ pageSize: 5,
609
+ tableColumn: false,
610
+ hidden: false,
611
+ hideLabel: false,
612
+ disabled: false,
613
+ required: false,
614
+ isAdd: true,
615
+ addButtonText: "新增",
616
+ isDelete: true,
617
+ deleteButtonText: "删除",
618
+ deleteIndex: 0 // 可删除的最小索引
619
+ },
620
+ list: []
621
+ },
622
+ {
623
+ name: "标签页",
624
+ type: "tabs",
625
+ icon: "icon-tabs",
626
+ tabs: [
627
+ {
628
+ label: "选项1",
629
+ value: "tab1",
630
+ list: []
631
+ },
632
+ {
633
+ label: "选项2",
634
+ value: "tab2",
635
+ list: []
636
+ }
637
+ ],
638
+ options: {
639
+ defaultValue: "tab1",
640
+ type: "",
641
+ tabPosition: "top",
642
+ customClass: "",
643
+ hidden: false,
644
+ labelWidth: 100,
645
+ isLabelWidth: false,
646
+ hideLabel: true,
647
+ remote: false,
648
+ remoteFunc: {},
649
+ remoteOption: [],
650
+ tableColumn: false
651
+ },
652
+ rules: []
653
+ },
654
+ {
655
+ name: "自定义区域",
656
+ type: "blank",
657
+ icon: "icon-zidingyishuju",
658
+ options: {
659
+ defaultType: "String",
660
+ required: false
661
+ }
662
+ }
663
+ ];
664
+
665
+ export const layoutComponents = [
666
+ {
667
+ name: "栅格布局",
668
+ type: "grid",
669
+ icon: "icon-grid-",
670
+ columns: [
671
+ {
672
+ span: 12,
673
+ list: []
674
+ },
675
+ {
676
+ span: 12,
677
+ list: []
678
+ }
679
+ ],
680
+ options: {
681
+ gutter: 0,
682
+ justify: "start",
683
+ align: "top",
684
+ hideLabel: true
685
+ }
686
+ },
687
+ {
688
+ name: "浮动布局",
689
+ type: "alliance",
690
+ icon: "icon-grid-",
691
+ columns: [
692
+ {
693
+ span: 12,
694
+ list: []
695
+ },
696
+ {
697
+ span: 12,
698
+ list: []
699
+ }
700
+ ],
701
+ options: {
702
+ gutter: 0,
703
+ justify: "start",
704
+ align: "top",
705
+ hideLabel: true
706
+ }
707
+ },
708
+ {
709
+ name: "填充物",
710
+ type: "filler",
711
+ icon: "icon-ic",
712
+ options: {
713
+ defaultValue: "",
714
+ width: "100%",
715
+ height: "20px",
716
+ labelWidth: 100,
717
+ isLabelWidth: false,
718
+ hideLabel: true,
719
+ hidden: false,
720
+ }
721
+ },
722
+ {
723
+ name: "分割线",
724
+ type: "divider",
725
+ icon: "icon-fengexian",
726
+ options: {
727
+ width: "100%",
728
+ defaultValue: "",
729
+ hidden: false,
730
+ labelWidth: 100,
731
+ isLabelWidth: false,
732
+ hideLabel: true,
733
+ contentPosition: "left",
734
+ tableColumn: false
735
+ },
736
+ rules: []
737
+ }
738
+ ];
739
+
740
+ export const baseConfig = {
741
+ ui: "element",
742
+ title: "",
743
+ width: "",
744
+ labelWidth: 100,
745
+ labelPosition: "right",
746
+ labelSuffix: ":",
747
+ size: "small",
748
+ disabled: false,
749
+ hideLabel: false,
750
+ eventScript: [
751
+ {
752
+ key: "mounted",
753
+ name: "mounted",
754
+ func: ""
755
+ },
756
+ {
757
+ key: "refresh",
758
+ name: "refresh",
759
+ func: ""
760
+ }
761
+ ]
762
+ };