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

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 (326) 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/{CidE_6Q52.mjs → 8A7LSgb4.mjs} +26 -27
  10. package/chunks/{qFn9SqfB2.mjs → Apjns0ZM.mjs} +72 -73
  11. package/chunks/B0BOjeph2.mjs +108 -0
  12. package/chunks/BD6_5FSI.mjs +178 -0
  13. package/chunks/BE4V5Vf5.mjs +133 -0
  14. package/chunks/{Diidem-9.mjs → BGJjAw5E.mjs} +1 -1
  15. package/chunks/{BJNI7n9Z.mjs → BH7VEktl.mjs} +19 -19
  16. package/chunks/{BrJzSp9f.mjs → BI6kCG2j2.mjs} +2 -2
  17. package/chunks/{QAHALDuF2.mjs → BYtFzO-8.mjs} +138 -139
  18. package/chunks/{C9nRNgwm2.mjs → B_AUZSOW.mjs} +589 -763
  19. package/chunks/BctSGDgW2.mjs +29 -0
  20. package/chunks/{CJl5ZiUq2.mjs → Bes1uXng.mjs} +28 -30
  21. package/chunks/BhIWiH5R.mjs +661 -0
  22. package/chunks/BhzlH7Az.mjs +90 -0
  23. package/chunks/{DmEOzzaP2.mjs → BrelfRGo2.mjs} +14 -14
  24. package/chunks/{X6BItEt1.mjs → BsqIRxSS.mjs} +6 -7
  25. package/chunks/{Bnm0osro.mjs → C--HDCqy.mjs} +13 -16
  26. package/chunks/{iPHgzcZ0.mjs → C6mb7Nru2.mjs} +4 -4
  27. package/chunks/{Bhkk9TmJ2.mjs → CFoSvMJ-2.mjs} +1 -1
  28. package/chunks/{Vrr45MGv.mjs → CO3taG7t2.mjs} +1 -1
  29. package/chunks/{Bxo1Of95.mjs → CZUhA3sf.mjs} +298 -4
  30. package/chunks/Ccxbv7uz2.mjs +34 -0
  31. package/chunks/Ce4tNNzg2.mjs +63 -0
  32. package/chunks/{SEQG09ut.mjs → CelJ2L8A2.mjs} +2 -2
  33. package/chunks/CjYOitzM2.mjs +31 -0
  34. package/chunks/Cknuquqx.mjs +32 -0
  35. package/chunks/ClVh1Lek.mjs +130 -0
  36. package/chunks/CwyebsNL2.mjs +39 -0
  37. package/chunks/{DWjZMJ1e2.mjs → D6DYxngS.mjs} +132 -133
  38. package/chunks/D6YM84Pf2.mjs +29 -0
  39. package/chunks/{DlROUHPJ2.mjs → DTq5QLoT.mjs} +43 -43
  40. package/chunks/{5oaTzHT-2.mjs → DVMfVn-M.mjs} +14 -13
  41. package/chunks/DVdQHb_v.mjs +50 -0
  42. package/chunks/{YS7hFnUB2.mjs → Daa7nl7U.mjs} +19 -19
  43. package/chunks/{D6TSUCGL.mjs → Dh_BQpvC2.mjs} +2 -2
  44. package/chunks/DizOY5i8.mjs +69 -0
  45. package/chunks/{Czi7_tAe.mjs → DjaV6_cg2.mjs} +2 -2
  46. package/chunks/{CKWgRCN52.mjs → Dm3gQGoV2.mjs} +2 -2
  47. package/chunks/DqW9QtF3.mjs +68 -0
  48. package/chunks/{CKbOqPFm2.mjs → DqWJCka8.mjs} +9 -9
  49. package/chunks/{CIerTjpq2.mjs → DrWUdRj32.mjs} +2 -2
  50. package/chunks/Dv7YRB2U2.mjs +25 -0
  51. package/chunks/DyLQsqWJ.mjs +61 -0
  52. package/chunks/HsHwYW1a.mjs +99 -0
  53. package/chunks/KDVLIvaS.mjs +30 -0
  54. package/chunks/{BHwRv4F0.mjs → Lkg7bYLD2.mjs} +73 -74
  55. package/chunks/{DSnICEQN.mjs → Opn85Hlx2.mjs} +1 -1
  56. package/chunks/{CsA_9MVv.mjs → YdNYH25C.mjs} +1 -1
  57. package/chunks/{BiYsC43_.mjs → gTgPZrgY2.mjs} +119 -120
  58. package/chunks/{D2FNAA1a.mjs → jsgk7Yse2.mjs} +2 -2
  59. package/chunks/nL59ZuIk.mjs +58 -0
  60. package/chunks/{BrSZZNRc.mjs → neuEq1De.mjs} +70 -72
  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 +108 -109
  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/chunks/49634Q2N2.mjs +0 -936
  182. package/chunks/77cFhiAz.mjs +0 -13
  183. package/chunks/7JVbVOff2.mjs +0 -46
  184. package/chunks/B1ATN2my.mjs +0 -26
  185. package/chunks/B7O8aGqC2.mjs +0 -58
  186. package/chunks/BBPczt0U.mjs +0 -4
  187. package/chunks/BCwAowl1.mjs +0 -589
  188. package/chunks/BDVLN2ly.mjs +0 -105
  189. package/chunks/BEIlrURf.mjs +0 -251
  190. package/chunks/BEysX5TF2.mjs +0 -1038
  191. package/chunks/BHVyaqk0.mjs +0 -736
  192. package/chunks/BIj6pa8Z.mjs +0 -15
  193. package/chunks/BMWg0Wyj.mjs +0 -223
  194. package/chunks/BOsml5YC.mjs +0 -69
  195. package/chunks/BPwFiWYl2.mjs +0 -226
  196. package/chunks/BVIHqL6g.mjs +0 -17
  197. package/chunks/BVSQ6DfJ.mjs +0 -17
  198. package/chunks/BWqFKbFT.mjs +0 -1
  199. package/chunks/B__5L22p2.mjs +0 -346
  200. package/chunks/Bcpewc6H.mjs +0 -1279
  201. package/chunks/Bdeug17L.mjs +0 -42
  202. package/chunks/BffxPn8a.mjs +0 -34
  203. package/chunks/BgKQXQO_.mjs +0 -3093
  204. package/chunks/Bgw_3soo.mjs +0 -35
  205. package/chunks/BjCfQFUL.mjs +0 -54
  206. package/chunks/BjWs-r2V.mjs +0 -25
  207. package/chunks/BlB1fEo92.mjs +0 -8
  208. package/chunks/BmP9lQmT.mjs +0 -1
  209. package/chunks/BrYtAPbN2.mjs +0 -161
  210. package/chunks/BsKwchVA.mjs +0 -14
  211. package/chunks/BzFYbCpR.mjs +0 -25
  212. package/chunks/C6puxasG.mjs +0 -34
  213. package/chunks/C7l9aZGE.mjs +0 -577
  214. package/chunks/CDRNaOEg2.mjs +0 -274
  215. package/chunks/CG7AYiWy.mjs +0 -1
  216. package/chunks/CLzc_j7_.mjs +0 -234
  217. package/chunks/CQSTyCVP.mjs +0 -6
  218. package/chunks/CQxz8uUc.mjs +0 -454
  219. package/chunks/CU8bKuD12.mjs +0 -237
  220. package/chunks/CUF58PQ6.mjs +0 -1
  221. package/chunks/CUMFv5zJ2.mjs +0 -136
  222. package/chunks/C_eGir-J.mjs +0 -17
  223. package/chunks/Cb6Zx6UC.mjs +0 -29
  224. package/chunks/Cb_S4x_i2.mjs +0 -1098
  225. package/chunks/CbgD7y-5.mjs +0 -5
  226. package/chunks/CbsGuLZz2.mjs +0 -105
  227. package/chunks/CcT5SsZk.mjs +0 -48
  228. package/chunks/CcnjxILx.mjs +0 -1
  229. package/chunks/ChkCT6Mm.mjs +0 -4
  230. package/chunks/CiFlMt6Z.mjs +0 -41
  231. package/chunks/CiOqOUkG.mjs +0 -1
  232. package/chunks/CkXf_DVJ2.mjs +0 -1
  233. package/chunks/CnCSm3LY2.mjs +0 -4
  234. package/chunks/CnqWFDqp2.mjs +0 -244
  235. package/chunks/Cq0oEWRi2.mjs +0 -384
  236. package/chunks/CtBIjjQc2.mjs +0 -58
  237. package/chunks/Ctd3_wOH2.mjs +0 -6
  238. package/chunks/CuoYjthQ.mjs +0 -643
  239. package/chunks/CwhXr2Qc.mjs +0 -1
  240. package/chunks/D-hj62se2.mjs +0 -525
  241. package/chunks/D3VpXXqv.mjs +0 -1331
  242. package/chunks/D3Xixh5v.mjs +0 -5
  243. package/chunks/D4oNQiIK.mjs +0 -461
  244. package/chunks/D7O9ov79.mjs +0 -447
  245. package/chunks/D8fid28s2.mjs +0 -42
  246. package/chunks/DJdhVUFO2.mjs +0 -2435
  247. package/chunks/DJo_1CEK2.mjs +0 -61
  248. package/chunks/DMBx2EQl.mjs +0 -107
  249. package/chunks/DOCwznnS.mjs +0 -62
  250. package/chunks/DStwh2ne.mjs +0 -281
  251. package/chunks/D_5z5Xeq2.mjs +0 -37
  252. package/chunks/Df9VO_Wn2.mjs +0 -2
  253. package/chunks/Dg9Q-Tbi2.mjs +0 -299
  254. package/chunks/Diyl8upM.mjs +0 -277
  255. package/chunks/DjIPzCCR.mjs +0 -2
  256. package/chunks/DnBzQ-xh.mjs +0 -4
  257. package/chunks/Dp195RgF.mjs +0 -2
  258. package/chunks/Dqu1Etz62.mjs +0 -52
  259. package/chunks/DrKq_frR.mjs +0 -98
  260. package/chunks/DrXfCf172.mjs +0 -440
  261. package/chunks/DsZznbt2.mjs +0 -208
  262. package/chunks/Dsd58O0g.mjs +0 -25
  263. package/chunks/DssopN-n2.mjs +0 -97
  264. package/chunks/Dtq1xYk8.mjs +0 -47
  265. package/chunks/FeuisuNY2.mjs +0 -88
  266. package/chunks/GEtlriHC.mjs +0 -188
  267. package/chunks/GsvG1yFW.mjs +0 -1919
  268. package/chunks/IheQdJ0z.mjs +0 -267
  269. package/chunks/KGmxNbpi.mjs +0 -21
  270. package/chunks/PNyFONog2.mjs +0 -69
  271. package/chunks/T70m4caR.mjs +0 -1095
  272. package/chunks/ZBsqmcIN2.mjs +0 -622
  273. package/chunks/akEzJ4kG.mjs +0 -18
  274. package/chunks/fX1GD0G5.mjs +0 -70
  275. package/chunks/gh52LMTG.mjs +0 -12
  276. package/chunks/hgAOQY9a.mjs +0 -406
  277. package/chunks/iu5J8EF_.mjs +0 -197
  278. package/chunks/lGc5ksPb.mjs +0 -279
  279. package/chunks/pZQfJv282.mjs +0 -4
  280. package/chunks/qrHhuZXg.mjs +0 -465
  281. package/chunks/r8gDbwly.mjs +0 -1
  282. package/chunks/vpwjmKdg2.mjs +0 -32
  283. package/css/style.css +0 -1
  284. package/css/style10.css +0 -1
  285. package/css/style11.css +0 -1
  286. package/css/style12.css +0 -1
  287. package/css/style13.css +0 -1
  288. package/css/style14.css +0 -1
  289. package/css/style15.css +0 -1
  290. package/css/style16.css +0 -1
  291. package/css/style17.css +0 -1
  292. package/css/style18.css +0 -1
  293. package/css/style19.css +0 -1
  294. package/css/style2.css +0 -1
  295. package/css/style20.css +0 -1
  296. package/css/style21.css +0 -1
  297. package/css/style22.css +0 -1
  298. package/css/style23.css +0 -1
  299. package/css/style24.css +0 -1
  300. package/css/style25.css +0 -1
  301. package/css/style26.css +0 -1
  302. package/css/style27.css +0 -1
  303. package/css/style28.css +0 -1
  304. package/css/style29.css +0 -1
  305. package/css/style3.css +0 -1
  306. package/css/style4.css +0 -1
  307. package/css/style5.css +0 -1
  308. package/css/style6.css +0 -1
  309. package/css/style7.css +0 -1
  310. package/css/style8.css +0 -1
  311. package/css/style9.css +0 -1
  312. package/form-date-picker/style.css +0 -1
  313. package/form-image/style.css +0 -1
  314. package/form-input-time/style.css +0 -1
  315. package/form-radio-group/style.css +0 -1
  316. package/form-rate/style.css +0 -1
  317. package/form-time-select/style.css +0 -1
  318. /package/chunks/{CZnBtJW02.mjs → BBvIPqcc.mjs} +0 -0
  319. /package/chunks/{iIozz7ce.mjs → BoCxKwBf.mjs} +0 -0
  320. /package/chunks/{BxRjXAwz.mjs → CE67pCwD.mjs} +0 -0
  321. /package/chunks/{DWhGFQkb2.mjs → CQeEP_Tl.mjs} +0 -0
  322. /package/chunks/{BQ0e8kIi.mjs → CaczibeD.mjs} +0 -0
  323. /package/chunks/{B_80qPvY.mjs → DZCryyFG.mjs} +0 -0
  324. /package/chunks/{q5iCsXNv.mjs → Dq63V0CC.mjs} +0 -0
  325. /package/chunks/{CRjUGi_-.mjs → OEBJ-trG.mjs} +0 -0
  326. /package/chunks/{GYddfy8T.mjs → fjtZc9Rq2.mjs} +0 -0
@@ -1,61 +0,0 @@
1
- import { l as e, s as t, t as n } from "./DrKq_frR.mjs";
2
- import { t as r } from "./pZQfJv282.mjs";
3
- /* empty css */
4
- import { computed as i, createBlock as a, defineComponent as o, normalizeClass as s, normalizeStyle as c, openBlock as l, provide as u, renderSlot as d, resolveDynamicComponent as f, withCtx as p } from "vue";
5
- //#endregion
6
- //#region node_modules/.pnpm/element-plus@2.13.7_typescr_0fa4751f8fa020301a8746973788e8b7/node_modules/element-plus/es/components/row/index.mjs
7
- var m = n(/* @__PURE__ */ o({
8
- name: "ElRow",
9
- __name: "row",
10
- props: e({
11
- tag: {
12
- type: String,
13
- default: "div"
14
- },
15
- gutter: {
16
- type: Number,
17
- default: 0
18
- },
19
- justify: {
20
- type: String,
21
- values: [
22
- "start",
23
- "center",
24
- "end",
25
- "space-around",
26
- "space-between",
27
- "space-evenly"
28
- ],
29
- default: "start"
30
- },
31
- align: {
32
- type: String,
33
- values: [
34
- "top",
35
- "middle",
36
- "bottom"
37
- ]
38
- }
39
- }),
40
- setup(e) {
41
- let n = e, o = t("row");
42
- u(r, { gutter: i(() => n.gutter) });
43
- let m = i(() => {
44
- let e = {};
45
- return n.gutter && (e.marginRight = e.marginLeft = `-${n.gutter / 2}px`), e;
46
- }), h = i(() => [
47
- o.b(),
48
- o.is(`justify-${n.justify}`, n.justify !== "start"),
49
- o.is(`align-${n.align}`, !!n.align)
50
- ]);
51
- return (t, n) => (l(), a(f(e.tag), {
52
- class: s(h.value),
53
- style: c(m.value)
54
- }, {
55
- default: p(() => [d(t.$slots, "default")]),
56
- _: 3
57
- }, 8, ["class", "style"]));
58
- }
59
- }));
60
- //#endregion
61
- export { m as t };
@@ -1,107 +0,0 @@
1
- import "./CjjJimnU.mjs";
2
- import { n as e, t } from "./Bcpewc6H.mjs";
3
- /* empty css */
4
- import { n, o as r } from "./CUMFv5zJ2.mjs";
5
- import { useDictionary as i } from "../hook/useDictionary.mjs";
6
- import { allProps as a, predicate as o } from "../props/select.mjs";
7
- import { computed as s, createVNode as c, mergeProps as l, ref as u, watchEffect as d } from "vue";
8
- import { isNumber as f, isPlainObject as p, isString as m } from "@web-utils/core";
9
- //#endregion
10
- //#region src/components/form/FormSelect.vue
11
- var h = {
12
- name: "FormSelect",
13
- inheritAttrs: !1,
14
- props: { ...a },
15
- emits: { ...n },
16
- setup(n, { emit: a, slots: h, attrs: g }) {
17
- let { emitInput: _, render: v, placeholder: y, disabled: b, listeners: x, inputProps: S } = r(n, {
18
- emit: a,
19
- slots: h,
20
- attrs: g,
21
- predicate: o,
22
- messagePrefix: "请选择"
23
- }), C = u(null), w = u(!1);
24
- d(() => {
25
- if (n.multiple && n.multipleStringMode) {
26
- var e;
27
- C.value = (e = n.modelValue) == null ? void 0 : e.split(",").filter((e) => e);
28
- } else C.value = n.modelValue;
29
- });
30
- let T = (e) => {
31
- if (n.multiple && n.multipleStringMode ? _(e.join(n.multipleStringSeparator)) : _(e), n.emitLabel) {
32
- let t = O.value.find((t) => t[n.props.value] === e), r = t == null ? void 0 : t[n.props.label];
33
- r !== n.optionLabel && a("update:optionLabel", r);
34
- }
35
- }, { dictItems: E } = i(n), D = u([]), O = s(() => {
36
- if (n.dictType) return E.value;
37
- if (n.remote) return D.value;
38
- if (n.gender) return [{
39
- [n.props.label]: "男",
40
- [n.props.value]: n.chinese ? "男" : n.typing ? 1 : "1"
41
- }, {
42
- [n.props.label]: "女",
43
- [n.props.value]: n.chinese ? "女" : n.typing ? 2 : "2"
44
- }];
45
- if (n.confirm) return [{
46
- [n.props.label]: "是",
47
- [n.props.value]: n.chinese ? "是" : n.english ? "Y" : n.typing ? 1 : "1"
48
- }, {
49
- [n.props.label]: "否",
50
- [n.props.value]: n.chinese ? "否" : n.english ? "N" : n.typing ? 0 : "0"
51
- }];
52
- if (n.all) return [{
53
- [n.props.value]: "",
54
- [n.props.label]: "全部"
55
- }, ...n.options];
56
- if (n.start && n.end) return Array(n.end - n.start + 1).fill(1).map((e, t) => ({
57
- [n.props.label]: n.start + t,
58
- [n.props.value]: n.start + t
59
- }));
60
- if (n.year) {
61
- let e = (/* @__PURE__ */ new Date()).getFullYear(), t = [], r = 10;
62
- f(n.year) && (r = n.year);
63
- for (let i = -r; i <= r; i++) {
64
- let r = e + i;
65
- t.push({
66
- [n.props.label]: r,
67
- [n.props.value]: r
68
- });
69
- }
70
- return t;
71
- }
72
- return n.options ? n.options.map((e) => (e[n.props.value] = e[n.props.value] ?? e[n.props.label], e)) : [];
73
- }), k = async (e) => {
74
- try {
75
- var t;
76
- w.value = !0;
77
- let r = await n.remoteMethod(e, n.prop);
78
- ((t = r.data.data) == null ? void 0 : t.length) >= 0 ? m(r.data.data[0]) ? D.value = r.data.data.map((e) => ({
79
- [n.props.value]: e,
80
- [n.props.label]: e
81
- })) : p(r.data.data[0]) && (D.value = r.data.data) : D.value = [];
82
- } catch {}
83
- w.value = !1;
84
- };
85
- return d(() => {
86
- n.remote && k();
87
- }), () => v({ vNodes: c(e, l(x.value, S.value, {
88
- offset: n.dropDownOffset,
89
- "model-value": C.value,
90
- "onUpdate:modelValue": T,
91
- disabled: b.value,
92
- placeholder: y.value
93
- }), {
94
- ...h,
95
- default: h.default || (() => {
96
- var e;
97
- return (e = O.value) == null ? void 0 : e.map(({ value: e, label: n }) => c(t, {
98
- key: e,
99
- label: n,
100
- value: e
101
- }, null));
102
- })
103
- }) });
104
- }
105
- };
106
- //#endregion
107
- export { h as t };
@@ -1,62 +0,0 @@
1
- import "./CjjJimnU.mjs";
2
- import { n as e, r as t, t as n } from "./CDRNaOEg2.mjs";
3
- /* empty css */
4
- import { n as r, o as i } from "./CUMFv5zJ2.mjs";
5
- import { useDictionary as a } from "../hook/useDictionary.mjs";
6
- import "./Df9VO_Wn2.mjs";
7
- import { allProps as o, predicate as s } from "../props/radio-group.mjs";
8
- import { computed as c, createVNode as l, isVNode as u, mergeProps as d, useModel as f } from "vue";
9
- //#region src/components/form/FormRadioGroup.vue?vue&type=script&lang.jsx
10
- function p(e) {
11
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !u(e);
12
- }
13
- //#endregion
14
- //#region src/components/form/FormRadioGroup.vue
15
- var m = {
16
- name: "FormRadioGroup",
17
- inheritAttrs: !1,
18
- props: { ...o },
19
- emits: { ...r },
20
- setup(r, { slots: o, attrs: u, emit: m }) {
21
- let h = f(r, "modelValue"), { render: g, disabled: _, listeners: v, inputProps: y } = i(r, {
22
- emit: m,
23
- slots: o,
24
- attrs: u,
25
- predicate: s,
26
- messagePrefix: "请选择"
27
- }), b = c(() => r.classic ? "label" : r.labelProp), x = c(() => r.classic ? "value" : r.valueProp), { dictItems: S } = a(r), C = c(() => r.dictType ? S.value : r.gender ? [{
28
- [b.value]: "男",
29
- [x.value]: r.chinese ? "男" : r.typing ? 1 : "1"
30
- }, {
31
- [b.value]: "女",
32
- [x.value]: r.chinese ? "女" : r.typing ? 2 : "2"
33
- }] : r.confirm ? [{
34
- [b.value]: "是",
35
- [x.value]: r.chinese ? "是" : r.english ? "Y" : r.typing ? 1 : "1"
36
- }, {
37
- [b.value]: "否",
38
- [x.value]: r.chinese ? "否" : r.english ? "N" : r.typing ? 0 : "0"
39
- }] : r.options);
40
- return () => g({ vNodes: l(t, d(v.value, y.value, {
41
- modelValue: h.value,
42
- "onUpdate:modelValue": (e) => h.value = e,
43
- disabled: _.value
44
- }), {
45
- ...o,
46
- default: o.default || (() => {
47
- var t;
48
- return (t = C.value) == null ? void 0 : t.map(({ value: t, label: i, disabled: a }) => r.type === "button" || r.radioType === "button" ? l(e, {
49
- key: t,
50
- value: t,
51
- disabled: a
52
- }, p(i) ? i : { default: () => [i] }) : l(n, {
53
- key: t,
54
- value: t,
55
- disabled: a
56
- }, p(i) ? i : { default: () => [i] }));
57
- })
58
- }) });
59
- }
60
- };
61
- //#endregion
62
- export { m as t };
@@ -1,281 +0,0 @@
1
- import "./CjjJimnU.mjs";
2
- import { T as e } from "./hgAOQY9a.mjs";
3
- import { M as t, T as n, k as r } from "./DrKq_frR.mjs";
4
- import { t as i } from "./qrHhuZXg.mjs";
5
- import { I as a, P as o, R as s } from "./D4oNQiIK.mjs";
6
- import { t as c } from "./49634Q2N2.mjs";
7
- import { n as l } from "./B7O8aGqC2.mjs";
8
- import { Transition as u, createApp as d, createVNode as f, defineComponent as p, h as m, isRef as h, nextTick as g, reactive as _, ref as v, toRefs as y, vShow as b, withCtx as x, withDirectives as S } from "vue";
9
- import { isFunction as C } from "@web-utils/core";
10
- //#region node_modules/.pnpm/element-plus@2.13.7_typescr_0fa4751f8fa020301a8746973788e8b7/node_modules/element-plus/es/components/loading/src/loading.mjs
11
- function w(e, t) {
12
- let n, r = v(!1), i = _({
13
- ...e,
14
- originalPosition: "",
15
- originalOverflow: "",
16
- visible: !1
17
- });
18
- function a(e) {
19
- i.text = e;
20
- }
21
- function o() {
22
- let e = i.parent, t = w.ns;
23
- if (!e.vLoadingAddClassList) {
24
- let n = e.getAttribute("loading-number");
25
- n = Number.parseInt(n) - 1, n ? e.setAttribute("loading-number", n.toString()) : (s(e, t.bm("parent", "relative")), e.removeAttribute("loading-number")), s(e, t.bm("parent", "hidden"));
26
- }
27
- c(), C.unmount();
28
- }
29
- function c() {
30
- var e;
31
- (e = w.$el) == null || (e = e.parentNode) == null || e.removeChild(w.$el);
32
- }
33
- function h() {
34
- var t;
35
- e.beforeClose && !e.beforeClose() || (r.value = !0, clearTimeout(n), n = setTimeout(g, 400), i.visible = !1, (t = e.closed) == null || t.call(e));
36
- }
37
- function g() {
38
- if (!r.value) return;
39
- let e = i.parent;
40
- r.value = !1, e.vLoadingAddClassList = void 0, o();
41
- }
42
- let C = d(p({
43
- name: "ElLoading",
44
- setup(e, { expose: t }) {
45
- let { ns: n, zIndex: r } = l("loading");
46
- return t({
47
- ns: n,
48
- zIndex: r
49
- }), () => {
50
- let e = i.spinner || i.svg, t = m("svg", {
51
- class: "circular",
52
- viewBox: i.svgViewBox ? i.svgViewBox : "0 0 50 50",
53
- ...e ? { innerHTML: e } : {}
54
- }, [m("circle", {
55
- class: "path",
56
- cx: "25",
57
- cy: "25",
58
- r: "20",
59
- fill: "none"
60
- })]), r = i.text ? m("p", { class: n.b("text") }, [i.text]) : void 0;
61
- return m(u, {
62
- name: n.b("fade"),
63
- onAfterLeave: g
64
- }, { default: x(() => [S(f("div", {
65
- style: { backgroundColor: i.background || "" },
66
- class: [
67
- n.b("mask"),
68
- i.customClass,
69
- n.is("fullscreen", i.fullscreen)
70
- ]
71
- }, [m("div", { class: n.b("spinner") }, [t, r])]), [[b, i.visible]])]) });
72
- };
73
- }
74
- }));
75
- Object.assign(C._context, t ?? {});
76
- let w = C.mount(document.createElement("div"));
77
- return {
78
- ...y(i),
79
- setText: a,
80
- removeElLoadingChild: c,
81
- close: h,
82
- handleAfterLeave: g,
83
- vm: w,
84
- get $el() {
85
- return w.$el;
86
- }
87
- };
88
- }
89
- //#endregion
90
- //#region node_modules/.pnpm/element-plus@2.13.7_typescr_0fa4751f8fa020301a8746973788e8b7/node_modules/element-plus/es/components/loading/src/service.mjs
91
- var T = void 0, E = function(t = {}, n) {
92
- if (!e) return;
93
- let r = D(t);
94
- if (r.fullscreen && T) return T;
95
- let i = w({
96
- ...r,
97
- closed: () => {
98
- var e;
99
- (e = r.closed) == null || e.call(r), r.fullscreen && (T = void 0);
100
- }
101
- }, n ?? E._context);
102
- O(r, r.parent, i), k(r, r.parent, i), r.parent.vLoadingAddClassList = () => k(r, r.parent, i);
103
- let a = r.parent.getAttribute("loading-number");
104
- return a = a ? `${Number.parseInt(a) + 1}` : "1", r.parent.setAttribute("loading-number", a), r.parent.appendChild(i.$el), g(() => i.visible.value = r.visible), r.fullscreen && (T = i), i;
105
- }, D = (e) => {
106
- let n;
107
- return n = t(e.target) ? document.querySelector(e.target) ?? document.body : e.target || document.body, {
108
- parent: n === document.body || e.body ? document.body : n,
109
- background: e.background || "",
110
- svg: e.svg || "",
111
- svgViewBox: e.svgViewBox || "",
112
- spinner: e.spinner || !1,
113
- text: e.text || "",
114
- fullscreen: n === document.body && (e.fullscreen ?? !0),
115
- lock: e.lock ?? !1,
116
- customClass: e.customClass || "",
117
- visible: e.visible ?? !0,
118
- beforeClose: e.beforeClose,
119
- closed: e.closed,
120
- target: n
121
- };
122
- }, O = async (e, t, n) => {
123
- let { nextZIndex: r } = n.vm.zIndex || n.vm._.exposed.zIndex, i = {};
124
- if (e.fullscreen) n.originalPosition.value = a(document.body, "position"), n.originalOverflow.value = a(document.body, "overflow"), i.zIndex = r();
125
- else if (e.parent === document.body) {
126
- n.originalPosition.value = a(document.body, "position"), await g();
127
- for (let t of ["top", "left"]) {
128
- let n = t === "top" ? "scrollTop" : "scrollLeft";
129
- i[t] = `${e.target.getBoundingClientRect()[t] + document.body[n] + document.documentElement[n] - Number.parseInt(a(document.body, `margin-${t}`), 10)}px`;
130
- }
131
- for (let t of ["height", "width"]) i[t] = `${e.target.getBoundingClientRect()[t]}px`;
132
- } else n.originalPosition.value = a(t, "position");
133
- for (let [e, t] of Object.entries(i)) n.$el.style[e] = t;
134
- }, k = (e, t, n) => {
135
- let r = n.vm.ns || n.vm._.exposed.ns;
136
- [
137
- "absolute",
138
- "fixed",
139
- "sticky"
140
- ].includes(n.originalPosition.value) ? s(t, r.bm("parent", "relative")) : o(t, r.bm("parent", "relative")), e.fullscreen && e.lock ? o(t, r.bm("parent", "hidden")) : s(t, r.bm("parent", "hidden"));
141
- };
142
- E._context = null;
143
- //#endregion
144
- //#region node_modules/.pnpm/element-plus@2.13.7_typescr_0fa4751f8fa020301a8746973788e8b7/node_modules/element-plus/es/components/loading/src/directive.mjs
145
- var A = Symbol("ElLoading"), j = (e) => `element-loading-${n(e)}`, M = (e, n) => {
146
- let i = n.instance, a = (e) => r(n.value) ? n.value[e] : void 0, o = (e) => v(t(e) && (i == null ? void 0 : i[e]) || e), s = (t) => o(a(t) || e.getAttribute(j(t))), c = a("fullscreen") ?? n.modifiers.fullscreen, l = {
147
- text: s("text"),
148
- svg: s("svg"),
149
- svgViewBox: s("svgViewBox"),
150
- spinner: s("spinner"),
151
- background: s("background"),
152
- customClass: s("customClass"),
153
- fullscreen: c,
154
- target: a("target") ?? (c ? void 0 : e),
155
- body: a("body") ?? n.modifiers.body,
156
- lock: a("lock") ?? n.modifiers.lock
157
- }, u = E(l);
158
- u._context = P._context, e[A] = {
159
- options: l,
160
- instance: u
161
- };
162
- }, N = (e, t) => {
163
- for (let n of Object.keys(e)) h(e[n]) && (e[n].value = t[n]);
164
- }, P = {
165
- mounted(e, t) {
166
- t.value && M(e, t);
167
- },
168
- updated(e, t) {
169
- let n = e[A];
170
- if (!t.value) {
171
- n == null || n.instance.close(), e[A] = null;
172
- return;
173
- }
174
- n ? N(n.options, r(t.value) ? t.value : {
175
- text: e.getAttribute(j("text")),
176
- svg: e.getAttribute(j("svg")),
177
- svgViewBox: e.getAttribute(j("svgViewBox")),
178
- spinner: e.getAttribute(j("spinner")),
179
- background: e.getAttribute(j("background")),
180
- customClass: e.getAttribute(j("customClass"))
181
- }) : M(e, t);
182
- },
183
- unmounted(e) {
184
- var t;
185
- (t = e[A]) == null || t.instance.close(), e[A] = null;
186
- }
187
- };
188
- P._context = null;
189
- //#endregion
190
- //#region node_modules/.pnpm/element-plus@2.13.7_typescr_0fa4751f8fa020301a8746973788e8b7/node_modules/element-plus/es/components/loading/index.mjs
191
- var F = {
192
- install(e) {
193
- E._context = e._context, P._context = e._context, e.directive("loading", P), e.config.globalProperties.$loading = E;
194
- },
195
- directive: P,
196
- service: E
197
- };
198
- //#endregion
199
- //#region src/components/button/confirmable-mixin.ts
200
- async function I(e, t, n) {
201
- let { stop: r, prevent: a, message: o, loadable: s, loadingText: c, confirmable: l, confirmType: u, confirmText: d, confirmTitle: f } = t;
202
- r && e.stopPropagation(), a && e.preventDefault();
203
- let { onBefore: p, onClick: m, onCancel: h, onAfter: g } = n;
204
- if (C(m)) try {
205
- let t = !0;
206
- if (C(p) && (t = await p(e)), !t) return;
207
- l && await i.confirm(o || d, {
208
- type: u,
209
- title: f
210
- });
211
- let n;
212
- s && (n = F.service({
213
- background: "rgba(0,0,0,0.3)",
214
- text: c
215
- }));
216
- let r;
217
- try {
218
- r = await m(e);
219
- } catch {}
220
- s && (n == null || n.close()), C(g) && await g(e, r);
221
- } catch (e) {
222
- C(h) && await h(e);
223
- }
224
- }
225
- var L = p({
226
- inheritAttrs: !1,
227
- props: {
228
- stop: {
229
- type: Boolean,
230
- default: !0
231
- },
232
- prevent: {
233
- type: Boolean,
234
- default: !0
235
- },
236
- text: {
237
- type: String,
238
- default: ""
239
- },
240
- message: String,
241
- confirmable: {
242
- type: Boolean,
243
- default: !0
244
- },
245
- confirmText: {
246
- type: String,
247
- default: "你确定要删除该记录吗?"
248
- },
249
- confirmType: {
250
- type: String,
251
- default: "warning"
252
- },
253
- confirmTitle: {
254
- type: String,
255
- default: "系统提示"
256
- },
257
- loadable: Boolean,
258
- loadingText: {
259
- type: String,
260
- default: "正在处理中请稍候..."
261
- },
262
- tag: {
263
- type: String,
264
- default: "i"
265
- },
266
- icon: String
267
- },
268
- render() {
269
- let e = this.tag === "ElButton" ? c : this.tag, { text: t, icon: n, ...r } = this.$props, { onClick: i, ...a } = this.$attrs;
270
- return m(e, {
271
- ...a,
272
- ...r,
273
- onClick: (e) => I(e, this.$props, this.$attrs)
274
- }, {
275
- default: this.$slots.default || (() => t),
276
- icon: this.icon ? () => m("i", { class: this.icon }) : null
277
- });
278
- }
279
- });
280
- //#endregion
281
- export { L as t };
@@ -1,37 +0,0 @@
1
- import "./CjjJimnU.mjs";
2
- import { t as e } from "./Diyl8upM.mjs";
3
- /* empty css */
4
- import { n as t, o as n } from "./CUMFv5zJ2.mjs";
5
- import { allProps as r, predicate as i } from "../props/input-number.mjs";
6
- import { computed as a, createVNode as o, mergeProps as s } from "vue";
7
- import { isString as c } from "@web-utils/core";
8
- //#endregion
9
- //#region src/components/form/FormInputNumber.vue
10
- var l = {
11
- name: "FormInputNumber",
12
- inheritAttrs: !1,
13
- props: { ...r },
14
- emits: { ...t },
15
- setup(t, { emit: r, slots: l, attrs: u }) {
16
- let { emitInput: d, render: f, placeholder: p, disabled: m, listeners: h, inputProps: g } = n(t, {
17
- emit: r,
18
- slots: l,
19
- attrs: u,
20
- predicate: i
21
- }), _ = a(() => c(t.modelValue) ? Number(t.modelValue) : t.modelValue);
22
- return () => f({ vNodes: o(e, s(h.value, g.value, {
23
- style: "width: 100%",
24
- modelValue: _.value,
25
- disabled: m.value,
26
- "onUpdate:modelValue": d,
27
- placeholder: p.value
28
- }), {
29
- prefix: l.prefix || t.prefix ? () => t.prefix : null,
30
- suffix: l.suffix || t.suffix ? () => t.suffix : t.append,
31
- "decrease-icon": l["decrease-icon"],
32
- "increase-icon": l["increase-icon"]
33
- }) });
34
- }
35
- };
36
- //#endregion
37
- export { l as t };
@@ -1,2 +0,0 @@
1
- import "./CDRNaOEg2.mjs";
2
- /* empty css */