@web-utils/component 4.0.16 → 5.0.0-beta02

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 (325) hide show
  1. package/address-input/index.mjs +76 -74
  2. package/affix/index.mjs +71 -78
  3. package/aside-menu/index.mjs +20 -31
  4. package/avatar/index.mjs +94 -82
  5. package/awesome-button/index.mjs +54 -71
  6. package/capsule-tab/index.mjs +27 -32
  7. package/card/index.mjs +86 -69
  8. package/carousel/index.mjs +45 -32
  9. package/chat/index.mjs +441 -266
  10. package/chunk-file-uploader/index.mjs +2 -103
  11. package/chunks/ChunkFileUploader.C3EA0e5t.mjs +114 -0
  12. package/chunks/EditableTree.D0ByhRTi.mjs +648 -0
  13. package/chunks/ElementBaseInfo.B3pY8TkD.mjs +209 -0
  14. package/chunks/ElementDialog.DNsDHdQS.mjs +251 -0
  15. package/chunks/ElementForm.D_lXbe--.mjs +627 -0
  16. package/chunks/ElementListeners.Cufwd4bp.mjs +656 -0
  17. package/chunks/ElementMultiInstance.BhY8NY2z.mjs +290 -0
  18. package/chunks/ElementOtherConfig.DX1ZJ9w2.mjs +51 -0
  19. package/chunks/ElementProperties.BRafADXp.mjs +196 -0
  20. package/chunks/ElementTaskConfig.B6pqRir_.mjs +446 -0
  21. package/chunks/FlowCondition.Dvwji23j.mjs +194 -0
  22. package/chunks/FlowDesigner.LL-vXDIE.mjs +5100 -0
  23. package/chunks/FormBlock.Co7l6USP.mjs +117 -0
  24. package/chunks/FormCascader.DMY3uNc8.mjs +1227 -0
  25. package/chunks/FormInputTime.BC4FfWwY.mjs +1774 -0
  26. package/chunks/FormItem.BSXI2cZU.mjs +89 -0
  27. package/chunks/FormItemGroup.D2Htta7J.mjs +149 -0
  28. package/chunks/FormSelect.CY0K-izg.mjs +1473 -0
  29. package/chunks/FormSwitch.DLqFXaFF.mjs +297 -0
  30. package/chunks/FormTemp.PJFfNRls.mjs +139 -0
  31. package/chunks/FyCurd.me083T8V.mjs +2622 -0
  32. package/chunks/FyForm.vVp8aVtj.mjs +906 -0
  33. package/chunks/FyFormDesign.BCxVyiWY.mjs +5600 -0
  34. package/chunks/FyUEditor.BymtA5SJ.mjs +221 -0
  35. package/chunks/FyUpload.CA7Gfa6Q.mjs +504 -0
  36. package/chunks/ImagePreview.ByEWJYdu.mjs +639 -0
  37. package/chunks/Keyboard.4hi7CjGc.mjs +379 -0
  38. package/chunks/MonacoEditor.B7BUQwb7.mjs +302 -0
  39. package/chunks/PageableTable.Ba3XSbZ5.mjs +660 -0
  40. package/chunks/RecordVideo.VRFTaHSp.mjs +116 -0
  41. package/chunks/SignalAndMessage.DYhKWs3X.mjs +198 -0
  42. package/chunks/SplitPane.Bwe5Rc0J.mjs +219 -0
  43. package/chunks/TableColumn.72HOXQkb.mjs +186 -0
  44. package/chunks/TableView.BxfsOAxU.mjs +484 -0
  45. package/chunks/Toolbar.BVziVmyT.mjs +219 -0
  46. package/chunks/UserTaskListeners.CkeyTpnn.mjs +599 -0
  47. package/chunks/VueCron.DEvY5-i7.mjs +1823 -0
  48. package/chunks/VueTreeSelect.C6Ycu28Z.mjs +1873 -0
  49. package/chunks/_plugin-vue_export-helper.7vrlOII_.mjs +8 -0
  50. package/chunks/checkbox.C_9WZ8gc.mjs +437 -0
  51. package/chunks/confirmable-mixin.zegaXQTl.mjs +1762 -0
  52. package/chunks/core.DXaMPWGV.mjs +51 -0
  53. package/chunks/dataformat.CteBVoOe.mjs +144 -0
  54. package/chunks/dic.C0abEij9.mjs +116 -0
  55. package/chunks/dictionary.BRhZD-WH.mjs +19 -0
  56. package/chunks/dictionary.CNNpjPL2.mjs +87 -0
  57. package/chunks/event.B4iwtUNO.mjs +4 -0
  58. package/chunks/event.Dv4XTu8B.mjs +224 -0
  59. package/chunks/focus-trap.FbvlqAGe.mjs +211 -0
  60. package/chunks/form-input.BUGZmAI1.mjs +34 -0
  61. package/chunks/form-item.Ca8U2bIR.mjs +712 -0
  62. package/chunks/form-pick.DT5kumy4.mjs +7 -0
  63. package/chunks/form-validate.CUvMwtPN.mjs +11 -0
  64. package/chunks/icon.CxCY22-F.mjs +26 -0
  65. package/chunks/icon.ym7735_x.mjs +251 -0
  66. package/chunks/init.6jGmuY99.mjs +115 -0
  67. package/chunks/input.C2GWsuXE.mjs +547 -0
  68. package/chunks/install.yLcn5MLL.mjs +84 -0
  69. package/chunks/message.C4NdvfbE.mjs +400 -0
  70. package/chunks/packages.BLDb9e6G.mjs +56 -0
  71. package/chunks/permission.C-IUDxQQ.mjs +16 -0
  72. package/chunks/photo-swipe.BxnG4lip.mjs +55 -0
  73. package/chunks/radio.CeLeSOEo.mjs +273 -0
  74. package/chunks/scroll.DWjS-gnW.mjs +28 -0
  75. package/chunks/scrollbar.CAmrlKi9.mjs +345 -0
  76. package/chunks/slot.DT5QwXL-.mjs +25 -0
  77. package/chunks/style.BmlGmjpO.mjs +325 -0
  78. package/chunks/sub-table-plus-props.CRX7ERxJ.mjs +28 -0
  79. package/chunks/tab-mixin.7zuMMM1E.mjs +70 -0
  80. package/chunks/tag.ZhEIVRpP.mjs +141 -0
  81. package/chunks/tooltip.DNiltmX1.mjs +1939 -0
  82. package/chunks/typescript.CLl-2siQ.mjs +18 -0
  83. package/chunks/use-aria.BW7nWOl1.mjs +17 -0
  84. package/chunks/use-composition.mUaomyno.mjs +47 -0
  85. package/chunks/use-deprecated.BfDSbZS9.mjs +12 -0
  86. package/chunks/use-empty-values.D8KYIiKR.mjs +81 -0
  87. package/chunks/use-form-item.BlWa7ZKe.mjs +56 -0
  88. package/chunks/use-global-config.DRovgom9.mjs +57 -0
  89. package/chunks/use-locale.Be9HCpTQ.mjs +188 -0
  90. package/chunks/util.Ce4MHRmD.mjs +103 -0
  91. package/chunks/util.g-WQEec9.mjs +223 -0
  92. package/chunks/utilSelf.BttmSVX6.mjs +46 -0
  93. package/chunks/utils.BGJfM4oG.mjs +60 -0
  94. package/chunks/utils.CSPl1l4f.mjs +14 -0
  95. package/chunks/validator.DuBSEj8O.mjs +5 -0
  96. package/chunks/vnode.C3PXzhmg.mjs +14 -0
  97. package/code-mirror-editor/index.mjs +89 -88
  98. package/comment/index.mjs +62 -57
  99. package/configComponents.mjs +40 -50
  100. package/confirm-button/index.mjs +34 -46
  101. package/confirmable/index.mjs +7 -17
  102. package/context-menu/index.mjs +195 -174
  103. package/count-up/index.mjs +97 -105
  104. package/custom-scrollbar/index.mjs +91 -98
  105. package/data-box/index.mjs +64 -44
  106. package/data-box/style.css +1 -1
  107. package/data-card/index.mjs +60 -47
  108. package/data-card/style.css +1 -1
  109. package/data-card-text/index.mjs +63 -49
  110. package/data-display/index.mjs +71 -51
  111. package/data-display/style.css +1 -1
  112. package/data-icons/index.mjs +70 -50
  113. package/data-icons/style.css +1 -1
  114. package/data-imgtext/index.mjs +67 -43
  115. package/data-imgtext/style.css +1 -1
  116. package/data-operatext/index.mjs +51 -40
  117. package/data-operatext/style.css +1 -1
  118. package/data-panel/index.mjs +57 -44
  119. package/data-panel/style.css +1 -1
  120. package/data-pay/index.mjs +105 -48
  121. package/data-pay/style.css +1 -1
  122. package/data-price/index.mjs +48 -40
  123. package/data-price/style.css +1 -1
  124. package/data-progress/index.mjs +67 -44
  125. package/data-progress/style.css +1 -1
  126. package/data-rotate/index.mjs +61 -44
  127. package/data-rotate/style.css +1 -1
  128. package/data-table-picker/index.mjs +119 -71
  129. package/data-tabs/index.mjs +67 -44
  130. package/data-tabs/style.css +1 -1
  131. package/dialog-form/index.mjs +143 -87
  132. package/dynamic-table/index.mjs +166 -109
  133. package/e-charts/index.mjs +174 -200
  134. package/easy-popup/index.mjs +91 -102
  135. package/editable-progress/index.mjs +112 -83
  136. package/editable-tree/index.mjs +2 -481
  137. package/element-dialog/index.mjs +2 -306
  138. package/ellipsis/index.mjs +124 -148
  139. package/empty-view/index.mjs +48 -65
  140. package/error-view/index.mjs +39 -51
  141. package/flex-column/index.mjs +34 -51
  142. package/flex-item/index.mjs +60 -64
  143. package/flex-row/index.mjs +33 -39
  144. package/flex-scroller/index.mjs +29 -30
  145. package/flow/index.mjs +240 -247
  146. package/flow-designer/index.mjs +2 -4709
  147. package/flow-node/index.mjs +56 -64
  148. package/flow-viewer/index.mjs +159 -157
  149. package/form-block/index.mjs +2 -147
  150. package/form-button/index.mjs +35 -47
  151. package/form-card/index.mjs +14 -25
  152. package/form-cascader/index.mjs +2 -115
  153. package/form-checkbox/index.mjs +89 -70
  154. package/form-checkbox-group/index.mjs +161 -113
  155. package/form-date-picker/index.mjs +155 -142
  156. package/form-holder/index.mjs +134 -109
  157. package/form-input/index.mjs +113 -86
  158. package/form-input-cron-expression/index.mjs +97 -76
  159. package/form-input-email/index.mjs +65 -51
  160. package/form-input-id-card/index.mjs +73 -54
  161. package/form-input-phone-number/index.mjs +72 -56
  162. package/form-input-tag/index.mjs +88 -61
  163. package/form-input-time/index.mjs +2 -73
  164. package/form-item/index.mjs +2 -142
  165. package/form-item-config-provider/index.mjs +46 -60
  166. package/form-item-group/index.mjs +2 -157
  167. package/form-radio-group/index.mjs +161 -121
  168. package/form-select/index.mjs +2 -179
  169. package/form-switch/index.mjs +2 -54
  170. package/form-table/index.mjs +131 -84
  171. package/form-table-plus/index.mjs +164 -108
  172. package/form-textarea/index.mjs +90 -56
  173. package/form-tree-select/index.mjs +89 -71
  174. package/form-tree-select-multiple/index.mjs +92 -77
  175. package/form-view/index.mjs +280 -207
  176. package/fy-array/index.mjs +121 -70
  177. package/fy-article/index.mjs +73 -60
  178. package/fy-cascader/index.mjs +113 -90
  179. package/fy-checkbox/index.mjs +96 -64
  180. package/fy-code/index.mjs +48 -50
  181. package/fy-curd/index.mjs +2 -1879
  182. package/fy-date/index.mjs +76 -41
  183. package/fy-draggable/index.mjs +322 -317
  184. package/fy-dynamic/index.mjs +259 -224
  185. package/fy-empty/index.mjs +35 -36
  186. package/fy-form/index.mjs +2 -640
  187. package/fy-form-design/index.mjs +2 -2852
  188. package/fy-form-design/style.css +1 -1
  189. package/fy-from/crud/zh.d.ts +1 -1
  190. package/fy-input/index.mjs +117 -97
  191. package/fy-input-color/index.mjs +77 -54
  192. package/fy-input-icon/index.mjs +129 -82
  193. package/fy-input-map/index.mjs +242 -183
  194. package/fy-input-number/index.mjs +74 -49
  195. package/fy-input-table/index.mjs +160 -105
  196. package/fy-input-tree/index.mjs +259 -178
  197. package/fy-progress/index.mjs +36 -39
  198. package/fy-radio/index.mjs +53 -37
  199. package/fy-rate/index.mjs +86 -70
  200. package/fy-select/index.mjs +224 -137
  201. package/fy-slider/index.mjs +68 -43
  202. package/fy-switch/index.mjs +67 -41
  203. package/fy-tabs/index.mjs +46 -46
  204. package/fy-time/index.mjs +81 -53
  205. package/fy-title/index.mjs +18 -27
  206. package/fy-tree/index.mjs +382 -286
  207. package/fy-u-editor/index.mjs +2 -357
  208. package/fy-upload/index.mjs +2 -421
  209. package/guide-steps/index.mjs +72 -71
  210. package/helper-function.d.ts +3 -30
  211. package/helper-function.mjs +48 -67
  212. package/highlight-j-s/index.mjs +50 -59
  213. package/icon-card/index.mjs +34 -36
  214. package/icon-temp/index.mjs +27 -27
  215. package/iframe-window/index.mjs +39 -32
  216. package/image-cropper/index.mjs +171 -73
  217. package/image-preview/index.mjs +2 -116
  218. package/image-viewer/index.mjs +69 -66
  219. package/index.d.ts +3 -9
  220. package/index.mjs +173 -488
  221. package/input-number-range/index.mjs +78 -58
  222. package/j-s-x-component/index.mjs +13 -15
  223. package/keyboard/index.mjs +2 -369
  224. package/license/index.mjs +106 -115
  225. package/loading-view/index.mjs +39 -51
  226. package/login/index.mjs +252 -120
  227. package/monaco-editor/index.mjs +2 -7
  228. package/name-avatar/index.mjs +61 -53
  229. package/nav-bar/index.mjs +33 -30
  230. package/not-implement/index.mjs +10 -22
  231. package/notice/index.mjs +100 -93
  232. package/package.json +7 -7
  233. package/page/index.mjs +18 -25
  234. package/page-header/index.mjs +27 -33
  235. package/page-index/index.mjs +121 -99
  236. package/page-index-top/index.mjs +79 -74
  237. package/page-skeleton/index.mjs +47 -44
  238. package/page-skeleton-new/index.mjs +79 -49
  239. package/pageable-table/index.mjs +2 -512
  240. package/pageable-view/index.mjs +279 -274
  241. package/photo-swipe/index.d.ts +4 -0
  242. package/photo-swipe/index.mjs +33 -36
  243. package/picker-table-view/index.mjs +224 -117
  244. package/present-view/index.mjs +271 -196
  245. package/queue/index.mjs +45 -53
  246. package/record-video/index.mjs +2 -134
  247. package/resize-observer/index.mjs +43 -46
  248. package/search/index.mjs +116 -107
  249. package/sign/index.mjs +103 -110
  250. package/sign-panel/index.mjs +182 -141
  251. package/skeleton/index.mjs +51 -54
  252. package/skeleton-panel/index.mjs +33 -37
  253. package/split-pane/index.mjs +3 -196
  254. package/stateful/index.mjs +70 -73
  255. package/static-pageable-table/index.mjs +72 -64
  256. package/sub-table/index.mjs +508 -206
  257. package/sub-table-plus/index.mjs +592 -230
  258. package/swiper/index.mjs +128 -120
  259. package/tab/index.mjs +117 -119
  260. package/tab-item/index.mjs +48 -56
  261. package/table-column/index.mjs +2 -225
  262. package/table-view/index.mjs +3 -326
  263. package/tabs-view/index.mjs +109 -104
  264. package/tag-render/index.mjs +79 -67
  265. package/text-ellipsis/index.mjs +94 -77
  266. package/toolbar/index.mjs +2 -254
  267. package/toolbar-button/index.mjs +142 -120
  268. package/verify/index.mjs +58 -64
  269. package/vue-cron/index.mjs +2 -1180
  270. package/vue-qr-code/index.mjs +31 -54
  271. package/vue-quill-editor/index.mjs +123 -99
  272. package/vue-tags-input/index.mjs +348 -431
  273. package/vue-tree-select/index.mjs +2 -2627
  274. package/vue-video-player/index.mjs +135 -136
  275. package/watermark/index.mjs +46 -74
  276. package/web-types.json +225 -969
  277. package/x-input-tag/index.mjs +144 -106
  278. package/chunks/ElementBaseInfo.ZADwixb5.mjs +0 -125
  279. package/chunks/ElementForm.CQ3PN5qj.mjs +0 -223
  280. package/chunks/ElementListeners.De_PRuIm.mjs +0 -215
  281. package/chunks/ElementMultiInstance.DQo2wuAQ.mjs +0 -181
  282. package/chunks/ElementOtherConfig.B1NfMTYh.mjs +0 -60
  283. package/chunks/ElementProperties.CosfDrlW.mjs +0 -112
  284. package/chunks/ElementTaskConfig.Bko0kgTp.mjs +0 -317
  285. package/chunks/FlowCondition.Y6qEYi1T.mjs +0 -102
  286. package/chunks/FormTemp.BQxO5IQq.mjs +0 -123
  287. package/chunks/MonacoEditor.D31t4FTy.mjs +0 -327
  288. package/chunks/SignalAndMessage.Bb5PFX0N.mjs +0 -85
  289. package/chunks/UserTaskListeners.Bv3BDfEI.mjs +0 -169
  290. package/chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs +0 -10
  291. package/chunks/confirmable-mixin.B2TtLAdk.mjs +0 -86
  292. package/chunks/core.0Exl13Mz.mjs +0 -54
  293. package/chunks/dataformat.CpqOeGBl.mjs +0 -154
  294. package/chunks/dic.Dkl-leRW.mjs +0 -128
  295. package/chunks/dictionary.DGt59Ir7.mjs +0 -68
  296. package/chunks/dictionary.DqiP9x2m.mjs +0 -25
  297. package/chunks/event.9aDS6jcw.mjs +0 -236
  298. package/chunks/form-input.CvFdwlEV.mjs +0 -31
  299. package/chunks/form-item.LWjePsPa.mjs +0 -233
  300. package/chunks/form-pick.BFTIVn_i.mjs +0 -11
  301. package/chunks/form-validate.CVarNHKX.mjs +0 -12
  302. package/chunks/helper.BiMLcEEk.mjs +0 -41
  303. package/chunks/index.9OxHjTIE.mjs +0 -16
  304. package/chunks/index.B2TRddqf.mjs +0 -184
  305. package/chunks/index.BmYCjxZQ.mjs +0 -47
  306. package/chunks/init.DAsXSoLW.mjs +0 -122
  307. package/chunks/packages.ByyangTp.mjs +0 -58
  308. package/chunks/permission.CO31YIkD.mjs +0 -16
  309. package/chunks/slot.DXIbhGat.mjs +0 -27
  310. package/chunks/sub-table-plus-props.BVsD71hT.mjs +0 -30
  311. package/chunks/tab-mixin.BNK6dxLN.mjs +0 -81
  312. package/chunks/util.DqFv_pWg.mjs +0 -241
  313. package/chunks/utilSelf.Csq1766E.mjs +0 -48
  314. package/chunks/utils.DRcxC1Fb.mjs +0 -60
  315. package/color-picker/index.mjs +0 -78
  316. package/egd-collapse/index.mjs +0 -62
  317. package/egd-collapse-item/index.mjs +0 -72
  318. package/form-input-number/index.mjs +0 -69
  319. package/form-input-number/style.css +0 -1
  320. package/input-number/index.mjs +0 -232
  321. package/input-number/style.css +0 -1
  322. package/keep-view-alive/index.mjs +0 -117
  323. package/search-popover/index.mjs +0 -118
  324. package/search-popover/style.css +0 -1
  325. /package/{base.css → utils/style.css} +0 -0
@@ -0,0 +1,906 @@
1
+ import { t as e } from "./_plugin-vue_export-helper.7vrlOII_.mjs";
2
+ import { C as t, O as n, a as r, b as i, f as a, l as o, n as s, v as c, x as l } from "./util.g-WQEec9.mjs";
3
+ import { a as u, i as d, n as f, r as p, t as m } from "./dataformat.CteBVoOe.mjs";
4
+ import { t as h } from "./packages.BLDb9e6G.mjs";
5
+ import { i as g } from "./dic.C0abEij9.mjs";
6
+ import { t as _ } from "./init.6jGmuY99.mjs";
7
+ import { n as v, t as y } from "./FormTemp.PJFfNRls.mjs";
8
+ import { Fragment as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as T, createTextVNode as E, createVNode as D, guardReactiveProps as O, mergeProps as k, normalizeClass as A, normalizeProps as j, normalizeStyle as M, openBlock as N, renderList as P, renderSlot as F, resolveComponent as I, resolveDynamicComponent as L, toDisplayString as R, vShow as z, withCtx as B, withDirectives as V, withModifiers as H } from "vue";
9
+ import { isBlank as U } from "@web-utils/core";
10
+ //#region src/components/utils/mock.ts
11
+ var W = (e, t, n, r) => {
12
+ if (!r) return;
13
+ if (!window.Mock) {
14
+ h.logs("mock");
15
+ return;
16
+ }
17
+ let i = (window.Mock || {}).Random, a = {};
18
+ function o({ en: e }) {
19
+ return e ? i.name(!0) : i.cname();
20
+ }
21
+ function s({ max: e, min: t, precision: n }) {
22
+ if (n) {
23
+ let r = `${i.float(t, e, n)}`, a = r.indexOf(".") + 1;
24
+ return Number(r.substring(0, a + n));
25
+ } else return i.integer(t, e);
26
+ }
27
+ function c({ header: e }) {
28
+ let t = i.url(), n = t.indexOf("://");
29
+ return t = e === !1 ? t.substring(n + 3) : `http://${t.substring(n + 3)}`, t;
30
+ }
31
+ function l({ format: e, now: t }) {
32
+ return t ? i.now(e) : i.datetime(e);
33
+ }
34
+ function u({ min: e, max: t }) {
35
+ return i.csentence(e, t);
36
+ }
37
+ function d() {
38
+ return i.county(!0);
39
+ }
40
+ function f({ dic: e, props: t, columnType: n, multiple: r }) {
41
+ let i = t.value || "value", a = e.length;
42
+ if (["checkbox"].includes(n) || r) {
43
+ let t = s({
44
+ min: 1,
45
+ max: a
46
+ }), n = [];
47
+ for (let r = 0; r < t; r++) {
48
+ let t = !0;
49
+ for (; t;) {
50
+ let r = e[s({
51
+ min: 0,
52
+ max: a - 1
53
+ })][i];
54
+ n.includes(r) || (n.push(r), t = !1);
55
+ }
56
+ }
57
+ return n;
58
+ } else return e[s({
59
+ min: 0,
60
+ max: a - 1
61
+ })][i];
62
+ }
63
+ function p() {
64
+ Object.keys(e).forEach((r) => {
65
+ let i = e[r];
66
+ if (i.mock && typeof i.mock == "object") {
67
+ let e = i.mock;
68
+ switch (e.dic = typeof i.dicData == "string" ? t[i.dicData] : i.dicData || [], e.props = i.props || {}, e.columnType = i.type, e.multiple = i.multiple, e.type) {
69
+ case "name":
70
+ a[i.prop] = o(e);
71
+ break;
72
+ case "number":
73
+ a[i.prop] = s(e);
74
+ break;
75
+ case "datetime":
76
+ a[i.prop] = l(e);
77
+ break;
78
+ case "word":
79
+ a[i.prop] = u(e);
80
+ break;
81
+ case "url":
82
+ a[i.prop] = c(e);
83
+ break;
84
+ case "county":
85
+ a[i.prop] = d();
86
+ break;
87
+ case "dic":
88
+ a[i.prop] = f(e);
89
+ break;
90
+ }
91
+ } else i.mock instanceof Function && (a[i.prop] = i.mock(n));
92
+ });
93
+ }
94
+ return p(), a;
95
+ }, G = {
96
+ name: "FormGroup",
97
+ props: {
98
+ arrow: {
99
+ type: Boolean,
100
+ default: !0
101
+ },
102
+ collapse: {
103
+ type: Boolean,
104
+ default: !0
105
+ },
106
+ header: {
107
+ type: Boolean,
108
+ default: !0
109
+ },
110
+ icon: { type: String },
111
+ display: {
112
+ type: Boolean,
113
+ default: !0
114
+ },
115
+ label: { type: String }
116
+ },
117
+ data() {
118
+ return { activeName: "" };
119
+ },
120
+ computed: {
121
+ text() {
122
+ return this.collapse ? 1 : 0;
123
+ },
124
+ isHeader() {
125
+ return this.$slots.header && this.header || (this.label || this.icon) && this.header;
126
+ }
127
+ },
128
+ watch: { text(e) {
129
+ this.activeName = [e];
130
+ } },
131
+ created() {
132
+ this.activeName = [this.text];
133
+ },
134
+ methods: { handleChange(e) {
135
+ this.$emit("change", e);
136
+ } }
137
+ }, K = { class: "avue-group__header" }, q = {
138
+ key: 1,
139
+ class: "avue-group__title"
140
+ };
141
+ function J(e, t, n, r, i, a) {
142
+ let o = I("ElCollapseItem"), s = I("ElCollapse");
143
+ return n.display ? (N(), C("div", {
144
+ key: 0,
145
+ class: A(["avue-group", {
146
+ "avue-group--header": !a.isHeader,
147
+ "avue-group__arrow": !n.arrow
148
+ }])
149
+ }, [F(e.$slots, "tabs"), D(s, {
150
+ modelValue: i.activeName,
151
+ "onUpdate:modelValue": t[0] || (t[0] = (e) => i.activeName = e),
152
+ value: a.text,
153
+ onChange: a.handleChange
154
+ }, {
155
+ default: B(() => [D(o, {
156
+ name: 1,
157
+ disabled: !n.arrow
158
+ }, {
159
+ title: B(() => [w("div", K, [F(e.$slots, "header", {}, () => [n.icon ? (N(), C("i", {
160
+ key: 0,
161
+ class: A([n.icon, "avue-group__icon"])
162
+ }, null, 2)) : S("v-if", !0), n.label ? (N(), C("h1", q, R(n.label), 1)) : S("v-if", !0)])])]),
163
+ default: B(() => [F(e.$slots, "default")]),
164
+ _: 3
165
+ }, 8, ["disabled"])]),
166
+ _: 3
167
+ }, 8, [
168
+ "modelValue",
169
+ "value",
170
+ "onChange"
171
+ ])], 2)) : S("v-if", !0);
172
+ }
173
+ var Y = /* @__PURE__ */ e(G, [["render", J]]), X = {
174
+ name: "FyFormMenu",
175
+ inject: ["formSafe"],
176
+ computed: {
177
+ menuSpan() {
178
+ return this.formSafe.parentOption.menuSpan || 24;
179
+ },
180
+ styleName() {
181
+ return this.menuSpan === 24 ? {} : { padding: 0 };
182
+ }
183
+ }
184
+ };
185
+ function Z(e, t, n, r, i, a) {
186
+ let o = I("ElButton"), s = I("ElFormItem"), c = I("ElCol");
187
+ return a.formSafe.parentOption.menuBtn === !1 ? S("v-if", !0) : (N(), x(c, {
188
+ key: 0,
189
+ span: a.menuSpan,
190
+ md: a.menuSpan,
191
+ style: M(a.styleName),
192
+ class: A([
193
+ "menu",
194
+ a.formSafe.menuPosition,
195
+ "no-print"
196
+ ])
197
+ }, {
198
+ default: B(() => [D(s, {
199
+ "label-width": "0px",
200
+ style: { "text-align": "center" }
201
+ }, {
202
+ default: B(() => [
203
+ a.formSafe.isMock ? (N(), x(o, {
204
+ key: 0,
205
+ type: "primary",
206
+ size: a.formSafe.controlSize,
207
+ icon: "el-icon-edit-outline",
208
+ disabled: a.formSafe.allDisabled,
209
+ onClick: a.formSafe.handleMock
210
+ }, {
211
+ default: B(() => [E(R(a.formSafe.parentOption.mockText || "模拟"), 1)]),
212
+ _: 1
213
+ }, 8, [
214
+ "size",
215
+ "disabled",
216
+ "onClick"
217
+ ])) : S("v-if", !0),
218
+ a.formSafe.isPrint ? (N(), x(o, {
219
+ key: 1,
220
+ type: "primary",
221
+ size: a.formSafe.controlSize,
222
+ icon: "el-icon-printer",
223
+ disabled: a.formSafe.allDisabled,
224
+ onClick: a.formSafe.handlePrint
225
+ }, {
226
+ default: B(() => [E(R(a.formSafe.parentOption.printText || "打印"), 1)]),
227
+ _: 1
228
+ }, 8, [
229
+ "size",
230
+ "disabled",
231
+ "onClick"
232
+ ])) : S("v-if", !0),
233
+ a.formSafe.parentOption.submitBtn === !1 ? S("v-if", !0) : (N(), x(o, {
234
+ key: 2,
235
+ type: "primary",
236
+ size: a.formSafe.controlSize,
237
+ icon: a.formSafe.parentOption.submitIcon || "el-icon-check",
238
+ loading: a.formSafe.allDisabled,
239
+ onClick: a.formSafe.submit
240
+ }, {
241
+ default: B(() => [E(R(a.formSafe.parentOption.submitText || "提交"), 1)]),
242
+ _: 1
243
+ }, 8, [
244
+ "size",
245
+ "icon",
246
+ "loading",
247
+ "onClick"
248
+ ])),
249
+ a.formSafe.parentOption.emptyBtn === !1 ? S("v-if", !0) : (N(), x(o, {
250
+ key: 3,
251
+ icon: a.formSafe.parentOption.emptyIcon || "el-icon-delete",
252
+ size: a.formSafe.controlSize,
253
+ disabled: a.formSafe.allDisabled,
254
+ onClick: a.formSafe.resetForm
255
+ }, {
256
+ default: B(() => [E(R(a.formSafe.parentOption.emptyText || "清空"), 1)]),
257
+ _: 1
258
+ }, 8, [
259
+ "icon",
260
+ "size",
261
+ "disabled",
262
+ "onClick"
263
+ ])),
264
+ F(e.$slots, "menuForm", {
265
+ disabled: a.formSafe.allDisabled,
266
+ size: a.formSafe.controlSize
267
+ })
268
+ ]),
269
+ _: 3
270
+ })]),
271
+ _: 3
272
+ }, 8, [
273
+ "span",
274
+ "md",
275
+ "style",
276
+ "class"
277
+ ]));
278
+ }
279
+ //#endregion
280
+ //#region src/components/fy-from/FyForm.vue
281
+ var Q = {
282
+ name: "FyForm",
283
+ components: {
284
+ FormTemp: y,
285
+ FyFormMenu: /* @__PURE__ */ e(X, [["render", Z]]),
286
+ FormGroup: Y
287
+ },
288
+ mixins: [_],
289
+ provide() {
290
+ return { formSafe: this };
291
+ },
292
+ props: {
293
+ uploadBefore: Function,
294
+ uploadAfter: Function,
295
+ uploadDelete: Function,
296
+ uploadPreview: Function,
297
+ uploadError: Function,
298
+ uploadExceed: Function,
299
+ status: {
300
+ type: Boolean,
301
+ default: !1
302
+ },
303
+ isCrud: {
304
+ type: Boolean,
305
+ default: !1
306
+ },
307
+ value: {
308
+ type: Object,
309
+ default: () => ({})
310
+ }
311
+ },
312
+ emits: [
313
+ "submit",
314
+ "error",
315
+ "tab-click",
316
+ "change",
317
+ "update:modelValue"
318
+ ],
319
+ data() {
320
+ return {
321
+ activeName: "",
322
+ labelWidth: 90,
323
+ allDisabled: !1,
324
+ optionIndex: [],
325
+ optionBox: !1,
326
+ tableOption: {},
327
+ itemSpanDefault: 12,
328
+ form: {},
329
+ formCreate: !1,
330
+ formList: [],
331
+ formBind: {}
332
+ };
333
+ },
334
+ computed: {
335
+ columnSlot() {
336
+ return Object.keys(this.$slots).filter((e) => !this.propOption.map((e) => e.prop).includes(e));
337
+ },
338
+ labelSuffix() {
339
+ return this.parentOption.labelSuffix || ":";
340
+ },
341
+ isMenu() {
342
+ return this.columnOption.length !== 1;
343
+ },
344
+ isDetail() {
345
+ return this.detail === !0;
346
+ },
347
+ isTabs() {
348
+ return this.parentOption.tabs === !0;
349
+ },
350
+ isAdd() {
351
+ return this.boxType === "add";
352
+ },
353
+ isEdit() {
354
+ return this.boxType === "edit";
355
+ },
356
+ isView() {
357
+ return this.boxType === "view";
358
+ },
359
+ gutter() {
360
+ return l((this.parentOption.gutter || 10) / 2);
361
+ },
362
+ detail() {
363
+ return this.parentOption.detail;
364
+ },
365
+ disabled() {
366
+ return this.parentOption.disabled;
367
+ },
368
+ readonly() {
369
+ return this.parentOption.readonly;
370
+ },
371
+ tabsType() {
372
+ return this.parentOption.tabsType;
373
+ },
374
+ columnLen() {
375
+ return this.columnOption.length;
376
+ },
377
+ dynamicOption() {
378
+ let e = [];
379
+ return this.propOption.forEach((t) => {
380
+ t.type === "dynamic" && this.vaildDisplay(t) && e.push(t);
381
+ }), e;
382
+ },
383
+ propOption() {
384
+ let e = [];
385
+ return this.columnOption.forEach((t) => {
386
+ t.display !== !1 && t.column.forEach((t) => {
387
+ e.push(t);
388
+ });
389
+ }), e;
390
+ },
391
+ parentOption() {
392
+ return this.tableOption || {};
393
+ },
394
+ columnOption() {
395
+ let e = this.tableOption.column || [], t = r(this.tableOption.group) || [], n = this.tableOption.footer || [];
396
+ return t.unshift({
397
+ header: !1,
398
+ column: e
399
+ }), n.length !== 0 && t.push({
400
+ header: !1,
401
+ column: n
402
+ }), t.forEach((e) => {
403
+ e.column = e.column || [], e.column.forEach((e, t) => {
404
+ e.display !== !1 && !this.isMobile && (e = f(e, this.itemSpanDefault, t === 0));
405
+ }), e.column = m(e.column), e.column = e.column.sort((e, t) => (t.order || 0) - (e.order || 0));
406
+ }), t;
407
+ },
408
+ menuPosition() {
409
+ return this.parentOption.menuPosition ? this.parentOption.menuPosition : "center";
410
+ },
411
+ boxType() {
412
+ return this.parentOption.boxType;
413
+ },
414
+ isPrint() {
415
+ return this.parentOption.printBtn === !0;
416
+ },
417
+ tabsActive() {
418
+ return this.tableOption.tabsActive || "1";
419
+ },
420
+ isMock() {
421
+ return this.parentOption.mockBtn === !0;
422
+ }
423
+ },
424
+ watch: {
425
+ value: {
426
+ handler() {
427
+ this.formCreate && this.setForm();
428
+ },
429
+ deep: !0
430
+ },
431
+ form: {
432
+ handler() {
433
+ this.formCreate && (this.setLabel(), this.setVal());
434
+ },
435
+ deep: !0
436
+ },
437
+ tabsActive: {
438
+ handler() {
439
+ this.activeName = this.tabsActive;
440
+ },
441
+ immediate: !0
442
+ },
443
+ DIC: {
444
+ handler() {
445
+ this.setLabel();
446
+ },
447
+ deep: !0,
448
+ immediate: !0
449
+ },
450
+ allDisabled: {
451
+ handler(e) {
452
+ this.$emit("update:status", e);
453
+ },
454
+ deep: !0,
455
+ immediate: !0
456
+ }
457
+ },
458
+ mounted() {
459
+ setTimeout(() => {
460
+ this.dataFormat();
461
+ });
462
+ },
463
+ beforeUnmount() {
464
+ Object.keys(this.formBind).forEach((e) => {
465
+ this.formBind[e].forEach((e) => {
466
+ e();
467
+ });
468
+ });
469
+ },
470
+ methods: {
471
+ setPx: l,
472
+ deepClone: r,
473
+ getComponent: d,
474
+ getPlaceholder: u,
475
+ uploadFun: t,
476
+ getDisabled(e) {
477
+ return this.vaildDetail(e) || this.isDetail || this.vaildDisabled(e) || this.allDisabled;
478
+ },
479
+ getSpan(e) {
480
+ return e.span || this.parentOption.span || this.itemSpanDefault;
481
+ },
482
+ isGroupShow(e, t) {
483
+ return this.isTabs ? `${t}` === this.activeName || t === 0 : !0;
484
+ },
485
+ dataFormat() {
486
+ let e = p(this.propOption).tableForm, t = this.value, n = {};
487
+ Object.entries(Object.assign(e, t)).forEach((e) => {
488
+ let r = e[0], i = e[1];
489
+ U(t[r]) ? n[r] = i : n[r] = t[r];
490
+ }), this.form = n, this.setLabel(), this.setControl(), this.setVal(), setTimeout(() => {
491
+ this.formCreate = !0, this.clearValidate();
492
+ });
493
+ },
494
+ setControl() {
495
+ this.propOption.forEach((e) => {
496
+ let t = e.prop, n = e.bind, r = e.control;
497
+ if (!this.formBind[t]) {
498
+ let o = [];
499
+ if (n) {
500
+ let e = this.$watch(`form.${t}`, (e, t) => {
501
+ e !== t && i(this.form, n, e);
502
+ }), r = this.$watch(`form.${n}`, (e, n) => {
503
+ e !== n && (this.form[t] = e);
504
+ });
505
+ o.push(e), o.push(r), this.form[t] = a(this.form, n);
506
+ }
507
+ if (r) {
508
+ let n = () => {
509
+ let t = r(this.form[e.prop], this.form) || {};
510
+ Object.keys(t).forEach((e) => {
511
+ let n = Object.assign(this.objectOption[e] || {}, t[e]);
512
+ his.objectOption[e] = n, t[e].dicData && (this.DIC[e] = t[e].dicData);
513
+ });
514
+ }, i = this.$watch(`form.${t}`, () => {
515
+ n();
516
+ });
517
+ o.push(i), n();
518
+ }
519
+ this.formBind[t] = o;
520
+ }
521
+ });
522
+ },
523
+ setForm() {
524
+ Object.keys(this.value).forEach((e) => {
525
+ this.form[e] = this.value[e];
526
+ });
527
+ },
528
+ setVal() {
529
+ this.$emit("update:modelValue", this.form), this.$emit("change", this.form);
530
+ },
531
+ setLabel() {
532
+ this.tableOption.filterNull === !0 && (this.form = o(this.form, [""], !1)), this.tableOption.filterDic === !0 ? this.form = o(this.form, ["$"], !1) : this.propOption.forEach((e) => {
533
+ let t = this.DIC[e.prop];
534
+ if (U(t)) return;
535
+ let n = v(this.form, e, this.tableOption, t);
536
+ n ? this.form[`$${e.prop}`] = n : delete this.form[`$${e.prop}`];
537
+ });
538
+ },
539
+ handleGroupClick(e) {
540
+ this.$emit("tab-click", e);
541
+ },
542
+ handleTabClick(e, t) {
543
+ this.$emit("tab-click", e, t);
544
+ },
545
+ getLabelWidth(e, t) {
546
+ let n;
547
+ return n = U(e.labelWidth) ? U(t.labelWidth) ? this.parentOption.labelWidth : t.labelWidth : e.labelWidth, l(n, this.labelWidth);
548
+ },
549
+ validateField(e) {
550
+ return this.$refs.form.validateField(e);
551
+ },
552
+ validTip(e) {
553
+ return !e.tip || e.type === "upload";
554
+ },
555
+ getPropRef(e) {
556
+ return this.$refs[e][0];
557
+ },
558
+ handleChange(e, t) {
559
+ this.$nextTick(() => {
560
+ let r = t.cascader, i = r.join(",");
561
+ r.forEach((a) => {
562
+ let o = a, s = this.form[t.prop], c = this.findObject(e, o);
563
+ U(c) || (this.formList.includes(i) && r.forEach((e) => {
564
+ this.form[e] = "", this.DIC[e] = [];
565
+ }), !(U(r) || U(s) || U(c)) && g({
566
+ column: c,
567
+ value: s,
568
+ form: this.form
569
+ }).then((e) => {
570
+ this.formList.includes(i) || this.formList.push(i);
571
+ let t = e || [];
572
+ this.DIC[o] = t, !U(t) && !U(t) && !U(c.cascaderIndex) && U(this.form[o]) && (this.form[o] = t[c.cascaderIndex][(c.props || {}).value || n.value]);
573
+ }));
574
+ });
575
+ });
576
+ },
577
+ handlePrint() {
578
+ this.$Print(this.$el);
579
+ },
580
+ propChange(e, t) {
581
+ t.cascader && this.handleChange(e, t);
582
+ },
583
+ handleMock() {
584
+ this.isMock && (this.columnOption.forEach((e) => {
585
+ let t = W(e.column, this.DIC, this.form, this.isMock);
586
+ U(t) || Object.keys(t).forEach((e) => {
587
+ this.form[e] = t[e];
588
+ });
589
+ }), this.$nextTick(() => {
590
+ this.clearValidate(), this.$emit("mock-change", this.form);
591
+ }));
592
+ },
593
+ vaildDetail(e) {
594
+ let t;
595
+ if (this.detail) return !1;
596
+ if (!U(e.detail)) t = "detail";
597
+ else if (this.isAdd) t = "addDetail";
598
+ else if (this.isEdit) t = "editDetail";
599
+ else if (this.isView) return !1;
600
+ return t ? e[t] === !0 : !1;
601
+ },
602
+ vaildDisabled(e) {
603
+ let t;
604
+ if (this.disabled) return !0;
605
+ if (!U(e.disabled)) t = "disabled";
606
+ else if (this.isAdd) t = "addDisabled";
607
+ else if (this.isEdit) t = "editDisabled";
608
+ else if (this.isView) return !0;
609
+ return t ? e[t] === !0 : !1;
610
+ },
611
+ vaildDisplay(e) {
612
+ let t;
613
+ return U(e.display) ? this.isAdd ? t = "addDisplay" : this.isEdit ? t = "editDisplay" : this.isView && (t = "viewDisplay") : t = "display", t ? c(e[t], !0) : !0;
614
+ },
615
+ clearValidate(e) {
616
+ var t;
617
+ (t = this.$refs.form) == null || t.clearValidate(e);
618
+ },
619
+ validateCellForm() {
620
+ return new Promise((e) => {
621
+ this.$refs.form.validate((t, n) => {
622
+ e(n);
623
+ });
624
+ });
625
+ },
626
+ validate(e) {
627
+ this.$refs.form.validate((t, n) => {
628
+ let r = [], i = [], a = {};
629
+ this.dynamicOption.forEach((e) => {
630
+ let t = e.children.type === "form";
631
+ i.push(e.prop), t ? U(this.$refs[e.prop][0].$refs.temp.$refs.main) || this.$refs[e.prop][0].$refs.temp.$refs.main.forEach((e) => {
632
+ r.push(e.validateCellForm());
633
+ }) : r.push(this.$refs[e.prop][0].$refs.temp.$refs.main.validateCellForm());
634
+ }), Promise.all(r).then((t) => {
635
+ t.forEach((e, t) => {
636
+ U(e) || (a[i[t]] = e);
637
+ });
638
+ let r = Object.assign(a, n);
639
+ U(r) ? (this.show(), e(!0, this.hide)) : e(!1, this.hide, r);
640
+ });
641
+ });
642
+ },
643
+ resetForm(e = !0) {
644
+ if (e) {
645
+ let e = this.propOption.map((e) => e.prop);
646
+ this.form = s(this.form, e, (this.tableOption.filterParams || []).concat([this.rowKey]));
647
+ }
648
+ this.$nextTick(() => {
649
+ this.clearValidate(), this.$emit("reset-change");
650
+ });
651
+ },
652
+ resetFields() {
653
+ this.$refs.form.resetFields();
654
+ },
655
+ show() {
656
+ this.allDisabled = !0;
657
+ },
658
+ hide() {
659
+ this.allDisabled = !1;
660
+ },
661
+ submit() {
662
+ this.validate((e, t) => {
663
+ e ? this.$emit("submit", o(this.form, ["$"]), this.hide) : this.$emit("error", t);
664
+ });
665
+ }
666
+ }
667
+ }, $ = ["innerHTML"];
668
+ function ee(e, t, n, r, i, a) {
669
+ let o = I("ElTabPane"), s = I("ElTabs"), c = I("ElTooltip"), l = I("FormTemp"), u = I("ElFormItem"), d = I("ElCol"), f = I("FyFormMenu"), p = I("FormGroup"), m = I("ElRow"), h = I("ElForm");
670
+ return N(), C("div", {
671
+ class: A(["avue-form", { "avue--detail": a.isDetail }]),
672
+ style: M({ width: a.setPx(a.parentOption.formWidth, "100%") })
673
+ }, [D(h, {
674
+ ref: "form",
675
+ "status-icon": a.parentOption.statusIcon,
676
+ model: i.form,
677
+ "label-suffix": a.labelSuffix,
678
+ size: e.$AVUE.formSize || e.controlSize,
679
+ "label-position": a.parentOption.labelPosition,
680
+ "label-width": a.setPx(a.parentOption.labelWidth, i.labelWidth),
681
+ onSubmit: t[1] || (t[1] = H(() => {}, ["prevent"]))
682
+ }, {
683
+ default: B(() => [D(m, {
684
+ span: 24,
685
+ class: A({ "avue-form__tabs": a.isTabs })
686
+ }, {
687
+ default: B(() => [(N(!0), C(b, null, P(a.columnOption, (n, r) => (N(), x(p, {
688
+ key: n.prop,
689
+ tabs: a.isTabs,
690
+ arrow: n.arrow,
691
+ collapse: n.collapse,
692
+ display: a.vaildDisplay(n),
693
+ icon: n.icon,
694
+ index: r,
695
+ header: !a.isTabs,
696
+ active: i.activeName,
697
+ label: n.label,
698
+ onChange: a.handleGroupClick
699
+ }, T({
700
+ tabs: B(() => [a.isTabs && r === 1 ? (N(), x(s, {
701
+ key: 0,
702
+ modelValue: i.activeName,
703
+ "onUpdate:modelValue": t[0] || (t[0] = (e) => i.activeName = e),
704
+ class: "avue-form__tabs",
705
+ type: a.tabsType,
706
+ onTabClick: a.handleTabClick
707
+ }, {
708
+ default: B(() => [(N(!0), C(b, null, P(a.columnOption, (t, n) => (N(), C(b, null, [a.vaildDisplay(t) && n !== 0 ? (N(), x(o, {
709
+ key: n,
710
+ name: `${n}`
711
+ }, {
712
+ label: B(() => [w("span", null, [e.getSlotName(t, "H", e.$slots) ? F(e.$slots, e.getSlotName(t, "H"), {
713
+ key: 0,
714
+ column: e.column
715
+ }) : (N(), C(b, { key: 1 }, [w("i", { class: A(t.icon) }, "\xA0", 2), E(" " + R(t.label), 1)], 64))])]),
716
+ _: 2
717
+ }, 1032, ["name"])) : S("v-if", !0)], 64))), 256))]),
718
+ _: 3
719
+ }, 8, [
720
+ "modelValue",
721
+ "type",
722
+ "onTabClick"
723
+ ])) : S("v-if", !0)]),
724
+ default: B(() => [V(w("div", { class: A(["avue-form__group", { "avue-form__group--flex": n.flex === !1 }]) }, [(N(!0), C(b, null, P(n.column, (r, o) => (N(), C(b, null, [a.vaildDisplay(r) ? (N(), x(d, {
725
+ key: o,
726
+ style: M({
727
+ paddingLeft: a.gutter,
728
+ paddingRight: a.gutter
729
+ }),
730
+ span: a.getSpan(r),
731
+ md: a.getSpan(r),
732
+ sm: r.smSpan || n.smSpan || 12,
733
+ xs: r.xsSpan || n.xmSpan || 24,
734
+ offset: r.offset || n.offset,
735
+ push: r.push || n.push,
736
+ pull: r.pull || n.pull,
737
+ class: A([
738
+ "avue-form__row",
739
+ { "avue--detail avue--detail__column": a.vaildDetail(r) },
740
+ r.className
741
+ ])
742
+ }, {
743
+ default: B(() => [D(u, {
744
+ prop: r.prop,
745
+ label: r.label,
746
+ rules: r.rules,
747
+ class: A(`avue-form__item--${r.labelPosition || n.labelPosition || ""}`),
748
+ "label-position": r.labelPosition || n.labelPosition || a.parentOption.labelPosition,
749
+ "label-width": a.getLabelWidth(r, n)
750
+ }, T({
751
+ default: B(() => [(N(), x(L(a.validTip(r) ? "div" : "elTooltip"), {
752
+ disabled: a.validTip(r),
753
+ content: r.tip || a.getPlaceholder(r),
754
+ placement: r.tipPlacement
755
+ }, {
756
+ default: B(() => [e.$slots[r.prop] ? F(e.$slots, r.prop, {
757
+ key: 0,
758
+ value: i.form[r.prop],
759
+ column: r,
760
+ label: i.form[`$${r.prop}`],
761
+ size: r.size || e.controlSize,
762
+ readonly: a.readonly || r.readonly,
763
+ disabled: a.getDisabled(r),
764
+ dic: e.DIC[r.prop]
765
+ }) : (N(), x(l, k({
766
+ key: 1,
767
+ ref_for: !0,
768
+ ref: r.prop
769
+ }, { ref_for: !0 }, a.uploadFun(r), {
770
+ modelValue: i.form[r.prop],
771
+ "onUpdate:modelValue": (e) => i.form[r.prop] = e,
772
+ column: r,
773
+ dic: e.DIC[r.prop],
774
+ props: a.parentOption.props,
775
+ "props-http": a.parentOption.propsHttp,
776
+ disabled: a.getDisabled(r),
777
+ readonly: r.readonly || a.readonly,
778
+ enter: a.parentOption.enter,
779
+ size: r.size || e.controlSize,
780
+ "column-slot": a.columnSlot,
781
+ onEnter: a.submit,
782
+ onChange: (e) => a.propChange(n.column, r)
783
+ }), T({
784
+ default: B(() => [(N(!0), C(b, null, P(e.getSlotName(r, "T", e.$slots) ? [r] : [], (t) => F(e.$slots, e.getSlotName(t, "T"), k({ ref_for: !0 }, e.scope))), 256))]),
785
+ _: 2
786
+ }, [P(a.columnSlot, (t) => ({
787
+ name: t,
788
+ fn: B((n) => [F(e.$slots, t, k({ ref_for: !0 }, n))])
789
+ }))]), 1040, [
790
+ "modelValue",
791
+ "onUpdate:modelValue",
792
+ "column",
793
+ "dic",
794
+ "props",
795
+ "props-http",
796
+ "disabled",
797
+ "readonly",
798
+ "enter",
799
+ "size",
800
+ "column-slot",
801
+ "onEnter",
802
+ "onChange"
803
+ ]))]),
804
+ _: 2
805
+ }, 1032, [
806
+ "disabled",
807
+ "content",
808
+ "placement"
809
+ ]))]),
810
+ _: 2
811
+ }, [e.getSlotName(r, "L", e.$slots) ? {
812
+ name: "label",
813
+ fn: B(() => [F(e.$slots, e.getSlotName(r, "L"), {
814
+ column: r,
815
+ value: i.form[r.prop],
816
+ readonly: r.readonly || a.readonly,
817
+ disabled: a.getDisabled(r),
818
+ size: r.size || e.controlSize,
819
+ dic: e.DIC[r.prop]
820
+ })]),
821
+ key: "0"
822
+ } : r.labelTip ? {
823
+ name: "label",
824
+ fn: B(() => [D(c, {
825
+ class: "item",
826
+ effect: "dark",
827
+ placement: r.labelTipPlacement || "top-start"
828
+ }, {
829
+ content: B(() => [w("div", { innerHTML: r.labelTip }, null, 8, $)]),
830
+ default: B(() => [t[2] || (t[2] = w("i", { class: "el-icon-info" }, null, -1))]),
831
+ _: 2
832
+ }, 1032, ["placement"]), w("span", null, R(r.label) + R(a.labelSuffix), 1)]),
833
+ key: "1"
834
+ } : void 0, e.getSlotName(r, "E", e.$slots) ? {
835
+ name: "error",
836
+ fn: B((t) => [F(e.$slots, e.getSlotName(r, "E"), k({ ref_for: !0 }, Object.assign(t, {
837
+ column: r,
838
+ value: i.form[r.prop],
839
+ readonly: a.readonly || r.readonly,
840
+ disabled: a.getDisabled(r),
841
+ size: r.size || e.controlSize,
842
+ dic: e.DIC[r.prop]
843
+ })))]),
844
+ key: "2"
845
+ } : void 0]), 1032, [
846
+ "prop",
847
+ "label",
848
+ "rules",
849
+ "class",
850
+ "label-position",
851
+ "label-width"
852
+ ])]),
853
+ _: 2
854
+ }, 1032, [
855
+ "style",
856
+ "span",
857
+ "md",
858
+ "sm",
859
+ "xs",
860
+ "offset",
861
+ "push",
862
+ "pull",
863
+ "class"
864
+ ])) : S("v-if", !0), a.vaildDisplay(r) && r.row && r.span !== 24 && r.count ? (N(), C("div", {
865
+ key: `line${o}`,
866
+ class: "avue-form__line",
867
+ style: M({ width: `${r.count / 24 * 100}%` })
868
+ }, null, 4)) : S("v-if", !0)], 64))), 256)), !a.isDetail && !a.isMenu ? (N(), x(f, { key: 0 }, {
869
+ menuForm: B((t) => [F(e.$slots, "menuForm", k({ ref_for: !0 }, t))]),
870
+ _: 3
871
+ })) : S("v-if", !0)], 2), [[z, a.isGroupShow(n, r)]])]),
872
+ _: 2
873
+ }, [e.getSlotName(n, "H", e.$slots) ? {
874
+ name: "header",
875
+ fn: B(() => [F(e.$slots, e.getSlotName(n, "H"), { column: n })]),
876
+ key: "0"
877
+ } : void 0]), 1032, [
878
+ "tabs",
879
+ "arrow",
880
+ "collapse",
881
+ "display",
882
+ "icon",
883
+ "index",
884
+ "header",
885
+ "active",
886
+ "label",
887
+ "onChange"
888
+ ]))), 128)), !a.isDetail && a.isMenu ? (N(), x(f, { key: 0 }, {
889
+ menuForm: B((t) => [F(e.$slots, "menuForm", j(O(t)))]),
890
+ _: 3
891
+ })) : S("v-if", !0)]),
892
+ _: 3
893
+ }, 8, ["class"])]),
894
+ _: 3
895
+ }, 8, [
896
+ "status-icon",
897
+ "model",
898
+ "label-suffix",
899
+ "size",
900
+ "label-position",
901
+ "label-width"
902
+ ])], 6);
903
+ }
904
+ var te = /* @__PURE__ */ e(Q, [["render", ee]]);
905
+ //#endregion
906
+ export { te as t };