@web-utils/form-ui 1.0.0-beta72 → 1.0.0-beta74

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 (328) hide show
  1. package/address-input/index.mjs +1 -1
  2. package/affix/index.d.ts +0 -2
  3. package/affix/index.mjs +2 -3
  4. package/capsule-tab/index.mjs +1 -1
  5. package/card/index.mjs +15 -16
  6. package/chunks/-fXBgN9b2.mjs +37 -0
  7. package/chunks/{-UHCmZBh.mjs → -yfgKY3g.mjs} +1 -1
  8. package/chunks/{Ciy3EJGG2.mjs → -zgWD713.mjs} +44 -45
  9. package/chunks/{qFn9SqfB2.mjs → 7_9hAeqb.mjs} +72 -73
  10. package/chunks/{CidE_6Q52.mjs → 8A7LSgb4.mjs} +26 -27
  11. package/chunks/B0BOjeph2.mjs +108 -0
  12. package/chunks/BE4V5Vf5.mjs +133 -0
  13. package/chunks/{Diidem-9.mjs → BGJjAw5E.mjs} +1 -1
  14. package/chunks/{BJNI7n9Z.mjs → BH7VEktl.mjs} +19 -19
  15. package/chunks/{BrJzSp9f.mjs → BI6kCG2j2.mjs} +2 -2
  16. package/chunks/BctSGDgW2.mjs +29 -0
  17. package/chunks/BhIWiH5R.mjs +661 -0
  18. package/chunks/BhzlH7Az.mjs +90 -0
  19. package/chunks/{DWjZMJ1e2.mjs → Bj0kgDOA.mjs} +132 -133
  20. package/chunks/{DmEOzzaP2.mjs → BrelfRGo2.mjs} +14 -14
  21. package/chunks/{X6BItEt1.mjs → BsqIRxSS.mjs} +6 -7
  22. package/chunks/{Bnm0osro.mjs → Byy1rvPO.mjs} +13 -16
  23. package/chunks/{iPHgzcZ0.mjs → C6mb7Nru2.mjs} +4 -4
  24. package/chunks/{Bhkk9TmJ2.mjs → CFoSvMJ-2.mjs} +1 -1
  25. package/chunks/{Vrr45MGv.mjs → CO3taG7t2.mjs} +1 -1
  26. package/chunks/{QAHALDuF2.mjs → CWBRpkHy.mjs} +138 -139
  27. package/chunks/Ccxbv7uz2.mjs +34 -0
  28. package/chunks/Ce4tNNzg2.mjs +63 -0
  29. package/chunks/{SEQG09ut.mjs → CelJ2L8A2.mjs} +2 -2
  30. package/chunks/CjYOitzM2.mjs +31 -0
  31. package/chunks/Cknuquqx.mjs +32 -0
  32. package/chunks/ClVh1Lek.mjs +130 -0
  33. package/chunks/CwyebsNL2.mjs +39 -0
  34. package/chunks/{CJl5ZiUq2.mjs → D4Pd8rZi.mjs} +28 -30
  35. package/chunks/D6YM84Pf2.mjs +29 -0
  36. package/chunks/{DlROUHPJ2.mjs → DTq5QLoT.mjs} +43 -43
  37. package/chunks/{5oaTzHT-2.mjs → DVMfVn-M.mjs} +14 -13
  38. package/chunks/DVdQHb_v.mjs +50 -0
  39. package/chunks/{YS7hFnUB2.mjs → Daa7nl7U.mjs} +19 -19
  40. package/chunks/{D6TSUCGL.mjs → Dh_BQpvC2.mjs} +2 -2
  41. package/chunks/DizOY5i8.mjs +69 -0
  42. package/chunks/{Czi7_tAe.mjs → DjaV6_cg2.mjs} +2 -2
  43. package/chunks/{CKWgRCN52.mjs → Dm3gQGoV2.mjs} +2 -2
  44. package/chunks/DqW9QtF3.mjs +68 -0
  45. package/chunks/{CKbOqPFm2.mjs → DqWJCka8.mjs} +9 -9
  46. package/chunks/{CIerTjpq2.mjs → DrWUdRj32.mjs} +2 -2
  47. package/chunks/{BrSZZNRc.mjs → DucSg7Mt.mjs} +70 -72
  48. package/chunks/Dv7YRB2U2.mjs +25 -0
  49. package/chunks/DyLQsqWJ.mjs +61 -0
  50. package/chunks/HsHwYW1a.mjs +99 -0
  51. package/chunks/KDVLIvaS.mjs +30 -0
  52. package/chunks/{BHwRv4F0.mjs → Lkg7bYLD2.mjs} +73 -74
  53. package/chunks/OBTStTaa.mjs +179 -0
  54. package/chunks/{DSnICEQN.mjs → Opn85Hlx2.mjs} +1 -1
  55. package/chunks/{C9nRNgwm2.mjs → QTy8g5MS.mjs} +589 -763
  56. package/chunks/{CsA_9MVv.mjs → YdNYH25C.mjs} +1 -1
  57. package/chunks/_q6JzJYp.mjs +773 -0
  58. package/chunks/{BiYsC43_.mjs → gTgPZrgY2.mjs} +119 -120
  59. package/chunks/{D2FNAA1a.mjs → jsgk7Yse2.mjs} +2 -2
  60. package/chunks/nL59ZuIk.mjs +58 -0
  61. package/chunks/{BJuAz5lX2.mjs → sWVkgzQt2.mjs} +2 -2
  62. package/chunks/{DN2qkQvd.mjs → tjwOOiNr2.mjs} +31 -32
  63. package/code-mirror-editor/index.mjs +1 -1
  64. package/confirm-button/index.mjs +1 -1
  65. package/confirmable/index.mjs +1 -1
  66. package/context-menu/index.mjs +1 -1
  67. package/count-up/index.mjs +1 -1
  68. package/custom-scrollbar/index.mjs +1 -1
  69. package/data-box/index.mjs +9 -10
  70. package/data-card/index.mjs +8 -9
  71. package/data-card-text/index.mjs +8 -9
  72. package/data-display/index.mjs +9 -10
  73. package/data-icons/index.mjs +9 -10
  74. package/data-imgtext/index.mjs +9 -11
  75. package/data-operatext/index.mjs +8 -9
  76. package/data-panel/index.mjs +9 -10
  77. package/data-pay/index.mjs +10 -12
  78. package/data-price/index.mjs +8 -9
  79. package/data-progress/index.mjs +10 -11
  80. package/data-rotate/index.mjs +9 -10
  81. package/data-table-picker/index.mjs +11 -12
  82. package/data-tabs/index.mjs +9 -10
  83. package/dict-render/index.mjs +1 -1
  84. package/e-charts/index.mjs +2 -2
  85. package/easy-popup/index.mjs +1 -1
  86. package/editable-progress/index.mjs +8 -8
  87. package/editable-tree/index.mjs +595 -2
  88. package/editable-tree/style.css +1 -1
  89. package/element-dialog/index.mjs +1 -1
  90. package/element-dialog/style.css +1 -1
  91. package/element-resize-observer/index.mjs +1 -1
  92. package/flex-box/index.mjs +1 -1
  93. package/flex-column/index.mjs +1 -1
  94. package/flex-item/index.mjs +1 -1
  95. package/flex-row/index.mjs +1 -1
  96. package/flex-scroller/index.mjs +1 -1
  97. package/flow-designer/index.mjs +1 -1
  98. package/flow-designer/style.css +1 -1
  99. package/flow-viewer/index.mjs +1 -1
  100. package/form-cascader/index.mjs +1 -1
  101. package/form-checkbox/index.mjs +1 -1
  102. package/form-checkbox-group/index.mjs +1 -1
  103. package/form-checkbox-group/style.css +1 -1
  104. package/form-date-picker/index.mjs +1 -1
  105. package/form-holder/index.mjs +1 -1
  106. package/form-image/index.mjs +1 -1
  107. package/form-input/index.mjs +1 -1
  108. package/form-input-cron-expression/index.mjs +1 -1
  109. package/form-input-email/index.mjs +1 -1
  110. package/form-input-id-card/index.mjs +1 -1
  111. package/form-input-number/index.mjs +1 -1
  112. package/form-input-phone-number/index.mjs +1 -1
  113. package/form-input-tag/index.mjs +1 -1
  114. package/form-input-time/index.mjs +1 -1
  115. package/form-item-group/index.mjs +1 -1
  116. package/form-item-x/index.mjs +1 -1
  117. package/form-radio-group/index.mjs +1 -1
  118. package/form-rate/index.mjs +1 -1
  119. package/form-row/index.mjs +1 -1
  120. package/form-select/index.mjs +1 -1
  121. package/form-slider/index.mjs +1 -1
  122. package/form-switch/index.mjs +1 -1
  123. package/form-table/index.mjs +1 -1
  124. package/form-table-plus/index.mjs +1 -1
  125. package/form-text/index.mjs +1 -1
  126. package/form-textarea/index.mjs +1 -1
  127. package/form-time-select/index.mjs +1 -1
  128. package/form-tree-select/index.mjs +1 -1
  129. package/form-tree-select-multiple/index.mjs +1 -1
  130. package/form-view/index.mjs +3 -3
  131. package/guide-steps/index.mjs +77 -2
  132. package/guide-steps/style.css +1 -1
  133. package/helper/dictionary.mjs +1 -1
  134. package/helper/input.mjs +1 -1
  135. package/highlight-j-s/index.mjs +1 -1
  136. package/iframe-window/index.mjs +1 -1
  137. package/image-cropper/index.mjs +12 -11
  138. package/image-preview/index.d.ts +1 -153
  139. package/image-preview/index.mjs +201 -2
  140. package/image-preview/style.css +1 -1
  141. package/image-viewer/index.mjs +1 -1
  142. package/index.css +1 -1
  143. package/index.mjs +101 -101
  144. package/input-number-range/index.mjs +7 -7
  145. package/keyboard/index.mjs +1 -1
  146. package/loading-view/index.mjs +1 -1
  147. package/name-avatar/index.mjs +1 -1
  148. package/nav-bar/index.mjs +3 -4
  149. package/package.json +5 -1
  150. package/page-index/index.mjs +14 -14
  151. package/page-index-top/index.mjs +12 -12
  152. package/pageable-table/index.mjs +1 -1
  153. package/pageable-table/style.css +1 -1
  154. package/photo-swipe/index.mjs +1 -1
  155. package/props/col.mjs +1 -1
  156. package/props/form-item.mjs +1 -1
  157. package/sign-panel/index.mjs +1 -1
  158. package/skeleton-panel/index.mjs +3 -3
  159. package/split-pane/index.mjs +1 -1
  160. package/sub-table/index.mjs +1 -1
  161. package/sub-table-plus/index.mjs +1 -1
  162. package/swiper/index.mjs +2 -2
  163. package/table-column/index.mjs +1 -1
  164. package/table-column-def/index.mjs +1 -1
  165. package/table-view/index.mjs +109 -110
  166. package/table-view/style.css +1 -1
  167. package/tag-render/index.mjs +21 -23
  168. package/text-ellipsis/index.d.ts +1 -1
  169. package/text-ellipsis/index.mjs +1 -1
  170. package/toolbar/index.mjs +1 -1
  171. package/toolbar-button/index.mjs +1 -1
  172. package/vue-cron/index.mjs +1 -1
  173. package/vue-tags-input/index.mjs +1 -1
  174. package/vue-tree-select/index.mjs +1 -1
  175. package/vue-video-player/index.d.ts +1 -1
  176. package/vue-video-player/index.mjs +1 -1
  177. package/watermark/index.mjs +1 -1
  178. package/web-types.json +1 -1
  179. package/x-input-tag/index.mjs +47 -50
  180. package/year-calendar/index.mjs +1 -1
  181. package/year-calendar/style.css +1 -1
  182. package/chunks/49634Q2N2.mjs +0 -936
  183. package/chunks/77cFhiAz.mjs +0 -13
  184. package/chunks/7JVbVOff2.mjs +0 -46
  185. package/chunks/B1ATN2my.mjs +0 -26
  186. package/chunks/B7O8aGqC2.mjs +0 -58
  187. package/chunks/BBPczt0U.mjs +0 -4
  188. package/chunks/BCwAowl1.mjs +0 -589
  189. package/chunks/BDVLN2ly.mjs +0 -105
  190. package/chunks/BEIlrURf.mjs +0 -251
  191. package/chunks/BEysX5TF2.mjs +0 -1038
  192. package/chunks/BHVyaqk0.mjs +0 -736
  193. package/chunks/BIj6pa8Z.mjs +0 -15
  194. package/chunks/BMWg0Wyj.mjs +0 -223
  195. package/chunks/BOsml5YC.mjs +0 -69
  196. package/chunks/BPwFiWYl2.mjs +0 -226
  197. package/chunks/BVIHqL6g.mjs +0 -17
  198. package/chunks/BVSQ6DfJ.mjs +0 -17
  199. package/chunks/BWqFKbFT.mjs +0 -1
  200. package/chunks/B__5L22p2.mjs +0 -346
  201. package/chunks/Bcpewc6H.mjs +0 -1279
  202. package/chunks/Bdeug17L.mjs +0 -42
  203. package/chunks/BffxPn8a.mjs +0 -34
  204. package/chunks/BgKQXQO_.mjs +0 -3093
  205. package/chunks/Bgw_3soo.mjs +0 -35
  206. package/chunks/BjCfQFUL.mjs +0 -54
  207. package/chunks/BjWs-r2V.mjs +0 -25
  208. package/chunks/BlB1fEo92.mjs +0 -8
  209. package/chunks/BmP9lQmT.mjs +0 -1
  210. package/chunks/BrYtAPbN2.mjs +0 -161
  211. package/chunks/BsKwchVA.mjs +0 -14
  212. package/chunks/Bxo1Of95.mjs +0 -479
  213. package/chunks/BzFYbCpR.mjs +0 -25
  214. package/chunks/C6puxasG.mjs +0 -34
  215. package/chunks/C7l9aZGE.mjs +0 -577
  216. package/chunks/CDRNaOEg2.mjs +0 -274
  217. package/chunks/CG7AYiWy.mjs +0 -1
  218. package/chunks/CLzc_j7_.mjs +0 -234
  219. package/chunks/CQSTyCVP.mjs +0 -6
  220. package/chunks/CQxz8uUc.mjs +0 -454
  221. package/chunks/CU8bKuD12.mjs +0 -237
  222. package/chunks/CUF58PQ6.mjs +0 -1
  223. package/chunks/CUMFv5zJ2.mjs +0 -136
  224. package/chunks/C_eGir-J.mjs +0 -17
  225. package/chunks/Cb6Zx6UC.mjs +0 -29
  226. package/chunks/Cb_S4x_i2.mjs +0 -1098
  227. package/chunks/CbgD7y-5.mjs +0 -5
  228. package/chunks/CbsGuLZz2.mjs +0 -105
  229. package/chunks/CcT5SsZk.mjs +0 -48
  230. package/chunks/CcnjxILx.mjs +0 -1
  231. package/chunks/ChkCT6Mm.mjs +0 -4
  232. package/chunks/CiFlMt6Z.mjs +0 -41
  233. package/chunks/CiOqOUkG.mjs +0 -1
  234. package/chunks/CkXf_DVJ2.mjs +0 -1
  235. package/chunks/CnCSm3LY2.mjs +0 -4
  236. package/chunks/CnqWFDqp2.mjs +0 -244
  237. package/chunks/Cq0oEWRi2.mjs +0 -384
  238. package/chunks/CtBIjjQc2.mjs +0 -58
  239. package/chunks/Ctd3_wOH2.mjs +0 -6
  240. package/chunks/CuoYjthQ.mjs +0 -643
  241. package/chunks/CwhXr2Qc.mjs +0 -1
  242. package/chunks/D-hj62se2.mjs +0 -525
  243. package/chunks/D3VpXXqv.mjs +0 -1331
  244. package/chunks/D3Xixh5v.mjs +0 -5
  245. package/chunks/D4oNQiIK.mjs +0 -461
  246. package/chunks/D7O9ov79.mjs +0 -447
  247. package/chunks/D8fid28s2.mjs +0 -42
  248. package/chunks/DJdhVUFO2.mjs +0 -2435
  249. package/chunks/DJo_1CEK2.mjs +0 -61
  250. package/chunks/DMBx2EQl.mjs +0 -107
  251. package/chunks/DOCwznnS.mjs +0 -62
  252. package/chunks/DStwh2ne.mjs +0 -281
  253. package/chunks/D_5z5Xeq2.mjs +0 -37
  254. package/chunks/Df9VO_Wn2.mjs +0 -2
  255. package/chunks/Dg9Q-Tbi2.mjs +0 -299
  256. package/chunks/Diyl8upM.mjs +0 -277
  257. package/chunks/DjIPzCCR.mjs +0 -2
  258. package/chunks/DnBzQ-xh.mjs +0 -4
  259. package/chunks/Dp195RgF.mjs +0 -2
  260. package/chunks/Dqu1Etz62.mjs +0 -52
  261. package/chunks/DrKq_frR.mjs +0 -98
  262. package/chunks/DrXfCf172.mjs +0 -440
  263. package/chunks/DsZznbt2.mjs +0 -208
  264. package/chunks/Dsd58O0g.mjs +0 -25
  265. package/chunks/DssopN-n2.mjs +0 -97
  266. package/chunks/Dtq1xYk8.mjs +0 -47
  267. package/chunks/FeuisuNY2.mjs +0 -88
  268. package/chunks/GEtlriHC.mjs +0 -188
  269. package/chunks/GsvG1yFW.mjs +0 -1919
  270. package/chunks/IheQdJ0z.mjs +0 -267
  271. package/chunks/KGmxNbpi.mjs +0 -21
  272. package/chunks/PNyFONog2.mjs +0 -69
  273. package/chunks/T70m4caR.mjs +0 -1095
  274. package/chunks/ZBsqmcIN2.mjs +0 -622
  275. package/chunks/akEzJ4kG.mjs +0 -18
  276. package/chunks/fX1GD0G5.mjs +0 -70
  277. package/chunks/gh52LMTG.mjs +0 -12
  278. package/chunks/hgAOQY9a.mjs +0 -406
  279. package/chunks/iu5J8EF_.mjs +0 -197
  280. package/chunks/lGc5ksPb.mjs +0 -279
  281. package/chunks/pZQfJv282.mjs +0 -4
  282. package/chunks/qrHhuZXg.mjs +0 -465
  283. package/chunks/r8gDbwly.mjs +0 -1
  284. package/chunks/vpwjmKdg2.mjs +0 -32
  285. package/css/style.css +0 -1
  286. package/css/style10.css +0 -1
  287. package/css/style11.css +0 -1
  288. package/css/style12.css +0 -1
  289. package/css/style13.css +0 -1
  290. package/css/style14.css +0 -1
  291. package/css/style15.css +0 -1
  292. package/css/style16.css +0 -1
  293. package/css/style17.css +0 -1
  294. package/css/style18.css +0 -1
  295. package/css/style19.css +0 -1
  296. package/css/style2.css +0 -1
  297. package/css/style20.css +0 -1
  298. package/css/style21.css +0 -1
  299. package/css/style22.css +0 -1
  300. package/css/style23.css +0 -1
  301. package/css/style24.css +0 -1
  302. package/css/style25.css +0 -1
  303. package/css/style26.css +0 -1
  304. package/css/style27.css +0 -1
  305. package/css/style28.css +0 -1
  306. package/css/style29.css +0 -1
  307. package/css/style3.css +0 -1
  308. package/css/style4.css +0 -1
  309. package/css/style5.css +0 -1
  310. package/css/style6.css +0 -1
  311. package/css/style7.css +0 -1
  312. package/css/style8.css +0 -1
  313. package/css/style9.css +0 -1
  314. package/form-date-picker/style.css +0 -1
  315. package/form-image/style.css +0 -1
  316. package/form-input-time/style.css +0 -1
  317. package/form-radio-group/style.css +0 -1
  318. package/form-rate/style.css +0 -1
  319. package/form-time-select/style.css +0 -1
  320. /package/chunks/{CZnBtJW02.mjs → BBvIPqcc.mjs} +0 -0
  321. /package/chunks/{iIozz7ce.mjs → BoCxKwBf.mjs} +0 -0
  322. /package/chunks/{BxRjXAwz.mjs → CE67pCwD.mjs} +0 -0
  323. /package/chunks/{DWhGFQkb2.mjs → CQeEP_Tl.mjs} +0 -0
  324. /package/chunks/{BQ0e8kIi.mjs → CaczibeD.mjs} +0 -0
  325. /package/chunks/{B_80qPvY.mjs → DZCryyFG.mjs} +0 -0
  326. /package/chunks/{q5iCsXNv.mjs → Dq63V0CC.mjs} +0 -0
  327. /package/chunks/{CRjUGi_-.mjs → OEBJ-trG.mjs} +0 -0
  328. /package/chunks/{GYddfy8T.mjs → fjtZc9Rq2.mjs} +0 -0
@@ -1,21 +1,20 @@
1
1
  import { n as e } from "./CjjJimnU.mjs";
2
- import { n as t, t as n } from "./BgKQXQO_.mjs";
3
- import { n as r, t as i } from "./Bcpewc6H.mjs";
4
- import { t as a } from "./C7l9aZGE.mjs";
5
- import { n as o, t as s } from "./CQxz8uUc.mjs";
6
- import { t as c } from "./49634Q2N2.mjs";
7
- import { t as l } from "./Cq0oEWRi2.mjs";
8
- import { t as u } from "./D8fid28s2.mjs";
9
- import { t as d } from "./BPwFiWYl2.mjs";
10
- /* empty css */
11
- import "./CiOqOUkG.mjs";
12
- import { t as f } from "./BQ0e8kIi.mjs";
13
- import "./CwhXr2Qc.mjs";
14
- import "./ChkCT6Mm.mjs";
15
- import "./BWqFKbFT.mjs";
16
- import "./r8gDbwly.mjs";
2
+ import { t } from "./CaczibeD.mjs";
3
+ import { t as n } from "./OBTStTaa.mjs";
4
+ import { ElButton as r, ElDivider as i, ElDrawer as a, ElForm as o, ElFormItem as s, ElInput as c, ElOption as l, ElSelect as u, ElTable as d, ElTableColumn as f } from "element-plus/es";
5
+ import "element-plus/es/components/base/style/css";
6
+ import "element-plus/es/components/input/style/css";
17
7
  import { Fragment as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createTextVNode as v, createVNode as y, openBlock as b, renderList as x, withCtx as S, withModifiers as C } from "vue";
18
8
  import { fastClone as w } from "@web-utils/core";
9
+ import "element-plus/es/components/button/style/css";
10
+ import "element-plus/es/components/drawer/style/css";
11
+ import "element-plus/es/components/table/style/css";
12
+ import "element-plus/es/components/table-column/style/css";
13
+ import "element-plus/es/components/form/style/css";
14
+ import "element-plus/es/components/form-item/style/css";
15
+ import "element-plus/es/components/select/style/css";
16
+ import "element-plus/es/components/option/style/css";
17
+ import "element-plus/es/components/divider/style/css";
19
18
  //#region src/components/bpmn-process-designer/components/penal/form/ElementForm.vue
20
19
  var T = /* @__PURE__ */ e({ default: () => F }), E = {
21
20
  name: "ElementForm",
@@ -144,17 +143,17 @@ var T = /* @__PURE__ */ e({ default: () => F }), E = {
144
143
  class: "listener-filed__title",
145
144
  style: { "padding-bottom": "6px" }
146
145
  }, N = { class: "element-drawer__button" };
147
- function P(e, f, w, T, E, P) {
148
- let F = a, I = o, L = i, R = r, z = s, B = u, V = t, H = c, U = n, W = d, G = l;
146
+ function P(e, t, w, T, E, P) {
147
+ let F = c, I = s, L = l, R = u, z = o, B = i, V = f, H = r, U = d, W = a, G = n;
149
148
  return b(), g("div", D, [
150
149
  y(z, {
151
150
  "label-width": "80px",
152
- onSubmit: f[2] || (f[2] = C(() => {}, ["prevent"]))
151
+ onSubmit: t[2] || (t[2] = C(() => {}, ["prevent"]))
153
152
  }, {
154
153
  default: S(() => [y(I, { label: "表单标识" }, {
155
154
  default: S(() => [y(F, {
156
155
  modelValue: E.formKey,
157
- "onUpdate:modelValue": f[0] || (f[0] = (e) => E.formKey = e),
156
+ "onUpdate:modelValue": t[0] || (t[0] = (e) => E.formKey = e),
158
157
  clearable: "",
159
158
  onChange: P.updateElementFormKey
160
159
  }, null, 8, ["modelValue", "onChange"])]),
@@ -162,7 +161,7 @@ function P(e, f, w, T, E, P) {
162
161
  }), y(I, { label: "业务标识" }, {
163
162
  default: S(() => [y(R, {
164
163
  modelValue: E.businessKey,
165
- "onUpdate:modelValue": f[1] || (f[1] = (e) => E.businessKey = e),
164
+ "onUpdate:modelValue": t[1] || (t[1] = (e) => E.businessKey = e),
166
165
  onChange: P.updateElementBusinessKey
167
166
  }, {
168
167
  default: S(() => [(b(!0), g(p, null, x(E.fieldList, (e) => (b(), m(L, {
@@ -181,7 +180,7 @@ function P(e, f, w, T, E, P) {
181
180
  }),
182
181
  h("字段列表"),
183
182
  _("div", O, [y(B, null, {
184
- default: S(() => [...f[23] || (f[23] = [_("i", { class: "el-icon-coin" }, null, -1), v(" 表单字段 ", -1)])]),
183
+ default: S(() => [...t[23] || (t[23] = [_("i", { class: "el-icon-coin" }, null, -1), v(" 表单字段 ", -1)])]),
185
184
  _: 1
186
185
  }), y(U, {
187
186
  data: E.fieldList,
@@ -218,21 +217,21 @@ function P(e, f, w, T, E, P) {
218
217
  label: "操作",
219
218
  width: "90px"
220
219
  }, {
221
- default: S(({ row: e, $index: t }) => [
220
+ default: S(({ row: e, $index: n }) => [
222
221
  y(H, {
223
222
  text: "",
224
- onClick: (n) => P.openFieldForm(e, t)
223
+ onClick: (t) => P.openFieldForm(e, n)
225
224
  }, {
226
- default: S(() => [...f[24] || (f[24] = [v("编辑", -1)])]),
225
+ default: S(() => [...t[24] || (t[24] = [v("编辑", -1)])]),
227
226
  _: 1
228
227
  }, 8, ["onClick"]),
229
228
  y(B, { direction: "vertical" }),
230
229
  y(H, {
231
230
  text: "",
232
231
  style: { color: "#ff4d4f" },
233
- onClick: (n) => P.removeField(e, t)
232
+ onClick: (t) => P.removeField(e, n)
234
233
  }, {
235
- default: S(() => [...f[25] || (f[25] = [v("移除", -1)])]),
234
+ default: S(() => [...t[25] || (t[25] = [v("移除", -1)])]),
236
235
  _: 1
237
236
  }, 8, ["onClick"])
238
237
  ]),
@@ -244,15 +243,15 @@ function P(e, f, w, T, E, P) {
244
243
  _("div", k, [y(H, {
245
244
  type: "primary",
246
245
  icon: "el-icon-plus",
247
- onClick: f[3] || (f[3] = (e) => P.openFieldForm(null, -1))
246
+ onClick: t[3] || (t[3] = (e) => P.openFieldForm(null, -1))
248
247
  }, {
249
- default: S(() => [...f[26] || (f[26] = [v("添加字段", -1)])]),
248
+ default: S(() => [...t[26] || (t[26] = [v("添加字段", -1)])]),
250
249
  _: 1
251
250
  })]),
252
251
  h("字段配置侧边栏"),
253
252
  y(W, {
254
253
  visible: E.fieldModelVisible,
255
- "onUpdate:visible": f[15] || (f[15] = (e) => E.fieldModelVisible = e),
254
+ "onUpdate:visible": t[15] || (t[15] = (e) => E.fieldModelVisible = e),
256
255
  class: "flow-drawer",
257
256
  title: "字段配置",
258
257
  size: `${P.width}px`,
@@ -264,13 +263,13 @@ function P(e, f, w, T, E, P) {
264
263
  y(z, {
265
264
  model: E.formFieldForm,
266
265
  "label-width": "90px",
267
- onSubmit: f[10] || (f[10] = C(() => {}, ["prevent"]))
266
+ onSubmit: t[10] || (t[10] = C(() => {}, ["prevent"]))
268
267
  }, {
269
268
  default: S(() => [
270
269
  y(I, { label: "字段ID" }, {
271
270
  default: S(() => [y(F, {
272
271
  modelValue: E.formFieldForm.id,
273
- "onUpdate:modelValue": f[4] || (f[4] = (e) => E.formFieldForm.id = e),
272
+ "onUpdate:modelValue": t[4] || (t[4] = (e) => E.formFieldForm.id = e),
274
273
  clearable: ""
275
274
  }, null, 8, ["modelValue"])]),
276
275
  _: 1
@@ -278,7 +277,7 @@ function P(e, f, w, T, E, P) {
278
277
  y(I, { label: "类型" }, {
279
278
  default: S(() => [y(R, {
280
279
  modelValue: E.formFieldForm.typeType,
281
- "onUpdate:modelValue": f[5] || (f[5] = (e) => E.formFieldForm.typeType = e),
280
+ "onUpdate:modelValue": t[5] || (t[5] = (e) => E.formFieldForm.typeType = e),
282
281
  placeholder: "请选择字段类型",
283
282
  clearable: "",
284
283
  onChange: P.changeFieldTypeType
@@ -298,7 +297,7 @@ function P(e, f, w, T, E, P) {
298
297
  }, {
299
298
  default: S(() => [y(F, {
300
299
  modelValue: E.formFieldForm.type,
301
- "onUpdate:modelValue": f[6] || (f[6] = (e) => E.formFieldForm.type = e),
300
+ "onUpdate:modelValue": t[6] || (t[6] = (e) => E.formFieldForm.type = e),
302
301
  clearable: ""
303
302
  }, null, 8, ["modelValue"])]),
304
303
  _: 1
@@ -306,7 +305,7 @@ function P(e, f, w, T, E, P) {
306
305
  y(I, { label: "名称" }, {
307
306
  default: S(() => [y(F, {
308
307
  modelValue: E.formFieldForm.label,
309
- "onUpdate:modelValue": f[7] || (f[7] = (e) => E.formFieldForm.label = e),
308
+ "onUpdate:modelValue": t[7] || (t[7] = (e) => E.formFieldForm.label = e),
310
309
  clearable: ""
311
310
  }, null, 8, ["modelValue"])]),
312
311
  _: 1
@@ -317,7 +316,7 @@ function P(e, f, w, T, E, P) {
317
316
  }, {
318
317
  default: S(() => [y(F, {
319
318
  modelValue: E.formFieldForm.datePattern,
320
- "onUpdate:modelValue": f[8] || (f[8] = (e) => E.formFieldForm.datePattern = e),
319
+ "onUpdate:modelValue": t[8] || (t[8] = (e) => E.formFieldForm.datePattern = e),
321
320
  clearable: ""
322
321
  }, null, 8, ["modelValue"])]),
323
322
  _: 1
@@ -325,7 +324,7 @@ function P(e, f, w, T, E, P) {
325
324
  y(I, { label: "默认值" }, {
326
325
  default: S(() => [y(F, {
327
326
  modelValue: E.formFieldForm.defaultValue,
328
- "onUpdate:modelValue": f[9] || (f[9] = (e) => E.formFieldForm.defaultValue = e),
327
+ "onUpdate:modelValue": t[9] || (t[9] = (e) => E.formFieldForm.defaultValue = e),
329
328
  clearable: ""
330
329
  }, null, 8, ["modelValue"])]),
331
330
  _: 1
@@ -336,11 +335,11 @@ function P(e, f, w, T, E, P) {
336
335
  h(" 枚举值设置 "),
337
336
  E.formFieldForm.type === "enum" ? (b(), g(p, { key: 0 }, [
338
337
  y(B, { key: "enum-divider" }),
339
- _("p", A, [f[28] || (f[28] = _("span", null, [_("i", { class: "el-icon-menu" }), v(" 枚举值列表: ")], -1)), y(H, {
338
+ _("p", A, [t[28] || (t[28] = _("span", null, [_("i", { class: "el-icon-menu" }), v(" 枚举值列表: ")], -1)), y(H, {
340
339
  type: "primary",
341
- onClick: f[11] || (f[11] = (e) => P.openFieldOptionForm(null, -1, "enum"))
340
+ onClick: t[11] || (t[11] = (e) => P.openFieldOptionForm(null, -1, "enum"))
342
341
  }, {
343
- default: S(() => [...f[27] || (f[27] = [v("添加枚举值", -1)])]),
342
+ default: S(() => [...t[27] || (t[27] = [v("添加枚举值", -1)])]),
344
343
  _: 1
345
344
  })]),
346
345
  y(U, {
@@ -372,21 +371,21 @@ function P(e, f, w, T, E, P) {
372
371
  label: "操作",
373
372
  width: "90px"
374
373
  }, {
375
- default: S(({ row: e, $index: t }) => [
374
+ default: S(({ row: e, $index: n }) => [
376
375
  y(H, {
377
376
  text: "",
378
- onClick: (n) => P.openFieldOptionForm(e, t, "enum")
377
+ onClick: (t) => P.openFieldOptionForm(e, n, "enum")
379
378
  }, {
380
- default: S(() => [...f[29] || (f[29] = [v("编辑", -1)])]),
379
+ default: S(() => [...t[29] || (t[29] = [v("编辑", -1)])]),
381
380
  _: 1
382
381
  }, 8, ["onClick"]),
383
382
  y(B, { direction: "vertical" }),
384
383
  y(H, {
385
384
  text: "",
386
385
  style: { color: "#ff4d4f" },
387
- onClick: (n) => P.removeFieldOptionItem(e, t, "enum")
386
+ onClick: (t) => P.removeFieldOptionItem(e, n, "enum")
388
387
  }, {
389
- default: S(() => [...f[30] || (f[30] = [v("移除", -1)])]),
388
+ default: S(() => [...t[30] || (t[30] = [v("移除", -1)])]),
390
389
  _: 1
391
390
  }, 8, ["onClick"])
392
391
  ]),
@@ -398,12 +397,12 @@ function P(e, f, w, T, E, P) {
398
397
  ], 64)) : h("v-if", !0),
399
398
  h(" 校验规则 "),
400
399
  y(B, { key: "validation-divider" }),
401
- _("p", j, [f[32] || (f[32] = _("span", null, [_("i", { class: "el-icon-menu" }), v(" 约束条件列表: ")], -1)), y(H, {
400
+ _("p", j, [t[32] || (t[32] = _("span", null, [_("i", { class: "el-icon-menu" }), v(" 约束条件列表: ")], -1)), y(H, {
402
401
  type: "primary",
403
402
  style: { "margin-left": "auto" },
404
- onClick: f[12] || (f[12] = (e) => P.openFieldOptionForm(null, -1, "constraint"))
403
+ onClick: t[12] || (t[12] = (e) => P.openFieldOptionForm(null, -1, "constraint"))
405
404
  }, {
406
- default: S(() => [...f[31] || (f[31] = [v(" 添加约束 ", -1)])]),
405
+ default: S(() => [...t[31] || (t[31] = [v(" 添加约束 ", -1)])]),
407
406
  _: 1
408
407
  })]),
409
408
  y(U, {
@@ -435,21 +434,21 @@ function P(e, f, w, T, E, P) {
435
434
  label: "操作",
436
435
  width: "90px"
437
436
  }, {
438
- default: S(({ row: e, $index: t }) => [
437
+ default: S(({ row: e, $index: n }) => [
439
438
  y(H, {
440
439
  text: "",
441
- onClick: (n) => P.openFieldOptionForm(e, t, "constraint")
440
+ onClick: (t) => P.openFieldOptionForm(e, n, "constraint")
442
441
  }, {
443
- default: S(() => [...f[33] || (f[33] = [v("编辑", -1)])]),
442
+ default: S(() => [...t[33] || (t[33] = [v("编辑", -1)])]),
444
443
  _: 1
445
444
  }, 8, ["onClick"]),
446
445
  y(B, { direction: "vertical" }),
447
446
  y(H, {
448
447
  text: "",
449
448
  style: { color: "#ff4d4f" },
450
- onClick: (n) => P.removeFieldOptionItem(e, t, "constraint")
449
+ onClick: (t) => P.removeFieldOptionItem(e, n, "constraint")
451
450
  }, {
452
- default: S(() => [...f[34] || (f[34] = [v(" 移除 ", -1)])]),
451
+ default: S(() => [...t[34] || (t[34] = [v(" 移除 ", -1)])]),
453
452
  _: 1
454
453
  }, 8, ["onClick"])
455
454
  ]),
@@ -460,12 +459,12 @@ function P(e, f, w, T, E, P) {
460
459
  }, 8, ["data"]),
461
460
  h(" 表单属性 "),
462
461
  y(B, { key: "property-divider" }),
463
- _("p", M, [f[36] || (f[36] = _("span", null, [_("i", { class: "el-icon-menu" }), v(" 字段属性列表: ")], -1)), y(H, {
462
+ _("p", M, [t[36] || (t[36] = _("span", null, [_("i", { class: "el-icon-menu" }), v(" 字段属性列表: ")], -1)), y(H, {
464
463
  type: "primary",
465
464
  style: { "margin-left": "auto" },
466
- onClick: f[13] || (f[13] = (e) => P.openFieldOptionForm(null, -1, "property"))
465
+ onClick: t[13] || (t[13] = (e) => P.openFieldOptionForm(null, -1, "property"))
467
466
  }, {
468
- default: S(() => [...f[35] || (f[35] = [v(" 添加属性 ", -1)])]),
467
+ default: S(() => [...t[35] || (t[35] = [v(" 添加属性 ", -1)])]),
469
468
  _: 1
470
469
  })]),
471
470
  y(U, {
@@ -497,21 +496,21 @@ function P(e, f, w, T, E, P) {
497
496
  label: "操作",
498
497
  width: "90px"
499
498
  }, {
500
- default: S(({ row: e, $index: t }) => [
499
+ default: S(({ row: e, $index: n }) => [
501
500
  y(H, {
502
501
  text: "",
503
- onClick: (n) => P.openFieldOptionForm(e, t, "property")
502
+ onClick: (t) => P.openFieldOptionForm(e, n, "property")
504
503
  }, {
505
- default: S(() => [...f[37] || (f[37] = [v("编辑", -1)])]),
504
+ default: S(() => [...t[37] || (t[37] = [v("编辑", -1)])]),
506
505
  _: 1
507
506
  }, 8, ["onClick"]),
508
507
  y(B, { direction: "vertical" }),
509
508
  y(H, {
510
509
  text: "",
511
510
  style: { color: "#ff4d4f" },
512
- onClick: (n) => P.removeFieldOptionItem(e, t, "property")
511
+ onClick: (t) => P.removeFieldOptionItem(e, n, "property")
513
512
  }, {
514
- default: S(() => [...f[38] || (f[38] = [v(" 移除 ", -1)])]),
513
+ default: S(() => [...t[38] || (t[38] = [v(" 移除 ", -1)])]),
515
514
  _: 1
516
515
  }, 8, ["onClick"])
517
516
  ]),
@@ -521,14 +520,14 @@ function P(e, f, w, T, E, P) {
521
520
  _: 1
522
521
  }, 8, ["data"]),
523
522
  h(" 底部按钮 "),
524
- _("div", N, [y(H, { onClick: f[14] || (f[14] = (e) => E.fieldModelVisible = !1) }, {
525
- default: S(() => [...f[39] || (f[39] = [v("取 消", -1)])]),
523
+ _("div", N, [y(H, { onClick: t[14] || (t[14] = (e) => E.fieldModelVisible = !1) }, {
524
+ default: S(() => [...t[39] || (t[39] = [v("取 消", -1)])]),
526
525
  _: 1
527
526
  }), y(H, {
528
527
  type: "primary",
529
528
  onClick: P.saveField
530
529
  }, {
531
- default: S(() => [...f[40] || (f[40] = [v("保 存", -1)])]),
530
+ default: S(() => [...t[40] || (t[40] = [v("保 存", -1)])]),
532
531
  _: 1
533
532
  }, 8, ["onClick"])])
534
533
  ]),
@@ -536,27 +535,27 @@ function P(e, f, w, T, E, P) {
536
535
  }, 8, ["visible", "size"]),
537
536
  y(G, {
538
537
  visible: E.fieldOptionModelVisible,
539
- "onUpdate:visible": f[22] || (f[22] = (e) => E.fieldOptionModelVisible = e),
538
+ "onUpdate:visible": t[22] || (t[22] = (e) => E.fieldOptionModelVisible = e),
540
539
  class: "flow-dialog",
541
540
  title: E.optionModelTitle,
542
541
  width: "600px",
543
542
  "append-to-body": "",
544
543
  "destroy-on-close": ""
545
544
  }, {
546
- footer: S(() => [y(H, { onClick: f[21] || (f[21] = (e) => E.fieldOptionModelVisible = !1) }, {
547
- default: S(() => [...f[41] || (f[41] = [v("取 消", -1)])]),
545
+ footer: S(() => [y(H, { onClick: t[21] || (t[21] = (e) => E.fieldOptionModelVisible = !1) }, {
546
+ default: S(() => [...t[41] || (t[41] = [v("取 消", -1)])]),
548
547
  _: 1
549
548
  }), y(H, {
550
549
  type: "primary",
551
550
  onClick: P.saveFieldOption
552
551
  }, {
553
- default: S(() => [...f[42] || (f[42] = [v("确 定", -1)])]),
552
+ default: S(() => [...t[42] || (t[42] = [v("确 定", -1)])]),
554
553
  _: 1
555
554
  }, 8, ["onClick"])]),
556
555
  default: S(() => [y(z, {
557
556
  model: E.fieldOptionForm,
558
557
  "label-width": "96px",
559
- onSubmit: f[20] || (f[20] = C(() => {}, ["prevent"]))
558
+ onSubmit: t[20] || (t[20] = C(() => {}, ["prevent"]))
560
559
  }, {
561
560
  default: S(() => [
562
561
  E.fieldOptionType === "constraint" ? h("v-if", !0) : (b(), m(I, {
@@ -565,7 +564,7 @@ function P(e, f, w, T, E, P) {
565
564
  }, {
566
565
  default: S(() => [y(F, {
567
566
  modelValue: E.fieldOptionForm.id,
568
- "onUpdate:modelValue": f[16] || (f[16] = (e) => E.fieldOptionForm.id = e),
567
+ "onUpdate:modelValue": t[16] || (t[16] = (e) => E.fieldOptionForm.id = e),
569
568
  clearable: ""
570
569
  }, null, 8, ["modelValue"])]),
571
570
  _: 1
@@ -576,7 +575,7 @@ function P(e, f, w, T, E, P) {
576
575
  }, {
577
576
  default: S(() => [y(F, {
578
577
  modelValue: E.fieldOptionForm.name,
579
- "onUpdate:modelValue": f[17] || (f[17] = (e) => E.fieldOptionForm.name = e),
578
+ "onUpdate:modelValue": t[17] || (t[17] = (e) => E.fieldOptionForm.name = e),
580
579
  clearable: ""
581
580
  }, null, 8, ["modelValue"])]),
582
581
  _: 1
@@ -587,7 +586,7 @@ function P(e, f, w, T, E, P) {
587
586
  }, {
588
587
  default: S(() => [y(F, {
589
588
  modelValue: E.fieldOptionForm.config,
590
- "onUpdate:modelValue": f[18] || (f[18] = (e) => E.fieldOptionForm.config = e),
589
+ "onUpdate:modelValue": t[18] || (t[18] = (e) => E.fieldOptionForm.config = e),
591
590
  clearable: ""
592
591
  }, null, 8, ["modelValue"])]),
593
592
  _: 1
@@ -598,7 +597,7 @@ function P(e, f, w, T, E, P) {
598
597
  }, {
599
598
  default: S(() => [y(F, {
600
599
  modelValue: E.fieldOptionForm.value,
601
- "onUpdate:modelValue": f[19] || (f[19] = (e) => E.fieldOptionForm.value = e),
600
+ "onUpdate:modelValue": t[19] || (t[19] = (e) => E.fieldOptionForm.value = e),
602
601
  clearable: ""
603
602
  }, null, 8, ["modelValue"])]),
604
603
  _: 1
@@ -610,6 +609,6 @@ function P(e, f, w, T, E, P) {
610
609
  }, 8, ["visible", "title"])
611
610
  ]);
612
611
  }
613
- var F = /* @__PURE__ */ f(E, [["render", P]]);
612
+ var F = /* @__PURE__ */ t(E, [["render", P]]);
614
613
  //#endregion
615
614
  export { T as n, F as t };
@@ -1,39 +1,38 @@
1
- import "./CjjJimnU.mjs";
2
- import { t as e } from "./CQxz8uUc.mjs";
3
- import { m as t } from "./D-hj62se2.mjs";
4
- import { t as n } from "./DJo_1CEK2.mjs";
5
- /* empty css */
6
- import { formHolderContextKey as r, formViewContextKey as i } from "../constants/index.mjs";
7
- import "./BWqFKbFT.mjs";
8
- import { allProps as a, predicate as o } from "../props/form.mjs";
9
- import s from "../form-advice/index.mjs";
10
- import c from "../form-red-table/index.mjs";
1
+ import { m as e } from "./ClVh1Lek.mjs";
2
+ import { formHolderContextKey as t, formViewContextKey as n } from "../constants/index.mjs";
3
+ import { allProps as r, predicate as i } from "../props/form.mjs";
4
+ import a from "../form-advice/index.mjs";
5
+ import o from "../form-red-table/index.mjs";
6
+ import { ElForm as s, ElRow as c } from "element-plus/es";
7
+ import "element-plus/es/components/base/style/css";
11
8
  import { computed as l, createVNode as u, inject as d, mergeProps as f, nextTick as p, provide as m, reactive as h, toRef as g, useTemplateRef as _ } from "vue";
12
9
  import { animate as v } from "@web-utils/core";
10
+ import "element-plus/es/components/row/style/css";
11
+ import "element-plus/es/components/form/style/css";
13
12
  //#endregion
14
13
  //#region src/components/form/FormHolder.vue
15
14
  var y = {
16
15
  name: "FormHolder",
17
16
  inheritAttrs: !1,
18
- props: { ...a },
17
+ props: { ...r },
19
18
  emits: {},
20
- setup(a, { slots: y, expose: b, attrs: x }) {
21
- let { autoBindProps: S, listeners: C } = t(a, { predicate: o }), w = d(i, null), T = _("form"), E = l(() => a.notTableForm === void 0 ? (w == null ? void 0 : w.tableForm) === void 0 ? !1 : w == null ? void 0 : w.tableForm : !a.notTableForm), D = l(() => E.value ? !1 : a.showMessage), O = l(() => {
19
+ setup(r, { slots: y, expose: b, attrs: x }) {
20
+ let { autoBindProps: S, listeners: C } = e(r, { predicate: i }), w = d(n, null), T = _("form"), E = l(() => r.notTableForm === void 0 ? (w == null ? void 0 : w.tableForm) === void 0 ? !1 : w == null ? void 0 : w.tableForm : !r.notTableForm), D = l(() => E.value ? !1 : r.showMessage), O = l(() => {
22
21
  let e = {};
23
- return a.disabledFields && a.disabledFields.forEach((t) => {
22
+ return r.disabledFields && r.disabledFields.forEach((t) => {
24
23
  e[t] = !0;
25
24
  }), e;
26
25
  }), k = l(() => {
27
26
  let e = {};
28
- return a.enabledFields && a.enabledFields.length && a.enabledFields.forEach((t) => {
27
+ return r.enabledFields && r.enabledFields.length && r.enabledFields.forEach((t) => {
29
28
  e[t] = !0;
30
29
  }), e;
31
30
  }), A = l(() => {
32
31
  let e = {};
33
- return a.requiredFields && a.requiredFields.length && a.requiredFields.forEach((t) => {
32
+ return r.requiredFields && r.requiredFields.length && r.requiredFields.forEach((t) => {
34
33
  e[t] = !0;
35
34
  }), e;
36
- }), j = l(() => a.disabled === !0 ? !0 : a.disabled), M = g(() => a.enabledFields), N = g(() => a.requiredFields), P = g(() => a.disabledFields), F = async () => {
35
+ }), j = l(() => r.disabled === !0 ? !0 : r.disabled), M = g(() => r.enabledFields), N = g(() => r.requiredFields), P = g(() => r.disabledFields), F = async () => {
37
36
  await p();
38
37
  let e = T.value.$el.querySelector(".el-form-item.is-error");
39
38
  e && e.scrollIntoView({
@@ -69,7 +68,7 @@ var y = {
69
68
  setInitialValues: (e) => T.value.setInitialValues(e),
70
69
  getFields: () => T.value.fields
71
70
  });
72
- return m(r, I), b(I), () => u(e, f(C.value, S.value, x, {
71
+ return m(t, I), b(I), () => u(s, f(C.value, S.value, x, {
73
72
  ref: "form",
74
73
  class: [
75
74
  "form-holder",
@@ -79,26 +78,26 @@ var y = {
79
78
  "show-message": D.value
80
79
  }), { default: () => {
81
80
  if (E.value) {
82
- var e, t, r;
81
+ var e, t, n;
83
82
  return [
84
83
  (e = y.top) == null ? void 0 : e.call(y),
85
- u(c, {
84
+ u(o, {
86
85
  class: { "hide-error-message": E.value },
87
- columns: a.columns,
88
- "col-count": a.colCount
86
+ columns: r.columns,
87
+ "col-count": r.colCount
89
88
  }, { default: () => {
90
89
  var e;
91
- return [(e = y.default) == null ? void 0 : e.call(y), a.showAdvice ? u(s, {
92
- "label-colspan": a.commentLabelColspan,
93
- "value-colspan": a.commentValueColspan
90
+ return [(e = y.default) == null ? void 0 : e.call(y), r.showAdvice ? u(a, {
91
+ "label-colspan": r.commentLabelColspan,
92
+ "value-colspan": r.commentValueColspan
94
93
  }, null) : null];
95
94
  } }),
96
95
  (t = y.bottom) == null ? void 0 : t.call(y),
97
- u("div", { class: "red-form-footer" }, [(r = y.footer) == null ? void 0 : r.call(y)])
96
+ u("div", { class: "red-form-footer" }, [(n = y.footer) == null ? void 0 : n.call(y)])
98
97
  ];
99
98
  } else {
100
99
  var i;
101
- return a.wrapRow ? u(n, null, { default: () => {
100
+ return r.wrapRow ? u(c, null, { default: () => {
102
101
  var e;
103
102
  return [(e = y.default) == null ? void 0 : e.call(y)];
104
103
  } }) : (i = y.default) == null ? void 0 : i.call(y);
@@ -0,0 +1,108 @@
1
+ import { n as e, o as t } from "./BE4V5Vf5.mjs";
2
+ import { useDictionary as n } from "../hook/useDictionary.mjs";
3
+ import { allProps as r, predicate as i } from "../props/select.mjs";
4
+ import { ElOption as a, ElSelect as o } from "element-plus/es";
5
+ import "element-plus/es/components/base/style/css";
6
+ import { computed as s, createVNode as c, mergeProps as l, ref as u, watchEffect as d } from "vue";
7
+ import { isNumber as f, isPlainObject as p, isString as m } from "@web-utils/core";
8
+ import "element-plus/es/components/select/style/css";
9
+ import "element-plus/es/components/option/style/css";
10
+ //#endregion
11
+ //#region src/components/form/FormSelect.vue
12
+ var h = {
13
+ name: "FormSelect",
14
+ inheritAttrs: !1,
15
+ props: { ...r },
16
+ emits: { ...e },
17
+ setup(e, { emit: r, slots: h, attrs: g }) {
18
+ let { emitInput: _, render: v, placeholder: y, disabled: b, listeners: x, inputProps: S } = t(e, {
19
+ emit: r,
20
+ slots: h,
21
+ attrs: g,
22
+ predicate: i,
23
+ messagePrefix: "请选择"
24
+ }), C = u(null), w = u(!1);
25
+ d(() => {
26
+ if (e.multiple && e.multipleStringMode) {
27
+ var t;
28
+ C.value = (t = e.modelValue) == null ? void 0 : t.split(",").filter((e) => e);
29
+ } else C.value = e.modelValue;
30
+ });
31
+ let T = (t) => {
32
+ if (e.multiple && e.multipleStringMode ? _(t.join(e.multipleStringSeparator)) : _(t), e.emitLabel) {
33
+ let n = O.value.find((n) => n[e.props.value] === t), i = n == null ? void 0 : n[e.props.label];
34
+ i !== e.optionLabel && r("update:optionLabel", i);
35
+ }
36
+ }, { dictItems: E } = n(e), D = u([]), O = s(() => {
37
+ if (e.dictType) return E.value;
38
+ if (e.remote) return D.value;
39
+ if (e.gender) return [{
40
+ [e.props.label]: "男",
41
+ [e.props.value]: e.chinese ? "男" : e.typing ? 1 : "1"
42
+ }, {
43
+ [e.props.label]: "女",
44
+ [e.props.value]: e.chinese ? "女" : e.typing ? 2 : "2"
45
+ }];
46
+ if (e.confirm) return [{
47
+ [e.props.label]: "是",
48
+ [e.props.value]: e.chinese ? "是" : e.english ? "Y" : e.typing ? 1 : "1"
49
+ }, {
50
+ [e.props.label]: "否",
51
+ [e.props.value]: e.chinese ? "否" : e.english ? "N" : e.typing ? 0 : "0"
52
+ }];
53
+ if (e.all) return [{
54
+ [e.props.value]: "",
55
+ [e.props.label]: "全部"
56
+ }, ...e.options];
57
+ if (e.start && e.end) return Array(e.end - e.start + 1).fill(1).map((t, n) => ({
58
+ [e.props.label]: e.start + n,
59
+ [e.props.value]: e.start + n
60
+ }));
61
+ if (e.year) {
62
+ let t = (/* @__PURE__ */ new Date()).getFullYear(), n = [], r = 10;
63
+ f(e.year) && (r = e.year);
64
+ for (let i = -r; i <= r; i++) {
65
+ let r = t + i;
66
+ n.push({
67
+ [e.props.label]: r,
68
+ [e.props.value]: r
69
+ });
70
+ }
71
+ return n;
72
+ }
73
+ return e.options ? e.options.map((t) => (t[e.props.value] = t[e.props.value] ?? t[e.props.label], t)) : [];
74
+ }), k = async (t) => {
75
+ try {
76
+ var n;
77
+ w.value = !0;
78
+ let r = await e.remoteMethod(t, e.prop);
79
+ ((n = r.data.data) == null ? void 0 : n.length) >= 0 ? m(r.data.data[0]) ? D.value = r.data.data.map((t) => ({
80
+ [e.props.value]: t,
81
+ [e.props.label]: t
82
+ })) : p(r.data.data[0]) && (D.value = r.data.data) : D.value = [];
83
+ } catch {}
84
+ w.value = !1;
85
+ };
86
+ return d(() => {
87
+ e.remote && k();
88
+ }), () => v({ vNodes: c(o, l(x.value, S.value, {
89
+ offset: e.dropDownOffset,
90
+ "model-value": C.value,
91
+ "onUpdate:modelValue": T,
92
+ disabled: b.value,
93
+ placeholder: y.value
94
+ }), {
95
+ ...h,
96
+ default: h.default || (() => {
97
+ var e;
98
+ return (e = O.value) == null ? void 0 : e.map(({ value: e, label: t }) => c(a, {
99
+ key: e,
100
+ label: t,
101
+ value: e
102
+ }, null));
103
+ })
104
+ }) });
105
+ }
106
+ };
107
+ //#endregion
108
+ export { h as t };