@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,89 +1,100 @@
1
- import { f as n } from "../../chunks/form-input-mixin.ff5b58f7.js";
2
- import { f as s } from "../../chunks/form-pick-mixin.61ad06b2.js";
3
- import { i as a, n as u } from "../../chunks/utils.fa73de78.js";
4
- import { CheckboxGroup as p } from "element-ui";
5
- import { n as h } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
6
- var c = function() {
7
- var e = this, r = e.$createElement, o = e._self._c || r;
8
- return o("FormItem", e._b({
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
+ var __hasOwnProp = Object.prototype.hasOwnProperty, __propIsEnum = Object.prototype.propertyIsEnumerable;
4
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: !0, configurable: !0, writable: !0, value }) : obj[key] = value, __spreadValues = (a, b) => {
5
+ for (var prop in b || (b = {}))
6
+ __hasOwnProp.call(b, prop) && __defNormalProp(a, prop, b[prop]);
7
+ if (__getOwnPropSymbols)
8
+ for (var prop of __getOwnPropSymbols(b))
9
+ __propIsEnum.call(b, prop) && __defNormalProp(a, prop, b[prop]);
10
+ return a;
11
+ };
12
+ import { f as formInputMixin } from "../../chunks/form-input-mixin.760cd65d.js";
13
+ import { f as formPickMixin } from "../../chunks/form-pick-mixin.c4e0391b.js";
14
+ import { d as filterProperties, n as normalizeProps } from "../../chunks/utils.d7f73f8d.js";
15
+ import { CheckboxGroup } from "element-ui";
16
+ import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.77ec6792.js";
17
+ var render = function() {
18
+ var _vm = this, _h = _vm.$createElement, _c = _vm._self._c || _h;
19
+ return _c("FormItem", _vm._b({
9
20
  class: ["form-checkbox-group", {
10
- "form-checkbox-group-row": e.fillRow
11
- }, e.ellipsis ? "form-checkbox-group-row-ellipsis" : e.fillRow ? "form-checkbox-group-row-break-word" : ""],
21
+ "form-checkbox-group-row": _vm.fillRow
22
+ }, _vm.ellipsis ? "form-checkbox-group-row-ellipsis" : _vm.fillRow ? "form-checkbox-group-row-break-word" : ""],
12
23
  attrs: {
13
- rules: e.computeRules,
14
- disabled: e.inputDisabled
24
+ rules: _vm.computeRules,
25
+ disabled: _vm.inputDisabled
15
26
  },
16
- scopedSlots: e._u([{
27
+ scopedSlots: _vm._u([{
17
28
  key: "default",
18
29
  fn: function() {
19
- return [o("ElCheckboxGroup", e._g(e._b({
30
+ return [_c("ElCheckboxGroup", _vm._g(_vm._b({
20
31
  attrs: {
21
- disabled: e.inputDisabled,
22
- value: e.computeVal,
23
- placeholder: e.computePlaceholder
32
+ disabled: _vm.inputDisabled,
33
+ value: _vm.computeVal,
34
+ placeholder: _vm.computePlaceholder
24
35
  },
25
36
  on: {
26
- input: e.emitInput
37
+ input: _vm.emitInput
27
38
  }
28
- }, "ElCheckboxGroup", e.inputProps, !1), e.listeners), e._l(e.innerOptions, function(t) {
29
- return o("ElCheckbox", {
30
- key: t[e.valueKey],
39
+ }, "ElCheckboxGroup", _vm.inputProps, !1), _vm.listeners), _vm._l(_vm.innerOptions, function(item) {
40
+ return _c("ElCheckbox", {
41
+ key: item[_vm.valueKey],
31
42
  attrs: {
32
- label: t[e.valueKey]
43
+ label: item[_vm.valueKey]
33
44
  }
34
- }, [e._v(" " + e._s(t[e.labelKey]) + " ")]);
35
- }), 1), e.computeVal.includes(e.otherVal) ? o("FormInput", {
45
+ }, [_vm._v(" " + _vm._s(item[_vm.labelKey]) + " ")]);
46
+ }), 1), _vm.computeVal.includes(_vm.otherVal) ? _c("FormInput", {
36
47
  staticClass: "form-checkbox-group-other",
37
- style: e.otherLabel ? {
38
- width: e.otherWidth
48
+ style: _vm.otherLabel ? {
49
+ width: _vm.otherWidth
39
50
  } : {
40
51
  marginBottom: 0,
41
- width: e.otherWidth
52
+ width: _vm.otherWidth
42
53
  },
43
54
  attrs: {
44
55
  "wrap-col": !1,
45
56
  "label-width": "0",
46
- prop: e.otherProp,
47
- required: !!e.otherProp,
48
- placeholder: e.otherPlaceholder,
49
- label: e.otherLabel,
50
- "show-message": !!e.otherLabel,
51
- value: e.other
57
+ prop: _vm.otherProp,
58
+ required: !!_vm.otherProp,
59
+ placeholder: _vm.otherPlaceholder,
60
+ label: _vm.otherLabel,
61
+ "show-message": !!_vm.otherLabel,
62
+ value: _vm.other
52
63
  },
53
64
  on: {
54
- input: function(t) {
55
- return e.$emit("update:other", t);
65
+ input: function(val) {
66
+ return _vm.$emit("update:other", val);
56
67
  }
57
68
  }
58
- }) : e._e()];
69
+ }) : _vm._e()];
59
70
  },
60
71
  proxy: !0
61
72
  }, {
62
73
  key: "error",
63
- fn: function(t) {
64
- var i = t.error;
65
- return [e._t("error", null, {
66
- error: i
74
+ fn: function(_ref) {
75
+ var error = _ref.error;
76
+ return [_vm._t("error", null, {
77
+ error
67
78
  })];
68
79
  }
69
80
  }, {
70
81
  key: "label",
71
82
  fn: function() {
72
- return [e._t("label")];
83
+ return [_vm._t("label")];
73
84
  },
74
85
  proxy: !0
75
86
  }, {
76
87
  key: "below",
77
88
  fn: function() {
78
- return [e._t("below")];
89
+ return [_vm._t("below")];
79
90
  },
80
91
  proxy: !0
81
92
  }], null, !0)
82
- }, "FormItem", e.formItemProps, !1));
83
- }, f = [];
84
- const m = Object.keys(p.props).filter((e) => !["value", "placeholder", "disabled"].includes(e)), d = {
93
+ }, "FormItem", _vm.formItemProps, !1));
94
+ }, staticRenderFns = [];
95
+ const autoBindKeys = Object.keys(CheckboxGroup.props).filter((key) => !["value", "placeholder", "disabled"].includes(key)), __vue2_script = {
85
96
  name: "FormCheckboxGroup",
86
- mixins: [n, s],
97
+ mixins: [formInputMixin, formPickMixin],
87
98
  props: {
88
99
  options: {
89
100
  type: Array,
@@ -137,7 +148,7 @@ const m = Object.keys(p.props).filter((e) => !["value", "placeholder", "disabled
137
148
  return this.classic ? "value" : this.valueProp;
138
149
  },
139
150
  inputProps() {
140
- return a({ ...u(this.$attrs), ...this.$props }, m);
151
+ return filterProperties(__spreadValues(__spreadValues({}, normalizeProps(this.$attrs)), this.$props), autoBindKeys);
141
152
  },
142
153
  innerOptions() {
143
154
  return this.gender ? [
@@ -165,28 +176,28 @@ const m = Object.keys(p.props).filter((e) => !["value", "placeholder", "disabled
165
176
  }
166
177
  },
167
178
  methods: {
168
- emitInput(e) {
169
- this.split ? this.$emit("input", e.join(",")) : this.$emit("input", e);
179
+ emitInput(val) {
180
+ this.split ? this.$emit("input", val.join(",")) : this.$emit("input", val);
170
181
  }
171
182
  }
172
- }, l = {};
173
- var b = /* @__PURE__ */ h(
174
- d,
175
- c,
176
- f,
183
+ }, __cssModules = {};
184
+ var __component__ = /* @__PURE__ */ normalizeComponent(
185
+ __vue2_script,
186
+ render,
187
+ staticRenderFns,
177
188
  !1,
178
- y,
189
+ __vue2_injectStyles,
179
190
  null,
180
191
  null,
181
192
  null
182
193
  );
183
- function y(e) {
184
- for (let r in l)
185
- this[r] = l[r];
194
+ function __vue2_injectStyles(context) {
195
+ for (let o in __cssModules)
196
+ this[o] = __cssModules[o];
186
197
  }
187
- const P = /* @__PURE__ */ function() {
188
- return b.exports;
198
+ const FormCheckboxGroup = /* @__PURE__ */ function() {
199
+ return __component__.exports;
189
200
  }();
190
201
  export {
191
- P as default
202
+ FormCheckboxGroup as default
192
203
  };
@@ -1,62 +1,74 @@
1
- import { f as o } from "../../chunks/form-input-mixin.ff5b58f7.js";
2
- import { f as l } from "../../chunks/form-pick-mixin.61ad06b2.js";
3
- import { toDate as n } from "@web-utils/core";
4
- import { i as m, n as u } from "../../chunks/utils.fa73de78.js";
5
- import { n as p } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
6
- var h = function() {
7
- var e = this, t = e.$createElement, r = e._self._c || t;
8
- return r("FormItem", e._b({
1
+ var __defProp = Object.defineProperty, __defProps = Object.defineProperties;
2
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
3
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty, __propIsEnum = Object.prototype.propertyIsEnumerable;
5
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: !0, configurable: !0, writable: !0, value }) : obj[key] = value, __spreadValues = (a, b) => {
6
+ for (var prop in b || (b = {}))
7
+ __hasOwnProp.call(b, prop) && __defNormalProp(a, prop, b[prop]);
8
+ if (__getOwnPropSymbols)
9
+ for (var prop of __getOwnPropSymbols(b))
10
+ __propIsEnum.call(b, prop) && __defNormalProp(a, prop, b[prop]);
11
+ return a;
12
+ }, __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
13
+ import { f as formInputMixin } from "../../chunks/form-input-mixin.760cd65d.js";
14
+ import { f as formPickMixin } from "../../chunks/form-pick-mixin.c4e0391b.js";
15
+ import { t as toDate } from "../../chunks/dayjs.ed2e1b73.js";
16
+ import { d as filterProperties, n as normalizeProps } from "../../chunks/utils.d7f73f8d.js";
17
+ import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.77ec6792.js";
18
+ var render = function() {
19
+ var _vm = this, _h = _vm.$createElement, _c = _vm._self._c || _h;
20
+ return _c("FormItem", _vm._b({
9
21
  attrs: {
10
- rules: e.computeRules,
11
- disabled: e.inputDisabled
22
+ rules: _vm.computeRules,
23
+ disabled: _vm.inputDisabled
12
24
  },
13
- scopedSlots: e._u([{
25
+ scopedSlots: _vm._u([{
14
26
  key: "default",
15
27
  fn: function() {
16
- return [r("ElDatePicker", e._g(e._b({
28
+ return [_c("ElDatePicker", _vm._g(_vm._b({
17
29
  staticStyle: {
18
30
  width: "100%"
19
31
  },
20
32
  attrs: {
21
- "picker-options": e.pickerOption,
22
- value: e.innerVal,
33
+ "picker-options": _vm.pickerOption,
34
+ value: _vm.innerVal,
23
35
  size: "mini",
24
- placeholder: e.computePlaceholder,
25
- type: e.type,
26
- disabled: e.inputDisabled
36
+ placeholder: _vm.computePlaceholder,
37
+ type: _vm.type,
38
+ disabled: _vm.inputDisabled
27
39
  },
28
40
  on: {
29
- input: e.emitInput
41
+ input: _vm.emitInput
30
42
  }
31
- }, "ElDatePicker", e.inputProps, !1), e.listeners)), e.$slots.warn ? r("div", {
43
+ }, "ElDatePicker", _vm.inputProps, !1), _vm.listeners)), _vm.$slots.warn ? _c("div", {
32
44
  staticClass: "el-form-item__warn"
33
- }, [e._t("warn")], 2) : e._e()];
45
+ }, [_vm._t("warn")], 2) : _vm._e()];
34
46
  },
35
47
  proxy: !0
36
48
  }, {
37
49
  key: "error",
38
- fn: function(s) {
39
- var i = s.error;
40
- return [e.$scopedSlots.error && e.$scopedSlots.error(i) ? r("div", {
50
+ fn: function(_ref) {
51
+ var error = _ref.error;
52
+ return [_vm.$scopedSlots.error && _vm.$scopedSlots.error(error) ? _c("div", {
41
53
  staticClass: "el-form-item__error"
42
- }, [e._t("error", function() {
43
- return [e._v(" " + e._s(i) + " ")];
54
+ }, [_vm._t("error", function() {
55
+ return [_vm._v(" " + _vm._s(error) + " ")];
44
56
  }, {
45
- error: i
46
- })], 2) : e._e()];
57
+ error
58
+ })], 2) : _vm._e()];
47
59
  }
48
60
  }, {
49
61
  key: "label",
50
62
  fn: function() {
51
- return [e._t("label")];
63
+ return [_vm._t("label")];
52
64
  },
53
65
  proxy: !0
54
66
  }], null, !0)
55
- }, "FormItem", e.formItemProps, !1));
56
- }, d = [];
57
- const f = ["type", "timeArrowControl", "size", "format", "valueFormat", "readonly", "placeholder", "startPlaceholder", "endPlaceholder", "prefixIcon", "clearIcon", "name", "disabled", "clearable", "id", "popperClass", "editable", "align", "value", "defaultValue", "defaultTime", "rangeSeparator", "pickerOptions", "unlinkPanels", "validateEvent"].filter((e) => !["value", "placeholder", "disabled", "type", "pickerOptions"].includes(e)), c = {
67
+ }, "FormItem", _vm.formItemProps, !1));
68
+ }, staticRenderFns = [];
69
+ const autoBindKeys = ["type", "timeArrowControl", "size", "format", "valueFormat", "readonly", "placeholder", "startPlaceholder", "endPlaceholder", "prefixIcon", "clearIcon", "name", "disabled", "clearable", "id", "popperClass", "editable", "align", "value", "defaultValue", "defaultTime", "rangeSeparator", "pickerOptions", "unlinkPanels", "validateEvent"].filter((key) => !["value", "placeholder", "disabled", "type", "pickerOptions"].includes(key)), __vue2_script = {
58
70
  name: "FormDatePicker",
59
- mixins: [o, l],
71
+ mixins: [formInputMixin, formPickMixin],
60
72
  props: {
61
73
  format: {
62
74
  type: String
@@ -107,29 +119,28 @@ const f = ["type", "timeArrowControl", "size", "format", "valueFormat", "readonl
107
119
  },
108
120
  mini() {
109
121
  if (this.miniDate) {
110
- const e = n(this.miniDate);
111
- return e.setDate(e.getDate() - 1), e;
122
+ const date = toDate(this.miniDate);
123
+ return date.setDate(date.getDate() - 1), date;
112
124
  } else
113
125
  return null;
114
126
  },
115
127
  max() {
116
- return this.maxDate ? n(this.maxDate) : null;
128
+ return this.maxDate ? toDate(this.maxDate) : null;
117
129
  },
118
130
  pickerOption() {
119
- return {
120
- disabledDate: (e) => {
131
+ return __spreadValues({
132
+ disabledDate: (time) => {
121
133
  if (!this.mini && !this.max)
122
134
  return !1;
123
- const t = e.getTime();
124
- return this.mini && !this.max ? t <= this.mini.getTime() : !this.mini && this.max ? t >= this.max.getTime() : this.mini && this.max ? t <= this.mini.getTime() && t >= this.max.getTime() : !1;
125
- },
126
- ...this.pickerOptions
127
- };
135
+ const currentTime = time.getTime();
136
+ return this.mini && !this.max ? currentTime <= this.mini.getTime() : !this.mini && this.max ? currentTime >= this.max.getTime() : this.mini && this.max ? currentTime <= this.mini.getTime() && currentTime >= this.max.getTime() : !1;
137
+ }
138
+ }, this.pickerOptions);
128
139
  },
129
140
  innerVal() {
130
141
  if (this.range && this.split) {
131
- const e = [];
132
- return e.push(this.start || ""), e.push(this.end || ""), e;
142
+ const val = [];
143
+ return val.push(this.start || ""), val.push(this.end || ""), val;
133
144
  } else
134
145
  return this.value;
135
146
  },
@@ -137,15 +148,13 @@ const f = ["type", "timeArrowControl", "size", "format", "valueFormat", "readonl
137
148
  return this.year ? "yyyy" : this.month || this.monthRange ? "yyyy-MM" : this.week ? "yyyy 第 WW 周" : this.dateTime || this.dateTimeRange ? "yyyy-MM-dd HH:mm" : "yyyy-MM-dd";
138
149
  },
139
150
  inputProps() {
140
- return m({
141
- ...u(this.$attrs),
142
- ...this.$props,
151
+ return filterProperties(__spreadProps(__spreadValues(__spreadValues({}, normalizeProps(this.$attrs)), this.$props), {
143
152
  valueFormat: this.week ? "yyyy-MM-dd" : this.valueFormat || this.fat,
144
153
  format: this.format || this.fat,
145
154
  rangeSeparator: this.rangeSeparator || "至",
146
155
  startPlaceholder: this.startPlaceholder || "开始日期",
147
156
  endPlaceholder: this.endPlaceholder || "结束日期"
148
- }, f);
157
+ }), autoBindKeys);
149
158
  },
150
159
  range() {
151
160
  return this.dateTimeRange || this.dateRange || this.monthRange;
@@ -155,28 +164,28 @@ const f = ["type", "timeArrowControl", "size", "format", "valueFormat", "readonl
155
164
  }
156
165
  },
157
166
  methods: {
158
- emitInput(e) {
159
- this.range && this.split ? e ? (this.$emit("update:start", e[0]), this.$emit("update:end", e[1])) : (this.$emit("update:start", null), this.$emit("update:end", null)) : this.$emit("input", e);
167
+ emitInput(val) {
168
+ this.range && this.split ? val ? (this.$emit("update:start", val[0]), this.$emit("update:end", val[1])) : (this.$emit("update:start", null), this.$emit("update:end", null)) : this.$emit("input", val);
160
169
  }
161
170
  }
162
- }, a = {};
163
- var y = /* @__PURE__ */ p(
164
- c,
165
- h,
166
- d,
171
+ }, __cssModules = {};
172
+ var __component__ = /* @__PURE__ */ normalizeComponent(
173
+ __vue2_script,
174
+ render,
175
+ staticRenderFns,
167
176
  !1,
168
- g,
177
+ __vue2_injectStyles,
169
178
  null,
170
179
  null,
171
180
  null
172
181
  );
173
- function g(e) {
174
- for (let t in a)
175
- this[t] = a[t];
182
+ function __vue2_injectStyles(context) {
183
+ for (let o in __cssModules)
184
+ this[o] = __cssModules[o];
176
185
  }
177
- const S = /* @__PURE__ */ function() {
178
- return y.exports;
186
+ const FormDatePicker = /* @__PURE__ */ function() {
187
+ return __component__.exports;
179
188
  }();
180
189
  export {
181
- S as default
190
+ FormDatePicker as default
182
191
  };
@@ -1,49 +1,49 @@
1
- import { n as o } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
2
- var s = function() {
3
- var e = this, a = e.$createElement, t = e._self._c || a;
4
- return e.display ? t("div", {
1
+ import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.77ec6792.js";
2
+ var render = function() {
3
+ var _vm = this, _h = _vm.$createElement, _c = _vm._self._c || _h;
4
+ return _vm.display ? _c("div", {
5
5
  class: ["avue-group", {
6
- "avue-group--header": !e.isHeader,
7
- "avue-group__arrow": !e.arrow
6
+ "avue-group--header": !_vm.isHeader,
7
+ "avue-group__arrow": !_vm.arrow
8
8
  }]
9
- }, [e._t("tabs"), t("ElCollapse", {
9
+ }, [_vm._t("tabs"), _c("ElCollapse", {
10
10
  attrs: {
11
- value: e.text
11
+ value: _vm.text
12
12
  },
13
13
  on: {
14
- change: e.handleChange
14
+ change: _vm.handleChange
15
15
  },
16
16
  model: {
17
- value: e.activeName,
18
- callback: function(l) {
19
- e.activeName = l;
17
+ value: _vm.activeName,
18
+ callback: function($$v) {
19
+ _vm.activeName = $$v;
20
20
  },
21
21
  expression: "activeName"
22
22
  }
23
- }, [t("ElCollapseItem", {
23
+ }, [_c("ElCollapseItem", {
24
24
  attrs: {
25
25
  name: 1,
26
- disabled: !e.arrow
26
+ disabled: !_vm.arrow
27
27
  }
28
- }, [e.$slots.header && e.header ? t("div", {
28
+ }, [_vm.$slots.header && _vm.header ? _c("div", {
29
29
  staticClass: "avue-group__header",
30
30
  attrs: {
31
31
  slot: "title"
32
32
  },
33
33
  slot: "title"
34
- }, [e._t("header")], 2) : (e.label || e.icon) && e.header ? t("div", {
34
+ }, [_vm._t("header")], 2) : (_vm.label || _vm.icon) && _vm.header ? _c("div", {
35
35
  staticClass: "avue-group__header",
36
36
  attrs: {
37
37
  slot: "title"
38
38
  },
39
39
  slot: "title"
40
- }, [e.icon ? t("i", {
41
- class: [e.icon, "avue-group__icon"]
42
- }) : e._e(), e.label ? t("h1", {
40
+ }, [_vm.icon ? _c("i", {
41
+ class: [_vm.icon, "avue-group__icon"]
42
+ }) : _vm._e(), _vm.label ? _c("h1", {
43
43
  staticClass: "avue-group__title"
44
- }, [e._v(" " + e._s(e.label) + " ")]) : e._e()]) : e._e(), e._t("default")], 2)], 1)], 2) : e._e();
45
- }, n = [];
46
- const i = {
44
+ }, [_vm._v(" " + _vm._s(_vm.label) + " ")]) : _vm._e()]) : _vm._e(), _vm._t("default")], 2)], 1)], 2) : _vm._e();
45
+ }, staticRenderFns = [];
46
+ const __vue2_script = {
47
47
  name: "FormGroup",
48
48
  props: {
49
49
  arrow: {
@@ -87,36 +87,36 @@ const i = {
87
87
  }
88
88
  },
89
89
  watch: {
90
- text(e) {
91
- this.activeName = [e];
90
+ text(val) {
91
+ this.activeName = [val];
92
92
  }
93
93
  },
94
94
  created() {
95
95
  this.activeName = [this.text];
96
96
  },
97
97
  methods: {
98
- handleChange(e) {
99
- this.$emit("change", e);
98
+ handleChange(activeNames) {
99
+ this.$emit("change", activeNames);
100
100
  }
101
101
  }
102
- }, r = {};
103
- var u = /* @__PURE__ */ o(
104
- i,
105
- s,
106
- n,
102
+ }, __cssModules = {};
103
+ var __component__ = /* @__PURE__ */ normalizeComponent(
104
+ __vue2_script,
105
+ render,
106
+ staticRenderFns,
107
107
  !1,
108
- c,
108
+ __vue2_injectStyles,
109
109
  null,
110
110
  null,
111
111
  null
112
112
  );
113
- function c(e) {
114
- for (let a in r)
115
- this[a] = r[a];
113
+ function __vue2_injectStyles(context) {
114
+ for (let o in __cssModules)
115
+ this[o] = __cssModules[o];
116
116
  }
117
- const d = /* @__PURE__ */ function() {
118
- return u.exports;
117
+ const FormGroup = /* @__PURE__ */ function() {
118
+ return __component__.exports;
119
119
  }();
120
120
  export {
121
- d as default
121
+ FormGroup as default
122
122
  };
@@ -1,21 +1,37 @@
1
- import { warning as l } from "@web-utils/core";
2
- import { j as a } from "../../chunks/utils.fa73de78.js";
3
- import { n as s } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
4
- var o = function() {
5
- var e = this, r = e.$createElement, i = e._self._c || r;
6
- return i("ElForm", e._g(e._b({
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 { warning } from "@web-utils/core";
18
+ import { e as findParent } from "../../chunks/utils.d7f73f8d.js";
19
+ import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.77ec6792.js";
20
+ var render = function() {
21
+ var _vm = this, _h = _vm.$createElement, _c = _vm._self._c || _h;
22
+ return _c("ElForm", _vm._g(_vm._b({
7
23
  ref: "form",
8
24
  staticClass: "clear-fix",
9
25
  attrs: {
10
- model: e.model,
11
- size: e.size,
12
- disabled: e.disabled,
13
- "label-width": e.labelWidth,
14
- "label-position": e.labelPosition
26
+ model: _vm.model,
27
+ size: _vm.size,
28
+ disabled: _vm.disabled,
29
+ "label-width": _vm.labelWidth,
30
+ "label-position": _vm.labelPosition
15
31
  }
16
- }, "ElForm", e.$attrs, !1), e.$listeners), [e._t("default")], 2);
17
- }, n = [];
18
- const d = {
32
+ }, "ElForm", _vm.$attrs, !1), _vm.$listeners), [_vm._t("default")], 2);
33
+ }, staticRenderFns = [];
34
+ const __vue2_script = {
19
35
  name: "FormHolder",
20
36
  provide() {
21
37
  return {
@@ -74,38 +90,40 @@ const d = {
74
90
  }
75
91
  },
76
92
  created() {
77
- this.required || l.call(a(this, (e) => ["FormView", "FormHolder"].includes(e.$options.name)), "一般情况下不建议设置 required=false,因为 required 设置为 false 后必填字段要自行维护,在处理表格时会比较复杂,请自行权衡利弊");
93
+ this.required || warning.call(findParent(this, (parent) => ["FormView", "FormHolder"].includes(parent.$options.name)), "一般情况下不建议设置 required=false,因为 required 设置为 false 后必填字段要自行维护,在处理表格时会比较复杂,请自行权衡利弊");
78
94
  },
79
95
  methods: {
80
- clearValidate(e) {
81
- var r;
82
- (r = this.$refs.form) == null || r.clearValidate(e);
96
+ clearValidate(fields) {
97
+ var _a;
98
+ (_a = this.$refs.form) == null || _a.clearValidate(fields);
83
99
  },
84
- async validate() {
85
- return this.$refs.form.validate();
100
+ validate() {
101
+ return __async(this, null, function* () {
102
+ return this.$refs.form.validate();
103
+ });
86
104
  },
87
105
  resetFields() {
88
106
  return this.$refs.form.resetFields();
89
107
  }
90
108
  }
91
- }, t = {};
92
- var f = /* @__PURE__ */ s(
93
- d,
94
- o,
95
- n,
109
+ }, __cssModules = {};
110
+ var __component__ = /* @__PURE__ */ normalizeComponent(
111
+ __vue2_script,
112
+ render,
113
+ staticRenderFns,
96
114
  !1,
97
- m,
115
+ __vue2_injectStyles,
98
116
  null,
99
117
  null,
100
118
  null
101
119
  );
102
- function m(e) {
103
- for (let r in t)
104
- this[r] = t[r];
120
+ function __vue2_injectStyles(context) {
121
+ for (let o in __cssModules)
122
+ this[o] = __cssModules[o];
105
123
  }
106
- const _ = /* @__PURE__ */ function() {
107
- return f.exports;
124
+ const FormHolder = /* @__PURE__ */ function() {
125
+ return __component__.exports;
108
126
  }();
109
127
  export {
110
- _ as default
128
+ FormHolder as default
111
129
  };