@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,62 +1,62 @@
1
- import { p as F } from "../../chunks/packages.1fc9ccba.js";
2
- import { p as S } from "../../chunks/permission.ce5d2121.js";
3
- import { i as _ } from "../../chunks/init.7c58eb34.js";
4
- import { c as d } from "../../chunks/config.46422d7f.js";
5
- import { b as O, t as v, f as L } from "../../chunks/dataformat.65b92bfe.js";
6
- import { k as f, s as k, o as y, d as n } from "../../chunks/util.23fe58fb.js";
7
- import { isBlank as b } from "@web-utils/core";
8
- import { n as E } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
9
- var x = function() {
10
- var e = this, t = e.$createElement, l = e._self._c || t;
11
- return l("div", {
1
+ import { p as packages } from "../../chunks/packages.419bde01.js";
2
+ import { p as permission } from "../../chunks/permission.07c49abf.js";
3
+ import { i as init } from "../../chunks/init.e0133910.js";
4
+ import { c as config } from "../../chunks/config.7dec2bf2.js";
5
+ import { c as calcCascader, t as translate, f as formInitVal } from "../../chunks/dataformat.9cc4428a.js";
6
+ import { D as DIC_PROPS, s as setPx, o as optVal, d as deepClone } from "../../chunks/util.89913643.js";
7
+ import { isBlank } from "@web-utils/core";
8
+ import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.bf552d98.js";
9
+ var render = function() {
10
+ var _vm = this, _h = _vm.$createElement, _c = _vm._self._c || _h;
11
+ return _c("div", {
12
12
  staticClass: "avue-crud avue-crud--card"
13
- }, [e.tableOption.title ? l(e.tableOption.titleSize || "h2", {
13
+ }, [_vm.tableOption.title ? _c(_vm.tableOption.titleSize || "h2", {
14
14
  tag: "Component",
15
- style: e.tableOption.titleStyle
16
- }, [e._v(" " + e._s(e.tableOption.title) + " ")]) : e._e(), l("HeaderSearch", {
15
+ style: _vm.tableOption.titleStyle
16
+ }, [_vm._v(" " + _vm._s(_vm.tableOption.title) + " ")]) : _vm._e(), _c("HeaderSearch", {
17
17
  ref: "headerSearch",
18
- scopedSlots: e._u([{
18
+ scopedSlots: _vm._u([{
19
19
  key: "search",
20
- fn: function(i) {
21
- return [e._t("search", null, null, i)];
20
+ fn: function(scope) {
21
+ return [_vm._t("search", null, null, scope)];
22
22
  }
23
23
  }, {
24
24
  key: "searchMenu",
25
- fn: function(i) {
26
- return [e._t("searchMenu", null, null, i)];
25
+ fn: function(scope) {
26
+ return [_vm._t("searchMenu", null, null, scope)];
27
27
  }
28
- }, e._l(e.searchSlot, function(i) {
28
+ }, _vm._l(_vm.searchSlot, function(item) {
29
29
  return {
30
- key: i,
31
- fn: function(s) {
32
- return [e._t(i, null, null, s)];
30
+ key: item,
31
+ fn: function(scope) {
32
+ return [_vm._t(item, null, null, scope)];
33
33
  }
34
34
  };
35
35
  })], null, !0)
36
- }), e.optVal(e.tableOption.header, !0) ? l("HeaderMenu", {
36
+ }), _vm.optVal(_vm.tableOption.header, !0) ? _c("HeaderMenu", {
37
37
  ref: "headerMenu",
38
- scopedSlots: e._u([{
38
+ scopedSlots: _vm._u([{
39
39
  key: "menuLeft",
40
- fn: function(i) {
41
- return [e._t("menuLeft", null, null, i)];
40
+ fn: function(scope) {
41
+ return [_vm._t("menuLeft", null, null, scope)];
42
42
  }
43
43
  }, {
44
44
  key: "menuRight",
45
- fn: function(i) {
46
- return [e._t("menuRight", null, null, i)];
45
+ fn: function(scope) {
46
+ return [_vm._t("menuRight", null, null, scope)];
47
47
  }
48
48
  }], null, !0)
49
- }) : e._e(), e.optVal(e.tableOption.tip, e.config.tip) && e.tableOption.selection ? l("ElTag", {
49
+ }) : _vm._e(), _vm.optVal(_vm.tableOption.tip, _vm.config.tip) && _vm.tableOption.selection ? _c("ElTag", {
50
50
  staticClass: "avue-crud__tip"
51
- }, [l("span", {
51
+ }, [_c("span", {
52
52
  staticClass: "avue-crud__tip-name"
53
- }, [e._v(" 当前表格已选择 "), l("span", {
53
+ }, [_vm._v(" 当前表格已选择 "), _c("span", {
54
54
  staticClass: "avue-crud__tip-count"
55
- }, [e._v(e._s(e.selectLen))]), e._v(" 项 ")]), e.optVal(e.tableOption.selectClearBtn, e.config.selectClearBtn) && e.tableOption.selection ? l("ElButton", {
55
+ }, [_vm._v(_vm._s(_vm.selectLen))]), _vm._v(" 项 ")]), _vm.optVal(_vm.tableOption.selectClearBtn, _vm.config.selectClearBtn) && _vm.tableOption.selection ? _c("ElButton", {
56
56
  directives: [{
57
57
  name: "permission",
58
58
  rawName: "v-permission",
59
- value: e.getPermission("selectClearBtn"),
59
+ value: _vm.getPermission("selectClearBtn"),
60
60
  expression: "getPermission('selectClearBtn')"
61
61
  }],
62
62
  attrs: {
@@ -64,167 +64,167 @@ var x = function() {
64
64
  size: "small"
65
65
  },
66
66
  on: {
67
- click: e.selectClear
67
+ click: _vm.selectClear
68
68
  }
69
- }, [e._v(" 清 空 ")]) : e._e(), e._t("tip")], 2) : e._e(), e._t("header"), l("ElForm", {
69
+ }, [_vm._v(" 清 空 ")]) : _vm._e(), _vm._t("tip")], 2) : _vm._e(), _vm._t("header"), _c("ElForm", {
70
70
  ref: "cellForm",
71
71
  attrs: {
72
- model: e.cellForm,
72
+ model: _vm.cellForm,
73
73
  "show-message": !1
74
74
  },
75
75
  on: {
76
- validate: e.handleValidate
76
+ validate: _vm.handleValidate
77
77
  }
78
- }, [l("ElTable", {
78
+ }, [_c("ElTable", {
79
79
  directives: [{
80
80
  name: "loading",
81
81
  rawName: "v-loading",
82
- value: e.tableLoading,
82
+ value: _vm.tableLoading,
83
83
  expression: "tableLoading"
84
84
  }],
85
- key: e.reload,
85
+ key: _vm.reload,
86
86
  ref: "table",
87
87
  class: {
88
- "avue-crud--indeterminate": e.optVal(e.tableOption.indeterminate, !1)
88
+ "avue-crud--indeterminate": _vm.optVal(_vm.tableOption.indeterminate, !1)
89
89
  },
90
90
  attrs: {
91
- data: e.cellForm.list,
92
- "row-key": e.rowKey,
93
- size: e.$AVUE.tableSize || e.controlSize,
94
- lazy: e.optVal(e.tableOption.lazy, !1),
95
- load: e.treeLoad,
96
- "tree-props": e.treeProps,
97
- "expand-row-keys": e.tableOption.expandRowKeys,
98
- "default-expand-all": e.tableOption.defaultExpandAll,
99
- "highlight-current-row": e.tableOption.highlightCurrentRow,
100
- "show-summary": e.tableOption.showSummary,
101
- "summary-method": e.tableSummaryMethod,
102
- "span-method": e.tableSpanMethod,
103
- stripe: e.tableOption.stripe,
104
- "show-header": e.tableOption.showHeader,
105
- "default-sort": e.tableOption.defaultSort,
106
- "row-class-name": e.rowClassName,
107
- "cell-class-name": e.cellClassName,
108
- "row-style": e.rowStyle,
109
- "cell-style": e.cellStyle,
110
- fit: e.tableOption.fit,
111
- "header-cell-class-name": e.headerCellClassName,
112
- "max-height": e.isAutoHeight ? e.tableHeight : e.tableOption.maxHeight,
113
- height: e.tableHeight,
114
- width: e.setPx(e.tableOption.width, e.config.width),
115
- border: e.tableOption.border
91
+ data: _vm.cellForm.list,
92
+ "row-key": _vm.rowKey,
93
+ size: _vm.$AVUE.tableSize || _vm.controlSize,
94
+ lazy: _vm.optVal(_vm.tableOption.lazy, !1),
95
+ load: _vm.treeLoad,
96
+ "tree-props": _vm.treeProps,
97
+ "expand-row-keys": _vm.tableOption.expandRowKeys,
98
+ "default-expand-all": _vm.tableOption.defaultExpandAll,
99
+ "highlight-current-row": _vm.tableOption.highlightCurrentRow,
100
+ "show-summary": _vm.tableOption.showSummary,
101
+ "summary-method": _vm.tableSummaryMethod,
102
+ "span-method": _vm.tableSpanMethod,
103
+ stripe: _vm.tableOption.stripe,
104
+ "show-header": _vm.tableOption.showHeader,
105
+ "default-sort": _vm.tableOption.defaultSort,
106
+ "row-class-name": _vm.rowClassName,
107
+ "cell-class-name": _vm.cellClassName,
108
+ "row-style": _vm.rowStyle,
109
+ "cell-style": _vm.cellStyle,
110
+ fit: _vm.tableOption.fit,
111
+ "header-cell-class-name": _vm.headerCellClassName,
112
+ "max-height": _vm.isAutoHeight ? _vm.tableHeight : _vm.tableOption.maxHeight,
113
+ height: _vm.tableHeight,
114
+ width: _vm.setPx(_vm.tableOption.width, _vm.config.width),
115
+ border: _vm.tableOption.border
116
116
  },
117
117
  on: {
118
- "current-change": e.currentRowChange,
119
- "expand-change": e.expandChange,
120
- "header-dragend": e.headerDragend,
121
- "row-click": e.rowClick,
122
- "row-dblclick": e.rowDblclick,
123
- "cell-mouse-enter": e.cellMouseEnter,
124
- "cell-mouse-leave": e.cellMouseLeave,
125
- "cell-click": e.cellClick,
126
- "header-click": e.headerClick,
127
- "row-contextmenu": e.rowContextmenu,
128
- "header-contextmenu": e.headerContextmenu,
129
- "cell-dblclick": e.cellDblclick,
130
- "filter-change": e.filterChange,
131
- "selection-change": e.selectionChange,
132
- select: e.select,
133
- "select-all": e.selectAll,
134
- "sort-change": e.sortChange
135
- },
136
- scopedSlots: e._u([{
118
+ "current-change": _vm.currentRowChange,
119
+ "expand-change": _vm.expandChange,
120
+ "header-dragend": _vm.headerDragend,
121
+ "row-click": _vm.rowClick,
122
+ "row-dblclick": _vm.rowDblclick,
123
+ "cell-mouse-enter": _vm.cellMouseEnter,
124
+ "cell-mouse-leave": _vm.cellMouseLeave,
125
+ "cell-click": _vm.cellClick,
126
+ "header-click": _vm.headerClick,
127
+ "row-contextmenu": _vm.rowContextmenu,
128
+ "header-contextmenu": _vm.headerContextmenu,
129
+ "cell-dblclick": _vm.cellDblclick,
130
+ "filter-change": _vm.filterChange,
131
+ "selection-change": _vm.selectionChange,
132
+ select: _vm.select,
133
+ "select-all": _vm.selectAll,
134
+ "sort-change": _vm.sortChange
135
+ },
136
+ scopedSlots: _vm._u([{
137
137
  key: "empty",
138
138
  fn: function() {
139
- return [e.$slots.empty ? e._t("empty") : l("ElEmpty", {
139
+ return [_vm.$slots.empty ? _vm._t("empty") : _c("ElEmpty", {
140
140
  staticClass: "avue-crud__empty",
141
141
  attrs: {
142
142
  "image-size": 100,
143
- description: e.tableOption.emptyText
143
+ description: _vm.tableOption.emptyText
144
144
  }
145
145
  })];
146
146
  },
147
147
  proxy: !0
148
148
  }], null, !0)
149
- }, [l("Column", {
149
+ }, [_c("Column", {
150
150
  attrs: {
151
- "column-option": e.columnOption
151
+ "column-option": _vm.columnOption
152
152
  },
153
- scopedSlots: e._u([{
153
+ scopedSlots: _vm._u([{
154
154
  key: "header",
155
155
  fn: function() {
156
- return [l("ColumnDefault", {
156
+ return [_c("ColumnDefault", {
157
157
  ref: "columnDefault",
158
- scopedSlots: e._u([{
158
+ scopedSlots: _vm._u([{
159
159
  key: "expand",
160
- fn: function(i) {
161
- var s = i.row, r = i.index;
162
- return [e._t("expand", null, {
163
- row: s,
164
- index: r
160
+ fn: function(_ref) {
161
+ var row = _ref.row, index = _ref.index;
162
+ return [_vm._t("expand", null, {
163
+ row,
164
+ index
165
165
  })];
166
166
  }
167
167
  }], null, !0)
168
168
  })];
169
169
  },
170
170
  proxy: !0
171
- }, e._l(e.mainSlot, function(i) {
171
+ }, _vm._l(_vm.mainSlot, function(item) {
172
172
  return {
173
- key: i,
174
- fn: function(s) {
175
- return [e._t(i, null, null, s)];
173
+ key: item,
174
+ fn: function(scope) {
175
+ return [_vm._t(item, null, null, scope)];
176
176
  }
177
177
  };
178
178
  }), {
179
179
  key: "footer",
180
180
  fn: function() {
181
- return [l("ColumnMenu", {
182
- scopedSlots: e._u([{
181
+ return [_c("ColumnMenu", {
182
+ scopedSlots: _vm._u([{
183
183
  key: "menu",
184
- fn: function(i) {
185
- return [e._t("menu", null, null, i)];
184
+ fn: function(scope) {
185
+ return [_vm._t("menu", null, null, scope)];
186
186
  }
187
187
  }, {
188
188
  key: "menuBtn",
189
- fn: function(i) {
190
- return [e._t("menuBtn", null, null, i)];
189
+ fn: function(scope) {
190
+ return [_vm._t("menuBtn", null, null, scope)];
191
191
  }
192
192
  }], null, !0)
193
193
  })];
194
194
  },
195
195
  proxy: !0
196
196
  }], null, !0)
197
- })], 1)], 1), e._t("footer"), l("TablePage", {
197
+ })], 1)], 1), _vm._t("footer"), _c("TablePage", {
198
198
  ref: "tablePage"
199
- }), l("FyDialogForm", {
199
+ }), _c("FyDialogForm", {
200
200
  ref: "dialogForm",
201
- scopedSlots: e._u([e._l(e.formSlot, function(i) {
201
+ scopedSlots: _vm._u([_vm._l(_vm.formSlot, function(item) {
202
202
  return {
203
- key: i,
204
- fn: function(s) {
205
- return [e._t(i, null, null, s)];
203
+ key: item,
204
+ fn: function(scope) {
205
+ return [_vm._t(item, null, null, scope)];
206
206
  }
207
207
  };
208
208
  }), {
209
209
  key: "menuForm",
210
- fn: function(i) {
211
- return [e._t("menuForm", null, null, i)];
210
+ fn: function(scope) {
211
+ return [_vm._t("menuForm", null, null, scope)];
212
212
  }
213
213
  }], null, !0)
214
- }), l("DialogColumn", {
214
+ }), _c("DialogColumn", {
215
215
  ref: "dialogColumn"
216
- }), l("DialogExcel", {
216
+ }), _c("DialogExcel", {
217
217
  ref: "dialogExcel"
218
- }), l("DialogFilter", {
218
+ }), _c("DialogFilter", {
219
219
  ref: "dialogFilter"
220
220
  })], 2);
221
- }, D = [];
222
- const P = {
221
+ }, staticRenderFns = [];
222
+ const __vue2_script = {
223
223
  name: "FyCurd",
224
224
  directives: {
225
- permission: S
225
+ permission
226
226
  },
227
- mixins: [_],
227
+ mixins: [init],
228
228
  provide() {
229
229
  return {
230
230
  crud: this
@@ -286,7 +286,7 @@ const P = {
286
286
  cellForm: {
287
287
  list: []
288
288
  },
289
- config: d,
289
+ config,
290
290
  list: [],
291
291
  listError: {},
292
292
  tableForm: {},
@@ -316,13 +316,13 @@ const P = {
316
316
  return this.tableOption.columnSort;
317
317
  },
318
318
  rowParentKey() {
319
- return this.option.rowParentKey || f.rowParentKey;
319
+ return this.option.rowParentKey || DIC_PROPS.rowParentKey;
320
320
  },
321
321
  childrenKey() {
322
- return this.treeProps.children || f.children;
322
+ return this.treeProps.children || DIC_PROPS.children;
323
323
  },
324
324
  hasChildrenKey() {
325
- return this.treeProps.hasChildren || f.hasChildren;
325
+ return this.treeProps.hasChildren || DIC_PROPS.hasChildren;
326
326
  },
327
327
  treeProps() {
328
328
  return this.tableOption.treeProps || {};
@@ -337,37 +337,37 @@ const P = {
337
337
  return this.getSlotList(["Search"], this.$scopedSlots, this.propOption);
338
338
  },
339
339
  mainSlot() {
340
- const e = [];
341
- return this.propOption.forEach((t) => {
342
- this.$scopedSlots[t.prop] && e.push(t.prop);
343
- }), this.getSlotList(["Header", "Form"], this.$scopedSlots, this.propOption).concat(e);
340
+ const result = [];
341
+ return this.propOption.forEach((item) => {
342
+ this.$scopedSlots[item.prop] && result.push(item.prop);
343
+ }), this.getSlotList(["Header", "Form"], this.$scopedSlots, this.propOption).concat(result);
344
344
  },
345
345
  calcHeight() {
346
346
  return (this.tableOption.calcHeight || 0) + this.$AVUE.calcHeight;
347
347
  },
348
348
  propOption() {
349
- let e = [];
350
- function t(l = []) {
351
- Array.isArray(l) && l.forEach((i) => {
352
- Array.isArray(i.children) ? t(i.children) : e.push(i);
349
+ let result = [];
350
+ function findProp(list = []) {
351
+ Array.isArray(list) && list.forEach((ele) => {
352
+ Array.isArray(ele.children) ? findProp(ele.children) : result.push(ele);
353
353
  });
354
354
  }
355
- return t(this.columnOption), e = O(e), e;
355
+ return findProp(this.columnOption), result = calcCascader(result), result;
356
356
  },
357
357
  isShowSummary() {
358
358
  return this.option.showSummary;
359
359
  },
360
360
  isHeader() {
361
- let e = !1;
362
- return this.columnOption.forEach((t) => {
363
- t.children && (e = !0);
364
- }), e;
361
+ let flag = !1;
362
+ return this.columnOption.forEach((ele) => {
363
+ ele.children && (flag = !0);
364
+ }), flag;
365
365
  },
366
366
  isTree() {
367
- let e = !1;
368
- return this.data.forEach((t) => {
369
- t.children && (e = !0);
370
- }), e;
367
+ let flag = !1;
368
+ return this.data.forEach((ele) => {
369
+ ele.children && (flag = !0);
370
+ }), flag;
371
371
  },
372
372
  isCard() {
373
373
  return this.option.card ? "always" : "never";
@@ -416,206 +416,206 @@ const P = {
416
416
  this.dataInit(), this.getTableHeight(), this.refreshTable();
417
417
  },
418
418
  methods: {
419
- setPx: k,
420
- optVal: y,
421
- handleValidate(e, t, l) {
422
- this.listError[e] || this.$set(this.listError, e, { valid: !1, msg: "" }), this.listError[e].valid = !t, this.listError[e].msg = l;
419
+ setPx,
420
+ optVal,
421
+ handleValidate(prop, valid, msg) {
422
+ this.listError[prop] || this.$set(this.listError, prop, { valid: !1, msg: "" }), this.listError[prop].valid = !valid, this.listError[prop].msg = msg;
423
423
  },
424
- getPermission(e, t, l) {
425
- return typeof this.permission == "function" ? this.permission(e, t, l) : b(this.permission[e]) ? !0 : this.permission[e];
424
+ getPermission(key, row, index) {
425
+ return typeof this.permission == "function" ? this.permission(key, row, index) : isBlank(this.permission[key]) ? !0 : this.permission[key];
426
426
  },
427
427
  getTableHeight() {
428
428
  this.isAutoHeight ? this.$nextTick(() => {
429
- const e = this.$refs.table, t = this.$refs.tablePage;
430
- if (!e)
429
+ const tableRef = this.$refs.table, tablePageRef = this.$refs.tablePage;
430
+ if (!tableRef)
431
431
  return;
432
- const l = e.$el, i = t.$el.offsetHeight || 20;
433
- this.tableHeight = document.documentElement.clientHeight - l.offsetTop - i - this.calcHeight;
432
+ const tableStyle = tableRef.$el, pageStyle = tablePageRef.$el.offsetHeight || 20;
433
+ this.tableHeight = document.documentElement.clientHeight - tableStyle.offsetTop - pageStyle - this.calcHeight;
434
434
  }) : this.tableHeight = this.tableOption.height;
435
435
  },
436
436
  doLayout() {
437
437
  this.$refs.table.doLayout();
438
438
  },
439
- refreshTable(e) {
439
+ refreshTable(callback) {
440
440
  this.reload = Math.random(), this.$nextTick(() => {
441
- e && e();
441
+ callback && callback();
442
442
  });
443
443
  },
444
444
  // 树懒加载
445
- treeLoad(e, t, l) {
446
- this.$emit("tree-load", e, t, (i) => {
447
- e.children = i, l(i);
445
+ treeLoad(tree, treeNode, resolve) {
446
+ this.$emit("tree-load", tree, treeNode, (data) => {
447
+ tree.children = data, resolve(data);
448
448
  });
449
449
  },
450
- menuIcon(e) {
451
- return y(this.tableOption[`${e}Text`], v(`crud.${e}`));
450
+ menuIcon(value) {
451
+ return optVal(this.tableOption[`${value}Text`], translate(`crud.${value}`));
452
452
  },
453
- getBtnIcon(e) {
454
- const t = `${e}Icon`;
455
- return this.tableOption[t] || d[t];
453
+ getBtnIcon(value) {
454
+ const name = `${value}Icon`;
455
+ return this.tableOption[name] || config[name];
456
456
  },
457
457
  // 对部分表单字段进行校验的方法
458
- validateField(e) {
459
- return this.$refs.dialogForm.$refs.tableForm.validateField(e);
458
+ validateField(val) {
459
+ return this.$refs.dialogForm.$refs.tableForm.validateField(val);
460
460
  },
461
461
  selectClear() {
462
- this.$emit("selection-clear", n(this.tableSelect)), this.$refs.table.clearSelection();
462
+ this.$emit("selection-clear", deepClone(this.tableSelect)), this.$refs.table.clearSelection();
463
463
  },
464
- toggleRowSelection(e, t) {
465
- this.$refs.table.toggleRowSelection(e, t);
464
+ toggleRowSelection(row, selected) {
465
+ this.$refs.table.toggleRowSelection(row, selected);
466
466
  },
467
- toggleRowExpansion(e, t) {
468
- this.$refs.table.toggleRowExpansion(e, t);
467
+ toggleRowExpansion(row, expanded) {
468
+ this.$refs.table.toggleRowExpansion(row, expanded);
469
469
  },
470
- setCurrentRow(e) {
471
- this.$refs.table.setCurrentRow(e);
470
+ setCurrentRow(row) {
471
+ this.$refs.table.setCurrentRow(row);
472
472
  },
473
473
  dataInit() {
474
- this.list = this.data, this.list.forEach((e, t) => {
475
- e.$cellEdit && !this.cascaderFormList[t] && (this.cascaderFormList[t] = n(e)), this.$set(e, "$cellEdit", e.$cellEdit || !1), this.$set(e, "$index", t);
474
+ this.list = this.data, this.list.forEach((ele, index) => {
475
+ ele.$cellEdit && !this.cascaderFormList[index] && (this.cascaderFormList[index] = deepClone(ele)), this.$set(ele, "$cellEdit", ele.$cellEdit || !1), this.$set(ele, "$index", index);
476
476
  });
477
477
  },
478
478
  // 拖动表头事件
479
- headerDragend(e, t, l, i) {
480
- this.objectOption[l.property] && this.$set(this.objectOption[l.property], "width", e), this.$emit("header-dragend", e, t, l, i);
479
+ headerDragend(newWidth, oldWidth, column, event) {
480
+ this.objectOption[column.property] && this.$set(this.objectOption[column.property], "width", newWidth), this.$emit("header-dragend", newWidth, oldWidth, column, event);
481
481
  },
482
- headerSort(e, t) {
483
- const l = this.columnOption, i = l.splice(e, 1)[0];
484
- l.splice(t, 0, i), this.refreshTable();
482
+ headerSort(oldIndex, newIndex) {
483
+ const column = this.columnOption, targetRow = column.splice(oldIndex, 1)[0];
484
+ column.splice(newIndex, 0, targetRow), this.refreshTable();
485
485
  },
486
486
  // 清除过滤器执行函数
487
- clearFilter(e) {
488
- this.$refs.table.clearFilter(e);
487
+ clearFilter(name) {
488
+ this.$refs.table.clearFilter(name);
489
489
  },
490
490
  // 展开或则关闭
491
- expandChange(e, t) {
492
- this.$emit("expand-change", e, t);
491
+ expandChange(row, expand) {
492
+ this.$emit("expand-change", row, expand);
493
493
  },
494
494
  // 设置单选
495
- currentRowChange(e, t) {
496
- this.$emit("current-row-change", e, t);
495
+ currentRowChange(currentRow, oldCurrentRow) {
496
+ this.$emit("current-row-change", currentRow, oldCurrentRow);
497
497
  },
498
498
  // 刷新事件
499
499
  refreshChange() {
500
500
  this.$emit("refresh-change");
501
501
  },
502
502
  // 选中实例
503
- toggleSelection(e) {
504
- e ? e.forEach((t) => {
505
- this.$refs.table.toggleRowSelection(t);
503
+ toggleSelection(rows) {
504
+ rows ? rows.forEach((row) => {
505
+ this.$refs.table.toggleRowSelection(row);
506
506
  }) : this.$refs.table.clearSelection();
507
507
  },
508
508
  // 选择回调
509
- selectionChange(e) {
510
- this.tableSelect = e, this.$emit("selection-change", this.tableSelect);
509
+ selectionChange(val) {
510
+ this.tableSelect = val, this.$emit("selection-change", this.tableSelect);
511
511
  },
512
512
  // 单个选择回调
513
- select(e, t) {
514
- this.$emit("select", e, t);
513
+ select(selection, row) {
514
+ this.$emit("select", selection, row);
515
515
  },
516
516
  // 点击勾选全选 Checkbox
517
- selectAll(e) {
518
- this.$emit("select-all", e);
517
+ selectAll(selection) {
518
+ this.$emit("select-all", selection);
519
519
  },
520
520
  // 筛选回调用
521
- filterChange(e) {
522
- this.$emit("filter-change", e);
521
+ filterChange(filters) {
522
+ this.$emit("filter-change", filters);
523
523
  },
524
524
  // 排序回调
525
- sortChange(e) {
526
- this.$emit("sort-change", e);
525
+ sortChange(val) {
526
+ this.$emit("sort-change", val);
527
527
  },
528
528
  // 行双击
529
- rowDblclick(e, t) {
530
- this.$emit("row-dblclick", e, t);
529
+ rowDblclick(row, event) {
530
+ this.$emit("row-dblclick", row, event);
531
531
  },
532
532
  // 行单机
533
- rowClick(e, t, l) {
534
- this.$emit("row-click", e, t, l);
533
+ rowClick(row, event, column) {
534
+ this.$emit("row-click", row, event, column);
535
535
  },
536
536
  // 清空排序
537
537
  clearSort() {
538
538
  this.$refs.table.clearSort();
539
539
  },
540
540
  // 当单元格 hover 进入时会触发该事件
541
- cellMouseEnter(e, t, l, i) {
542
- this.$emit("cell-mouse-enter", e, t, l, i);
541
+ cellMouseEnter(row, column, cell, event) {
542
+ this.$emit("cell-mouse-enter", row, column, cell, event);
543
543
  },
544
544
  // 当单元格 hover 退出时会触发该事件
545
- cellMouseLeave(e, t, l, i) {
546
- this.$emit("cell-mouse-leave", e, t, l, i);
545
+ cellMouseLeave(row, column, cell, event) {
546
+ this.$emit("cell-mouse-leave", row, column, cell, event);
547
547
  },
548
548
  // 当某个单元格被点击时会触发该事件
549
- cellClick(e, t, l, i) {
550
- this.$emit("cell-click", e, t, l, i);
549
+ cellClick(row, column, cell, event) {
550
+ this.$emit("cell-click", row, column, cell, event);
551
551
  },
552
552
  // 当某一列的表头被点击时会触发该事件
553
- headerClick(e, t) {
554
- this.$emit("header-click", e, t);
553
+ headerClick(column, event) {
554
+ this.$emit("header-click", column, event);
555
555
  },
556
556
  // 当某一行被鼠标右键点击时会触发该事件
557
- rowContextmenu(e, t, l) {
558
- this.$emit("row-contextmenu", e, t, l);
557
+ rowContextmenu(row, column, event) {
558
+ this.$emit("row-contextmenu", row, column, event);
559
559
  },
560
560
  // 当某一列的表头被鼠标右键点击时触发该事件
561
- headerContextmenu(e, t) {
562
- this.$emit("header-contextmenu", e, t);
561
+ headerContextmenu(column, event) {
562
+ this.$emit("header-contextmenu", column, event);
563
563
  },
564
564
  // 当某个单元格被双击击时会触发该事件
565
- cellDblclick(e, t, l, i) {
566
- this.$emit("cell-dblclick", e, t, l, i);
565
+ cellDblclick(row, column, cell, event) {
566
+ this.$emit("cell-dblclick", row, column, cell, event);
567
567
  },
568
568
  // 单元格新增
569
- rowCellAdd(e = {}) {
570
- const t = this.list.length, l = L(this.propOption).tableForm;
571
- e = n(
569
+ rowCellAdd(row = {}) {
570
+ const len = this.list.length, formDefault = formInitVal(this.propOption).tableForm;
571
+ row = deepClone(
572
572
  Object.assign(
573
573
  {
574
574
  $cellEdit: !0,
575
- $index: t
575
+ $index: len
576
576
  },
577
- l,
578
- e
577
+ formDefault,
578
+ row
579
579
  )
580
- ), this.list.push(e);
580
+ ), this.list.push(row);
581
581
  },
582
582
  // 行取消
583
- rowCancel(e, t) {
584
- b(e[this.rowKey]) ? (this.list.splice(t, 1), delete this.cascaderDIC[t]) : (this.cascaderFormList[t].$cellEdit = !1, this.$set(this.cascaderDIC, t, this.cascaderDicList[t]), this.$set(this.list, t, this.cascaderFormList[t])), delete this.cascaderDicList[t], delete this.cascaderFormList[t], this.cascaderIndexList.splice(this.cascaderIndexList.indexOf(t), 1);
583
+ rowCancel(row, index) {
584
+ isBlank(row[this.rowKey]) ? (this.list.splice(index, 1), delete this.cascaderDIC[index]) : (this.cascaderFormList[index].$cellEdit = !1, this.$set(this.cascaderDIC, index, this.cascaderDicList[index]), this.$set(this.list, index, this.cascaderFormList[index])), delete this.cascaderDicList[index], delete this.cascaderFormList[index], this.cascaderIndexList.splice(this.cascaderIndexList.indexOf(index), 1);
585
585
  },
586
586
  // 行编辑点击
587
- rowCell(e, t) {
588
- e.$cellEdit ? this.rowCellUpdate(e, t) : this.rowCellEdit(e, t);
589
- },
590
- rowCellUpdate(e, t) {
591
- e = n(e);
592
- const l = this.validateCellField(t), i = () => {
593
- this.btnDisabledList[t] = !1, this.btnDisabled = !1, this.list[t].$cellEdit = !1, this.cascaderIndexList.splice(this.cascaderIndexList.indexOf(t), 1), delete this.cascaderFormList[t];
594
- }, s = () => {
595
- this.btnDisabledList[t] = !1, this.btnDisabled = !1;
587
+ rowCell(row, index) {
588
+ row.$cellEdit ? this.rowCellUpdate(row, index) : this.rowCellEdit(row, index);
589
+ },
590
+ rowCellUpdate(row, index) {
591
+ row = deepClone(row);
592
+ const result = this.validateCellField(index), done = () => {
593
+ this.btnDisabledList[index] = !1, this.btnDisabled = !1, this.list[index].$cellEdit = !1, this.cascaderIndexList.splice(this.cascaderIndexList.indexOf(index), 1), delete this.cascaderFormList[index];
594
+ }, loading = () => {
595
+ this.btnDisabledList[index] = !1, this.btnDisabled = !1;
596
596
  };
597
- l && (this.btnDisabledList[t] = !0, this.btnDisabled = !0, b(e[this.rowKey]) ? this.$emit("row-save", e, i, s) : this.$emit("row-update", e, t, i, s));
597
+ result && (this.btnDisabledList[index] = !0, this.btnDisabled = !0, isBlank(row[this.rowKey]) ? this.$emit("row-save", row, done, loading) : this.$emit("row-update", row, index, done, loading));
598
598
  },
599
599
  // 单元格编辑
600
- rowCellEdit(e, t) {
601
- e.$cellEdit = !0, this.cascaderFormList[t] = n(e), this.cascaderDicList[t] = n(this.cascaderDIC[t]);
600
+ rowCellEdit(row, index) {
601
+ row.$cellEdit = !0, this.cascaderFormList[index] = deepClone(row), this.cascaderDicList[index] = deepClone(this.cascaderDIC[index]);
602
602
  },
603
603
  // 对部分表单字段进行校验
604
604
  validateCellForm() {
605
- return new Promise((e) => {
606
- this.$refs.cellForm.validate((t, l) => {
607
- e(l);
605
+ return new Promise((resolve) => {
606
+ this.$refs.cellForm.validate((valid, msg) => {
607
+ resolve(msg);
608
608
  });
609
609
  });
610
610
  },
611
- validateCellField(e) {
612
- let t = !0;
613
- for (const l of this.$refs.cellForm.fields)
614
- if (l.prop.split(".")[1] == e && this.$refs.cellForm.validateField(l.prop, (i) => {
615
- i && (t = !1);
616
- }), !t)
611
+ validateCellField(index) {
612
+ let result = !0;
613
+ for (const item of this.$refs.cellForm.fields)
614
+ if (item.prop.split(".")[1] == index && this.$refs.cellForm.validateField(item.prop, (error) => {
615
+ error && (result = !1);
616
+ }), !result)
617
617
  break;
618
- return t;
618
+ return result;
619
619
  },
620
620
  rowAdd() {
621
621
  this.$refs.dialogForm.show("add");
@@ -629,123 +629,123 @@ const P = {
629
629
  closeDialog() {
630
630
  return this.$refs.dialogForm.closeDialog();
631
631
  },
632
- getPropRef(e) {
633
- return this.$refs.dialogForm.$refs.tableForm.getPropRef(e);
632
+ getPropRef(prop) {
633
+ return this.$refs.dialogForm.$refs.tableForm.getPropRef(prop);
634
634
  },
635
635
  setVal() {
636
636
  this.$emit("input", this.tableForm), this.$emit("change", this.tableForm);
637
637
  },
638
638
  // 编辑
639
- rowEdit(e, t) {
640
- this.tableForm = n(e), this.tableIndex = t, this.setVal(), this.$refs.dialogForm.show("edit");
639
+ rowEdit(row, index) {
640
+ this.tableForm = deepClone(row), this.tableIndex = index, this.setVal(), this.$refs.dialogForm.show("edit");
641
641
  },
642
642
  // 复制
643
- rowCopy(e) {
644
- this.tableForm = n(e), delete this.tableForm[this.rowKey], this.tableIndex = -1, this.setVal(), this.$refs.dialogForm.show("add");
643
+ rowCopy(row) {
644
+ this.tableForm = deepClone(row), delete this.tableForm[this.rowKey], this.tableIndex = -1, this.setVal(), this.$refs.dialogForm.show("add");
645
645
  },
646
646
  // 查看
647
- rowView(e, t) {
648
- this.tableForm = n(e), this.tableIndex = t, this.setVal(), this.$refs.dialogForm.show("view");
647
+ rowView(row, index) {
648
+ this.tableForm = deepClone(row), this.tableIndex = index, this.setVal(), this.$refs.dialogForm.show("view");
649
649
  },
650
650
  // 删除
651
- rowDel(e, t) {
652
- this.$emit("row-del", e, t, () => {
653
- const { parentList: l, index: i } = this.findData(e[this.rowKey]);
654
- l && l.splice(i, 1);
651
+ rowDel(row, index) {
652
+ this.$emit("row-del", row, index, () => {
653
+ const { parentList, index: index2 } = this.findData(row[this.rowKey]);
654
+ parentList && parentList.splice(index2, 1);
655
655
  });
656
656
  },
657
657
  // 合并行
658
- tableSpanMethod(e) {
658
+ tableSpanMethod(param) {
659
659
  if (typeof this.spanMethod == "function")
660
- return this.spanMethod(e);
660
+ return this.spanMethod(param);
661
661
  },
662
662
  // 合集统计逻辑
663
- tableSummaryMethod(e) {
664
- const t = {};
663
+ tableSummaryMethod(param) {
664
+ const sumsList = {};
665
665
  if (typeof this.summaryMethod == "function")
666
- return this.summaryMethod(e);
667
- const { columns: l, data: i } = e, s = [];
668
- return l.length > 0 && l.forEach((r, a) => {
669
- const h = this.sumColumnList.find((u) => u.name === r.property);
670
- if (h) {
671
- const u = h.decimals || 2, m = h.label || "";
672
- switch (h.type) {
666
+ return this.summaryMethod(param);
667
+ const { columns, data } = param, sums = [];
668
+ return columns.length > 0 && columns.forEach((column, index) => {
669
+ const currItem = this.sumColumnList.find((item) => item.name === column.property);
670
+ if (currItem) {
671
+ const decimals = currItem.decimals || 2, label = currItem.label || "";
672
+ switch (currItem.type) {
673
673
  case "count":
674
- s[a] = m + i.length;
674
+ sums[index] = label + data.length;
675
675
  break;
676
676
  case "avg":
677
- const C = i.map((o) => Number(o[r.property]));
678
- let g = 1;
679
- s[a] = C.reduce((o, c) => {
680
- const p = Number(c);
681
- return isNaN(p) ? o : (o * (g - 1) + c) / g++;
682
- }, 0), s[a] = m + s[a].toFixed(u);
677
+ const avgValues = data.map((item) => Number(item[column.property]));
678
+ let nowindex = 1;
679
+ sums[index] = avgValues.reduce((perv, curr) => {
680
+ const value = Number(curr);
681
+ return isNaN(value) ? perv : (perv * (nowindex - 1) + curr) / nowindex++;
682
+ }, 0), sums[index] = label + sums[index].toFixed(decimals);
683
683
  break;
684
684
  case "sum":
685
- const $ = i.map((o) => Number(o[r.property]));
686
- s[a] = $.reduce((o, c) => {
687
- const p = Number(c);
688
- return isNaN(p) ? o : o + c;
689
- }, 0), s[a] = m + s[a].toFixed(u);
685
+ const values = data.map((item) => Number(item[column.property]));
686
+ sums[index] = values.reduce((perv, curr) => {
687
+ const value = Number(curr);
688
+ return isNaN(value) ? perv : perv + curr;
689
+ }, 0), sums[index] = label + sums[index].toFixed(decimals);
690
690
  break;
691
691
  }
692
- t[r.property] = s[a];
692
+ sumsList[column.property] = sums[index];
693
693
  } else
694
- s[a] = "";
695
- }), this.sumsList = t, s;
694
+ sums[index] = "";
695
+ }), this.sumsList = sumsList, sums;
696
696
  },
697
- tableDrop(e, t, l) {
697
+ tableDrop(type, el, callback) {
698
698
  if (this.isSortable !== !0) {
699
- if (e === "row" && !this.isRowSort)
699
+ if (type === "row" && !this.isRowSort)
700
700
  return;
701
- if (e === "column" && !this.isColumnSort)
701
+ if (type === "column" && !this.isColumnSort)
702
702
  return;
703
703
  }
704
704
  if (!window.Sortable) {
705
- F.logs("Sortable");
705
+ packages.logs("Sortable");
706
706
  return;
707
707
  }
708
- window.Sortable.create(t, {
709
- ghostClass: d.ghostClass,
710
- chosenClass: d.ghostClass,
708
+ window.Sortable.create(el, {
709
+ ghostClass: config.ghostClass,
710
+ chosenClass: config.ghostClass,
711
711
  animation: 500,
712
712
  delay: 0,
713
- onEnd: (i) => l(i)
713
+ onEnd: (evt) => callback(evt)
714
714
  });
715
715
  },
716
- findData(e) {
717
- let t = {};
718
- const l = (i, s) => {
719
- i.forEach((r, a) => {
720
- r[this.rowKey] === e && (t = {
721
- item: r,
722
- index: a,
723
- parentList: i,
724
- parent: s
725
- }), r[this.childrenKey] && l(r[this.childrenKey], r);
716
+ findData(id) {
717
+ let result = {};
718
+ const callback = (parentList, parent) => {
719
+ parentList.forEach((ele, index) => {
720
+ ele[this.rowKey] === id && (result = {
721
+ item: ele,
722
+ index,
723
+ parentList,
724
+ parent
725
+ }), ele[this.childrenKey] && callback(ele[this.childrenKey], ele);
726
726
  });
727
727
  };
728
- return l(this.list), t;
728
+ return callback(this.list), result;
729
729
  }
730
730
  }
731
- }, w = {};
732
- var H = /* @__PURE__ */ E(
733
- P,
734
- x,
735
- D,
731
+ }, __cssModules = {};
732
+ var __component__ = /* @__PURE__ */ normalizeComponent(
733
+ __vue2_script,
734
+ render,
735
+ staticRenderFns,
736
736
  !1,
737
- M,
737
+ __vue2_injectStyles,
738
738
  null,
739
739
  null,
740
740
  null
741
741
  );
742
- function M(e) {
743
- for (let t in w)
744
- this[t] = w[t];
742
+ function __vue2_injectStyles(context) {
743
+ for (let o in __cssModules)
744
+ this[o] = __cssModules[o];
745
745
  }
746
- const j = /* @__PURE__ */ function() {
747
- return H.exports;
746
+ const FyCurd = /* @__PURE__ */ function() {
747
+ return __component__.exports;
748
748
  }();
749
749
  export {
750
- j as default
750
+ FyCurd as default
751
751
  };