@web-utils/component 2.7.20 → 2.7.22

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 (290) hide show
  1. package/dist/chunks/{config.46422d7f.js → config.7dec2bf2.js} +2 -2
  2. package/dist/chunks/confirmable-mixin.35bd1934.js +104 -0
  3. package/dist/chunks/dataformat.9cc4428a.js +158 -0
  4. package/dist/chunks/dayjs.ed2e1b73.js +247 -0
  5. package/dist/chunks/detail.d47a021c.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.760cd65d.js} +6 -6
  9. package/dist/chunks/form-item-mixin.fa314b67.js +139 -0
  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.9d568df9.js +81 -0
  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.77ec6792.js +32 -0
  22. package/dist/components/address-input/index.js +36 -36
  23. package/dist/components/affix/index.js +39 -39
  24. package/dist/components/aside-menu/index.js +29 -29
  25. package/dist/components/avatar/index.js +43 -43
  26. package/dist/components/awesome-button/index.js +64 -34
  27. package/dist/components/base.css +1 -1
  28. package/dist/components/capsule-tab/index.js +26 -26
  29. package/dist/components/card/index.js +49 -49
  30. package/dist/components/carousel/index.js +35 -35
  31. package/dist/components/chat/index.js +203 -203
  32. package/dist/components/chunk-file-uploader/index.js +46 -46
  33. package/dist/components/chunk-file-uploader-button/index.js +22 -22
  34. package/dist/components/chunk-file-uploader-drop/index.js +47 -29
  35. package/dist/components/chunk-file-uploader-file/index.js +119 -119
  36. package/dist/components/chunk-file-uploader-files/index.js +27 -27
  37. package/dist/components/chunk-file-uploader-list/index.js +27 -27
  38. package/dist/components/chunk-file-uploader-un-support/index.js +27 -27
  39. package/dist/components/code-mirror-editor/index.js +136 -136
  40. package/dist/components/color-picker/index.js +57 -39
  41. package/dist/components/column/index.js +66 -66
  42. package/dist/components/column-default/index.js +54 -54
  43. package/dist/components/column-dynamic/index.js +54 -54
  44. package/dist/components/column-menu/index.js +128 -128
  45. package/dist/components/column-slot/index.js +168 -168
  46. package/dist/components/comment/index.js +33 -33
  47. package/dist/components/confirm-button/index.js +18 -18
  48. package/dist/components/confirmable/index.js +17 -17
  49. package/dist/components/context-menu/index.js +89 -89
  50. package/dist/components/count-up/index.js +50 -39
  51. package/dist/components/custom-scrollbar/index.js +62 -49
  52. package/dist/components/data-box/index.js +41 -41
  53. package/dist/components/data-card/index.js +38 -38
  54. package/dist/components/data-cardtext/index.js +33 -33
  55. package/dist/components/data-display/index.js +37 -37
  56. package/dist/components/data-icons/index.js +40 -40
  57. package/dist/components/data-imgtext/index.js +44 -44
  58. package/dist/components/data-operatext/index.js +44 -44
  59. package/dist/components/data-panel/index.js +38 -38
  60. package/dist/components/data-pay/index.js +60 -60
  61. package/dist/components/data-price/index.js +38 -38
  62. package/dist/components/data-progress/index.js +39 -39
  63. package/dist/components/data-rotate/index.js +39 -39
  64. package/dist/components/data-table-picker/index.js +151 -53
  65. package/dist/components/data-tabs/index.js +39 -39
  66. package/dist/components/data-tabs/style.css +1 -1
  67. package/dist/components/dialog-column/index.js +50 -50
  68. package/dist/components/dialog-excel/index.js +68 -68
  69. package/dist/components/dialog-filter/index.js +84 -84
  70. package/dist/components/dialog-form/index.js +89 -89
  71. package/dist/components/dynamic-table/index.js +71 -71
  72. package/dist/components/e-charts/index.js +95 -94
  73. package/dist/components/easy-popup/index.js +87 -0
  74. package/dist/components/easy-popup/style.css +1 -0
  75. package/dist/components/editable-progress/index.js +48 -48
  76. package/dist/components/editable-tree/index.js +701 -348
  77. package/dist/components/egd-collapse/index.js +29 -29
  78. package/dist/components/egd-collapse-item/index.js +51 -51
  79. package/dist/components/element-dialog/index.js +74 -65
  80. package/dist/components/empty-view/index.js +26 -26
  81. package/dist/components/error-view/index.js +25 -25
  82. package/dist/components/flex-column/index.js +31 -19
  83. package/dist/components/flex-item/index.js +32 -20
  84. package/dist/components/flex-row/index.js +31 -19
  85. package/dist/components/flex-scroller/index.js +24 -24
  86. package/dist/components/flex-scroller/style.css +1 -1
  87. package/dist/components/flow/index.js +100 -100
  88. package/dist/components/flow-node/index.js +37 -37
  89. package/dist/components/flow-viewer/index.js +162 -0
  90. package/dist/components/flow-viewer/style.css +1 -0
  91. package/dist/components/form-button/index.js +32 -32
  92. package/dist/components/form-cascader/index.js +73 -61
  93. package/dist/components/form-checkbox-group/index.js +72 -61
  94. package/dist/components/form-date-picker/index.js +71 -62
  95. package/dist/components/form-group/index.js +38 -38
  96. package/dist/components/form-holder/index.js +50 -32
  97. package/dist/components/form-input/index.js +61 -50
  98. package/dist/components/form-input-email/index.js +55 -44
  99. package/dist/components/form-input-id-card/index.js +60 -49
  100. package/dist/components/form-input-number/index.js +60 -49
  101. package/dist/components/form-input-phone-number/index.js +56 -45
  102. package/dist/components/form-input-time/index.js +59 -48
  103. package/dist/components/form-item/index.js +107 -79
  104. package/dist/components/form-item-config-provider/index.js +19 -19
  105. package/dist/components/form-item-group/index.js +65 -65
  106. package/dist/components/form-radio-group/index.js +72 -61
  107. package/dist/components/form-select/index.js +63 -52
  108. package/dist/components/form-switch/index.js +56 -45
  109. package/dist/components/form-temp/index.js +50 -50
  110. package/dist/components/form-textarea/index.js +55 -44
  111. package/dist/components/form-view/index.js +172 -149
  112. package/dist/components/fy-array/index.js +64 -64
  113. package/dist/components/fy-article/index.js +34 -34
  114. package/dist/components/fy-cascader/index.js +52 -52
  115. package/dist/components/fy-checkbox/index.js +52 -52
  116. package/dist/components/fy-code/index.js +30 -30
  117. package/dist/components/fy-curd/index.js +317 -317
  118. package/dist/components/fy-date/index.js +45 -45
  119. package/dist/components/fy-dialog-form/index.js +115 -115
  120. package/dist/components/fy-draggable/index.js +120 -120
  121. package/dist/components/fy-draggable/style.css +1 -1
  122. package/dist/components/fy-dynamic/index.js +126 -126
  123. package/dist/components/fy-empty/index.js +26 -26
  124. package/dist/components/fy-form/index.js +384 -366
  125. package/dist/components/fy-form-design/index.js +6956 -459
  126. package/dist/components/fy-form-design/style.css +1 -1
  127. package/dist/components/fy-form-menu/index.js +45 -45
  128. package/dist/components/fy-input/index.js +61 -61
  129. package/dist/components/fy-input-color/index.js +41 -41
  130. package/dist/components/fy-input-icon/index.js +70 -70
  131. package/dist/components/fy-input-map/index.js +102 -102
  132. package/dist/components/fy-input-number/index.js +39 -39
  133. package/dist/components/fy-input-table/index.js +70 -70
  134. package/dist/components/fy-input-tree/index.js +105 -105
  135. package/dist/components/fy-progress/index.js +25 -25
  136. package/dist/components/fy-radio/index.js +36 -36
  137. package/dist/components/fy-rate/index.js +40 -40
  138. package/dist/components/fy-select/index.js +101 -101
  139. package/dist/components/fy-slider/index.js +42 -42
  140. package/dist/components/fy-switch/index.js +37 -37
  141. package/dist/components/fy-tabs/index.js +35 -35
  142. package/dist/components/fy-time/index.js +47 -47
  143. package/dist/components/fy-title/index.js +23 -23
  144. package/dist/components/fy-tree/index.js +157 -157
  145. package/dist/components/fy-u-editor/index.js +138 -105
  146. package/dist/components/fy-upload/index.js +270 -270
  147. package/dist/components/guide-steps/index.js +41 -41
  148. package/dist/components/header-menu/index.js +94 -94
  149. package/dist/components/header-search/index.js +121 -121
  150. package/dist/components/highlight-j-s/index.js +76 -0
  151. package/dist/components/highlight-j-s/style.css +1 -0
  152. package/dist/components/icon-card/index.js +28 -28
  153. package/dist/components/icon-temp/index.js +24 -24
  154. package/dist/components/iframe-window/index.js +24 -24
  155. package/dist/components/iframe-window/style.css +1 -1
  156. package/dist/components/image-cropper/index.js +128 -119
  157. package/dist/components/image-preview/index.js +140 -130
  158. package/dist/components/image-viewer/index.js +35 -35
  159. package/dist/components/input-number/index.js +116 -116
  160. package/dist/components/input-number-range/index.js +37 -37
  161. package/dist/components/j-s-x-component/index.js +4 -4
  162. package/dist/components/keep-view-alive/index.js +71 -71
  163. package/dist/components/keyboard/index.js +182 -182
  164. package/dist/components/keyboard/style.css +1 -1
  165. package/dist/components/license/index.js +54 -54
  166. package/dist/components/loading-view/index.js +25 -25
  167. package/dist/components/login/index.js +94 -94
  168. package/dist/components/name-avatar/index.js +26 -26
  169. package/dist/components/nav-bar/index.js +22 -22
  170. package/dist/components/not-implement/index.js +22 -22
  171. package/dist/components/notice/index.js +55 -55
  172. package/dist/components/page/index.js +20 -20
  173. package/dist/components/page-header/index.js +28 -28
  174. package/dist/components/page-index/index.js +86 -62
  175. package/dist/components/page-index-top/index.js +73 -51
  176. package/dist/components/page-skeleton/index.js +28 -28
  177. package/dist/components/page-skeleton-new/index.js +38 -38
  178. package/dist/components/pageable-table/index.js +206 -161
  179. package/dist/components/pageable-table/style.css +1 -1
  180. package/dist/components/pageable-view/index.js +169 -124
  181. package/dist/components/pageable-view/style.css +1 -1
  182. package/dist/components/photo-swipe/index.js +88 -66
  183. package/dist/components/process-designer/index.js +4668 -0
  184. package/dist/components/process-designer/style.css +1 -0
  185. package/dist/components/properties-panel/index.js +4791 -0
  186. package/dist/components/properties-panel/style.css +1 -0
  187. package/dist/components/queue/index.js +24 -24
  188. package/dist/components/record-video/index.js +55 -55
  189. package/dist/components/resize-observer/index.js +26 -26
  190. package/dist/components/search/index.js +64 -64
  191. package/dist/components/search-popover/index.js +119 -99
  192. package/dist/components/sign/index.js +66 -66
  193. package/dist/components/sign-panel/index.js +78 -78
  194. package/dist/components/sign-panel/style.css +1 -1
  195. package/dist/components/skeleton/index.js +35 -35
  196. package/dist/components/split-pane/index.js +108 -90
  197. package/dist/components/stateful/index.js +29 -29
  198. package/dist/components/static-pageable-table/index.js +30 -30
  199. package/dist/components/swiper/index.js +93 -73
  200. package/dist/components/tab/index.js +47 -47
  201. package/dist/components/tab-item/index.js +29 -29
  202. package/dist/components/table-column/index.js +37 -27
  203. package/dist/components/table-page/index.js +51 -51
  204. package/dist/components/table-view/index.js +175 -148
  205. package/dist/components/tag-render/index.js +50 -39
  206. package/dist/components/text-ellipsis/index.js +40 -40
  207. package/dist/components/tinymce-editor/index.js +85 -67
  208. package/dist/components/tinymce-wrapper/index.js +88 -78
  209. package/dist/components/toolbar/index.js +52 -52
  210. package/dist/components/toolbar-button/index.js +56 -38
  211. package/dist/components/trigger/index.js +27 -27
  212. package/dist/components/verify/index.js +33 -33
  213. package/dist/components/vue-tags-input/index.js +137 -137
  214. package/dist/components/watermark/index.js +37 -27
  215. package/dist/components/watermark/style.css +1 -1
  216. package/dist/index.css +1983 -228
  217. package/dist/index.es.js +23132 -12684
  218. package/package.json +18 -6
  219. package/web-types.json +307 -1
  220. package/dist/chunks/AfdColumn.vue_vue_type_template_lang.768f2ed2.js +0 -302
  221. package/dist/chunks/ConfigArray.vue_vue_type_template_lang.66483daa.js +0 -51
  222. package/dist/chunks/ConfigColor.vue_vue_type_template_lang.cd880091.js +0 -24
  223. package/dist/chunks/ConfigCustom.vue_vue_type_template_lang.6e03d7fd.js +0 -52
  224. package/dist/chunks/ConfigDate.vue_vue_type_template_lang.116fbad4.js +0 -104
  225. package/dist/chunks/ConfigDynamic.vue_vue_type_template_lang.99082e47.js +0 -133
  226. package/dist/chunks/ConfigEvent.vue_vue_type_template_lang.5e8ed6cc.js +0 -96
  227. package/dist/chunks/ConfigGroup.vue_vue_type_template_lang.44117322.js +0 -48
  228. package/dist/chunks/ConfigInput.vue_vue_type_template_lang.cc1eb052.js +0 -96
  229. package/dist/chunks/ConfigMap.vue_vue_type_template_lang.daee4d38.js +0 -31
  230. package/dist/chunks/ConfigNumber.vue_vue_type_template_lang.d60231d7.js +0 -130
  231. package/dist/chunks/ConfigRate.vue_vue_type_style_index_0_scoped_true_lang.cf5d437d.js +0 -125
  232. package/dist/chunks/ConfigSelect.vue_vue_type_template_lang.dfc91f07.js +0 -488
  233. package/dist/chunks/ConfigSlider.vue_vue_type_template_lang.27b8cc7b.js +0 -99
  234. package/dist/chunks/ConfigSwitch.vue_vue_type_style_index_0_scoped_true_lang.4caf1bd0.js +0 -54
  235. package/dist/chunks/ConfigTable.vue_vue_type_template_lang.b27540fd.js +0 -344
  236. package/dist/chunks/ConfigTextarea.vue_vue_type_template_lang.5cddf41c.js +0 -88
  237. package/dist/chunks/ConfigTitle.vue_vue_type_template_lang.57d9deb5.js +0 -87
  238. package/dist/chunks/ConfigTree.vue_vue_type_style_index_0_scoped_true_lang.89ec5376.js +0 -465
  239. package/dist/chunks/ConfigUEditor.vue_vue_type_template_lang.9726b4f5.js +0 -240
  240. package/dist/chunks/ConfigUpload.vue_vue_type_template_lang.129c0ced.js +0 -476
  241. package/dist/chunks/FormConfig.vue_vue_type_template_lang.82463ce5.js +0 -220
  242. package/dist/chunks/WidgetConfig.vue_vue_type_template_lang.3cc74fe8.js +0 -1821
  243. package/dist/chunks/WidgetForm.vue_vue_type_template_lang.d4b05679.js +0 -247
  244. package/dist/chunks/WidgetFormGroup.vue_vue_type_template_lang.bdcb6d37.js +0 -271
  245. package/dist/chunks/WidgetFormItem.vue_vue_type_template_lang.48d55a5c.js +0 -24
  246. package/dist/chunks/WidgetFormTable.vue_vue_type_template_lang.e2b788ba.js +0 -229
  247. package/dist/chunks/confirmable-mixin.3a79781b.js +0 -75
  248. package/dist/chunks/dataformat.65b92bfe.js +0 -158
  249. package/dist/chunks/detail.d67573b1.js +0 -28
  250. package/dist/chunks/dic.70feb9b4.js +0 -135
  251. package/dist/chunks/form-item-mixin.79f6eaff.js +0 -128
  252. package/dist/chunks/init.7c58eb34.js +0 -122
  253. package/dist/chunks/monaco.cefcb9f5.js +0 -290
  254. package/dist/chunks/permission.ce5d2121.js +0 -16
  255. package/dist/chunks/slot.4b391395.js +0 -27
  256. package/dist/chunks/tab-mixin.8c0142e0.js +0 -81
  257. package/dist/chunks/util.23fe58fb.js +0 -261
  258. package/dist/chunks/utils.97652d86.js +0 -26
  259. package/dist/chunks/utils.fa73de78.js +0 -185
  260. package/dist/chunks/vueComponentNormalizer.71e2aa87.js +0 -32
  261. package/dist/components/afd-column/index.js +0 -57
  262. package/dist/components/config-array/index.js +0 -28
  263. package/dist/components/config-color/index.js +0 -28
  264. package/dist/components/config-custom/index.js +0 -62
  265. package/dist/components/config-date/index.js +0 -28
  266. package/dist/components/config-dynamic/index.js +0 -28
  267. package/dist/components/config-event/index.js +0 -74
  268. package/dist/components/config-group/index.js +0 -36
  269. package/dist/components/config-input/index.js +0 -29
  270. package/dist/components/config-map/index.js +0 -28
  271. package/dist/components/config-number/index.js +0 -28
  272. package/dist/components/config-rate/index.js +0 -71
  273. package/dist/components/config-rate/style.css +0 -1
  274. package/dist/components/config-select/index.js +0 -90
  275. package/dist/components/config-slider/index.js +0 -28
  276. package/dist/components/config-switch/index.js +0 -33
  277. package/dist/components/config-switch/style.css +0 -1
  278. package/dist/components/config-table/index.js +0 -122
  279. package/dist/components/config-textarea/index.js +0 -28
  280. package/dist/components/config-title/index.js +0 -33
  281. package/dist/components/config-tree/index.js +0 -122
  282. package/dist/components/config-tree/style.css +0 -1
  283. package/dist/components/config-u-editor/index.js +0 -34
  284. package/dist/components/config-upload/index.js +0 -58
  285. package/dist/components/form-config/index.js +0 -28
  286. package/dist/components/widget-config/index.js +0 -110
  287. package/dist/components/widget-form/index.js +0 -71
  288. package/dist/components/widget-form-group/index.js +0 -96
  289. package/dist/components/widget-form-item/index.js +0 -71
  290. package/dist/components/widget-form-table/index.js +0 -95
@@ -1,49 +1,49 @@
1
- import { c as u } from "../../chunks/config.46422d7f.js";
2
- import { o as n } from "../../chunks/util.23fe58fb.js";
3
- import { n as g } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
4
- var l = function() {
5
- var e = this, t = e.$createElement, i = e._self._c || t;
6
- return e.pageFlag && e.optVal(e.crud.tableOption.page, !0) ? i("ElCard", {
1
+ import { c as config } from "../../chunks/config.7dec2bf2.js";
2
+ import { o as optVal } from "../../chunks/util.89913643.js";
3
+ import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.77ec6792.js";
4
+ var render = function() {
5
+ var _vm = this, _h = _vm.$createElement, _c = _vm._self._c || _h;
6
+ return _vm.pageFlag && _vm.optVal(_vm.crud.tableOption.page, !0) ? _c("ElCard", {
7
7
  staticClass: "avue-pagination",
8
8
  attrs: {
9
- shadow: e.crud.isCard
9
+ shadow: _vm.crud.isCard
10
10
  }
11
- }, [e._t("page"), i("ElPagination", {
11
+ }, [_vm._t("page"), _c("ElPagination", {
12
12
  staticStyle: {
13
13
  "margin-top": "25px"
14
14
  },
15
15
  attrs: {
16
- small: e.crud.size === "mini",
17
- disabled: e.defaultPage.disabled,
18
- "hide-on-single-page": e.defaultPage.single,
19
- "pager-count": e.defaultPage.pagerCount,
20
- "current-page": e.defaultPage.currentPage,
21
- background: e.defaultPage.background,
22
- "page-size": e.defaultPage.pageSize,
23
- "page-sizes": e.defaultPage.pageSizes,
24
- layout: e.defaultPage.layout,
25
- total: e.defaultPage.total
16
+ small: _vm.crud.size === "mini",
17
+ disabled: _vm.defaultPage.disabled,
18
+ "hide-on-single-page": _vm.defaultPage.single,
19
+ "pager-count": _vm.defaultPage.pagerCount,
20
+ "current-page": _vm.defaultPage.currentPage,
21
+ background: _vm.defaultPage.background,
22
+ "page-size": _vm.defaultPage.pageSize,
23
+ "page-sizes": _vm.defaultPage.pageSizes,
24
+ layout: _vm.defaultPage.layout,
25
+ total: _vm.defaultPage.total
26
26
  },
27
27
  on: {
28
- "update:currentPage": function(a) {
29
- return e.$set(e.defaultPage, "currentPage", a);
28
+ "update:currentPage": function($event) {
29
+ return _vm.$set(_vm.defaultPage, "currentPage", $event);
30
30
  },
31
- "update:current-page": function(a) {
32
- return e.$set(e.defaultPage, "currentPage", a);
31
+ "update:current-page": function($event) {
32
+ return _vm.$set(_vm.defaultPage, "currentPage", $event);
33
33
  },
34
- "size-change": e.sizeChange,
35
- "prev-click": e.prevClick,
36
- "next-click": e.nextClick,
37
- "current-change": e.currentChange
34
+ "size-change": _vm.sizeChange,
35
+ "prev-click": _vm.prevClick,
36
+ "next-click": _vm.nextClick,
37
+ "current-change": _vm.currentChange
38
38
  }
39
- })], 2) : e._e();
40
- }, s = [];
41
- const c = {
39
+ })], 2) : _vm._e();
40
+ }, staticRenderFns = [];
41
+ const __vue2_script = {
42
42
  name: "TablePage",
43
43
  inject: ["crud"],
44
44
  data() {
45
45
  return {
46
- config: u,
46
+ config,
47
47
  defaultPage: {
48
48
  single: !1,
49
49
  total: 0,
@@ -85,7 +85,7 @@ const c = {
85
85
  this.crud.isMobile && (this.defaultPage.layout = "total, sizes, prev, pager, next"), this.pageInit(), this.crud.$emit("on-load", this.defaultPage);
86
86
  },
87
87
  methods: {
88
- optVal: n,
88
+ optVal,
89
89
  pageInit() {
90
90
  this.defaultPage = Object.assign(this.defaultPage, this.crud.page), this.updateValue();
91
91
  },
@@ -93,40 +93,40 @@ const c = {
93
93
  this.crud.$emit("update:page", this.defaultPage);
94
94
  },
95
95
  // 下一页事件
96
- nextClick(e) {
97
- this.crud.$emit("next-click", e);
96
+ nextClick(val) {
97
+ this.crud.$emit("next-click", val);
98
98
  },
99
99
  // 上一页事件
100
- prevClick(e) {
101
- this.crud.$emit("prev-click", e);
100
+ prevClick(val) {
101
+ this.crud.$emit("prev-click", val);
102
102
  },
103
103
  // 页大小回调
104
- sizeChange(e) {
105
- this.defaultPage.currentPage = 1, this.defaultPage.pageSize = e, this.updateValue(), this.crud.$emit("on-load", this.defaultPage), this.crud.$emit("size-change", e);
104
+ sizeChange(val) {
105
+ this.defaultPage.currentPage = 1, this.defaultPage.pageSize = val, this.updateValue(), this.crud.$emit("on-load", this.defaultPage), this.crud.$emit("size-change", val);
106
106
  },
107
107
  // 页码回调
108
- currentChange(e) {
109
- this.updateValue(), this.crud.$emit("on-load", this.defaultPage), this.crud.$emit("current-change", e);
108
+ currentChange(val) {
109
+ this.updateValue(), this.crud.$emit("on-load", this.defaultPage), this.crud.$emit("current-change", val);
110
110
  }
111
111
  }
112
- }, r = {};
113
- var d = /* @__PURE__ */ g(
114
- c,
115
- l,
116
- s,
112
+ }, __cssModules = {};
113
+ var __component__ = /* @__PURE__ */ normalizeComponent(
114
+ __vue2_script,
115
+ render,
116
+ staticRenderFns,
117
117
  !1,
118
- o,
118
+ __vue2_injectStyles,
119
119
  null,
120
120
  null,
121
121
  null
122
122
  );
123
- function o(e) {
124
- for (let t in r)
125
- this[t] = r[t];
123
+ function __vue2_injectStyles(context) {
124
+ for (let o in __cssModules)
125
+ this[o] = __cssModules[o];
126
126
  }
127
- const P = /* @__PURE__ */ function() {
128
- return d.exports;
127
+ const TablePage = /* @__PURE__ */ function() {
128
+ return __component__.exports;
129
129
  }();
130
130
  export {
131
- P as default
131
+ TablePage as default
132
132
  };
@@ -1,161 +1,178 @@
1
- import { isString as o, isArray as d, trace as n, warning as f, merge as i, toStringArray as p, isFunction as u, hasOwn as c } from "@web-utils/core";
2
- import { k as b } from "../../chunks/utils.fa73de78.js";
3
- import { n as m } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
4
- var _ = function() {
5
- var e = this, r = e.$createElement, t = e._self._c || r;
6
- return t("div", {
1
+ var __async = (__this, __arguments, generator) => new Promise((resolve, reject) => {
2
+ var fulfilled = (value) => {
3
+ try {
4
+ step(generator.next(value));
5
+ } catch (e) {
6
+ reject(e);
7
+ }
8
+ }, rejected = (value) => {
9
+ try {
10
+ step(generator.throw(value));
11
+ } catch (e) {
12
+ reject(e);
13
+ }
14
+ }, step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
15
+ step((generator = generator.apply(__this, __arguments)).next());
16
+ });
17
+ import { merge } from "@web-utils/integrations/lodash";
18
+ import { isString, isArray, trace, warning, toStringArray, isFunction, hasOwn } from "@web-utils/core";
19
+ import { k as fillPath } from "../../chunks/utils.d7f73f8d.js";
20
+ import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.77ec6792.js";
21
+ var render = function() {
22
+ var _vm = this, _h = _vm.$createElement, _c = _vm._self._c || _h;
23
+ return _c("div", {
7
24
  staticClass: "table-view"
8
- }, [t("Toolbar", e._g(e._b({
25
+ }, [_c("Toolbar", _vm._g(_vm._b({
9
26
  on: {
10
- search: e.toggleSearch,
11
- del: e.del,
12
- create: e.create,
13
- reload: e.reloadTable,
14
- imp: function(s) {
15
- e.importDialogVisible = !0;
27
+ search: _vm.toggleSearch,
28
+ del: _vm.del,
29
+ create: _vm.create,
30
+ reload: _vm.reloadTable,
31
+ imp: function($event) {
32
+ _vm.importDialogVisible = !0;
16
33
  }
17
34
  },
18
- scopedSlots: e._u([{
35
+ scopedSlots: _vm._u([{
19
36
  key: "default",
20
37
  fn: function() {
21
- return [e._t("toolbar-button")];
38
+ return [_vm._t("toolbar-button")];
22
39
  },
23
40
  proxy: !0
24
- }, e._l(e.buttonSlots, function(s) {
41
+ }, _vm._l(_vm.buttonSlots, function(item) {
25
42
  return {
26
- key: s,
43
+ key: item,
27
44
  fn: function() {
28
- return [e._t(s)];
45
+ return [_vm._t(item)];
29
46
  },
30
47
  proxy: !0
31
48
  };
32
49
  })], null, !0)
33
- }, "Toolbar", e.toolbarProps, !1), e.toolbarListeners)), t("div", {
50
+ }, "Toolbar", _vm.toolbarProps, !1), _vm.toolbarListeners)), _c("div", {
34
51
  staticClass: "table-view-content-wrapper"
35
- }, [t("div", {
52
+ }, [_c("div", {
36
53
  staticClass: "table-view-content"
37
- }, [e.treeProps.show ? t("div", {
54
+ }, [_vm.treeProps.show ? _c("div", {
38
55
  ref: "treeScroller",
39
56
  staticClass: "table-view-sidebar",
40
57
  on: {
41
- scroll: e.onTreeScroll
58
+ scroll: _vm.onTreeScroll
42
59
  }
43
- }, [t("div", {
60
+ }, [_c("div", {
44
61
  staticStyle: {
45
62
  "font-size": "16px"
46
63
  }
47
- }, [e._v(" 视图导航 ")]), t("EditableTree", e._g(e._b({
64
+ }, [_vm._v(" 视图导航 ")]), _c("EditableTree", _vm._g(_vm._b({
48
65
  ref: "tree",
49
66
  attrs: {
50
67
  readonly: ""
51
68
  },
52
- scopedSlots: e._u([{
69
+ scopedSlots: _vm._u([{
53
70
  key: "default",
54
- fn: function(s) {
55
- var l = s.node, a = s.data;
56
- return [e._t("tree-node", function() {
57
- return [t("span", [t("i", {
71
+ fn: function(_ref) {
72
+ var node = _ref.node, data = _ref.data;
73
+ return [_vm._t("tree-node", function() {
74
+ return [_c("span", [_c("i", {
58
75
  staticClass: "node-icon",
59
- class: l.childNodes.length > 0 ? l.expanded ? "el-icon-folder-opened" : "el-icon-folder" : "el-icon-tickets"
60
- }), e._t("tree-label", function() {
61
- return [e._v(e._s(l.label))];
76
+ class: node.childNodes.length > 0 ? node.expanded ? "el-icon-folder-opened" : "el-icon-folder" : "el-icon-tickets"
77
+ }), _vm._t("tree-label", function() {
78
+ return [_vm._v(_vm._s(node.label))];
62
79
  }, {
63
- node: l,
64
- data: a
80
+ node,
81
+ data
65
82
  })], 2)];
66
83
  }, {
67
- node: l,
68
- data: a
84
+ node,
85
+ data
69
86
  })];
70
87
  }
71
88
  }], null, !0)
72
- }, "EditableTree", e.treeProps, !1), e.treeListeners))], 1) : e._e(), t("div", {
89
+ }, "EditableTree", _vm.treeProps, !1), _vm.treeListeners))], 1) : _vm._e(), _c("div", {
73
90
  staticClass: "table-view-table"
74
- }, [t("PageableTable", e._g(e._b({
91
+ }, [_c("PageableTable", _vm._g(_vm._b({
75
92
  ref: "table",
76
93
  class: [{
77
- "border-top": e.borderTop,
78
- "border-bottom": e.borderBottom,
79
- "border-left": e.borderLeft || e.treeAttrs && e.treeAttrs.show,
80
- "border-right": e.borderRight
94
+ "border-top": _vm.borderTop,
95
+ "border-bottom": _vm.borderBottom,
96
+ "border-left": _vm.borderLeft || _vm.treeAttrs && _vm.treeAttrs.show,
97
+ "border-right": _vm.borderRight
81
98
  }],
82
99
  attrs: {
83
- border: e.border
100
+ border: _vm.border
84
101
  },
85
102
  on: {
86
- "row-dblclick": e.rowDbClick,
87
- "selection-change": e.onSelectionChange
103
+ "row-dblclick": _vm.rowDbClick,
104
+ "selection-change": _vm.onSelectionChange
88
105
  }
89
- }, "PageableTable", e.tableProps, !1), e.tableListeners), [e._t("columns")], 2)], 1)]), e.toolbarProps.searchable ? t("div", {
106
+ }, "PageableTable", _vm.tableProps, !1), _vm.tableListeners), [_vm._t("columns")], 2)], 1)]), _vm.toolbarProps.searchable ? _c("div", {
90
107
  staticClass: "slide-panel",
91
108
  style: {
92
- right: `${e.right}px`,
93
- width: `${e.searchPanelProps.width}px`
109
+ right: `${_vm.right}px`,
110
+ width: `${_vm.searchPanelProps.width}px`
94
111
  }
95
- }, [e._m(0), t("div", {
112
+ }, [_vm._m(0), _c("div", {
96
113
  staticClass: "slide-panel-content"
97
- }, [t("ElForm", {
114
+ }, [_c("ElForm", {
98
115
  ref: "form",
99
116
  attrs: {
100
117
  "label-position": "right",
101
- model: e.searchModel || e.searchPanelProps.model,
118
+ model: _vm.searchModel || _vm.searchPanelProps.model,
102
119
  size: "mini",
103
- "label-width": e.labelWidth
120
+ "label-width": _vm.labelWidth
104
121
  },
105
122
  nativeOn: {
106
- "!submit": function(s) {
107
- return s.preventDefault(), e.onSearchClick.apply(null, arguments);
123
+ "!submit": function($event) {
124
+ return $event.preventDefault(), _vm.onSearchClick.apply(null, arguments);
108
125
  }
109
126
  }
110
- }, [t("FormItemConfigProvider", {
127
+ }, [_c("FormItemConfigProvider", {
111
128
  attrs: {
112
129
  block: "",
113
130
  "wrap-col": !1
114
131
  }
115
- }, [t("ElRow", {
132
+ }, [_c("ElRow", {
116
133
  attrs: {
117
134
  gutter: 0
118
135
  }
119
- }, [e._t("search-form", function() {
120
- return [t("p", [e._v("请添加搜索条件!")])];
121
- })], 2)], 1), t("ElFormItem", {
136
+ }, [_vm._t("search-form", function() {
137
+ return [_c("p", [_vm._v("请添加搜索条件!")])];
138
+ })], 2)], 1), _c("ElFormItem", {
122
139
  attrs: {
123
140
  "label-width": "0"
124
141
  }
125
- }, [t("div", {
142
+ }, [_c("div", {
126
143
  staticClass: "slide-panel-actions"
127
- }, [t("ElButton", {
144
+ }, [_c("ElButton", {
128
145
  attrs: {
129
146
  type: "primary",
130
147
  "native-type": "submit",
131
148
  size: "mini"
132
149
  }
133
- }, [e._v(" 开始搜索 ")]), t("ElButton", {
150
+ }, [_vm._v(" 开始搜索 ")]), _c("ElButton", {
134
151
  attrs: {
135
152
  size: "mini"
136
153
  },
137
154
  on: {
138
- click: e.onClearClick
155
+ click: _vm.onClearClick
139
156
  }
140
- }, [e._v(" 清除条件 ")])], 1)])], 1)], 1)]) : e._e()]), e._t("default")], 2);
141
- }, g = [function() {
142
- var e = this, r = e.$createElement, t = e._self._c || r;
143
- return t("div", {
157
+ }, [_vm._v(" 清除条件 ")])], 1)])], 1)], 1)]) : _vm._e()]), _vm._t("default")], 2);
158
+ }, staticRenderFns = [function() {
159
+ var _vm = this, _h = _vm.$createElement, _c = _vm._self._c || _h;
160
+ return _c("div", {
144
161
  staticClass: "slide-panel-line"
145
- }, [t("div", {
162
+ }, [_c("div", {
146
163
  staticClass: "slide-panel-line-indicator"
147
164
  })]);
148
165
  }];
149
- const w = ["back", "create", "save", "withdraw", "edit", "submit", "publish", "agree", "disagree", "reject", "finish", "cancel", "enable", "exp", "imp", "del", "disabled", "reload", "slot"], v = {
166
+ const builtInButtons = ["back", "create", "save", "withdraw", "edit", "submit", "publish", "agree", "disagree", "reject", "finish", "cancel", "enable", "exp", "imp", "del", "disabled", "reload", "slot"], __vue2_script = {
150
167
  name: "TableView",
151
168
  bus: {
152
- reloadTableView(e, r) {
169
+ reloadTableView(viewId, tree) {
153
170
  if (this._viewIds)
154
- if (o(e) || d(e)) {
155
- let t = e;
156
- o(t) && (t = t.split(",")), this._viewIds.some((s) => t.includes(s)) && (r ? this.$refs.tree && (n.call(this.$parent || {}, "reloadTree"), this.refreshTree()) : (n.call(this.$parent || {}, "reloadTable"), this.reloadTable()));
171
+ if (isString(viewId) || isArray(viewId)) {
172
+ let viewIds = viewId;
173
+ isString(viewIds) && (viewIds = viewIds.split(",")), this._viewIds.some((value) => viewIds.includes(value)) && (tree ? this.$refs.tree && (trace.call(this.$parent || {}, "reloadTree"), this.refreshTree()) : (trace.call(this.$parent || {}, "reloadTable"), this.reloadTable()));
157
174
  } else
158
- f.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
175
+ warning.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
159
176
  }
160
177
  },
161
178
  props: {
@@ -214,29 +231,29 @@ const w = ["back", "create", "save", "withdraw", "edit", "submit", "publish", "a
214
231
  }
215
232
  },
216
233
  data() {
217
- var e;
234
+ var _a;
218
235
  return {
219
236
  importDialogVisible: !1,
220
- right: -(((e = this.searchPanelAttrs) == null ? void 0 : e.width) || 350),
237
+ right: -(((_a = this.searchPanelAttrs) == null ? void 0 : _a.width) || 350),
221
238
  selectedRows: []
222
239
  };
223
240
  },
224
241
  computed: {
225
242
  buttonSlots() {
226
- return w.filter((e) => this.$scopedSlots[e]);
243
+ return builtInButtons.filter((value) => this.$scopedSlots[value]);
227
244
  },
228
245
  toolbarProps() {
229
- var s, l;
230
- const e = {}, r = i(this.toolbarAttrs, e);
231
- let t = (r == null ? void 0 : r.buttons) || this.$parent.buttons;
232
- return t = t || [], t.includes("reload") || (t = [...t, "reload"]), r.buttons = t, r.buttons = p(r.buttons), r.searchable = !!((l = (s = this.$scopedSlots)["search-form"]) != null && l.call(s)), r;
246
+ var _a, _b;
247
+ const defaultProps = {}, toolbarAttrs = merge(this.toolbarAttrs, defaultProps);
248
+ let buttons = (toolbarAttrs == null ? void 0 : toolbarAttrs.buttons) || this.$parent.buttons;
249
+ return buttons = buttons || [], buttons.includes("reload") || (buttons = [...buttons, "reload"]), toolbarAttrs.buttons = buttons, toolbarAttrs.buttons = toStringArray(toolbarAttrs.buttons), toolbarAttrs.searchable = !!((_b = (_a = this.$scopedSlots)["search-form"]) != null && _b.call(_a)), toolbarAttrs;
233
250
  },
234
251
  treeProps() {
235
- const e = {
252
+ const defaultProps = {
236
253
  treeProps: {
237
254
  children: "children",
238
255
  label: "label",
239
- isLeaf: (r) => c(r, "hasChildren") ? !r.hasChildren : c(r, "hasChild") ? !r.hasChild : !0
256
+ isLeaf: (data) => hasOwn(data, "hasChildren") ? !data.hasChildren : hasOwn(data, "hasChild") ? !data.hasChild : !0
240
257
  },
241
258
  show: !1,
242
259
  lazy: !0,
@@ -245,30 +262,32 @@ const w = ["back", "create", "save", "withdraw", "edit", "submit", "publish", "a
245
262
  "expand-first-node": !1,
246
263
  "default-expand-all": !1
247
264
  };
248
- return i(this.treeAttrs, e);
265
+ return merge(this.treeAttrs, defaultProps);
249
266
  },
250
267
  tableProps() {
251
- const e = this.tableAttrs.api || this.$parent.getPage, r = {
268
+ const api = this.tableAttrs.api || this.$parent.getPage, defaultProps = {
252
269
  model: this.searchModel || {},
253
270
  height: "auto",
254
271
  "highlight-current-row": !0,
255
- api: e
272
+ api
256
273
  };
257
- return i(this.tableAttrs, r);
274
+ return merge(this.tableAttrs, defaultProps);
258
275
  },
259
276
  searchPanelProps() {
260
- const e = {
277
+ const defaultProps = {
261
278
  width: 350,
262
279
  model: this.searchModel || {}
263
280
  };
264
- return i(this.searchPanelAttrs, e);
281
+ return merge(this.searchPanelAttrs, defaultProps);
265
282
  }
266
283
  },
267
284
  created() {
268
285
  this._viewIds = [], this.viewId && this._viewIds.push(this.viewId), this._viewIds.includes(this.$parent.$options.name) || this._viewIds.push(this.$parent.$options.name);
269
286
  },
270
- async activated() {
271
- this.$refs.treeScroller && (this.treeScrollTop && (this.$refs.treeScroller.scrollTop = this.treeScrollTop), this.treeScrollLeft && (this.$refs.treeScroller.scrollLeft = this.treeScrollLeft));
287
+ activated() {
288
+ return __async(this, null, function* () {
289
+ this.$refs.treeScroller && (this.treeScrollTop && (this.$refs.treeScroller.scrollTop = this.treeScrollTop), this.treeScrollLeft && (this.$refs.treeScroller.scrollLeft = this.treeScrollLeft));
290
+ });
272
291
  },
273
292
  methods: {
274
293
  onTreeScroll() {
@@ -277,61 +296,69 @@ const w = ["back", "create", "save", "withdraw", "edit", "submit", "publish", "a
277
296
  toggleSearch() {
278
297
  this.right = this.right === 0 ? -this.searchPanelProps.width : 0;
279
298
  },
280
- async onSearchClick() {
281
- this.$refs.table.setModel(this.searchModel || this.searchPanelProps.model), await this.refreshTable();
299
+ onSearchClick() {
300
+ return __async(this, null, function* () {
301
+ this.$refs.table.setModel(this.searchModel || this.searchPanelProps.model), yield this.refreshTable();
302
+ });
282
303
  },
283
- async onClearClick() {
284
- this.$emit("reset"), this.$refs.form.resetFields(), this.$refs.table.setModel(this.searchModel || this.searchPanelProps.model), await this.refreshTable();
304
+ onClearClick() {
305
+ return __async(this, null, function* () {
306
+ this.$emit("reset"), this.$refs.form.resetFields(), this.$refs.table.setModel(this.searchModel || this.searchPanelProps.model), yield this.refreshTable();
307
+ });
285
308
  },
286
- openFrom(e) {
287
- this.$router.push(b(this.formPath, e));
309
+ openFrom(row) {
310
+ this.$router.push(fillPath(this.formPath, row));
288
311
  },
289
- rowDbClick(e) {
290
- var r;
291
- !((r = this.tableListeners) != null && r["row-dblclick"]) && this.formPath && this.openFrom(e);
312
+ rowDbClick(row) {
313
+ var _a;
314
+ !((_a = this.tableListeners) != null && _a["row-dblclick"]) && this.formPath && this.openFrom(row);
292
315
  },
293
- onSelectionChange(e) {
294
- this.selectedRows = e;
316
+ onSelectionChange(rows) {
317
+ this.selectedRows = rows;
295
318
  },
296
319
  create() {
297
- var e;
298
- !((e = this.toolbarListeners) != null && e.create) && this.formPath && this.openFrom();
299
- },
300
- async del() {
301
- var r;
302
- const e = this.deleteApi || this.$parent.del;
303
- if (!((r = this.toolbarListeners) != null && r.del) && u(e)) {
304
- if (!this.selectedRows.length) {
305
- this.$message.warning("请选择要删除的记录!");
306
- return;
307
- }
308
- await this.$confirm(
309
- `您确定要删除选中的[<span class="break-word" style="color: orange">${this.selectedRows.length}</span>]行记录吗?`,
310
- "系统提示",
311
- {
312
- type: "warning",
313
- modal: !0,
314
- dangerouslyUseHTMLString: !0,
315
- closeOnClickModal: !1,
316
- beforeClose: async (t, s, l) => {
317
- if (t === "confirm")
318
- try {
319
- s.confirmButtonLoading = !0, s.confirmButtonText = "删除...", await e.call(this, this.selectedRows.map((a) => a.id).join(",")), this.$message.success("删除成功"), await this.reloadTable(), await this.refreshTree();
320
- } catch {
321
- }
322
- l();
323
- }
320
+ var _a;
321
+ !((_a = this.toolbarListeners) != null && _a.create) && this.formPath && this.openFrom();
322
+ },
323
+ del() {
324
+ return __async(this, null, function* () {
325
+ var _a;
326
+ const api = this.deleteApi || this.$parent.del;
327
+ if (!((_a = this.toolbarListeners) != null && _a.del) && isFunction(api)) {
328
+ if (!this.selectedRows.length) {
329
+ this.$message.warning("请选择要删除的记录!");
330
+ return;
324
331
  }
325
- ).catch((t) => t);
326
- }
332
+ yield this.$confirm(
333
+ `您确定要删除选中的[<span class="break-word" style="color: orange">${this.selectedRows.length}</span>]行记录吗?`,
334
+ "系统提示",
335
+ {
336
+ type: "warning",
337
+ modal: !0,
338
+ dangerouslyUseHTMLString: !0,
339
+ closeOnClickModal: !1,
340
+ beforeClose: (action, instance, done) => __async(this, null, function* () {
341
+ if (action === "confirm")
342
+ try {
343
+ instance.confirmButtonLoading = !0, instance.confirmButtonText = "删除...", yield api.call(this, this.selectedRows.map((value) => value.id).join(",")), this.$message.success("删除成功"), yield this.reloadTable(), yield this.refreshTree();
344
+ } catch (_) {
345
+ }
346
+ done();
347
+ })
348
+ }
349
+ ).catch((_) => _);
350
+ }
351
+ });
327
352
  },
328
353
  reloadTable() {
329
- var e;
330
- (e = this.$refs.table) == null || e.reload();
354
+ var _a;
355
+ (_a = this.$refs.table) == null || _a.reload();
331
356
  },
332
- async refreshTable() {
333
- var e;
334
- await ((e = this.$refs.table) == null ? void 0 : e.getPage());
357
+ refreshTable() {
358
+ return __async(this, null, function* () {
359
+ var _a;
360
+ yield (_a = this.$refs.table) == null ? void 0 : _a.getPage();
361
+ });
335
362
  },
336
363
  refreshTree() {
337
364
  this.$refs.tree.reloadTree();
@@ -340,24 +367,24 @@ const w = ["back", "create", "save", "withdraw", "edit", "submit", "publish", "a
340
367
  return this.searchPanelProps.model;
341
368
  }
342
369
  }
343
- }, h = {};
344
- var y = /* @__PURE__ */ m(
345
- v,
346
- _,
347
- g,
370
+ }, __cssModules = {};
371
+ var __component__ = /* @__PURE__ */ normalizeComponent(
372
+ __vue2_script,
373
+ render,
374
+ staticRenderFns,
348
375
  !1,
349
- P,
376
+ __vue2_injectStyles,
350
377
  null,
351
378
  null,
352
379
  null
353
380
  );
354
- function P(e) {
355
- for (let r in h)
356
- this[r] = h[r];
381
+ function __vue2_injectStyles(context) {
382
+ for (let o in __cssModules)
383
+ this[o] = __cssModules[o];
357
384
  }
358
- const C = /* @__PURE__ */ function() {
359
- return y.exports;
385
+ const TableView = /* @__PURE__ */ function() {
386
+ return __component__.exports;
360
387
  }();
361
388
  export {
362
- C as default
389
+ TableView as default
363
390
  };