@web-utils/component 4.0.16 → 5.0.0-beta01

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