@web-utils/component 2.7.29 → 2.7.31

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 (329) hide show
  1. package/dist/chunks/{config.7dec2bf2.js → config.75161c38.js} +29 -29
  2. package/dist/chunks/confirmable-mixin.851d6299.js +137 -0
  3. package/dist/chunks/dataformat.b8c8c01a.js +237 -0
  4. package/dist/chunks/detail.6135ade5.js +55 -0
  5. package/dist/chunks/dic.e57b75f2.js +215 -0
  6. package/dist/chunks/{event.fc358074.js → event.812c361c.js} +54 -23
  7. package/dist/chunks/{form-input-mixin.760cd65d.js → form-input-mixin.3e63b57f.js} +4 -4
  8. package/dist/chunks/{form-item-mixin.fa314b67.js → form-item-mixin.a56c101a.js} +44 -17
  9. package/dist/chunks/{form-pick-mixin.c4e0391b.js → form-pick-mixin.822300f3.js} +1 -1
  10. package/dist/chunks/{init.e0133910.js → init.38cbb3a2.js} +41 -21
  11. package/dist/chunks/{input-number-mixin.6849fa63.js → input-number-mixin.44b78389.js} +4 -4
  12. package/dist/chunks/{mixins.6a394a6c.js → mixins.e1939731.js} +3 -2
  13. package/dist/chunks/{packages.419bde01.js → packages.c4ea639d.js} +12 -6
  14. package/dist/chunks/{permission.07c49abf.js → permission.9c766972.js} +6 -1
  15. package/dist/chunks/slot.55598d0f.js +35 -0
  16. package/dist/chunks/{tab-mixin.9d568df9.js → tab-mixin.9d848bf6.js} +29 -11
  17. package/dist/chunks/util.b0d0b0ad.js +478 -0
  18. package/dist/chunks/{utils.d7f73f8d.js → utils.2a3ffac9.js} +89 -24
  19. package/dist/chunks/{utils.f44207f4.js → utils.a8891d2c.js} +9 -5
  20. package/dist/chunks/vueComponentNormalizer.9c6b8b3d.js +59 -0
  21. package/dist/components/address-input/index.js +30 -17
  22. package/dist/components/address-input/style.css +15 -1
  23. package/dist/components/affix/index.js +78 -28
  24. package/dist/components/affix/style.css +5 -1
  25. package/dist/components/aside-menu/index.js +14 -8
  26. package/dist/components/aside-menu/style.css +9 -1
  27. package/dist/components/avatar/index.js +33 -15
  28. package/dist/components/avatar/style.css +57 -1
  29. package/dist/components/awesome-button/index.js +45 -31
  30. package/dist/components/base.css +410 -1
  31. package/dist/components/capsule-tab/index.js +13 -7
  32. package/dist/components/capsule-tab/style.css +32 -1
  33. package/dist/components/card/index.js +33 -20
  34. package/dist/components/card/style.css +90 -1
  35. package/dist/components/carousel/index.js +18 -12
  36. package/dist/components/carousel/style.css +41 -1
  37. package/dist/components/chat/index.js +245 -139
  38. package/dist/components/chat/style.css +279 -1
  39. package/dist/components/chunk-file-uploader/index.js +63 -29
  40. package/dist/components/chunk-file-uploader/style.css +4 -1
  41. package/dist/components/chunk-file-uploader-button/index.js +15 -9
  42. package/dist/components/chunk-file-uploader-button/style.css +17 -1
  43. package/dist/components/chunk-file-uploader-drop/index.js +45 -27
  44. package/dist/components/chunk-file-uploader-drop/style.css +12 -1
  45. package/dist/components/chunk-file-uploader-file/index.js +150 -73
  46. package/dist/components/chunk-file-uploader-file/style.css +125 -1
  47. package/dist/components/chunk-file-uploader-files/index.js +15 -9
  48. package/dist/components/chunk-file-uploader-files/style.css +9 -1
  49. package/dist/components/chunk-file-uploader-list/index.js +16 -10
  50. package/dist/components/chunk-file-uploader-list/style.css +9 -1
  51. package/dist/components/chunk-file-uploader-un-support/index.js +18 -10
  52. package/dist/components/chunk-file-uploader-un-support/style.css +6 -1
  53. package/dist/components/code-mirror-editor/index.js +75 -47
  54. package/dist/components/code-mirror-editor/style.css +17 -1
  55. package/dist/components/color-picker/index.js +62 -39
  56. package/dist/components/column/index.js +54 -29
  57. package/dist/components/column-default/index.js +47 -33
  58. package/dist/components/column-dynamic/index.js +26 -19
  59. package/dist/components/column-menu/index.js +98 -86
  60. package/dist/components/column-slot/index.js +135 -75
  61. package/dist/components/comment/index.js +28 -15
  62. package/dist/components/comment/style.css +92 -1
  63. package/dist/components/confirm-button/index.js +7 -5
  64. package/dist/components/confirmable/index.js +5 -4
  65. package/dist/components/context-menu/index.js +54 -32
  66. package/dist/components/context-menu/style.css +88 -1
  67. package/dist/components/count-up/index.js +55 -38
  68. package/dist/components/custom-scrollbar/index.js +45 -21
  69. package/dist/components/data-box/index.js +22 -16
  70. package/dist/components/data-box/style.css +58 -1
  71. package/dist/components/data-card/index.js +21 -15
  72. package/dist/components/data-card/style.css +46 -1
  73. package/dist/components/data-cardtext/index.js +19 -13
  74. package/dist/components/data-cardtext/style.css +36 -1
  75. package/dist/components/data-display/index.js +22 -16
  76. package/dist/components/data-display/style.css +37 -1
  77. package/dist/components/data-icons/index.js +23 -17
  78. package/dist/components/data-icons/style.css +53 -1
  79. package/dist/components/data-imgtext/index.js +26 -20
  80. package/dist/components/data-imgtext/style.css +70 -1
  81. package/dist/components/data-operatext/index.js +20 -14
  82. package/dist/components/data-operatext/style.css +81 -1
  83. package/dist/components/data-panel/index.js +21 -15
  84. package/dist/components/data-panel/style.css +37 -1
  85. package/dist/components/data-pay/index.js +29 -23
  86. package/dist/components/data-pay/style.css +102 -1
  87. package/dist/components/data-price/index.js +19 -13
  88. package/dist/components/data-price/style.css +81 -1
  89. package/dist/components/data-progress/index.js +26 -20
  90. package/dist/components/data-progress/style.css +30 -1
  91. package/dist/components/data-rotate/index.js +21 -15
  92. package/dist/components/data-rotate/style.css +50 -1
  93. package/dist/components/data-table-picker/index.js +47 -28
  94. package/dist/components/data-tabs/index.js +22 -16
  95. package/dist/components/data-tabs/style.css +70 -1
  96. package/dist/components/dialog-column/index.js +46 -33
  97. package/dist/components/dialog-excel/index.js +102 -53
  98. package/dist/components/dialog-filter/index.js +64 -51
  99. package/dist/components/dialog-form/index.js +56 -115
  100. package/dist/components/dialog-form/style.css +10 -1
  101. package/dist/components/dynamic-table/index.js +66 -42
  102. package/dist/components/dynamic-table/style.css +30 -1
  103. package/dist/components/e-charts/index.js +127 -46
  104. package/dist/components/e-charts/style.css +10 -1
  105. package/dist/components/easy-popup/index.js +32 -14
  106. package/dist/components/easy-popup/style.css +18 -1
  107. package/dist/components/editable-progress/index.js +64 -31
  108. package/dist/components/editable-progress/style.css +37 -1
  109. package/dist/components/editable-tree/index.js +513 -287
  110. package/dist/components/editable-tree/style.css +82 -1
  111. package/dist/components/egd-collapse/index.js +25 -12
  112. package/dist/components/egd-collapse-item/index.js +41 -25
  113. package/dist/components/element-dialog/index.js +101 -48
  114. package/dist/components/element-dialog/style.css +88 -1
  115. package/dist/components/empty-view/index.js +13 -7
  116. package/dist/components/empty-view/style.css +17 -1
  117. package/dist/components/error-view/index.js +12 -6
  118. package/dist/components/error-view/style.css +17 -1
  119. package/dist/components/flex-column/index.js +39 -17
  120. package/dist/components/flex-item/index.js +59 -24
  121. package/dist/components/flex-row/index.js +39 -17
  122. package/dist/components/flex-scroller/index.js +13 -7
  123. package/dist/components/flex-scroller/style.css +20 -1
  124. package/dist/components/flow/index.js +116 -64
  125. package/dist/components/flow/style.css +44 -1
  126. package/dist/components/flow-node/index.js +29 -21
  127. package/dist/components/flow-viewer/index.js +97 -52
  128. package/dist/components/flow-viewer/style.css +19 -1
  129. package/dist/components/form-button/index.js +12 -8
  130. package/dist/components/form-cascader/index.js +55 -40
  131. package/dist/components/form-checkbox-group/index.js +90 -60
  132. package/dist/components/form-checkbox-group/style.css +51 -1
  133. package/dist/components/form-date-picker/index.js +113 -44
  134. package/dist/components/form-group/index.js +23 -17
  135. package/dist/components/form-group/style.css +76 -1
  136. package/dist/components/form-holder/index.js +41 -30
  137. package/dist/components/form-input/index.js +42 -31
  138. package/dist/components/form-input-email/index.js +47 -30
  139. package/dist/components/form-input-id-card/index.js +40 -29
  140. package/dist/components/form-input-number/index.js +50 -38
  141. package/dist/components/form-input-number/style.css +12 -1
  142. package/dist/components/form-input-phone-number/index.js +40 -29
  143. package/dist/components/form-input-time/index.js +40 -29
  144. package/dist/components/form-item/index.js +99 -47
  145. package/dist/components/form-item/style.css +11 -1
  146. package/dist/components/form-item-config-provider/index.js +9 -8
  147. package/dist/components/form-item-group/index.js +69 -43
  148. package/dist/components/form-item-group/style.css +30 -1
  149. package/dist/components/form-radio-group/index.js +77 -53
  150. package/dist/components/form-radio-group/style.css +53 -1
  151. package/dist/components/form-select/index.js +71 -51
  152. package/dist/components/form-switch/index.js +41 -30
  153. package/dist/components/form-temp/index.js +49 -29
  154. package/dist/components/form-textarea/index.js +45 -34
  155. package/dist/components/form-view/index.js +152 -81
  156. package/dist/components/form-view/style.css +158 -1
  157. package/dist/components/fy-array/index.js +51 -43
  158. package/dist/components/fy-array/style.css +18 -1
  159. package/dist/components/fy-article/index.js +24 -13
  160. package/dist/components/fy-article/style.css +40 -1
  161. package/dist/components/fy-cascader/index.js +39 -29
  162. package/dist/components/fy-checkbox/index.js +38 -27
  163. package/dist/components/fy-checkbox/style.css +15 -1
  164. package/dist/components/fy-code/index.js +19 -12
  165. package/dist/components/fy-curd/index.js +290 -152
  166. package/dist/components/fy-curd/style.css +239 -1
  167. package/dist/components/fy-date/index.js +24 -18
  168. package/dist/components/fy-date/style.css +21 -1
  169. package/dist/components/fy-dialog-form/index.js +127 -54
  170. package/dist/components/fy-draggable/index.js +196 -73
  171. package/dist/components/fy-draggable/style.css +136 -1
  172. package/dist/components/fy-dynamic/index.js +116 -73
  173. package/dist/components/fy-dynamic/style.css +35 -1
  174. package/dist/components/fy-empty/index.js +15 -9
  175. package/dist/components/fy-empty/style.css +24 -1
  176. package/dist/components/fy-form/index.js +399 -221
  177. package/dist/components/fy-form/style.css +79 -1
  178. package/dist/components/fy-form-design/index.js +2267 -1630
  179. package/dist/components/fy-form-design/style.css +578 -1
  180. package/dist/components/fy-form-menu/index.js +43 -35
  181. package/dist/components/fy-input/index.js +46 -35
  182. package/dist/components/fy-input-color/index.js +40 -33
  183. package/dist/components/fy-input-icon/index.js +58 -37
  184. package/dist/components/fy-input-icon/style.css +39 -1
  185. package/dist/components/fy-input-map/index.js +113 -68
  186. package/dist/components/fy-input-map/style.css +50 -1
  187. package/dist/components/fy-input-number/index.js +29 -24
  188. package/dist/components/fy-input-table/index.js +82 -48
  189. package/dist/components/fy-input-table/style.css +10 -1
  190. package/dist/components/fy-input-tree/index.js +104 -60
  191. package/dist/components/fy-input-tree/style.css +25 -1
  192. package/dist/components/fy-progress/index.js +15 -10
  193. package/dist/components/fy-radio/index.js +20 -14
  194. package/dist/components/fy-radio/style.css +12 -1
  195. package/dist/components/fy-rate/index.js +21 -15
  196. package/dist/components/fy-rate/style.css +9 -1
  197. package/dist/components/fy-select/index.js +73 -55
  198. package/dist/components/fy-select/style.css +25 -1
  199. package/dist/components/fy-slider/index.js +22 -17
  200. package/dist/components/fy-switch/index.js +17 -12
  201. package/dist/components/fy-tabs/index.js +20 -12
  202. package/dist/components/fy-tabs/style.css +6 -0
  203. package/dist/components/fy-time/index.js +29 -18
  204. package/dist/components/fy-title/index.js +16 -8
  205. package/dist/components/fy-title/style.css +11 -1
  206. package/dist/components/fy-tree/index.js +135 -72
  207. package/dist/components/fy-tree/style.css +46 -1
  208. package/dist/components/fy-u-editor/index.js +172 -67
  209. package/dist/components/fy-u-editor/style.css +15 -1
  210. package/dist/components/fy-upload/index.js +317 -148
  211. package/dist/components/fy-upload/style.css +60 -1
  212. package/dist/components/guide-steps/index.js +31 -17
  213. package/dist/components/guide-steps/style.css +34 -1
  214. package/dist/components/header-menu/index.js +86 -66
  215. package/dist/components/header-search/index.js +92 -60
  216. package/dist/components/highlight-j-s/index.js +28 -15
  217. package/dist/components/highlight-j-s/style.css +21 -1
  218. package/dist/components/icon-card/index.js +13 -7
  219. package/dist/components/icon-card/style.css +56 -1
  220. package/dist/components/icon-temp/index.js +12 -6
  221. package/dist/components/icon-temp/style.css +21 -1
  222. package/dist/components/iframe-window/index.js +20 -14
  223. package/dist/components/iframe-window/style.css +20 -1
  224. package/dist/components/image-cropper/index.js +71 -162
  225. package/dist/components/image-cropper/style.css +34 -1
  226. package/dist/components/image-preview/index.js +78 -170
  227. package/dist/components/image-preview/style.css +72 -1
  228. package/dist/components/image-viewer/index.js +40 -22
  229. package/dist/components/image-viewer/style.css +21 -1
  230. package/dist/components/input-number/index.js +122 -56
  231. package/dist/components/input-number/style.css +15 -1
  232. package/dist/components/input-number-range/index.js +32 -20
  233. package/dist/components/input-number-range/style.css +12 -1
  234. package/dist/components/keep-view-alive/index.js +68 -21
  235. package/dist/components/keyboard/index.js +217 -132
  236. package/dist/components/keyboard/style.css +547 -1
  237. package/dist/components/license/index.js +81 -35
  238. package/dist/components/loading-view/index.js +12 -6
  239. package/dist/components/loading-view/style.css +17 -1
  240. package/dist/components/login/index.js +91 -62
  241. package/dist/components/login/style.css +25 -1
  242. package/dist/components/name-avatar/index.js +32 -10
  243. package/dist/components/name-avatar/style.css +35 -1
  244. package/dist/components/nav-bar/index.js +21 -11
  245. package/dist/components/nav-bar/style.css +17 -1
  246. package/dist/components/not-implement/index.js +16 -8
  247. package/dist/components/not-implement/style.css +15 -1
  248. package/dist/components/notice/index.js +40 -27
  249. package/dist/components/notice/style.css +54 -1
  250. package/dist/components/page/index.js +13 -7
  251. package/dist/components/page/style.css +12 -1
  252. package/dist/components/page-header/index.js +15 -9
  253. package/dist/components/page-header/style.css +14 -1
  254. package/dist/components/page-index/index.js +62 -37
  255. package/dist/components/page-index/style.css +23 -1
  256. package/dist/components/page-index-top/index.js +53 -34
  257. package/dist/components/page-skeleton/index.js +15 -9
  258. package/dist/components/page-skeleton/style.css +23 -1
  259. package/dist/components/page-skeleton-new/index.js +15 -9
  260. package/dist/components/page-skeleton-new/style.css +42 -1
  261. package/dist/components/pageable-table/index.js +187 -106
  262. package/dist/components/pageable-table/style.css +72 -1
  263. package/dist/components/pageable-view/index.js +164 -80
  264. package/dist/components/pageable-view/style.css +69 -1
  265. package/dist/components/photo-swipe/index.js +92 -46
  266. package/dist/components/process-designer/index.js +961 -772
  267. package/dist/components/process-designer/style.css +1186 -1
  268. package/dist/components/properties-panel/index.js +1488 -1044
  269. package/dist/components/properties-panel/style.css +122 -1
  270. package/dist/components/queue/index.js +24 -12
  271. package/dist/components/record-video/index.js +53 -27
  272. package/dist/components/record-video/style.css +53 -1
  273. package/dist/components/resize-observer/index.js +52 -18
  274. package/dist/components/resize-observer/style.css +31 -1
  275. package/dist/components/search/index.js +41 -22
  276. package/dist/components/search/style.css +57 -1
  277. package/dist/components/search-popover/index.js +153 -91
  278. package/dist/components/search-popover/style.css +93 -1
  279. package/dist/components/sign/index.js +138 -35
  280. package/dist/components/sign/style.css +12 -1
  281. package/dist/components/sign-panel/index.js +96 -46
  282. package/dist/components/sign-panel/style.css +97 -1
  283. package/dist/components/skeleton/index.js +22 -12
  284. package/dist/components/skeleton/style.css +61 -1
  285. package/dist/components/split-pane/index.js +125 -60
  286. package/dist/components/split-pane/style.css +100 -1
  287. package/dist/components/stateful/index.js +8 -5
  288. package/dist/components/stateful/style.css +33 -1
  289. package/dist/components/static-pageable-table/index.js +22 -15
  290. package/dist/components/static-pageable-table/style.css +9 -1
  291. package/dist/components/swiper/index.js +127 -58
  292. package/dist/components/swiper/style.css +43 -1
  293. package/dist/components/tab/index.js +34 -16
  294. package/dist/components/tab/style.css +122 -1
  295. package/dist/components/tab-item/index.js +14 -9
  296. package/dist/components/table-column/index.js +26 -17
  297. package/dist/components/table-page/index.js +42 -23
  298. package/dist/components/table-view/index.js +162 -87
  299. package/dist/components/table-view/style.css +95 -1
  300. package/dist/components/tag-render/index.js +41 -22
  301. package/dist/components/tag-render/style.css +33 -1
  302. package/dist/components/text-ellipsis/index.js +48 -26
  303. package/dist/components/text-ellipsis/style.css +9 -1
  304. package/dist/components/tinymce-editor/index.js +80 -60
  305. package/dist/components/tinymce-editor/style.css +43 -1
  306. package/dist/components/tinymce-wrapper/index.js +77 -41
  307. package/dist/components/tinymce-wrapper/style.css +36 -1
  308. package/dist/components/toolbar/index.js +46 -25
  309. package/dist/components/toolbar/style.css +39 -1
  310. package/dist/components/toolbar-button/index.js +46 -35
  311. package/dist/components/toolbar-button/style.css +21 -1
  312. package/dist/components/trigger/index.js +15 -8
  313. package/dist/components/verify/index.js +15 -8
  314. package/dist/components/verify/style.css +15 -1
  315. package/dist/components/vue-tags-input/index.js +233 -113
  316. package/dist/components/vue-tags-input/style.css +688 -1
  317. package/dist/components/watermark/index.js +33 -14
  318. package/dist/components/watermark/style.css +11 -1
  319. package/dist/index.css +2434 -1750
  320. package/dist/index.es.js +15982 -9409
  321. package/package.json +4 -4
  322. package/web-types.json +1 -1
  323. package/dist/chunks/confirmable-mixin.35bd1934.js +0 -104
  324. package/dist/chunks/dataformat.9cc4428a.js +0 -158
  325. package/dist/chunks/detail.544c52b0.js +0 -29
  326. package/dist/chunks/dic.9de2fe5a.js +0 -135
  327. package/dist/chunks/slot.a7387ecc.js +0 -27
  328. package/dist/chunks/util.89913643.js +0 -261
  329. package/dist/chunks/vueComponentNormalizer.77ec6792.js +0 -32
@@ -1,23 +1,25 @@
1
1
  import { fastClone, validateNumber, validateIdCard, validatePhoneNum } from "@web-utils/core";
2
- import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.77ec6792.js";
2
+ import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.9c6b8b3d.js";
3
3
  var render = function() {
4
- var _vm = this, _h = _vm.$createElement, _c = _vm._self._c || _h;
4
+ var _vm = this;
5
+ var _h = _vm.$createElement;
6
+ var _c = _vm._self._c || _h;
5
7
  return _c("div", {
6
8
  staticClass: "dynamic-table"
7
9
  }, [_c("ElTable", {
8
10
  key: _vm.key,
9
11
  staticStyle: {
10
- width: "100%"
12
+ "width": "100%"
11
13
  },
12
14
  attrs: {
13
- data: _vm.value
15
+ "data": _vm.value
14
16
  }
15
17
  }, [_vm._l(_vm.columns, function(column) {
16
18
  return _c("ElTableColumn", {
17
19
  key: column.prop,
18
20
  attrs: {
19
- prop: column.prop,
20
- label: column.label,
21
+ "prop": column.prop,
22
+ "label": column.label,
21
23
  "min-width": "150"
22
24
  },
23
25
  scopedSlots: _vm._u([{
@@ -29,15 +31,15 @@ var render = function() {
29
31
  marginBottom: _vm.inputDisabled ? "0px" : "16px"
30
32
  },
31
33
  attrs: {
32
- prop: `${_vm.prop}.${$index}.${column.prop}`,
33
- size: "mini",
34
- rules: _vm.getRules(column)
34
+ "prop": `${_vm.prop}.${$index}.${column.prop}`,
35
+ "size": "mini",
36
+ "rules": _vm.getRules(column)
35
37
  }
36
38
  }, [_c("ElInput", {
37
39
  attrs: {
38
40
  "prefix-icon": _vm.getIcon(column),
39
- disabled: _vm.inputDisabled,
40
- placeholder: _vm.inputDisabled ? "" : `请输入${column.label}!`
41
+ "disabled": _vm.inputDisabled,
42
+ "placeholder": _vm.inputDisabled ? "" : `请输入${column.label}!`
41
43
  },
42
44
  model: {
43
45
  value: row[column.prop],
@@ -48,13 +50,13 @@ var render = function() {
48
50
  }
49
51
  })], 1)];
50
52
  }
51
- }], null, !0)
53
+ }], null, true)
52
54
  });
53
- }), _vm.inputDisabled ? _vm._e() : _c("ElTableColumn", {
55
+ }), !_vm.inputDisabled ? _c("ElTableColumn", {
54
56
  attrs: {
55
- label: "操作",
56
- width: "60",
57
- fixed: "right"
57
+ "label": "操作",
58
+ "width": "60",
59
+ "fixed": "right"
58
60
  },
59
61
  scopedSlots: _vm._u([{
60
62
  key: "default",
@@ -63,40 +65,44 @@ var render = function() {
63
65
  return [_c("i", {
64
66
  staticClass: "el-icon-minus dynamic-table-action-icon",
65
67
  staticStyle: {
66
- position: "relative",
67
- top: "-8px",
68
- color: "#f00"
68
+ "position": "relative",
69
+ "top": "-8px",
70
+ "color": "#f00"
69
71
  },
70
72
  attrs: {
71
- title: "删除"
73
+ "title": "删除"
72
74
  },
73
75
  on: {
74
- click: function($event) {
75
- return $event.stopPropagation(), _vm.removeRow(row, $index, column);
76
+ "click": function($event) {
77
+ $event.stopPropagation();
78
+ return _vm.removeRow(row, $index, column);
76
79
  }
77
80
  }
78
81
  })];
79
82
  }
80
- }], null, !1, 410881950)
81
- })], 2), _vm.inputDisabled ? _vm._e() : _c("ElButton", {
83
+ }], null, false, 410881950)
84
+ }) : _vm._e()], 2), !_vm.inputDisabled ? _c("ElButton", {
82
85
  staticStyle: {
83
- color: "#08c108"
86
+ "color": "#08c108"
84
87
  },
85
88
  attrs: {
86
- type: "text",
87
- icon: "el-icon-plus"
89
+ "type": "text",
90
+ "icon": "el-icon-plus"
88
91
  },
89
92
  on: {
90
- click: _vm.addRow
93
+ "click": _vm.addRow
91
94
  }
92
- }, [_vm._v(" 添加 ")])], 1);
93
- }, staticRenderFns = [];
95
+ }, [_vm._v(" 添加 ")]) : _vm._e()], 1);
96
+ };
97
+ var staticRenderFns = [];
98
+ const DynamicTable_vue_vue_type_style_index_0_lang = "";
94
99
  const icons = {
95
100
  number: "fa fa-superscript",
96
101
  email: "el-icon-lx-mail",
97
102
  phone: "fa fa-phone",
98
103
  idCard: "el-icon-lx-news"
99
- }, __vue2_script = {
104
+ };
105
+ const __vue2_script = {
100
106
  name: "DynamicTable",
101
107
  inject: {
102
108
  elForm: {
@@ -133,13 +139,13 @@ const icons = {
133
139
  },
134
140
  watch: {
135
141
  value: {
136
- deep: !0,
142
+ deep: true,
137
143
  handler(newVal) {
138
144
  this.$emit("input", newVal);
139
145
  }
140
146
  },
141
147
  columns: {
142
- deep: !0,
148
+ deep: true,
143
149
  handler() {
144
150
  this.key++;
145
151
  }
@@ -151,41 +157,59 @@ const icons = {
151
157
  },
152
158
  addRow() {
153
159
  const value = this.value;
154
- value.push(this.newRow()), this.$emit("input", value);
160
+ value.push(this.newRow());
161
+ this.$emit("input", value);
155
162
  },
156
163
  removeRow(row, index) {
157
164
  const value = this.value;
158
- value.splice(index, 1), this.$emit("input", value);
165
+ value.splice(index, 1);
166
+ this.$emit("input", value);
159
167
  },
160
168
  newRow() {
161
169
  const row = {};
162
- return this.columns.forEach((value) => {
170
+ this.columns.forEach((value) => {
163
171
  row[value.prop] = void 0;
164
- }), row;
172
+ });
173
+ return row;
165
174
  },
166
175
  getRules(column) {
167
176
  const userRules = column.rules;
168
177
  if (["email", "idCard", "phone", "number"].includes(column.type)) {
169
178
  const rules = fastClone(userRules || []);
170
- return column.type === "number" && rules.push({ validator: validateNumber, message: "请输入数字!" }), column.type === "email" && rules.push({ type: "email", message: "请输入正确的邮箱地址!" }), column.type === "idCard" && rules.push({ validator: validateIdCard, message: "请输入正确的身份证号码!" }), column.type === "phone" && rules.push({ validator: validatePhoneNum, message: "请输入正确的手机号码!" }), rules;
171
- } else
179
+ if (column.type === "number") {
180
+ rules.push({ validator: validateNumber, message: "请输入数字!" });
181
+ }
182
+ if (column.type === "email") {
183
+ rules.push({ type: "email", message: "请输入正确的邮箱地址!" });
184
+ }
185
+ if (column.type === "idCard") {
186
+ rules.push({ validator: validateIdCard, message: "请输入正确的身份证号码!" });
187
+ }
188
+ if (column.type === "phone") {
189
+ rules.push({ validator: validatePhoneNum, message: "请输入正确的手机号码!" });
190
+ }
191
+ return rules;
192
+ } else {
172
193
  return userRules;
194
+ }
173
195
  }
174
196
  }
175
- }, __cssModules = {};
197
+ };
198
+ const __cssModules = {};
176
199
  var __component__ = /* @__PURE__ */ normalizeComponent(
177
200
  __vue2_script,
178
201
  render,
179
202
  staticRenderFns,
180
- !1,
203
+ false,
181
204
  __vue2_injectStyles,
182
205
  null,
183
206
  null,
184
207
  null
185
208
  );
186
209
  function __vue2_injectStyles(context) {
187
- for (let o in __cssModules)
210
+ for (let o in __cssModules) {
188
211
  this[o] = __cssModules[o];
212
+ }
189
213
  }
190
214
  const DynamicTable = /* @__PURE__ */ function() {
191
215
  return __component__.exports;
@@ -1 +1,30 @@
1
- .dynamic-table{display:flex;flex-direction:column;align-items:center;width:100%}.dynamic-table .dynamic-table-action-icon{margin-left:10px;font-weight:700;cursor:pointer}.dynamic-table .el-form-item{margin-bottom:0}.dynamic-table .el-table{flex:1 1 auto}.dynamic-table .el-table td{padding:2px 0}.dynamic-table .el-input.is-disabled .el-input__inner{background-color:transparent;border:none}
1
+ /* 全局公共颜色配置 */ /* 全局公共尺寸配置 */
2
+ /* 应用头部高度 */
3
+ /* 页面宽度 */
4
+ /* 侧栏宽度 */
5
+ /* 标签高度 */
6
+ /* 页面头部工具条高度 */
7
+ .dynamic-table {
8
+ display: flex;
9
+ flex-direction: column;
10
+ align-items: center;
11
+ width: 100%;
12
+ }
13
+ .dynamic-table .dynamic-table-action-icon {
14
+ margin-left: 10px;
15
+ font-weight: bold;
16
+ cursor: pointer;
17
+ }
18
+ .dynamic-table .el-form-item {
19
+ margin-bottom: 0;
20
+ }
21
+ .dynamic-table .el-table {
22
+ flex: 1 1 auto;
23
+ }
24
+ .dynamic-table .el-table td {
25
+ padding: 2px 0;
26
+ }
27
+ .dynamic-table .el-input.is-disabled .el-input__inner {
28
+ background-color: transparent;
29
+ border: none;
30
+ }
@@ -5,9 +5,11 @@ import { CanvasRenderer } from "echarts/renderers";
5
5
  import { isString } from "@web-utils/core";
6
6
  import { debounce } from "@web-utils/integrations/lodash";
7
7
  import { addListener, removeListener } from "resize-detector";
8
- import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.77ec6792.js";
8
+ import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.9c6b8b3d.js";
9
9
  var render = function() {
10
- var _vm = this, _h = _vm.$createElement, _c = _vm._self._c || _h;
10
+ var _vm = this;
11
+ var _h = _vm.$createElement;
12
+ var _c = _vm._self._c || _h;
11
13
  return _c("div", {
12
14
  staticClass: "echarts",
13
15
  style: {
@@ -15,7 +17,9 @@ var render = function() {
15
17
  height: _vm.height
16
18
  }
17
19
  });
18
- }, staticRenderFns = [];
20
+ };
21
+ var staticRenderFns = [];
22
+ const ECharts_vue_vue_type_style_index_0_lang = "";
19
23
  echarts.use([
20
24
  TitleComponent,
21
25
  TooltipComponent,
@@ -33,7 +37,9 @@ echarts.use([
33
37
  EffectScatterChart,
34
38
  PictorialBarChart
35
39
  ]);
36
- const INIT_TRIGGERS = ["theme", "initOptions", "autoResize"], REWATCH_TRIGGERS = ["manualUpdate", "watchShallow"], __vue2_script = {
40
+ const INIT_TRIGGERS = ["theme", "initOptions", "autoResize"];
41
+ const REWATCH_TRIGGERS = ["manualUpdate", "watchShallow"];
42
+ const __vue2_script = {
37
43
  name: "ECharts",
38
44
  props: {
39
45
  options: {
@@ -71,33 +77,49 @@ const INIT_TRIGGERS = ["theme", "initOptions", "autoResize"], REWATCH_TRIGGERS =
71
77
  }
72
78
  },
73
79
  created() {
74
- this.initOptionsWatcher(), INIT_TRIGGERS.forEach((prop) => {
80
+ this.initOptionsWatcher();
81
+ INIT_TRIGGERS.forEach((prop) => {
75
82
  this.$watch(
76
83
  prop,
77
84
  () => {
78
85
  this.refresh();
79
86
  },
80
- { deep: !0 }
87
+ { deep: true }
81
88
  );
82
- }), REWATCH_TRIGGERS.forEach((prop) => {
89
+ });
90
+ REWATCH_TRIGGERS.forEach((prop) => {
83
91
  this.$watch(prop, () => {
84
- this.initOptionsWatcher(), this.refresh();
92
+ this.initOptionsWatcher();
93
+ this.refresh();
85
94
  });
86
95
  });
87
96
  },
88
97
  mounted() {
89
- this.options && this.init();
98
+ if (this.options) {
99
+ this.init();
100
+ }
90
101
  },
91
102
  activated() {
92
- this.autoResize && this.chart && this.chart.resize();
103
+ if (this.autoResize) {
104
+ this.chart && this.chart.resize();
105
+ }
93
106
  },
94
107
  destroyed() {
95
- this.chart && this.destroy();
108
+ if (this.chart) {
109
+ this.destroy();
110
+ }
96
111
  },
97
112
  methods: {
98
113
  // provide an explicit merge option method
99
114
  mergeOptions(options, notMerge, lazyUpdate) {
100
- this.manualUpdate && (this.manualOptions = options), this.chart ? this.delegateMethod("setOption", options, notMerge, lazyUpdate) : this.init(options);
115
+ if (this.manualUpdate) {
116
+ this.manualOptions = options;
117
+ }
118
+ if (!this.chart) {
119
+ this.init(options);
120
+ } else {
121
+ this.delegateMethod("setOption", options, notMerge, lazyUpdate);
122
+ }
101
123
  },
102
124
  // just delegates ECharts methods to Vue component
103
125
  // use explicit params to reduce transpiled size for now
@@ -138,67 +160,124 @@ const INIT_TRIGGERS = ["theme", "initOptions", "autoResize"], REWATCH_TRIGGERS =
138
160
  this.delegateMethod("dispose");
139
161
  },
140
162
  delegateMethod(name, ...args) {
141
- return this.chart || this.init(), this.chart[name](...args);
163
+ if (!this.chart) {
164
+ this.init();
165
+ }
166
+ return this.chart[name](...args);
142
167
  },
143
168
  delegateGet(methodName) {
144
- return this.chart || this.init(), this.chart[methodName]();
169
+ if (!this.chart) {
170
+ this.init();
171
+ }
172
+ return this.chart[methodName]();
145
173
  },
146
174
  getArea() {
147
175
  return this.$el.offsetWidth * this.$el.offsetHeight;
148
176
  },
149
177
  init(options) {
150
- if (this.chart)
178
+ if (this.chart) {
151
179
  return;
180
+ }
152
181
  const chart = echarts.init(this.$el, this.theme, this.initOptions);
153
- this.group && (chart.group = this.group), chart.setOption(options || this.manualOptions || this.options || {}, !0), Object.keys(this.$listeners).forEach((event) => {
182
+ if (this.group) {
183
+ chart.group = this.group;
184
+ }
185
+ chart.setOption(options || this.manualOptions || this.options || {}, true);
186
+ Object.keys(this.$listeners).forEach((event) => {
154
187
  const handler = this.$listeners[event];
155
- event.indexOf("zr:") === 0 ? chart.getZr().on(event.slice(3), handler) : chart.on(event, handler);
156
- }), this.autoResize && (this.lastArea = this.getArea(), this.__resizeHandler = debounce(
157
- () => {
158
- this.lastArea === 0 ? (this.mergeOptions({}, !0), this.resize(), this.mergeOptions(this.options || this.manualOptions || {}, !0)) : this.resize(), this.lastArea = this.getArea();
159
- },
160
- 100,
161
- { leading: !0 }
162
- ), addListener(this.$el, this.__resizeHandler)), Object.defineProperties(this, {
188
+ if (event.indexOf("zr:") === 0) {
189
+ chart.getZr().on(event.slice(3), handler);
190
+ } else {
191
+ chart.on(event, handler);
192
+ }
193
+ });
194
+ if (this.autoResize) {
195
+ this.lastArea = this.getArea();
196
+ this.__resizeHandler = debounce(
197
+ () => {
198
+ if (this.lastArea === 0) {
199
+ this.mergeOptions({}, true);
200
+ this.resize();
201
+ this.mergeOptions(this.options || this.manualOptions || {}, true);
202
+ } else {
203
+ this.resize();
204
+ }
205
+ this.lastArea = this.getArea();
206
+ },
207
+ 100,
208
+ { leading: true }
209
+ );
210
+ addListener(this.$el, this.__resizeHandler);
211
+ }
212
+ Object.defineProperties(this, {
163
213
  // Only recalculated when accessed from JavaScript.
164
214
  // Won't update DOM on value change because getters
165
215
  // don't depend on reactive values
166
216
  width: {
167
- configurable: !0,
168
- get: () => this.delegateGet("getWidth")
217
+ configurable: true,
218
+ get: () => {
219
+ return this.delegateGet("getWidth");
220
+ }
169
221
  },
170
222
  height: {
171
- configurable: !0,
172
- get: () => this.delegateGet("getHeight")
223
+ configurable: true,
224
+ get: () => {
225
+ return this.delegateGet("getHeight");
226
+ }
173
227
  },
174
228
  isDisposed: {
175
- configurable: !0,
176
- get: () => !!this.delegateGet("isDisposed")
229
+ configurable: true,
230
+ get: () => {
231
+ return !!this.delegateGet("isDisposed");
232
+ }
177
233
  },
178
234
  computedOptions: {
179
- configurable: !0,
180
- get: () => this.delegateGet("getOption")
235
+ configurable: true,
236
+ get: () => {
237
+ return this.delegateGet("getOption");
238
+ }
181
239
  }
182
- }), this.chart = chart;
240
+ });
241
+ this.chart = chart;
183
242
  },
184
243
  initOptionsWatcher() {
185
- this.__unwatchOptions && (this.__unwatchOptions(), this.__unwatchOptions = null), this.manualUpdate || (this.__unwatchOptions = this.$watch(
186
- "options",
187
- (val, oldVal) => {
188
- !this.chart && val ? this.init() : this.chart.setOption(val, val !== oldVal);
189
- },
190
- { deep: !this.watchShallow }
191
- ));
244
+ if (this.__unwatchOptions) {
245
+ this.__unwatchOptions();
246
+ this.__unwatchOptions = null;
247
+ }
248
+ if (!this.manualUpdate) {
249
+ this.__unwatchOptions = this.$watch(
250
+ "options",
251
+ (val, oldVal) => {
252
+ if (!this.chart && val) {
253
+ this.init();
254
+ } else {
255
+ this.chart.setOption(val, val !== oldVal);
256
+ }
257
+ },
258
+ { deep: !this.watchShallow }
259
+ );
260
+ }
192
261
  },
193
262
  destroy() {
194
- this.autoResize && removeListener(this.$el, this.__resizeHandler), this.dispose(), this.chart = null;
263
+ if (this.autoResize) {
264
+ removeListener(this.$el, this.__resizeHandler);
265
+ }
266
+ this.dispose();
267
+ this.chart = null;
195
268
  },
196
269
  refresh() {
197
- this.chart && (this.destroy(), this.init());
270
+ if (this.chart) {
271
+ this.destroy();
272
+ this.init();
273
+ }
198
274
  }
199
275
  },
200
276
  connect(group) {
201
- isString(group) || (group = group.map((chart) => chart.chart)), echarts.connect(group);
277
+ if (!isString(group)) {
278
+ group = group.map((chart) => chart.chart);
279
+ }
280
+ echarts.connect(group);
202
281
  },
203
282
  disconnect(group) {
204
283
  echarts.disConnect(group);
@@ -213,20 +292,22 @@ const INIT_TRIGGERS = ["theme", "initOptions", "autoResize"], REWATCH_TRIGGERS =
213
292
  echarts.registerTheme(name, theme);
214
293
  },
215
294
  graphic: echarts.graphic
216
- }, __cssModules = {};
295
+ };
296
+ const __cssModules = {};
217
297
  var __component__ = /* @__PURE__ */ normalizeComponent(
218
298
  __vue2_script,
219
299
  render,
220
300
  staticRenderFns,
221
- !1,
301
+ false,
222
302
  __vue2_injectStyles,
223
303
  null,
224
304
  null,
225
305
  null
226
306
  );
227
307
  function __vue2_injectStyles(context) {
228
- for (let o in __cssModules)
308
+ for (let o in __cssModules) {
229
309
  this[o] = __cssModules[o];
310
+ }
230
311
  }
231
312
  const ECharts = /* @__PURE__ */ function() {
232
313
  return __component__.exports;
@@ -1 +1,10 @@
1
- .echarts{width:100%;height:100%}
1
+ /* 全局公共颜色配置 */ /* 全局公共尺寸配置 */
2
+ /* 应用头部高度 */
3
+ /* 页面宽度 */
4
+ /* 侧栏宽度 */
5
+ /* 标签高度 */
6
+ /* 页面头部工具条高度 */
7
+ .echarts {
8
+ width: 100%;
9
+ height: 100%;
10
+ }
@@ -1,6 +1,8 @@
1
- import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.77ec6792.js";
1
+ import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.9c6b8b3d.js";
2
2
  var render = function() {
3
- var _vm = this, _h = _vm.$createElement, _c = _vm._self._c || _h;
3
+ var _vm = this;
4
+ var _h = _vm.$createElement;
5
+ var _c = _vm._self._c || _h;
4
6
  return _vm.rendered ? _c("div", {
5
7
  directives: [{
6
8
  name: "show",
@@ -11,19 +13,23 @@ var render = function() {
11
13
  staticClass: "easy-popup",
12
14
  style: _vm.axisComputed
13
15
  }, [_vm._t("default")], 2) : _vm._e();
14
- }, staticRenderFns = [];
16
+ };
17
+ var staticRenderFns = [];
18
+ const EasyPopup_vue_vue_type_style_index_0_lang = "";
15
19
  const __vue2_script = {
16
20
  name: "EasyPopup",
17
21
  props: {
18
22
  // 是否开启边界检测
19
23
  border: {
20
24
  type: Boolean,
21
- default: !0
25
+ default: true
22
26
  },
23
27
  // 显示点偏移量
24
28
  offset: {
25
29
  type: Object,
26
- default: () => ({ x: 6, y: 2 })
30
+ default: () => {
31
+ return { x: 6, y: 2 };
32
+ }
27
33
  },
28
34
  // 边界距离
29
35
  borderWidth: {
@@ -34,8 +40,8 @@ const __vue2_script = {
34
40
  data() {
35
41
  return {
36
42
  // 是否显示
37
- visible: !1,
38
- rendered: !1,
43
+ visible: false,
44
+ rendered: false,
39
45
  // 触发点坐标
40
46
  axis: { x: 0, y: 0 }
41
47
  };
@@ -51,33 +57,45 @@ const __vue2_script = {
51
57
  watch: {
52
58
  axis() {
53
59
  if (this.border) {
54
- const bw = document.body.offsetWidth, bh = document.body.offsetHeight;
55
- this.axis.x + this.offset.x >= bw && (this.axis.x = bw - this.borderWidth - this.offset.x), this.axis.y + this.offset.y >= bh && (this.axis.y = bh - this.borderWidth - this.offset.y);
60
+ const bw = document.body.offsetWidth;
61
+ const bh = document.body.offsetHeight;
62
+ if (this.axis.x + this.offset.x >= bw) {
63
+ this.axis.x = bw - this.borderWidth - this.offset.x;
64
+ }
65
+ if (this.axis.y + this.offset.y >= bh) {
66
+ this.axis.y = bh - this.borderWidth - this.offset.y;
67
+ }
56
68
  }
57
69
  }
58
70
  },
59
71
  methods: {
60
72
  show(event) {
61
- document.addEventListener("click", this.hide, !0), this.axis = { x: event.clientX, y: event.clientY }, this.rendered = !0, this.visible = !0;
73
+ document.addEventListener("click", this.hide, true);
74
+ this.axis = { x: event.clientX, y: event.clientY };
75
+ this.rendered = true;
76
+ this.visible = true;
62
77
  },
63
78
  hide() {
64
- this.visible = !1, document.removeEventListener("click", this.hide);
79
+ this.visible = false;
80
+ document.removeEventListener("click", this.hide);
65
81
  }
66
82
  }
67
- }, __cssModules = {};
83
+ };
84
+ const __cssModules = {};
68
85
  var __component__ = /* @__PURE__ */ normalizeComponent(
69
86
  __vue2_script,
70
87
  render,
71
88
  staticRenderFns,
72
- !1,
89
+ false,
73
90
  __vue2_injectStyles,
74
91
  null,
75
92
  null,
76
93
  null
77
94
  );
78
95
  function __vue2_injectStyles(context) {
79
- for (let o in __cssModules)
96
+ for (let o in __cssModules) {
80
97
  this[o] = __cssModules[o];
98
+ }
81
99
  }
82
100
  const EasyPopup = /* @__PURE__ */ function() {
83
101
  return __component__.exports;
@@ -1 +1,18 @@
1
- .easy-popup{position:fixed;z-index:9999;user-select:none;width:300px;padding:12px;border:1px solid #ebeef5;border-radius:4px;background:#fff;box-shadow:0 2px 12px #0000001a;min-height:200px}
1
+ /* 全局公共颜色配置 */ /* 全局公共尺寸配置 */
2
+ /* 应用头部高度 */
3
+ /* 页面宽度 */
4
+ /* 侧栏宽度 */
5
+ /* 标签高度 */
6
+ /* 页面头部工具条高度 */
7
+ .easy-popup {
8
+ position: fixed;
9
+ z-index: 9999;
10
+ user-select: none;
11
+ width: 300px;
12
+ padding: 12px;
13
+ border: 1px solid #ebeef5;
14
+ border-radius: 4px;
15
+ background: #fff;
16
+ box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
17
+ min-height: 200px;
18
+ }