tianheng-ui 0.0.56 → 0.0.57

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