@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
@@ -0,0 +1,661 @@
1
+ import { h as e, m as t, n, r } from "./ClVh1Lek.mjs";
2
+ import i from "../element-resize-observer/index.mjs";
3
+ import { cellClickHandlerContextKey as a, pageableTableContextKey as o } from "../constants/index.mjs";
4
+ import { t as s } from "./BH7VEktl.mjs";
5
+ import { getDictLabel as c } from "../helper/dictionary.mjs";
6
+ import { t as l } from "./CE67pCwD.mjs";
7
+ import { t as u } from "./DizOY5i8.mjs";
8
+ import { useVisibilityChange as ee } from "../hook/useVisibilityChange.mjs";
9
+ import { ElCheckbox as d, ElDrawer as f, ElEmpty as te, ElMessage as ne, ElPagination as re, ElRadio as p, ElTable as m, ElTableColumn as h } from "element-plus/es";
10
+ import "element-plus/es/components/base/style/css";
11
+ import { Fragment as g, computed as _, createBlock as v, createTextVNode as y, createVNode as b, inject as x, isVNode as S, mergeModels as C, mergeProps as w, nextTick as ie, onUpdated as ae, openBlock as T, provide as E, reactive as D, ref as O, toDisplayString as k, useModel as A, useTemplateRef as j, watch as M, withCtx as N } from "vue";
12
+ import "element-plus/es/components/message/style/css";
13
+ import "element-plus/es/components/drawer/style/css";
14
+ import "element-plus/es/components/table/style/css";
15
+ import "element-plus/es/components/checkbox/style/css";
16
+ import "element-plus/es/components/table-column/style/css";
17
+ import "element-plus/es/components/pagination/style/css";
18
+ import "element-plus/es/components/empty/style/css";
19
+ import "element-plus/es/components/radio/style/css";
20
+ import { useEventBus as oe } from "@web-utils/vue/hooks/useEventBus";
21
+ //#region src/components/table/components/TableColumnSettingPanel.vue
22
+ var P = /* @__PURE__ */ Object.assign({ name: "TableColumnSettingPanel" }, {
23
+ __name: "TableColumnSettingPanel",
24
+ props: /* @__PURE__ */ C({ columns: {
25
+ type: Array,
26
+ default: () => []
27
+ } }, {
28
+ modelValue: {
29
+ type: Boolean,
30
+ default: !1
31
+ },
32
+ modelModifiers: {}
33
+ }),
34
+ emits: ["update:modelValue"],
35
+ setup(e, { expose: t }) {
36
+ let n = A(e, "modelValue"), r = D({}), i = D({}), a = D({}), o = D({}), s = (e, t, n) => {
37
+ n === "hide" ? r[t.prop] = e : n === "fixed" ? i[t.prop] = e : n === "filterable" ? a[t.prop] = e : n === "sortable" && (o[t.prop] = e);
38
+ };
39
+ return t({
40
+ hideProps: r,
41
+ fixedProps: i,
42
+ filterableProps: a,
43
+ sortableProps: o
44
+ }), (t, r) => {
45
+ let i = h, a = d, o = m, c = f;
46
+ return T(), v(c, {
47
+ modelValue: n.value,
48
+ "onUpdate:modelValue": r[0] || (r[0] = (e) => n.value = e),
49
+ class: "table-column-filter",
50
+ title: "表格设置",
51
+ "append-to-body": ""
52
+ }, {
53
+ default: N(() => [b(o, {
54
+ data: e.columns,
55
+ border: ""
56
+ }, {
57
+ default: N(() => [
58
+ b(i, { label: "列名" }, {
59
+ default: N(({ row: e }) => [y(k(e.label), 1)]),
60
+ _: 1
61
+ }),
62
+ b(i, {
63
+ label: "隐藏",
64
+ align: "center"
65
+ }, {
66
+ default: N(({ row: e }) => [b(a, { onChange: (t) => s(t, e, "hide") }, null, 8, ["onChange"])]),
67
+ _: 1
68
+ }),
69
+ b(i, {
70
+ label: "冻结",
71
+ align: "center"
72
+ }, {
73
+ default: N(({ row: e }) => [b(a, { onChange: (t) => s(t, e, "fixed") }, null, 8, ["onChange"])]),
74
+ _: 1
75
+ }),
76
+ b(i, {
77
+ label: "过滤",
78
+ align: "center"
79
+ }, {
80
+ default: N(({ row: e }) => [b(a, { onChange: (t) => s(t, e, "filterable") }, null, 8, ["onChange"])]),
81
+ _: 1
82
+ }),
83
+ b(i, {
84
+ label: "排序",
85
+ align: "center"
86
+ }, {
87
+ default: N(({ row: e }) => [b(a, {
88
+ title: e.allowSort ? null : "该列不支持排序!",
89
+ disabled: !e.allowSort,
90
+ onChange: (t) => s(t, e, "sortable")
91
+ }, null, 8, [
92
+ "title",
93
+ "disabled",
94
+ "onChange"
95
+ ])]),
96
+ _: 1
97
+ })
98
+ ]),
99
+ _: 1
100
+ }, 8, ["data"])]),
101
+ _: 1
102
+ }, 8, ["modelValue"]);
103
+ };
104
+ }
105
+ });
106
+ //#endregion
107
+ //#region src/components/table/components/TableColumnFilterable.vue?vue&type=script&lang.jsx
108
+ function F(e) {
109
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !S(e);
110
+ }
111
+ //#endregion
112
+ //#region src/components/table/components/TableColumnFilterable.vue
113
+ var se = {
114
+ name: "TableColumnFilterable",
115
+ props: { ...l },
116
+ setup(t, { slots: n }) {
117
+ let r = x(o, null), i = e(t, (e) => e !== "filterMethod" && e !== "filters"), a = _(() => {
118
+ if (t.filterable && r) return (e, t, n) => t[n.property] === e;
119
+ }), s = _(() => {
120
+ if (t.filterable && r) return [...new Set(r.records.value.map((e) => e[t.prop]).filter((e) => e))].map((e) => ({
121
+ text: e,
122
+ value: e
123
+ }));
124
+ });
125
+ return () => b(u, w(i.value, {
126
+ filterMethod: a.value,
127
+ filters: s.value
128
+ }), F(n) ? n : { default: () => [n] });
129
+ }
130
+ }, I = {
131
+ data: {
132
+ type: Array,
133
+ default: () => []
134
+ },
135
+ height: [String, Number],
136
+ maxHeight: [String, Number],
137
+ stripe: {
138
+ type: Boolean,
139
+ default: !1
140
+ },
141
+ border: {
142
+ type: Boolean,
143
+ default: !0
144
+ },
145
+ size: String,
146
+ fit: {
147
+ type: Boolean,
148
+ default: !0
149
+ },
150
+ showHeader: {
151
+ type: Boolean,
152
+ default: !0
153
+ },
154
+ highlightCurrentRow: {
155
+ type: Boolean,
156
+ default: !1
157
+ },
158
+ currentRowKey: [String, Number],
159
+ rowClassName: [Function, String],
160
+ rowStyle: [Function, Object],
161
+ cellClassName: [Function, String],
162
+ cellStyle: [Function, Object],
163
+ headerRowClassName: [Function, String],
164
+ headerRowStyle: [Function, Object],
165
+ headerCellClassName: [Function, String],
166
+ headerCellStyle: [Function, Object],
167
+ rowKey: {
168
+ type: [Function, String],
169
+ default: "id"
170
+ },
171
+ emptyText: {
172
+ type: String,
173
+ default: "No Data"
174
+ },
175
+ defaultExpandAll: {
176
+ type: Boolean,
177
+ default: !1
178
+ },
179
+ expandRowKeys: {
180
+ type: Array,
181
+ default: () => []
182
+ },
183
+ defaultSort: Object,
184
+ tooltipEffect: {
185
+ type: String,
186
+ default: "dark"
187
+ },
188
+ tooltipOptions: {
189
+ type: Object,
190
+ default: () => ({})
191
+ },
192
+ appendFilterPanelTo: String,
193
+ showSummary: {
194
+ type: Boolean,
195
+ default: !1
196
+ },
197
+ sumText: {
198
+ type: String,
199
+ default: "Sum"
200
+ },
201
+ summaryMethod: Function,
202
+ spanMethod: Function,
203
+ selectOnIndeterminate: {
204
+ type: Boolean,
205
+ default: !0
206
+ },
207
+ indent: {
208
+ type: Number,
209
+ default: 16
210
+ },
211
+ lazy: {
212
+ type: Boolean,
213
+ default: !1
214
+ },
215
+ load: Function,
216
+ treeProps: {
217
+ type: Object,
218
+ default: () => ({})
219
+ },
220
+ tableLayout: {
221
+ type: String,
222
+ default: "fixed"
223
+ },
224
+ scrollbarAlwaysOn: {
225
+ type: Boolean,
226
+ default: !1
227
+ },
228
+ showOverflowTooltip: [Boolean, Object],
229
+ flexible: {
230
+ type: Boolean,
231
+ default: !1
232
+ },
233
+ scrollbarTabindex: [String, Number],
234
+ allowDragLastColumn: {
235
+ type: Boolean,
236
+ default: !0
237
+ },
238
+ tooltipFormatter: Function,
239
+ preserveExpandedContent: {
240
+ type: Boolean,
241
+ default: !1
242
+ },
243
+ nativeScrollbar: {
244
+ type: Boolean,
245
+ default: !1
246
+ },
247
+ rowExpandable: Function,
248
+ selectionWidth: {
249
+ type: String,
250
+ default: "45"
251
+ },
252
+ viewId: String,
253
+ url: String,
254
+ hideOnSinglePage: Boolean,
255
+ api: Function,
256
+ model: Object,
257
+ ascs: {
258
+ type: Array,
259
+ default: () => []
260
+ },
261
+ descs: {
262
+ type: Array,
263
+ default: () => []
264
+ },
265
+ headerBold: Boolean,
266
+ autoHeight: Boolean,
267
+ immediate: {
268
+ type: Boolean,
269
+ default: !0
270
+ },
271
+ index: {
272
+ type: Boolean,
273
+ default: !0
274
+ },
275
+ multiple: {
276
+ type: Boolean,
277
+ default: !0
278
+ },
279
+ selection: {
280
+ type: Boolean,
281
+ default: !0
282
+ },
283
+ reloadOnModelChange: {
284
+ type: Boolean,
285
+ default: !1
286
+ },
287
+ columns: Array,
288
+ pageSize: {
289
+ type: Number,
290
+ default: 25
291
+ },
292
+ dicOptions: {
293
+ type: Array,
294
+ default: () => []
295
+ },
296
+ paging: {
297
+ type: Boolean,
298
+ default: !0
299
+ },
300
+ clickRowSelect: Boolean,
301
+ payloadStyle: String,
302
+ disabledRowKeys: Array,
303
+ selectExport: Boolean,
304
+ useVisibilityChange: Boolean,
305
+ rowDbClick: Function
306
+ }, L = {
307
+ data: !0,
308
+ rowDbClick: !0,
309
+ selectionWidth: !0,
310
+ hideOnSinglePage: !0,
311
+ ascs: !0,
312
+ descs: !0,
313
+ headerBold: !0,
314
+ autoHeight: !0,
315
+ immediate: !0,
316
+ index: !0,
317
+ multiple: !0,
318
+ selection: !0,
319
+ reloadOnModelChange: !0,
320
+ pageSize: !0,
321
+ dicOptions: !0,
322
+ paging: !0,
323
+ clickRowSelect: !0,
324
+ selectExport: !0,
325
+ useVisibilityChange: !0,
326
+ viewId: !0,
327
+ url: !0,
328
+ api: !0,
329
+ model: !0,
330
+ columns: !0,
331
+ payloadStyle: !0,
332
+ disabledRowKeys: !0
333
+ }, ce = (e) => L[e] !== !0;
334
+ //#endregion
335
+ //#region src/components/table/PageableTable.vue?vue&type=script&lang.jsx
336
+ function le(e) {
337
+ let t = "";
338
+ for (let n in e) t += `<TableColumnDef prop="${n}" label="${n}"/>\n`;
339
+ return t;
340
+ }
341
+ var R = {
342
+ loading: 1,
343
+ error: -1,
344
+ empty: 2,
345
+ success: 0
346
+ }, z = {
347
+ name: "PageableTable",
348
+ emits: { "page-loaded": null },
349
+ inheritAttrs: !1,
350
+ props: { ...I },
351
+ setup(e, { emit: l, attrs: u, slots: d, expose: f }) {
352
+ E(a, e.rowDbClick);
353
+ let v = j("table"), x = j("settingPanel"), S = O(R.empty), C = O([]), T = O(null), D = O(!1), k = O([]), A = O({
354
+ total: 0,
355
+ page: 1,
356
+ limit: e.pageSize,
357
+ ascs: e.ascs,
358
+ descs: e.descs
359
+ }), N = O(0), F = O(0), I = _(() => e.reloadOnModelChange ? {
360
+ asc: A.value.ascs,
361
+ desc: A.value.descs,
362
+ page: A.value.page,
363
+ limit: A.value.limit,
364
+ model: e.model
365
+ } : {
366
+ asc: A.value.ascs,
367
+ desc: A.value.descs,
368
+ page: A.value.page,
369
+ limit: A.value.limit
370
+ }), L = _(() => {
371
+ var e;
372
+ let t = `${(A.value.page - 1) * A.value.limit + (((e = C.value) == null ? void 0 : e.length) ?? 0)}`;
373
+ return t.length > 3 ? 60 + (t.length - 3) * 10 : 60;
374
+ }), z = () => {
375
+ V();
376
+ }, B = (t, n, r) => {
377
+ if (e.clickRowSelect && Q(t)) {
378
+ var i;
379
+ if (k.value.find((n) => n[e.rowKey] === t[e.rowKey])) {
380
+ var a;
381
+ (a = v.value) == null || a.toggleRowSelection(t, !1);
382
+ return;
383
+ }
384
+ (i = v.value) == null || i.toggleRowSelection(t);
385
+ }
386
+ }, V = () => {
387
+ var e, t;
388
+ let n = (e = v.value) == null || (e = e.$children) == null ? void 0 : e.find((e) => {
389
+ var t;
390
+ return ((t = e.$options) == null ? void 0 : t.name) === "ElTableBody";
391
+ });
392
+ n == null || (t = n.$refs) == null || (t = t.tooltip) == null || t.hide();
393
+ }, H = ({ scrollLeft: e, scrollTop: t }) => {
394
+ N.value = t, F.value = e;
395
+ }, U = () => {
396
+ me(N.value, F.value);
397
+ }, ue = (e) => n(le(e)), de = ({ prop: t, order: n }) => {
398
+ e.payloadStyle === "body" ? (A.value.ascs = n === "ascending" ? [t] : e.ascs, A.value.descs = n === "descending" ? [t] : e.descs) : (A.value.ascs = n === "ascending" ? t : "", A.value.descs = n === "descending" ? t : "");
399
+ }, fe = (e) => {
400
+ Q(e) && (T.value = e);
401
+ }, pe = (e) => {
402
+ k.value = e;
403
+ }, W = () => {
404
+ var e;
405
+ (e = v.value) == null || e.clearSelection();
406
+ }, G = () => {
407
+ let t;
408
+ return t = e.payloadStyle === "body" ? {
409
+ page: {
410
+ ...A.value,
411
+ current: A.value.page,
412
+ size: A.value.limit
413
+ },
414
+ example: e.model || {}
415
+ } : {
416
+ ...A.value,
417
+ current: A.value.page,
418
+ size: A.value.limit,
419
+ ...e.model || {}
420
+ }, e.selectExport && (e.rowKey ? t.exportKeys = k.value.map((t) => t[e.rowKey]) : t.exportKeys = k.value.map((e) => C.value.indexOf(e))), t;
421
+ }, K = async (t = !0) => {
422
+ if (!e.api && e.data !== !1) {
423
+ var n;
424
+ C.value = e.data, A.value.page = 1, A.value.total = (n = C.value) == null ? void 0 : n.length, A.value.limit = A.value.total < 1 ? e.pageSize : A.value.total;
425
+ return;
426
+ }
427
+ t !== !1 && (C.value = []);
428
+ let r, i = G();
429
+ if (e.api) {
430
+ t !== !1 && (S.value = R.loading);
431
+ try {
432
+ e.api && (r = await e.api(i));
433
+ } catch {
434
+ S.value = R.error;
435
+ return;
436
+ }
437
+ } else if (e.data) r = { data: { data: {
438
+ total: e.data.length,
439
+ records: e.data
440
+ } } };
441
+ else {
442
+ ne.warning({
443
+ title: "开发提示!",
444
+ message: "PageableTable api(Function) 属性"
445
+ });
446
+ return;
447
+ }
448
+ let { data: { data: a } = {} } = r || {}, { total: o, records: s } = a || {};
449
+ A.value.total = Number(o), C.value = await he(s), !s || !s.length ? S.value = R.empty : S.value = R.success, q(), l("page-loaded", a);
450
+ }, q = () => {
451
+ ie(() => {
452
+ var e;
453
+ (e = v.value) == null || e.doLayout();
454
+ });
455
+ }, J = async (e) => {
456
+ await K(e);
457
+ }, Y = () => {
458
+ A.value = {
459
+ total: 0,
460
+ page: 1,
461
+ limit: e.pageSize,
462
+ ascs: e.ascs,
463
+ descs: e.descs
464
+ };
465
+ }, me = (e, t) => {
466
+ v.value.setScrollTop(e), v.value.setScrollLeft(t);
467
+ }, X = (e, t) => {
468
+ var n;
469
+ (n = v.value) == null || n.toggleRowSelection(e, t);
470
+ }, he = async (t) => {
471
+ if (!t) return [];
472
+ let n = [...t];
473
+ for (let t of n) for (let n of e.dicOptions) if (t[`$${n.prop}`] = t[n.prop], n.dicData) {
474
+ var r;
475
+ t[n.prop] = ((r = n.dicData.find((e) => e.modelValue === t[n.prop])) == null ? void 0 : r.label) || t[n.prop];
476
+ } else t[n.prop] = await c(n.dicType, t[n.prop]);
477
+ return n;
478
+ }, Z = () => {
479
+ D.value = !D.value;
480
+ }, Q = (t) => {
481
+ var n;
482
+ return !(t != null && t.disabled) && !((n = e.disabledRowKeys) != null && n.includes(t == null ? void 0 : t[e.rowKey]));
483
+ };
484
+ e.useVisibilityChange && ee({ onPageVisible: () => {
485
+ J(!1);
486
+ } }), oe("reloadTableView", (t) => {
487
+ t === e.viewId && K();
488
+ }), M(() => e.url, Y), M(() => e.api, Y), M(() => e.data, K), M(() => I.value, K, {
489
+ deep: !0,
490
+ immediate: e.immediate
491
+ });
492
+ let $ = _(() => {
493
+ let t = [];
494
+ if (d.default) {
495
+ var n;
496
+ let e = r((n = d.default) == null ? void 0 : n.call(d));
497
+ for (let n = 0; n < e.length; n++) {
498
+ let { props: r, children: i } = e[n];
499
+ if (!r) continue;
500
+ let { sortable: a, prop: o, fixed: s, ...c } = r, l = {
501
+ ...c,
502
+ prop: o,
503
+ allowSort: a !== !1
504
+ };
505
+ i && (l.headerSlot = i.header, l.defaultSlot = i.default, l.expandSlot = i.expand, l.iconSlot = i["filter-icon"]), t.push(l);
506
+ }
507
+ } else if (e.columns) for (let n = 0; n < e.columns.length; n++) {
508
+ let { prop: r, sortable: i, fixed: a, ...o } = e.columns[n], s = {
509
+ ...o,
510
+ prop: r,
511
+ allowSort: i !== !1
512
+ };
513
+ x.value && (s.hide = x.value.hideProps[r], s.filterable = x.value.filterableProps[r], s.sortable = x.value.sortableProps[r] === !0, s.fixed = a || x.value.fixedProps[r]), t.push(s);
514
+ }
515
+ return t;
516
+ });
517
+ ae(() => {
518
+ U();
519
+ }), f({
520
+ records: C,
521
+ getPage: K,
522
+ refresh: J,
523
+ reload: Y,
524
+ doLayout: q,
525
+ clearSelection: W,
526
+ toggleRowSelection: X,
527
+ toggleSettings: Z,
528
+ currentRow: T,
529
+ getPageQuery: G,
530
+ tableColumns: $
531
+ }), E(o, {
532
+ records: C,
533
+ getPage: K,
534
+ refresh: J,
535
+ reload: Y,
536
+ doLayout: q,
537
+ clearSelection: W,
538
+ toggleRowSelection: X,
539
+ toggleSettings: Z
540
+ });
541
+ let { autoBindProps: ge, listeners: _e } = t(e, { predicate: ce });
542
+ return () => {
543
+ var t;
544
+ let n = T.value && T.value[u["row-key"] || e.rowKey || "id"] === (T.value && e.rowKey ? T.value[e.rowKey] : (t = T.value) == null ? void 0 : t.id);
545
+ return b("div", {
546
+ class: [
547
+ "pageable-table",
548
+ { "auto-height": e.autoHeight },
549
+ u.class
550
+ ],
551
+ style: u.style
552
+ }, [b("div", { class: "pageable-table-wrapper" }, [
553
+ d.toolbar && d.toolbar({ selectedRows: k.value }),
554
+ b(m, w(_e.value, ge.value, {
555
+ ref: "table",
556
+ data: C.value,
557
+ class: ["flex-item", { "header-bold": e.headerBold }],
558
+ border: e.border,
559
+ stripe: !0,
560
+ size: "default",
561
+ height: e.autoHeight ? null : "auto",
562
+ onScroll: H,
563
+ onSortChange: de,
564
+ onRowDblclick: z,
565
+ onRowClick: B,
566
+ onCellClick: V,
567
+ onCurrentChange: fe,
568
+ onSelectionChange: pe
569
+ }), {
570
+ default: () => {
571
+ let t = [];
572
+ if (e.multiple && e.selection && t.push(b(h, {
573
+ key: "selection",
574
+ type: "selection",
575
+ selectable: Q,
576
+ width: e.selectionWidth,
577
+ align: "center"
578
+ }, null)), !e.multiple && e.selection && t.push(b(h, {
579
+ key: "single-selection",
580
+ type: "single-selection",
581
+ "class-name": "single-select-column",
582
+ width: e.selectionWidth,
583
+ align: "center"
584
+ }, {
585
+ header: () => b(p, {
586
+ modelValue: !!T.value,
587
+ label: !0
588
+ }, { default: () => [b("span", null, null)] }),
589
+ default: ({ row: e }) => b(p, {
590
+ label: !0,
591
+ disabled: !Q(e),
592
+ modelValue: n
593
+ }, { default: () => [b("span", null, null)] })
594
+ })), e.index && t.push(b(h, {
595
+ key: "index",
596
+ type: "index",
597
+ label: "序号",
598
+ width: L.value,
599
+ align: "center"
600
+ }, { default: ({ $index: e }) => (A.value.page - 1) * A.value.limit + e + 1 || e + 1 })), $.value.length > 0) for (let e = 0; e < $.value.length; e++) {
601
+ let n = $.value[e];
602
+ if (n.hide) continue;
603
+ let { prop: r, headerSlot: i, defaultSlot: a, expandSlot: o, iconSlot: s, ...c } = n;
604
+ t.push(b(se, w(c, { prop: r }), {
605
+ default: d[r] ? ({ row: e }) => d[r]({ row: e }) : a,
606
+ header: i,
607
+ expand: o,
608
+ "filter-icon": s
609
+ }));
610
+ }
611
+ else t.push(b(h, {
612
+ key: "default",
613
+ label: "点击表格行复制模板"
614
+ }, { default: ({ row: e }) => b("pre", {
615
+ class: "pointer",
616
+ onClick: () => ue(e)
617
+ }, [JSON.stringify(e, null, " ")]) }));
618
+ return t;
619
+ },
620
+ empty: () => d.empty ? d.empty() : b(g, null, [
621
+ S.value === R.loading && b("span", { class: "pageable-table-loading" }, [b("i", { class: "table-status-icon el-icon-loading" }, null), y("加载中...")]),
622
+ S.value === R.error && b(s, {
623
+ class: "pageable-table-error",
624
+ onClick: J
625
+ }, { default: () => [b("i", { class: "table-status-icon el-icon-error" }, null), y("加载失败,点击重试!")] }),
626
+ S.value !== R.loading && S.value !== R.error && b(te, null, null)
627
+ ]),
628
+ append: d.append
629
+ }),
630
+ e.paging && b(re, {
631
+ "current-page": A.value.page,
632
+ "onUpdate:current-page": (e) => A.value.page = e,
633
+ "hide-on-single-page": e.hideOnSinglePage,
634
+ "page-size": A.value.limit,
635
+ "onUpdate:page-size": (e) => A.value.limit = e,
636
+ total: A.value.total,
637
+ "page-sizes": [
638
+ 10,
639
+ 25,
640
+ 50,
641
+ 100,
642
+ 500,
643
+ 1e3,
644
+ 2e3
645
+ ],
646
+ class: "flex-not-shrink",
647
+ background: !0,
648
+ layout: "total, sizes, prev, pager, next, jumper"
649
+ }, null),
650
+ b(P, {
651
+ ref: "settingPanel",
652
+ modelValue: D.value,
653
+ "onUpdate:modelValue": (e) => D.value = e,
654
+ columns: $.value
655
+ }, null)
656
+ ]), b(i, { onNotify: q }, null)]);
657
+ };
658
+ }
659
+ };
660
+ //#endregion
661
+ export { z as t };