@web-utils/component 2.7.20 → 2.7.21

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 (393) hide show
  1. package/dist/chunks/{config.46422d7f.js → config.7dec2bf2.js} +2 -2
  2. package/dist/chunks/confirmable-mixin.7112b769.js +75 -0
  3. package/dist/chunks/dataformat.9cc4428a.js +158 -0
  4. package/dist/chunks/dayjs.b0f2f7d9.js +247 -0
  5. package/dist/chunks/detail.6619700c.js +29 -0
  6. package/dist/chunks/dic.9de2fe5a.js +135 -0
  7. package/dist/chunks/{event.dd6f522d.js → event.fc358074.js} +31 -31
  8. package/dist/chunks/{form-input-mixin.ff5b58f7.js → form-input-mixin.df413ca8.js} +6 -6
  9. package/dist/chunks/{form-item-mixin.79f6eaff.js → form-item-mixin.b850e028.js} +18 -18
  10. package/dist/chunks/{form-pick-mixin.61ad06b2.js → form-pick-mixin.c4e0391b.js} +2 -2
  11. package/dist/chunks/init.e0133910.js +122 -0
  12. package/dist/chunks/{input-number-mixin.41a066be.js → input-number-mixin.6849fa63.js} +4 -4
  13. package/dist/chunks/{mixins.5a78e0db.js → mixins.6a394a6c.js} +4 -4
  14. package/dist/chunks/{packages.1fc9ccba.js → packages.419bde01.js} +7 -7
  15. package/dist/chunks/permission.07c49abf.js +16 -0
  16. package/dist/chunks/slot.a7387ecc.js +27 -0
  17. package/dist/chunks/{tab-mixin.8c0142e0.js → tab-mixin.51886d91.js} +20 -20
  18. package/dist/chunks/util.89913643.js +261 -0
  19. package/dist/chunks/utils.d7f73f8d.js +185 -0
  20. package/dist/chunks/utils.f44207f4.js +26 -0
  21. package/dist/chunks/vueComponentNormalizer.bf552d98.js +32 -0
  22. package/dist/components/address-input/index.js +36 -36
  23. package/dist/components/address-input/style.css +10 -1
  24. package/dist/components/affix/index.js +39 -39
  25. package/dist/components/affix/style.css +4 -1
  26. package/dist/components/aside-menu/index.js +29 -29
  27. package/dist/components/aside-menu/style.css +3 -1
  28. package/dist/components/avatar/index.js +43 -43
  29. package/dist/components/avatar/style.css +51 -1
  30. package/dist/components/awesome-button/index.js +28 -28
  31. package/dist/components/base.css +536 -1
  32. package/dist/components/capsule-tab/index.js +26 -26
  33. package/dist/components/capsule-tab/style.css +26 -1
  34. package/dist/components/card/index.js +49 -49
  35. package/dist/components/card/style.css +84 -1
  36. package/dist/components/carousel/index.js +35 -35
  37. package/dist/components/carousel/style.css +35 -1
  38. package/dist/components/chat/index.js +203 -203
  39. package/dist/components/chat/style.css +277 -1
  40. package/dist/components/chunk-file-uploader/index.js +46 -46
  41. package/dist/components/chunk-file-uploader/style.css +3 -1
  42. package/dist/components/chunk-file-uploader-button/index.js +22 -22
  43. package/dist/components/chunk-file-uploader-button/style.css +16 -1
  44. package/dist/components/chunk-file-uploader-drop/index.js +27 -27
  45. package/dist/components/chunk-file-uploader-drop/style.css +11 -1
  46. package/dist/components/chunk-file-uploader-file/index.js +118 -118
  47. package/dist/components/chunk-file-uploader-file/style.css +124 -1
  48. package/dist/components/chunk-file-uploader-files/index.js +27 -27
  49. package/dist/components/chunk-file-uploader-files/style.css +8 -1
  50. package/dist/components/chunk-file-uploader-list/index.js +27 -27
  51. package/dist/components/chunk-file-uploader-list/style.css +8 -1
  52. package/dist/components/chunk-file-uploader-un-support/index.js +27 -27
  53. package/dist/components/chunk-file-uploader-un-support/style.css +5 -1
  54. package/dist/components/code-mirror-editor/index.js +134 -134
  55. package/dist/components/code-mirror-editor/style.css +11 -1
  56. package/dist/components/color-picker/index.js +39 -39
  57. package/dist/components/column/index.js +66 -66
  58. package/dist/components/column-default/index.js +54 -54
  59. package/dist/components/column-dynamic/index.js +54 -54
  60. package/dist/components/column-menu/index.js +128 -128
  61. package/dist/components/column-slot/index.js +168 -168
  62. package/dist/components/comment/index.js +33 -33
  63. package/dist/components/comment/style.css +110 -1
  64. package/dist/components/confirm-button/index.js +18 -18
  65. package/dist/components/confirmable/index.js +17 -17
  66. package/dist/components/context-menu/index.js +89 -89
  67. package/dist/components/context-menu/style.css +84 -1
  68. package/dist/components/count-up/index.js +36 -36
  69. package/dist/components/custom-scrollbar/index.js +45 -45
  70. package/dist/components/data-box/index.js +41 -41
  71. package/dist/components/data-box/style.css +52 -1
  72. package/dist/components/data-card/index.js +38 -38
  73. package/dist/components/data-card/style.css +35 -1
  74. package/dist/components/data-cardtext/index.js +33 -33
  75. package/dist/components/data-cardtext/style.css +30 -1
  76. package/dist/components/data-display/index.js +37 -37
  77. package/dist/components/data-display/style.css +31 -1
  78. package/dist/components/data-icons/index.js +40 -40
  79. package/dist/components/data-icons/style.css +47 -1
  80. package/dist/components/data-imgtext/index.js +44 -44
  81. package/dist/components/data-imgtext/style.css +65 -1
  82. package/dist/components/data-operatext/index.js +44 -44
  83. package/dist/components/data-operatext/style.css +72 -1
  84. package/dist/components/data-panel/index.js +38 -38
  85. package/dist/components/data-panel/style.css +31 -1
  86. package/dist/components/data-pay/index.js +60 -60
  87. package/dist/components/data-pay/style.css +96 -1
  88. package/dist/components/data-price/index.js +38 -38
  89. package/dist/components/data-price/style.css +75 -1
  90. package/dist/components/data-progress/index.js +39 -39
  91. package/dist/components/data-progress/style.css +24 -1
  92. package/dist/components/data-rotate/index.js +39 -39
  93. package/dist/components/data-rotate/style.css +44 -1
  94. package/dist/components/data-table-picker/index.js +151 -53
  95. package/dist/components/data-tabs/index.js +39 -39
  96. package/dist/components/data-tabs/style.css +64 -1
  97. package/dist/components/dialog-column/index.js +50 -50
  98. package/dist/components/dialog-excel/index.js +68 -68
  99. package/dist/components/dialog-filter/index.js +84 -84
  100. package/dist/components/dialog-form/index.js +89 -89
  101. package/dist/components/dialog-form/style.css +5 -0
  102. package/dist/components/dynamic-table/index.js +71 -71
  103. package/dist/components/dynamic-table/style.css +24 -1
  104. package/dist/components/e-charts/index.js +95 -94
  105. package/dist/components/e-charts/style.css +4 -1
  106. package/dist/components/easy-popup/index.js +87 -0
  107. package/dist/components/easy-popup/style.css +12 -0
  108. package/dist/components/editable-progress/index.js +48 -48
  109. package/dist/components/editable-progress/style.css +33 -1
  110. package/dist/components/editable-tree/index.js +587 -287
  111. package/dist/components/editable-tree/style.css +79 -1
  112. package/dist/components/egd-collapse/index.js +29 -29
  113. package/dist/components/egd-collapse-item/index.js +51 -51
  114. package/dist/components/element-dialog/index.js +74 -65
  115. package/dist/components/element-dialog/style.css +82 -1
  116. package/dist/components/empty-view/index.js +26 -26
  117. package/dist/components/empty-view/style.css +11 -1
  118. package/dist/components/error-view/index.js +25 -25
  119. package/dist/components/error-view/style.css +11 -1
  120. package/dist/components/flex-column/index.js +19 -19
  121. package/dist/components/flex-item/index.js +20 -20
  122. package/dist/components/flex-row/index.js +19 -19
  123. package/dist/components/flex-scroller/index.js +24 -24
  124. package/dist/components/flex-scroller/style.css +14 -1
  125. package/dist/components/flow/index.js +100 -100
  126. package/dist/components/flow/style.css +38 -1
  127. package/dist/components/flow-node/index.js +37 -37
  128. package/dist/components/flow-viewer/index.js +135 -0
  129. package/dist/components/flow-viewer/style.css +13 -0
  130. package/dist/components/form-button/index.js +32 -32
  131. package/dist/components/form-cascader/index.js +62 -61
  132. package/dist/components/form-checkbox-group/index.js +61 -61
  133. package/dist/components/form-checkbox-group/style.css +45 -1
  134. package/dist/components/form-date-picker/index.js +57 -57
  135. package/dist/components/form-group/index.js +38 -38
  136. package/dist/components/form-group/style.css +76 -1
  137. package/dist/components/form-holder/index.js +30 -30
  138. package/dist/components/form-input/index.js +50 -50
  139. package/dist/components/form-input-email/index.js +44 -44
  140. package/dist/components/form-input-id-card/index.js +49 -49
  141. package/dist/components/form-input-number/index.js +49 -49
  142. package/dist/components/form-input-number/style.css +6 -1
  143. package/dist/components/form-input-phone-number/index.js +45 -45
  144. package/dist/components/form-input-time/index.js +48 -48
  145. package/dist/components/form-item/index.js +73 -73
  146. package/dist/components/form-item/style.css +5 -1
  147. package/dist/components/form-item-config-provider/index.js +19 -19
  148. package/dist/components/form-item-group/index.js +65 -65
  149. package/dist/components/form-item-group/style.css +25 -1
  150. package/dist/components/form-radio-group/index.js +61 -61
  151. package/dist/components/form-radio-group/style.css +47 -1
  152. package/dist/components/form-select/index.js +52 -52
  153. package/dist/components/form-switch/index.js +45 -45
  154. package/dist/components/form-temp/index.js +50 -50
  155. package/dist/components/form-textarea/index.js +44 -44
  156. package/dist/components/form-view/index.js +143 -142
  157. package/dist/components/form-view/style.css +155 -1
  158. package/dist/components/fy-array/index.js +64 -64
  159. package/dist/components/fy-array/style.css +12 -1
  160. package/dist/components/fy-article/index.js +34 -34
  161. package/dist/components/fy-article/style.css +56 -1
  162. package/dist/components/fy-cascader/index.js +52 -52
  163. package/dist/components/fy-checkbox/index.js +52 -52
  164. package/dist/components/fy-checkbox/style.css +9 -1
  165. package/dist/components/fy-code/index.js +30 -30
  166. package/dist/components/fy-curd/index.js +317 -317
  167. package/dist/components/fy-curd/style.css +236 -1
  168. package/dist/components/fy-date/index.js +45 -45
  169. package/dist/components/fy-date/style.css +15 -1
  170. package/dist/components/fy-dialog-form/index.js +115 -115
  171. package/dist/components/fy-draggable/index.js +120 -120
  172. package/dist/components/fy-draggable/style.css +136 -1
  173. package/dist/components/fy-dynamic/index.js +126 -126
  174. package/dist/components/fy-dynamic/style.css +29 -1
  175. package/dist/components/fy-empty/index.js +26 -26
  176. package/dist/components/fy-empty/style.css +18 -1
  177. package/dist/components/fy-form/index.js +365 -365
  178. package/dist/components/fy-form/style.css +73 -1
  179. package/dist/components/fy-form-design/index.js +6906 -433
  180. package/dist/components/fy-form-design/style.css +560 -1
  181. package/dist/components/fy-form-menu/index.js +45 -45
  182. package/dist/components/fy-input/index.js +61 -61
  183. package/dist/components/fy-input-color/index.js +41 -41
  184. package/dist/components/fy-input-icon/index.js +70 -70
  185. package/dist/components/fy-input-icon/style.css +33 -1
  186. package/dist/components/fy-input-map/index.js +102 -102
  187. package/dist/components/fy-input-map/style.css +44 -1
  188. package/dist/components/fy-input-number/index.js +39 -39
  189. package/dist/components/fy-input-table/index.js +70 -70
  190. package/dist/components/fy-input-table/style.css +4 -1
  191. package/dist/components/fy-input-tree/index.js +105 -105
  192. package/dist/components/fy-input-tree/style.css +19 -1
  193. package/dist/components/fy-progress/index.js +25 -25
  194. package/dist/components/fy-radio/index.js +36 -36
  195. package/dist/components/fy-radio/style.css +6 -1
  196. package/dist/components/fy-rate/index.js +40 -40
  197. package/dist/components/fy-rate/style.css +3 -1
  198. package/dist/components/fy-select/index.js +101 -101
  199. package/dist/components/fy-select/style.css +19 -1
  200. package/dist/components/fy-slider/index.js +42 -42
  201. package/dist/components/fy-switch/index.js +37 -37
  202. package/dist/components/fy-tabs/index.js +35 -35
  203. package/dist/components/fy-time/index.js +47 -47
  204. package/dist/components/fy-title/index.js +23 -23
  205. package/dist/components/fy-title/style.css +5 -1
  206. package/dist/components/fy-tree/index.js +157 -157
  207. package/dist/components/fy-tree/style.css +39 -1
  208. package/dist/components/fy-u-editor/index.js +99 -99
  209. package/dist/components/fy-u-editor/style.css +9 -1
  210. package/dist/components/fy-upload/index.js +270 -270
  211. package/dist/components/fy-upload/style.css +55 -1
  212. package/dist/components/guide-steps/index.js +41 -41
  213. package/dist/components/guide-steps/style.css +28 -1
  214. package/dist/components/header-menu/index.js +94 -94
  215. package/dist/components/header-search/index.js +121 -121
  216. package/dist/components/highlight-j-s/index.js +76 -0
  217. package/dist/components/highlight-j-s/style.css +18 -0
  218. package/dist/components/icon-card/index.js +28 -28
  219. package/dist/components/icon-card/style.css +50 -1
  220. package/dist/components/icon-temp/index.js +24 -24
  221. package/dist/components/icon-temp/style.css +17 -1
  222. package/dist/components/iframe-window/index.js +24 -24
  223. package/dist/components/iframe-window/style.css +14 -1
  224. package/dist/components/image-cropper/index.js +117 -117
  225. package/dist/components/image-cropper/style.css +28 -1
  226. package/dist/components/image-preview/index.js +127 -127
  227. package/dist/components/image-preview/style.css +66 -1
  228. package/dist/components/image-viewer/index.js +35 -35
  229. package/dist/components/image-viewer/style.css +15 -1
  230. package/dist/components/input-number/index.js +116 -116
  231. package/dist/components/input-number/style.css +9 -1
  232. package/dist/components/input-number-range/index.js +37 -37
  233. package/dist/components/input-number-range/style.css +6 -1
  234. package/dist/components/j-s-x-component/index.js +4 -4
  235. package/dist/components/keep-view-alive/index.js +71 -71
  236. package/dist/components/keyboard/index.js +182 -182
  237. package/dist/components/keyboard/style.css +473 -1
  238. package/dist/components/license/index.js +54 -54
  239. package/dist/components/loading-view/index.js +25 -25
  240. package/dist/components/loading-view/style.css +11 -1
  241. package/dist/components/login/index.js +94 -94
  242. package/dist/components/login/style.css +19 -1
  243. package/dist/components/name-avatar/index.js +26 -26
  244. package/dist/components/name-avatar/style.css +30 -1
  245. package/dist/components/nav-bar/index.js +22 -22
  246. package/dist/components/nav-bar/style.css +11 -1
  247. package/dist/components/not-implement/index.js +22 -22
  248. package/dist/components/not-implement/style.css +9 -1
  249. package/dist/components/notice/index.js +55 -55
  250. package/dist/components/notice/style.css +48 -1
  251. package/dist/components/page/index.js +20 -20
  252. package/dist/components/page/style.css +6 -1
  253. package/dist/components/page-header/index.js +28 -28
  254. package/dist/components/page-header/style.css +8 -1
  255. package/dist/components/page-index/index.js +57 -57
  256. package/dist/components/page-index/style.css +17 -1
  257. package/dist/components/page-index-top/index.js +46 -46
  258. package/dist/components/page-skeleton/index.js +28 -28
  259. package/dist/components/page-skeleton/style.css +17 -1
  260. package/dist/components/page-skeleton-new/index.js +38 -38
  261. package/dist/components/page-skeleton-new/style.css +36 -1
  262. package/dist/components/pageable-table/index.js +140 -139
  263. package/dist/components/pageable-table/style.css +66 -1
  264. package/dist/components/pageable-view/index.js +103 -102
  265. package/dist/components/pageable-view/style.css +63 -1
  266. package/dist/components/photo-swipe/index.js +64 -64
  267. package/dist/components/process-designer/index.js +4638 -0
  268. package/dist/components/process-designer/style.css +1648 -0
  269. package/dist/components/properties-panel/index.js +4765 -0
  270. package/dist/components/properties-panel/style.css +106 -0
  271. package/dist/components/queue/index.js +24 -24
  272. package/dist/components/record-video/index.js +55 -55
  273. package/dist/components/record-video/style.css +47 -1
  274. package/dist/components/resize-observer/index.js +26 -26
  275. package/dist/components/resize-observer/style.css +25 -1
  276. package/dist/components/search/index.js +64 -64
  277. package/dist/components/search/style.css +51 -1
  278. package/dist/components/search-popover/index.js +98 -98
  279. package/dist/components/search-popover/style.css +90 -1
  280. package/dist/components/sign/index.js +66 -66
  281. package/dist/components/sign/style.css +6 -1
  282. package/dist/components/sign-panel/index.js +78 -78
  283. package/dist/components/sign-panel/style.css +91 -1
  284. package/dist/components/skeleton/index.js +35 -35
  285. package/dist/components/skeleton/style.css +55 -1
  286. package/dist/components/split-pane/index.js +88 -88
  287. package/dist/components/split-pane/style.css +98 -1
  288. package/dist/components/stateful/index.js +29 -29
  289. package/dist/components/stateful/style.css +27 -1
  290. package/dist/components/static-pageable-table/index.js +30 -30
  291. package/dist/components/static-pageable-table/style.css +3 -1
  292. package/dist/components/swiper/index.js +69 -69
  293. package/dist/components/swiper/style.css +37 -1
  294. package/dist/components/tab/index.js +47 -47
  295. package/dist/components/tab/style.css +108 -1
  296. package/dist/components/tab-item/index.js +29 -29
  297. package/dist/components/table-column/index.js +25 -25
  298. package/dist/components/table-page/index.js +51 -51
  299. package/dist/components/table-view/index.js +123 -122
  300. package/dist/components/table-view/style.css +90 -1
  301. package/dist/components/tag-render/index.js +39 -39
  302. package/dist/components/tag-render/style.css +27 -1
  303. package/dist/components/text-ellipsis/index.js +40 -40
  304. package/dist/components/text-ellipsis/style.css +3 -1
  305. package/dist/components/tinymce-editor/index.js +62 -62
  306. package/dist/components/tinymce-editor/style.css +37 -1
  307. package/dist/components/tinymce-wrapper/index.js +76 -76
  308. package/dist/components/tinymce-wrapper/style.css +30 -1
  309. package/dist/components/toolbar/index.js +51 -51
  310. package/dist/components/toolbar/style.css +35 -1
  311. package/dist/components/toolbar-button/index.js +33 -33
  312. package/dist/components/toolbar-button/style.css +15 -1
  313. package/dist/components/trigger/index.js +27 -27
  314. package/dist/components/verify/index.js +33 -33
  315. package/dist/components/verify/style.css +9 -1
  316. package/dist/components/vue-tags-input/index.js +137 -137
  317. package/dist/components/vue-tags-input/style.css +102 -1
  318. package/dist/components/watermark/index.js +25 -25
  319. package/dist/components/watermark/style.css +10 -1
  320. package/dist/index.css +1797 -0
  321. package/dist/index.es.js +22766 -12431
  322. package/package.json +18 -6
  323. package/web-types.json +307 -1
  324. package/dist/chunks/AfdColumn.vue_vue_type_template_lang.768f2ed2.js +0 -302
  325. package/dist/chunks/ConfigArray.vue_vue_type_template_lang.66483daa.js +0 -51
  326. package/dist/chunks/ConfigColor.vue_vue_type_template_lang.cd880091.js +0 -24
  327. package/dist/chunks/ConfigCustom.vue_vue_type_template_lang.6e03d7fd.js +0 -52
  328. package/dist/chunks/ConfigDate.vue_vue_type_template_lang.116fbad4.js +0 -104
  329. package/dist/chunks/ConfigDynamic.vue_vue_type_template_lang.99082e47.js +0 -133
  330. package/dist/chunks/ConfigEvent.vue_vue_type_template_lang.5e8ed6cc.js +0 -96
  331. package/dist/chunks/ConfigGroup.vue_vue_type_template_lang.44117322.js +0 -48
  332. package/dist/chunks/ConfigInput.vue_vue_type_template_lang.cc1eb052.js +0 -96
  333. package/dist/chunks/ConfigMap.vue_vue_type_template_lang.daee4d38.js +0 -31
  334. package/dist/chunks/ConfigNumber.vue_vue_type_template_lang.d60231d7.js +0 -130
  335. package/dist/chunks/ConfigRate.vue_vue_type_style_index_0_scoped_true_lang.cf5d437d.js +0 -125
  336. package/dist/chunks/ConfigSelect.vue_vue_type_template_lang.dfc91f07.js +0 -488
  337. package/dist/chunks/ConfigSlider.vue_vue_type_template_lang.27b8cc7b.js +0 -99
  338. package/dist/chunks/ConfigSwitch.vue_vue_type_style_index_0_scoped_true_lang.4caf1bd0.js +0 -54
  339. package/dist/chunks/ConfigTable.vue_vue_type_template_lang.b27540fd.js +0 -344
  340. package/dist/chunks/ConfigTextarea.vue_vue_type_template_lang.5cddf41c.js +0 -88
  341. package/dist/chunks/ConfigTitle.vue_vue_type_template_lang.57d9deb5.js +0 -87
  342. package/dist/chunks/ConfigTree.vue_vue_type_style_index_0_scoped_true_lang.89ec5376.js +0 -465
  343. package/dist/chunks/ConfigUEditor.vue_vue_type_template_lang.9726b4f5.js +0 -240
  344. package/dist/chunks/ConfigUpload.vue_vue_type_template_lang.129c0ced.js +0 -476
  345. package/dist/chunks/FormConfig.vue_vue_type_template_lang.82463ce5.js +0 -220
  346. package/dist/chunks/WidgetConfig.vue_vue_type_template_lang.3cc74fe8.js +0 -1821
  347. package/dist/chunks/WidgetForm.vue_vue_type_template_lang.d4b05679.js +0 -247
  348. package/dist/chunks/WidgetFormGroup.vue_vue_type_template_lang.bdcb6d37.js +0 -271
  349. package/dist/chunks/WidgetFormItem.vue_vue_type_template_lang.48d55a5c.js +0 -24
  350. package/dist/chunks/WidgetFormTable.vue_vue_type_template_lang.e2b788ba.js +0 -229
  351. package/dist/chunks/confirmable-mixin.3a79781b.js +0 -75
  352. package/dist/chunks/dataformat.65b92bfe.js +0 -158
  353. package/dist/chunks/detail.d67573b1.js +0 -28
  354. package/dist/chunks/dic.70feb9b4.js +0 -135
  355. package/dist/chunks/init.7c58eb34.js +0 -122
  356. package/dist/chunks/monaco.cefcb9f5.js +0 -290
  357. package/dist/chunks/permission.ce5d2121.js +0 -16
  358. package/dist/chunks/slot.4b391395.js +0 -27
  359. package/dist/chunks/util.23fe58fb.js +0 -261
  360. package/dist/chunks/utils.97652d86.js +0 -26
  361. package/dist/chunks/utils.fa73de78.js +0 -185
  362. package/dist/chunks/vueComponentNormalizer.71e2aa87.js +0 -32
  363. package/dist/components/afd-column/index.js +0 -57
  364. package/dist/components/config-array/index.js +0 -28
  365. package/dist/components/config-color/index.js +0 -28
  366. package/dist/components/config-custom/index.js +0 -62
  367. package/dist/components/config-date/index.js +0 -28
  368. package/dist/components/config-dynamic/index.js +0 -28
  369. package/dist/components/config-event/index.js +0 -74
  370. package/dist/components/config-group/index.js +0 -36
  371. package/dist/components/config-input/index.js +0 -29
  372. package/dist/components/config-map/index.js +0 -28
  373. package/dist/components/config-number/index.js +0 -28
  374. package/dist/components/config-rate/index.js +0 -71
  375. package/dist/components/config-rate/style.css +0 -1
  376. package/dist/components/config-select/index.js +0 -90
  377. package/dist/components/config-slider/index.js +0 -28
  378. package/dist/components/config-switch/index.js +0 -33
  379. package/dist/components/config-switch/style.css +0 -1
  380. package/dist/components/config-table/index.js +0 -122
  381. package/dist/components/config-textarea/index.js +0 -28
  382. package/dist/components/config-title/index.js +0 -33
  383. package/dist/components/config-tree/index.js +0 -122
  384. package/dist/components/config-tree/style.css +0 -1
  385. package/dist/components/config-u-editor/index.js +0 -34
  386. package/dist/components/config-upload/index.js +0 -58
  387. package/dist/components/form-config/index.js +0 -28
  388. package/dist/components/fy-dialog-form/style.css +0 -1
  389. package/dist/components/widget-config/index.js +0 -110
  390. package/dist/components/widget-form/index.js +0 -71
  391. package/dist/components/widget-form-group/index.js +0 -96
  392. package/dist/components/widget-form-item/index.js +0 -71
  393. package/dist/components/widget-form-table/index.js +0 -95
@@ -1,363 +1,363 @@
1
- import { d as P } from "../../chunks/detail.d67573b1.js";
2
- import { i as N } from "../../chunks/init.7c58eb34.js";
3
- import { s as _, d as D, u as j, h as L, i as V, j as $, k as z, o as I, l as M } from "../../chunks/util.23fe58fb.js";
4
- import { c as A, b as B, g as W, a as R, f as G } from "../../chunks/dataformat.65b92bfe.js";
5
- import { s as H } from "../../chunks/dic.70feb9b4.js";
6
- import { p as U } from "../../chunks/packages.1fc9ccba.js";
7
- import { isBlank as u } from "@web-utils/core";
8
- import { n as q } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
9
- const K = (t, i, s, r) => {
10
- if (!r)
1
+ import { d as detail } from "../../chunks/detail.6619700c.js";
2
+ import { i as init } from "../../chunks/init.e0133910.js";
3
+ import { s as setPx, d as deepClone, u as uploadFun, x as setAsVal, g as getAsVal, v as filterParams, D as DIC_PROPS, o as optVal, y as clearVal } from "../../chunks/util.89913643.js";
4
+ import { b as calcCount, c as calcCascader, g as getComponent, a as getPlaceholder, f as formInitVal } from "../../chunks/dataformat.9cc4428a.js";
5
+ import { s as sendDic } from "../../chunks/dic.9de2fe5a.js";
6
+ import { p as packages } from "../../chunks/packages.419bde01.js";
7
+ import { isBlank } from "@web-utils/core";
8
+ import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.bf552d98.js";
9
+ const mock = (column, dic, defaultForm, run) => {
10
+ if (!run)
11
11
  return;
12
12
  if (!window.Mock) {
13
- U.logs("mock");
13
+ packages.logs("mock");
14
14
  return;
15
15
  }
16
- const e = (window.Mock || {}).Random, o = {};
17
- function a({ en: h }) {
18
- return h ? e.name(!0) : e.cname();
16
+ const Random = (window.Mock || {}).Random, form = {};
17
+ function createName({ en }) {
18
+ return en ? Random.name(!0) : Random.cname();
19
19
  }
20
- function n({ max: h, min: l, precision: f }) {
21
- if (f) {
22
- const c = `${e.float(l, h, f)}`, m = c.indexOf(".") + 1;
23
- return Number(c.substring(0, m + f));
20
+ function createNumber({ max, min, precision }) {
21
+ if (precision) {
22
+ const number = `${Random.float(min, max, precision)}`, index = number.indexOf(".") + 1;
23
+ return Number(number.substring(0, index + precision));
24
24
  } else
25
- return e.integer(l, h);
25
+ return Random.integer(min, max);
26
26
  }
27
- function d({ header: h, footer: l }) {
28
- let f = e.url();
29
- const c = f.indexOf("://");
30
- return h === !1 ? f = f.substring(c + 3) : f = `http://${f.substring(c + 3)}`, f;
27
+ function createUrl({ header, footer }) {
28
+ let url = Random.url();
29
+ const index = url.indexOf("://");
30
+ return header === !1 ? url = url.substring(index + 3) : url = `http://${url.substring(index + 3)}`, url;
31
31
  }
32
- function F({ format: h, now: l }) {
33
- return l ? e.now(h) : e.datetime(h);
32
+ function createDatetime({ format, now }) {
33
+ return now ? Random.now(format) : Random.datetime(format);
34
34
  }
35
- function x({ min: h, max: l }) {
36
- return e.csentence(h, l);
35
+ function createText({ min, max }) {
36
+ return Random.csentence(min, max);
37
37
  }
38
- function C() {
39
- return e.county(!0);
38
+ function createCounty() {
39
+ return Random.county(!0);
40
40
  }
41
- function T({ dic: h, props: l, columnType: f, multiple: c }) {
42
- const m = l.value || "value", b = h.length;
43
- if (["checkbox"].includes(f) || c) {
44
- const v = n({
41
+ function createDic({ dic: dic2, props, columnType, multiple }) {
42
+ const value = props.value || "value", len = dic2.length;
43
+ if (["checkbox"].includes(columnType) || multiple) {
44
+ const number = createNumber({
45
45
  min: 1,
46
- max: b
47
- }), y = [];
48
- for (let O = 0; O < v; O++) {
49
- let g = !0;
50
- for (; g; ) {
51
- const E = n({
46
+ max: len
47
+ }), result = [];
48
+ for (let i = 0; i < number; i++) {
49
+ let flag = !0;
50
+ for (; flag; ) {
51
+ const numbers = createNumber({
52
52
  min: 0,
53
- max: b - 1
54
- }), k = h[E][m];
55
- y.includes(k) || (y.push(k), g = !1);
53
+ max: len - 1
54
+ }), values = dic2[numbers][value];
55
+ result.includes(values) || (result.push(values), flag = !1);
56
56
  }
57
57
  }
58
- return y;
58
+ return result;
59
59
  } else {
60
- const v = n({
60
+ const number = createNumber({
61
61
  min: 0,
62
- max: b - 1
62
+ max: len - 1
63
63
  });
64
- return h[v][m];
64
+ return dic2[number][value];
65
65
  }
66
66
  }
67
- function w() {
68
- Object.keys(t).forEach((h) => {
69
- const l = t[h];
70
- if (l.mock && typeof l.mock == "object") {
71
- const f = l.mock;
72
- switch (f.dic = typeof l.dicData == "string" ? i[l.dicData] : l.dicData || [], f.props = l.props || {}, f.columnType = l.type, f.multiple = l.multiple, f.type) {
67
+ function create() {
68
+ Object.keys(column).forEach((index) => {
69
+ const ele = column[index];
70
+ if (ele.mock && typeof ele.mock == "object") {
71
+ const params = ele.mock;
72
+ switch (params.dic = typeof ele.dicData == "string" ? dic[ele.dicData] : ele.dicData || [], params.props = ele.props || {}, params.columnType = ele.type, params.multiple = ele.multiple, params.type) {
73
73
  case "name":
74
- o[l.prop] = a(f);
74
+ form[ele.prop] = createName(params);
75
75
  break;
76
76
  case "number":
77
- o[l.prop] = n(f);
77
+ form[ele.prop] = createNumber(params);
78
78
  break;
79
79
  case "datetime":
80
- o[l.prop] = F(f);
80
+ form[ele.prop] = createDatetime(params);
81
81
  break;
82
82
  case "word":
83
- o[l.prop] = x(f);
83
+ form[ele.prop] = createText(params);
84
84
  break;
85
85
  case "url":
86
- o[l.prop] = d(f);
86
+ form[ele.prop] = createUrl(params);
87
87
  break;
88
88
  case "county":
89
- o[l.prop] = C();
89
+ form[ele.prop] = createCounty();
90
90
  break;
91
91
  case "dic":
92
- o[l.prop] = T(f);
92
+ form[ele.prop] = createDic(params);
93
93
  break;
94
94
  }
95
95
  } else
96
- l.mock instanceof Function && (o[l.prop] = l.mock(s));
96
+ ele.mock instanceof Function && (form[ele.prop] = ele.mock(defaultForm));
97
97
  });
98
98
  }
99
- return w(), o;
99
+ return create(), form;
100
100
  };
101
- var J = function() {
102
- var t = this, i = t.$createElement, s = t._self._c || i;
103
- return s("div", {
101
+ var render = function() {
102
+ var _vm = this, _h = _vm.$createElement, _c = _vm._self._c || _h;
103
+ return _c("div", {
104
104
  class: ["avue-form", {
105
- "avue--detail": t.isDetail
105
+ "avue--detail": _vm.isDetail
106
106
  }],
107
107
  style: {
108
- width: t.setPx(t.parentOption.formWidth, "100%")
108
+ width: _vm.setPx(_vm.parentOption.formWidth, "100%")
109
109
  }
110
- }, [s("ElForm", {
110
+ }, [_c("ElForm", {
111
111
  ref: "form",
112
112
  attrs: {
113
- "status-icon": t.parentOption.statusIcon,
114
- model: t.form,
115
- "label-suffix": t.labelSuffix,
116
- size: t.$AVUE.formSize || t.controlSize,
117
- "label-position": t.parentOption.labelPosition,
118
- "label-width": t.setPx(t.parentOption.labelWidth, t.labelWidth)
113
+ "status-icon": _vm.parentOption.statusIcon,
114
+ model: _vm.form,
115
+ "label-suffix": _vm.labelSuffix,
116
+ size: _vm.$AVUE.formSize || _vm.controlSize,
117
+ "label-position": _vm.parentOption.labelPosition,
118
+ "label-width": _vm.setPx(_vm.parentOption.labelWidth, _vm.labelWidth)
119
119
  },
120
120
  nativeOn: {
121
- submit: function(r) {
122
- r.preventDefault();
121
+ submit: function($event) {
122
+ $event.preventDefault();
123
123
  }
124
124
  }
125
- }, [s("ElRow", {
125
+ }, [_c("ElRow", {
126
126
  class: {
127
- "avue-form__tabs": t.isTabs
127
+ "avue-form__tabs": _vm.isTabs
128
128
  },
129
129
  attrs: {
130
130
  span: 24
131
131
  }
132
- }, [t._l(t.columnOption, function(r, p) {
133
- return s("FormGroup", {
134
- key: r.prop,
132
+ }, [_vm._l(_vm.columnOption, function(item, index) {
133
+ return _c("FormGroup", {
134
+ key: item.prop,
135
135
  attrs: {
136
- tabs: t.isTabs,
137
- arrow: r.arrow,
138
- collapse: r.collapse,
139
- display: t.vaildDisplay(r),
140
- icon: r.icon,
141
- index: p,
142
- header: !t.isTabs,
143
- active: t.activeName,
144
- label: r.label
136
+ tabs: _vm.isTabs,
137
+ arrow: item.arrow,
138
+ collapse: item.collapse,
139
+ display: _vm.vaildDisplay(item),
140
+ icon: item.icon,
141
+ index,
142
+ header: !_vm.isTabs,
143
+ active: _vm.activeName,
144
+ label: item.label
145
145
  },
146
146
  on: {
147
- change: t.handleGroupClick
147
+ change: _vm.handleGroupClick
148
148
  },
149
- scopedSlots: t._u([t.getSlotName(r, "H", t.$scopedSlots) ? {
149
+ scopedSlots: _vm._u([_vm.getSlotName(item, "H", _vm.$scopedSlots) ? {
150
150
  key: "header",
151
151
  fn: function() {
152
- return [t._t(t.getSlotName(r, "H"), null, {
153
- column: r
152
+ return [_vm._t(_vm.getSlotName(item, "H"), null, {
153
+ column: item
154
154
  })];
155
155
  },
156
156
  proxy: !0
157
157
  } : null], null, !0)
158
- }, [t.isTabs && p === 1 ? s("ElTabs", {
158
+ }, [_vm.isTabs && index === 1 ? _c("ElTabs", {
159
159
  staticClass: "avue-form__tabs",
160
160
  attrs: {
161
161
  slot: "tabs",
162
- type: t.tabsType
162
+ type: _vm.tabsType
163
163
  },
164
164
  on: {
165
- "tab-click": t.handleTabClick
165
+ "tab-click": _vm.handleTabClick
166
166
  },
167
167
  slot: "tabs",
168
168
  model: {
169
- value: t.activeName,
170
- callback: function(e) {
171
- t.activeName = e;
169
+ value: _vm.activeName,
170
+ callback: function($$v) {
171
+ _vm.activeName = $$v;
172
172
  },
173
173
  expression: "activeName"
174
174
  }
175
- }, [t._l(t.columnOption, function(e, o) {
176
- return [t.vaildDisplay(e) && o !== 0 ? s("ElTabPane", {
177
- key: o,
175
+ }, [_vm._l(_vm.columnOption, function(tabs, sIndex) {
176
+ return [_vm.vaildDisplay(tabs) && sIndex !== 0 ? _c("ElTabPane", {
177
+ key: sIndex,
178
178
  attrs: {
179
- name: `${o}`
179
+ name: `${sIndex}`
180
180
  }
181
- }, [s("span", {
181
+ }, [_c("span", {
182
182
  attrs: {
183
183
  slot: "label"
184
184
  },
185
185
  slot: "label"
186
- }, [t.getSlotName(e, "H", t.$scopedSlots) ? t._t(t.getSlotName(e, "H"), null, {
187
- column: t.column
188
- }) : [s("i", {
189
- class: e.icon
190
- }, [t._v(" ")]), t._v(" " + t._s(e.label) + " ")]], 2)]) : t._e()];
191
- })], 2) : t._e(), s("div", {
186
+ }, [_vm.getSlotName(tabs, "H", _vm.$scopedSlots) ? _vm._t(_vm.getSlotName(tabs, "H"), null, {
187
+ column: _vm.column
188
+ }) : [_c("i", {
189
+ class: tabs.icon
190
+ }, [_vm._v(" ")]), _vm._v(" " + _vm._s(tabs.label) + " ")]], 2)]) : _vm._e()];
191
+ })], 2) : _vm._e(), _c("div", {
192
192
  directives: [{
193
193
  name: "show",
194
194
  rawName: "v-show",
195
- value: t.isGroupShow(r, p),
195
+ value: _vm.isGroupShow(item, index),
196
196
  expression: "isGroupShow(item, index)"
197
197
  }],
198
198
  class: ["avue-form__group", {
199
- "avue-form__group--flex": r.flex === !1
199
+ "avue-form__group--flex": item.flex === !1
200
200
  }]
201
- }, [t._l(r.column, function(e, o) {
202
- return [t.vaildDisplay(e) ? s("ElCol", {
203
- key: o,
201
+ }, [_vm._l(item.column, function(column, cindex) {
202
+ return [_vm.vaildDisplay(column) ? _c("ElCol", {
203
+ key: cindex,
204
204
  class: ["avue-form__row", {
205
- "avue--detail avue--detail__column": t.vaildDetail(e)
206
- }, e.className],
205
+ "avue--detail avue--detail__column": _vm.vaildDetail(column)
206
+ }, column.className],
207
207
  style: {
208
- paddingLeft: t.gutter,
209
- paddingRight: t.gutter
208
+ paddingLeft: _vm.gutter,
209
+ paddingRight: _vm.gutter
210
210
  },
211
211
  attrs: {
212
- span: t.getSpan(e),
213
- md: t.getSpan(e),
214
- sm: e.smSpan || r.smSpan || 12,
215
- xs: e.xsSpan || r.xmSpan || 24,
216
- offset: e.offset || r.offset,
217
- push: e.push || r.push,
218
- pull: e.pull || r.pull
212
+ span: _vm.getSpan(column),
213
+ md: _vm.getSpan(column),
214
+ sm: column.smSpan || item.smSpan || 12,
215
+ xs: column.xsSpan || item.xmSpan || 24,
216
+ offset: column.offset || item.offset,
217
+ push: column.push || item.push,
218
+ pull: column.pull || item.pull
219
219
  }
220
- }, [s("ElFormItem", {
221
- class: `avue-form__item--${e.labelPosition || r.labelPosition || ""}`,
220
+ }, [_c("ElFormItem", {
221
+ class: `avue-form__item--${column.labelPosition || item.labelPosition || ""}`,
222
222
  attrs: {
223
- prop: e.prop,
224
- label: e.label,
225
- rules: e.rules,
226
- "label-position": e.labelPosition || r.labelPosition || t.parentOption.labelPosition,
227
- "label-width": t.getLabelWidth(e, r)
223
+ prop: column.prop,
224
+ label: column.label,
225
+ rules: column.rules,
226
+ "label-position": column.labelPosition || item.labelPosition || _vm.parentOption.labelPosition,
227
+ "label-width": _vm.getLabelWidth(column, item)
228
228
  },
229
- scopedSlots: t._u([t.getSlotName(e, "L", t.$scopedSlots) ? {
229
+ scopedSlots: _vm._u([_vm.getSlotName(column, "L", _vm.$scopedSlots) ? {
230
230
  key: "label",
231
231
  fn: function() {
232
- return [t._t(t.getSlotName(e, "L"), null, {
233
- column: e,
234
- value: t.form[e.prop],
235
- readonly: e.readonly || t.readonly,
236
- disabled: t.getDisabled(e),
237
- size: e.size || t.controlSize,
238
- dic: t.DIC[e.prop]
232
+ return [_vm._t(_vm.getSlotName(column, "L"), null, {
233
+ column,
234
+ value: _vm.form[column.prop],
235
+ readonly: column.readonly || _vm.readonly,
236
+ disabled: _vm.getDisabled(column),
237
+ size: column.size || _vm.controlSize,
238
+ dic: _vm.DIC[column.prop]
239
239
  })];
240
240
  },
241
241
  proxy: !0
242
- } : e.labelTip ? {
242
+ } : column.labelTip ? {
243
243
  key: "label",
244
244
  fn: function() {
245
- return [s("ElTooltip", {
245
+ return [_c("ElTooltip", {
246
246
  staticClass: "item",
247
247
  attrs: {
248
248
  effect: "dark",
249
- placement: e.labelTipPlacement || "top-start"
249
+ placement: column.labelTipPlacement || "top-start"
250
250
  }
251
- }, [s("div", {
251
+ }, [_c("div", {
252
252
  attrs: {
253
253
  slot: "content"
254
254
  },
255
255
  domProps: {
256
- innerHTML: t._s(e.labelTip)
256
+ innerHTML: _vm._s(column.labelTip)
257
257
  },
258
258
  slot: "content"
259
- }), s("i", {
259
+ }), _c("i", {
260
260
  staticClass: "el-icon-info"
261
- })]), s("span", [t._v(" " + t._s(e.label) + t._s(t.labelSuffix))])];
261
+ })]), _c("span", [_vm._v(" " + _vm._s(column.label) + _vm._s(_vm.labelSuffix))])];
262
262
  },
263
263
  proxy: !0
264
- } : null, t.getSlotName(e, "E", t.$scopedSlots) ? {
264
+ } : null, _vm.getSlotName(column, "E", _vm.$scopedSlots) ? {
265
265
  key: "error",
266
- fn: function(a) {
267
- return [t._t(t.getSlotName(e, "E"), null, null, Object.assign(a, {
268
- column: e,
269
- value: t.form[e.prop],
270
- readonly: t.readonly || e.readonly,
271
- disabled: t.getDisabled(e),
272
- size: e.size || t.controlSize,
273
- dic: t.DIC[e.prop]
266
+ fn: function(scope) {
267
+ return [_vm._t(_vm.getSlotName(column, "E"), null, null, Object.assign(scope, {
268
+ column,
269
+ value: _vm.form[column.prop],
270
+ readonly: _vm.readonly || column.readonly,
271
+ disabled: _vm.getDisabled(column),
272
+ size: column.size || _vm.controlSize,
273
+ dic: _vm.DIC[column.prop]
274
274
  }))];
275
275
  }
276
276
  } : null], null, !0)
277
- }, [s(t.validTip(e) ? "div" : "elTooltip", {
277
+ }, [_c(_vm.validTip(column) ? "div" : "elTooltip", {
278
278
  tag: "Component",
279
279
  attrs: {
280
- disabled: t.validTip(e),
281
- content: e.tip || t.getPlaceholder(e),
282
- placement: e.tipPlacement
280
+ disabled: _vm.validTip(column),
281
+ content: column.tip || _vm.getPlaceholder(column),
282
+ placement: column.tipPlacement
283
283
  }
284
- }, [t.$scopedSlots[e.prop] ? t._t(e.prop, null, {
285
- value: t.form[e.prop],
286
- column: e,
287
- label: t.form[`$${e.prop}`],
288
- size: e.size || t.controlSize,
289
- readonly: t.readonly || e.readonly,
290
- disabled: t.getDisabled(e),
291
- dic: t.DIC[e.prop]
292
- }) : s("FormTemp", t._b({
293
- ref: e.prop,
284
+ }, [_vm.$scopedSlots[column.prop] ? _vm._t(column.prop, null, {
285
+ value: _vm.form[column.prop],
286
+ column,
287
+ label: _vm.form[`$${column.prop}`],
288
+ size: column.size || _vm.controlSize,
289
+ readonly: _vm.readonly || column.readonly,
290
+ disabled: _vm.getDisabled(column),
291
+ dic: _vm.DIC[column.prop]
292
+ }) : _c("FormTemp", _vm._b({
293
+ ref: column.prop,
294
294
  refInFor: !0,
295
295
  attrs: {
296
- column: e,
297
- dic: t.DIC[e.prop],
298
- props: t.parentOption.props,
299
- "props-http": t.parentOption.propsHttp,
300
- disabled: t.getDisabled(e),
301
- readonly: e.readonly || t.readonly,
302
- enter: t.parentOption.enter,
303
- size: e.size || t.controlSize,
304
- "column-slot": t.columnSlot
296
+ column,
297
+ dic: _vm.DIC[column.prop],
298
+ props: _vm.parentOption.props,
299
+ "props-http": _vm.parentOption.propsHttp,
300
+ disabled: _vm.getDisabled(column),
301
+ readonly: column.readonly || _vm.readonly,
302
+ enter: _vm.parentOption.enter,
303
+ size: column.size || _vm.controlSize,
304
+ "column-slot": _vm.columnSlot
305
305
  },
306
306
  on: {
307
- enter: t.submit,
308
- change: function(a) {
309
- return t.propChange(r.column, e);
307
+ enter: _vm.submit,
308
+ change: function($event) {
309
+ return _vm.propChange(item.column, column);
310
310
  }
311
311
  },
312
- scopedSlots: t._u([t._l(t.getSlotName(e, "T", t.$scopedSlots) ? [e] : [], function(a) {
312
+ scopedSlots: _vm._u([_vm._l(_vm.getSlotName(column, "T", _vm.$scopedSlots) ? [column] : [], function(sItem) {
313
313
  return {
314
- key: t.getSlotName(e, "T"),
315
- fn: function(n) {
316
- return [t._t(t.getSlotName(a, "T"), null, null, n)];
314
+ key: _vm.getSlotName(column, "T"),
315
+ fn: function(scope) {
316
+ return [_vm._t(_vm.getSlotName(sItem, "T"), null, null, scope)];
317
317
  }
318
318
  };
319
- }), t._l(t.columnSlot, function(a) {
319
+ }), _vm._l(_vm.columnSlot, function(ssItem) {
320
320
  return {
321
- key: a,
322
- fn: function(n) {
323
- return [t._t(a, null, null, n)];
321
+ key: ssItem,
322
+ fn: function(scope) {
323
+ return [_vm._t(ssItem, null, null, scope)];
324
324
  }
325
325
  };
326
326
  })], null, !0),
327
327
  model: {
328
- value: t.form[e.prop],
329
- callback: function(a) {
330
- t.$set(t.form, e.prop, a);
328
+ value: _vm.form[column.prop],
329
+ callback: function($$v) {
330
+ _vm.$set(_vm.form, column.prop, $$v);
331
331
  },
332
332
  expression: "form[column.prop]"
333
333
  }
334
- }, "FormTemp", t.uploadFun(e), !1))], 2)], 1)], 1) : t._e(), t.vaildDisplay(e) && e.row && e.span !== 24 && e.count ? s("div", {
335
- key: `line${o}`,
334
+ }, "FormTemp", _vm.uploadFun(column), !1))], 2)], 1)], 1) : _vm._e(), _vm.vaildDisplay(column) && column.row && column.span !== 24 && column.count ? _c("div", {
335
+ key: `line${cindex}`,
336
336
  staticClass: "avue-form__line",
337
337
  style: {
338
- width: `${e.count / 24 * 100}%`
338
+ width: `${column.count / 24 * 100}%`
339
339
  }
340
- }) : t._e()];
341
- }), !t.isDetail && !t.isMenu ? s("FyFormMenu", {
342
- scopedSlots: t._u([{
340
+ }) : _vm._e()];
341
+ }), !_vm.isDetail && !_vm.isMenu ? _c("FyFormMenu", {
342
+ scopedSlots: _vm._u([{
343
343
  key: "menuForm",
344
- fn: function(e) {
345
- return [t._t("menuForm", null, null, e)];
344
+ fn: function(scope) {
345
+ return [_vm._t("menuForm", null, null, scope)];
346
346
  }
347
347
  }], null, !0)
348
- }) : t._e()], 2)], 1);
349
- }), !t.isDetail && t.isMenu ? s("FyFormMenu", {
350
- scopedSlots: t._u([{
348
+ }) : _vm._e()], 2)], 1);
349
+ }), !_vm.isDetail && _vm.isMenu ? _c("FyFormMenu", {
350
+ scopedSlots: _vm._u([{
351
351
  key: "menuForm",
352
- fn: function(r) {
353
- return [t._t("menuForm", null, null, r)];
352
+ fn: function(scope) {
353
+ return [_vm._t("menuForm", null, null, scope)];
354
354
  }
355
355
  }], null, !0)
356
- }) : t._e()], 2)], 1)], 1);
357
- }, Q = [];
358
- const X = {
356
+ }) : _vm._e()], 2)], 1)], 1);
357
+ }, staticRenderFns = [];
358
+ const __vue2_script = {
359
359
  name: "FyForm",
360
- mixins: [N],
360
+ mixins: [init],
361
361
  provide() {
362
362
  return {
363
363
  formSafe: this
@@ -401,7 +401,7 @@ const X = {
401
401
  },
402
402
  computed: {
403
403
  columnSlot() {
404
- return Object.keys(this.$scopedSlots).filter((t) => !this.propOption.map((i) => i.prop).includes(t));
404
+ return Object.keys(this.$scopedSlots).filter((item) => !this.propOption.map((ele) => ele.prop).includes(item));
405
405
  },
406
406
  labelSuffix() {
407
407
  return this.parentOption.labelSuffix || ":";
@@ -425,7 +425,7 @@ const X = {
425
425
  return this.boxType === "view";
426
426
  },
427
427
  gutter() {
428
- return _((this.parentOption.gutter || 10) / 2);
428
+ return setPx((this.parentOption.gutter || 10) / 2);
429
429
  },
430
430
  detail() {
431
431
  return this.parentOption.detail;
@@ -443,35 +443,35 @@ const X = {
443
443
  return this.columnOption.length;
444
444
  },
445
445
  dynamicOption() {
446
- const t = [];
447
- return this.propOption.forEach((i) => {
448
- i.type === "dynamic" && this.vaildDisplay(i) && t.push(i);
449
- }), t;
446
+ const list = [];
447
+ return this.propOption.forEach((ele) => {
448
+ ele.type === "dynamic" && this.vaildDisplay(ele) && list.push(ele);
449
+ }), list;
450
450
  },
451
451
  propOption() {
452
- const t = [];
453
- return this.columnOption.forEach((i) => {
454
- i.display !== !1 && i.column.forEach((s) => {
455
- t.push(s);
452
+ const list = [];
453
+ return this.columnOption.forEach((option) => {
454
+ option.display !== !1 && option.column.forEach((column) => {
455
+ list.push(column);
456
456
  });
457
- }), t;
457
+ }), list;
458
458
  },
459
459
  parentOption() {
460
460
  return this.tableOption || {};
461
461
  },
462
462
  columnOption() {
463
- const t = this.tableOption.column || [], i = D(this.tableOption.group) || [], s = this.tableOption.footer || [];
464
- return i.unshift({
463
+ const column = this.tableOption.column || [], group = deepClone(this.tableOption.group) || [], footer = this.tableOption.footer || [];
464
+ return group.unshift({
465
465
  header: !1,
466
- column: t
467
- }), s.length !== 0 && i.push({
466
+ column
467
+ }), footer.length !== 0 && group.push({
468
468
  header: !1,
469
- column: s
470
- }), i.forEach((r) => {
471
- r.column = r.column || [], r.column.forEach((p, e) => {
472
- p.display !== !1 && !this.isMobile && (p = A(p, this.itemSpanDefault, e === 0));
473
- }), r.column = B(r.column), r.column = r.column.sort((p, e) => (e.order || 0) - (p.order || 0));
474
- }), i;
469
+ column: footer
470
+ }), group.forEach((ele) => {
471
+ ele.column = ele.column || [], ele.column.forEach((column2, cindex) => {
472
+ column2.display !== !1 && !this.isMobile && (column2 = calcCount(column2, this.itemSpanDefault, cindex === 0));
473
+ }), ele.column = calcCascader(ele.column), ele.column = ele.column.sort((a, b) => (b.order || 0) - (a.order || 0));
474
+ }), group;
475
475
  },
476
476
  menuPosition: function() {
477
477
  return this.parentOption.menuPosition ? this.parentOption.menuPosition : "center";
@@ -516,8 +516,8 @@ const X = {
516
516
  immediate: !0
517
517
  },
518
518
  allDisabled: {
519
- handler(t) {
520
- this.$emit("update:status", t);
519
+ handler(val) {
520
+ this.$emit("update:status", val);
521
521
  },
522
522
  deep: !0,
523
523
  immediate: !0
@@ -529,116 +529,116 @@ const X = {
529
529
  });
530
530
  },
531
531
  beforeDestroy() {
532
- Object.keys(this.formBind).forEach((t) => {
533
- this.formBind[t].forEach((i) => {
534
- i();
532
+ Object.keys(this.formBind).forEach((ele) => {
533
+ this.formBind[ele].forEach((unWatch) => {
534
+ unWatch();
535
535
  });
536
536
  });
537
537
  },
538
538
  methods: {
539
- setPx: _,
540
- deepClone: D,
541
- getComponent: W,
542
- getPlaceholder: R,
543
- uploadFun: j,
544
- getDisabled(t) {
545
- return this.vaildDetail(t) || this.isDetail || this.vaildDisabled(t) || this.allDisabled;
539
+ setPx,
540
+ deepClone,
541
+ getComponent,
542
+ getPlaceholder,
543
+ uploadFun,
544
+ getDisabled(column) {
545
+ return this.vaildDetail(column) || this.isDetail || this.vaildDisabled(column) || this.allDisabled;
546
546
  },
547
- getSpan(t) {
548
- return t.span || this.parentOption.span || this.itemSpanDefault;
547
+ getSpan(column) {
548
+ return column.span || this.parentOption.span || this.itemSpanDefault;
549
549
  },
550
- isGroupShow(t, i) {
551
- return this.isTabs ? i == this.activeName || i == 0 : !0;
550
+ isGroupShow(item, index) {
551
+ return this.isTabs ? index == this.activeName || index == 0 : !0;
552
552
  },
553
553
  // 初始化表单
554
554
  dataFormat() {
555
- const t = G(this.propOption).tableForm, i = this.value, s = {};
556
- Object.entries(Object.assign(t, i)).forEach((r) => {
557
- const p = r[0], e = r[1];
558
- u(i[p]) ? s[p] = e : s[p] = i[p];
559
- }), this.$set(this, "form", s), this.setLabel(), this.setControl(), this.setVal(), setTimeout(() => {
555
+ const formDefault = formInitVal(this.propOption).tableForm, formValue = this.value, form = {};
556
+ Object.entries(Object.assign(formDefault, formValue)).forEach((ele) => {
557
+ const key = ele[0], value = ele[1];
558
+ isBlank(formValue[key]) ? form[key] = value : form[key] = formValue[key];
559
+ }), this.$set(this, "form", form), this.setLabel(), this.setControl(), this.setVal(), setTimeout(() => {
560
560
  this.formCreate = !0, this.clearValidate();
561
561
  });
562
562
  },
563
563
  setControl() {
564
- this.propOption.forEach((t) => {
565
- const i = t.prop, s = t.bind, r = t.control;
566
- if (!this.formBind[i]) {
567
- const p = [];
568
- if (s) {
569
- const e = this.$watch(`form.${i}`, (a, n) => {
570
- a != n && L(this.form, s, a);
571
- }), o = this.$watch(`form.${s}`, (a, n) => {
572
- a != n && this.$set(this.form, i, a);
564
+ this.propOption.forEach((column) => {
565
+ const prop = column.prop, bind = column.bind, control = column.control;
566
+ if (!this.formBind[prop]) {
567
+ const bindList = [];
568
+ if (bind) {
569
+ const formProp = this.$watch(`form.${prop}`, (n, o) => {
570
+ n != o && setAsVal(this.form, bind, n);
571
+ }), formDeep = this.$watch(`form.${bind}`, (n, o) => {
572
+ n != o && this.$set(this.form, prop, n);
573
573
  });
574
- p.push(e), p.push(o), this.$set(this.form, i, V(this.form, s));
574
+ bindList.push(formProp), bindList.push(formDeep), this.$set(this.form, prop, getAsVal(this.form, bind));
575
575
  }
576
- if (r) {
577
- const e = () => {
578
- const a = r(this.form[t.prop], this.form) || {};
579
- Object.keys(a).forEach((n) => {
580
- const d = Object.assign(this.objectOption[n] || {}, a[n]);
581
- this.$set(this.objectOption, n, d), a[n].dicData && (this.DIC[n] = a[n].dicData);
576
+ if (control) {
577
+ const callback = () => {
578
+ const controlList = control(this.form[column.prop], this.form) || {};
579
+ Object.keys(controlList).forEach((item) => {
580
+ const ele = Object.assign(this.objectOption[item] || {}, controlList[item]);
581
+ this.$set(this.objectOption, item, ele), controlList[item].dicData && (this.DIC[item] = controlList[item].dicData);
582
582
  });
583
- }, o = this.$watch(`form.${i}`, () => {
584
- e();
583
+ }, formControl = this.$watch(`form.${prop}`, () => {
584
+ callback();
585
585
  });
586
- p.push(o), e();
586
+ bindList.push(formControl), callback();
587
587
  }
588
- this.formBind[i] = p;
588
+ this.formBind[prop] = bindList;
589
589
  }
590
590
  });
591
591
  },
592
592
  setForm() {
593
- Object.keys(this.value).forEach((t) => {
594
- this.$set(this.form, t, this.value[t]);
593
+ Object.keys(this.value).forEach((ele) => {
594
+ this.$set(this.form, ele, this.value[ele]);
595
595
  });
596
596
  },
597
597
  setVal() {
598
598
  this.$emit("input", this.form), this.$emit("change", this.form);
599
599
  },
600
600
  setLabel() {
601
- this.tableOption.filterNull === !0 && (this.form = $(this.form, [""], !1)), this.tableOption.filterDic == !0 ? this.form = $(this.form, ["$"], !1) : this.propOption.forEach((t) => {
602
- let i;
603
- const s = this.DIC[t.prop];
604
- u(s) || (i = P(this.form, t, this.tableOption, s), i ? this.$set(this.form, `$${t.prop}`, i) : this.$delete(this.form, `$${t.prop}`));
601
+ this.tableOption.filterNull === !0 && (this.form = filterParams(this.form, [""], !1)), this.tableOption.filterDic == !0 ? this.form = filterParams(this.form, ["$"], !1) : this.propOption.forEach((column) => {
602
+ let result;
603
+ const DIC = this.DIC[column.prop];
604
+ isBlank(DIC) || (result = detail(this.form, column, this.tableOption, DIC), result ? this.$set(this.form, `$${column.prop}`, result) : this.$delete(this.form, `$${column.prop}`));
605
605
  });
606
606
  },
607
- handleGroupClick(t) {
608
- this.$emit("tab-click", t);
607
+ handleGroupClick(activeNames) {
608
+ this.$emit("tab-click", activeNames);
609
609
  },
610
- handleTabClick(t, i) {
611
- this.$emit("tab-click", t, i);
610
+ handleTabClick(tab, event) {
611
+ this.$emit("tab-click", tab, event);
612
612
  },
613
- getLabelWidth(t, i) {
614
- let s;
615
- return u(t.labelWidth) ? u(i.labelWidth) ? s = this.parentOption.labelWidth : s = i.labelWidth : s = t.labelWidth, _(s, this.labelWidth);
613
+ getLabelWidth(column, item) {
614
+ let result;
615
+ return isBlank(column.labelWidth) ? isBlank(item.labelWidth) ? result = this.parentOption.labelWidth : result = item.labelWidth : result = column.labelWidth, setPx(result, this.labelWidth);
616
616
  },
617
617
  // 对部分表单字段进行校验的方法
618
- validateField(t) {
619
- return this.$refs.form.validateField(t);
618
+ validateField(val) {
619
+ return this.$refs.form.validateField(val);
620
620
  },
621
- validTip(t) {
622
- return !t.tip || t.type === "upload";
621
+ validTip(column) {
622
+ return !column.tip || column.type === "upload";
623
623
  },
624
- getPropRef(t) {
625
- return this.$refs[t][0];
624
+ getPropRef(prop) {
625
+ return this.$refs[prop][0];
626
626
  },
627
- handleChange(t, i) {
627
+ handleChange(list, column) {
628
628
  this.$nextTick(() => {
629
- const s = i.cascader, r = s.join(",");
630
- s.forEach((p) => {
631
- const e = p, o = this.form[i.prop], a = this.findObject(t, e);
632
- u(a) || (this.formList.includes(r) && s.forEach((n) => {
633
- this.form[n] = "", this.$set(this.DIC, n, []);
634
- }), !(u(s) || u(o) || u(a)) && H({
635
- column: a,
636
- value: o,
629
+ const cascader = column.cascader, str = cascader.join(",");
630
+ cascader.forEach((item) => {
631
+ const columnNextProp = item, value = this.form[column.prop], columnNext = this.findObject(list, columnNextProp);
632
+ isBlank(columnNext) || (this.formList.includes(str) && cascader.forEach((ele) => {
633
+ this.form[ele] = "", this.$set(this.DIC, ele, []);
634
+ }), !(isBlank(cascader) || isBlank(value) || isBlank(columnNext)) && sendDic({
635
+ column: columnNext,
636
+ value,
637
637
  form: this.form
638
- }).then((n) => {
639
- this.formList.includes(r) || this.formList.push(r);
640
- const d = n || [];
641
- this.$set(this.DIC, e, d), !u(d) && !u(d) && !u(a.cascaderIndex) && u(this.form[e]) && (this.form[e] = d[a.cascaderIndex][(a.props || {}).value || z.value]);
638
+ }).then((res) => {
639
+ this.formList.includes(str) || this.formList.push(str);
640
+ const dic = res || [];
641
+ this.$set(this.DIC, columnNextProp, dic), !isBlank(dic) && !isBlank(dic) && !isBlank(columnNext.cascaderIndex) && isBlank(this.form[columnNextProp]) && (this.form[columnNextProp] = dic[columnNext.cascaderIndex][(columnNext.props || {}).value || DIC_PROPS.value]);
642
642
  }));
643
643
  });
644
644
  });
@@ -646,85 +646,85 @@ const X = {
646
646
  handlePrint() {
647
647
  this.$Print(this.$el);
648
648
  },
649
- propChange(t, i) {
650
- i.cascader && this.handleChange(t, i);
649
+ propChange(option, column) {
650
+ column.cascader && this.handleChange(option, column);
651
651
  },
652
652
  handleMock() {
653
- this.isMock && (this.columnOption.forEach((t) => {
654
- const i = K(t.column, this.DIC, this.form, this.isMock);
655
- u(i) || Object.keys(i).forEach((s) => {
656
- this.form[s] = i[s];
653
+ this.isMock && (this.columnOption.forEach((column) => {
654
+ const form = mock(column.column, this.DIC, this.form, this.isMock);
655
+ isBlank(form) || Object.keys(form).forEach((ele) => {
656
+ this.form[ele] = form[ele];
657
657
  });
658
658
  }), this.$nextTick(() => {
659
659
  this.clearValidate(), this.$emit("mock-change", this.form);
660
660
  }));
661
661
  },
662
- vaildDetail(t) {
663
- let i;
662
+ vaildDetail(column) {
663
+ let key;
664
664
  if (this.detail)
665
665
  return !1;
666
- if (!u(t.detail))
667
- i = "detail";
666
+ if (!isBlank(column.detail))
667
+ key = "detail";
668
668
  else if (this.isAdd)
669
- i = "addDetail";
669
+ key = "addDetail";
670
670
  else if (this.isEdit)
671
- i = "editDetail";
671
+ key = "editDetail";
672
672
  else if (this.isView)
673
673
  return !1;
674
- return i ? t[i] === !0 : !1;
674
+ return key ? column[key] === !0 : !1;
675
675
  },
676
676
  // 验证表单是否禁止
677
- vaildDisabled(t) {
678
- let i;
677
+ vaildDisabled(column) {
678
+ let key;
679
679
  if (this.disabled)
680
680
  return !0;
681
- if (!u(t.disabled))
682
- i = "disabled";
681
+ if (!isBlank(column.disabled))
682
+ key = "disabled";
683
683
  else if (this.isAdd)
684
- i = "addDisabled";
684
+ key = "addDisabled";
685
685
  else if (this.isEdit)
686
- i = "editDisabled";
686
+ key = "editDisabled";
687
687
  else if (this.isView)
688
688
  return !0;
689
- return i ? t[i] === !0 : !1;
689
+ return key ? column[key] === !0 : !1;
690
690
  },
691
691
  // 验证表单是否显隐
692
- vaildDisplay(t) {
693
- let i;
694
- return u(t.display) ? this.isAdd ? i = "addDisplay" : this.isEdit ? i = "editDisplay" : this.isView && (i = "viewDisplay") : i = "display", i ? I(t[i], !0) : !0;
692
+ vaildDisplay(column) {
693
+ let key;
694
+ return isBlank(column.display) ? this.isAdd ? key = "addDisplay" : this.isEdit ? key = "editDisplay" : this.isView && (key = "viewDisplay") : key = "display", key ? optVal(column[key], !0) : !0;
695
695
  },
696
- async clearValidate(t) {
697
- var i;
698
- (i = this.$refs.form) == null || i.clearValidate(t);
696
+ async clearValidate(list) {
697
+ var _a;
698
+ (_a = this.$refs.form) == null || _a.clearValidate(list);
699
699
  },
700
700
  validateCellForm() {
701
- return new Promise((t) => {
702
- this.$refs.form.validate((i, s) => {
703
- t(s);
701
+ return new Promise((resolve) => {
702
+ this.$refs.form.validate((valid, msg) => {
703
+ resolve(msg);
704
704
  });
705
705
  });
706
706
  },
707
- validate(t) {
708
- this.$refs.form.validate((i, s) => {
709
- const r = [], p = [], e = {};
710
- this.dynamicOption.forEach((o) => {
711
- const a = o.children.type === "form";
712
- p.push(o.prop), a ? u(this.$refs[o.prop][0].$refs.temp.$refs.main) || this.$refs[o.prop][0].$refs.temp.$refs.main.forEach((n) => {
713
- r.push(n.validateCellForm());
714
- }) : r.push(this.$refs[o.prop][0].$refs.temp.$refs.main.validateCellForm());
715
- }), Promise.all(r).then((o) => {
716
- o.forEach((n, d) => {
717
- u(n) || (e[p[d]] = n);
707
+ validate(callback) {
708
+ this.$refs.form.validate((valid, msg) => {
709
+ const dynamicList = [], dynamicName = [], dynamicError = {};
710
+ this.dynamicOption.forEach((ele) => {
711
+ const isForm = ele.children.type === "form";
712
+ dynamicName.push(ele.prop), isForm ? isBlank(this.$refs[ele.prop][0].$refs.temp.$refs.main) || this.$refs[ele.prop][0].$refs.temp.$refs.main.forEach((ele2) => {
713
+ dynamicList.push(ele2.validateCellForm());
714
+ }) : dynamicList.push(this.$refs[ele.prop][0].$refs.temp.$refs.main.validateCellForm());
715
+ }), Promise.all(dynamicList).then((res) => {
716
+ res.forEach((error, index) => {
717
+ isBlank(error) || (dynamicError[dynamicName[index]] = error);
718
718
  });
719
- const a = Object.assign(e, s);
720
- u(a) ? (this.show(), t(!0, this.hide)) : t(!1, this.hide, a);
719
+ const result = Object.assign(dynamicError, msg);
720
+ isBlank(result) ? (this.show(), callback(!0, this.hide)) : callback(!1, this.hide, result);
721
721
  });
722
722
  });
723
723
  },
724
- resetForm(t = !0) {
725
- if (t) {
726
- const i = this.propOption.map((s) => s.prop);
727
- this.form = M(this.form, i, (this.tableOption.filterParams || []).concat([this.rowKey]));
724
+ resetForm(reset = !0) {
725
+ if (reset) {
726
+ const propList = this.propOption.map((ele) => ele.prop);
727
+ this.form = clearVal(this.form, propList, (this.tableOption.filterParams || []).concat([this.rowKey]));
728
728
  }
729
729
  this.$nextTick(() => {
730
730
  this.clearValidate(), this.$emit("reset-change");
@@ -740,29 +740,29 @@ const X = {
740
740
  this.allDisabled = !1;
741
741
  },
742
742
  submit() {
743
- this.validate((t, i) => {
744
- t ? this.$emit("submit", $(this.form, ["$"]), this.hide) : this.$emit("error", i);
743
+ this.validate((valid, msg) => {
744
+ valid ? this.$emit("submit", filterParams(this.form, ["$"]), this.hide) : this.$emit("error", msg);
745
745
  });
746
746
  }
747
747
  }
748
- }, S = {};
749
- var Y = /* @__PURE__ */ q(
750
- X,
751
- J,
752
- Q,
748
+ }, __cssModules = {};
749
+ var __component__ = /* @__PURE__ */ normalizeComponent(
750
+ __vue2_script,
751
+ render,
752
+ staticRenderFns,
753
753
  !1,
754
- Z,
754
+ __vue2_injectStyles,
755
755
  null,
756
756
  null,
757
757
  null
758
758
  );
759
- function Z(t) {
760
- for (let i in S)
761
- this[i] = S[i];
759
+ function __vue2_injectStyles(context) {
760
+ for (let o in __cssModules)
761
+ this[o] = __cssModules[o];
762
762
  }
763
- const lt = /* @__PURE__ */ function() {
764
- return Y.exports;
763
+ const FyForm = /* @__PURE__ */ function() {
764
+ return __component__.exports;
765
765
  }();
766
766
  export {
767
- lt as default
767
+ FyForm as default
768
768
  };