@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,622 +0,0 @@
1
- import "./CjjJimnU.mjs";
2
- import { t as e } from "./DnBzQ-xh.mjs";
3
- import { b as t, t as n } from "./hgAOQY9a.mjs";
4
- import { M as r, g as i, i as a, l as o, s, t as c, y as l } from "./DrKq_frR.mjs";
5
- import { i as u, r as d, t as f } from "./D4oNQiIK.mjs";
6
- import { n as p } from "./GEtlriHC.mjs";
7
- import { n as m } from "./BsKwchVA.mjs";
8
- import { t as h } from "./Bgw_3soo.mjs";
9
- import { u as g } from "./D-hj62se2.mjs";
10
- /* empty css */
11
- import { t as _ } from "./BQ0e8kIi.mjs";
12
- import { Fragment as v, Transition as y, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createVNode as T, defineComponent as E, getCurrentInstance as D, inject as O, isVNode as ee, normalizeClass as k, normalizeStyle as A, onBeforeUnmount as j, onMounted as M, openBlock as N, provide as te, reactive as P, ref as F, renderList as I, renderSlot as L, resolveDynamicComponent as R, shallowRef as ne, toDisplayString as z, unref as B, useSlots as re, vShow as V, watch as H, withCtx as U, withDirectives as W, withModifiers as G } from "vue";
13
- import { throttle as K } from "lodash-unified";
14
- import { setPx as q } from "@web-utils/core";
15
- //#region node_modules/.pnpm/element-plus@2.13.7_typescr_0fa4751f8fa020301a8746973788e8b7/node_modules/element-plus/es/components/carousel/src/carousel.mjs
16
- var J = o({
17
- initialIndex: {
18
- type: Number,
19
- default: 0
20
- },
21
- height: {
22
- type: String,
23
- default: ""
24
- },
25
- trigger: {
26
- type: String,
27
- values: ["hover", "click"],
28
- default: "hover"
29
- },
30
- autoplay: {
31
- type: Boolean,
32
- default: !0
33
- },
34
- interval: {
35
- type: Number,
36
- default: 3e3
37
- },
38
- indicatorPosition: {
39
- type: String,
40
- values: [
41
- "",
42
- "none",
43
- "outside"
44
- ],
45
- default: ""
46
- },
47
- arrow: {
48
- type: String,
49
- values: [
50
- "always",
51
- "hover",
52
- "never"
53
- ],
54
- default: "hover"
55
- },
56
- type: {
57
- type: String,
58
- values: ["", "card"],
59
- default: ""
60
- },
61
- cardScale: {
62
- type: Number,
63
- default: .83
64
- },
65
- loop: {
66
- type: Boolean,
67
- default: !0
68
- },
69
- direction: {
70
- type: String,
71
- values: ["horizontal", "vertical"],
72
- default: "horizontal"
73
- },
74
- pauseOnHover: {
75
- type: Boolean,
76
- default: !0
77
- },
78
- motionBlur: Boolean
79
- }), Y = { change: (e, t) => [e, t].every(i) }, X = Symbol("carouselContextKey"), Z = "ElCarouselItem", Q = o({
80
- name: {
81
- type: String,
82
- default: ""
83
- },
84
- label: {
85
- type: [String, Number],
86
- default: ""
87
- }
88
- }), ie = 300, ae = (i, a, o) => {
89
- let { children: s, addChild: c, removeChild: l, ChildrenSorter: u } = h(D(), Z), d = re(), f = F(-1), p = F(null), g = F(!1), _ = F(), v = F(0), y = F(!0), x = b(() => i.arrow !== "never" && !B(w)), S = b(() => s.value.some((e) => e.props.label.toString().length > 0)), C = b(() => i.type === "card"), w = b(() => i.direction === "vertical"), T = b(() => i.height === "auto" ? {
90
- height: `${v.value}px`,
91
- overflow: "hidden"
92
- } : { height: i.height }), E = K((e) => {
93
- I(e);
94
- }, ie, { trailing: !0 }), O = K((e) => {
95
- q(e);
96
- }, ie), k = (e) => y.value ? f.value <= 1 ? e <= 1 : e > 1 : !0;
97
- function A() {
98
- p.value && (clearInterval(p.value), p.value = null);
99
- }
100
- function N() {
101
- i.interval <= 0 || !i.autoplay || p.value || (p.value = setInterval(() => P(), i.interval));
102
- }
103
- let P = () => {
104
- f.value < s.value.length - 1 ? f.value += 1 : i.loop && (f.value = 0);
105
- };
106
- function I(e) {
107
- if (r(e)) {
108
- let t = s.value.filter((t) => t.props.name === e);
109
- t.length > 0 && (e = s.value.indexOf(t[0]));
110
- }
111
- if (e = Number(e), Number.isNaN(e) || e !== Math.floor(e)) {
112
- n(o, "index must be integer.");
113
- return;
114
- }
115
- let t = s.value.length, a = f.value;
116
- e < 0 ? f.value = i.loop ? t - 1 : 0 : e >= t ? f.value = i.loop ? 0 : t - 1 : f.value = e, a === f.value && L(a), Q();
117
- }
118
- function L(e) {
119
- s.value.forEach((t, n) => {
120
- t.translateItem(n, f.value, e);
121
- });
122
- }
123
- function R(e, t) {
124
- var n, r;
125
- let i = B(s), a = i.length;
126
- if (a === 0 || !e.states.inStage) return !1;
127
- let o = t + 1, c = t - 1, l = a - 1, u = i[l].states.active, d = i[0].states.active, f = (n = i[o]) == null || (n = n.states) == null ? void 0 : n.active, p = (r = i[c]) == null || (r = r.states) == null ? void 0 : r.active;
128
- return t === l && d || f ? "left" : t === 0 && u || p ? "right" : !1;
129
- }
130
- function z() {
131
- g.value = !0, i.pauseOnHover && A();
132
- }
133
- function V() {
134
- g.value = !1, N();
135
- }
136
- function U(e) {
137
- B(w) || s.value.forEach((t, n) => {
138
- e === R(t, n) && (t.states.hover = !0);
139
- });
140
- }
141
- function W() {
142
- B(w) || s.value.forEach((e) => {
143
- e.states.hover = !1;
144
- });
145
- }
146
- function G(e) {
147
- f.value = e;
148
- }
149
- function q(e) {
150
- i.trigger === "hover" && e !== f.value && (f.value = e);
151
- }
152
- function J() {
153
- I(f.value - 1);
154
- }
155
- function Y() {
156
- I(f.value + 1);
157
- }
158
- function Q() {
159
- A(), (!i.pauseOnHover || !g.value) && N();
160
- }
161
- function ae(e) {
162
- i.height === "auto" && (v.value = e);
163
- }
164
- function oe() {
165
- var e;
166
- let t = (e = d.default) == null ? void 0 : e.call(d);
167
- if (!t) return null;
168
- let n = m(t).filter((e) => ee(e) && e.type.name === "ElCarouselItem");
169
- return (n == null ? void 0 : n.length) === 2 && i.loop && !C.value ? (y.value = !0, n) : (y.value = !1, null);
170
- }
171
- H(() => f.value, (t, n) => {
172
- L(n), y.value && (t %= 2, n %= 2), n > -1 && a(e, t, n);
173
- });
174
- let se = b({
175
- get: () => y.value ? f.value % 2 : f.value,
176
- set: (e) => f.value = e
177
- });
178
- H(() => i.autoplay, (e) => {
179
- e ? N() : A();
180
- }), H(() => i.loop, () => {
181
- I(f.value);
182
- }), H(() => i.interval, () => {
183
- Q();
184
- });
185
- let $ = ne();
186
- return M(() => {
187
- H(() => s.value, () => {
188
- s.value.length > 0 && I(i.initialIndex);
189
- }, { immediate: !0 }), $.value = t(_.value, () => {
190
- L();
191
- }), N();
192
- }), j(() => {
193
- A(), _.value && $.value && $.value.stop();
194
- }), te(X, {
195
- root: _,
196
- isCardType: C,
197
- isVertical: w,
198
- items: s,
199
- loop: i.loop,
200
- cardScale: i.cardScale,
201
- addItem: c,
202
- removeItem: l,
203
- setActiveItem: I,
204
- setContainerHeight: ae
205
- }), {
206
- root: _,
207
- activeIndex: f,
208
- exposeActiveIndex: se,
209
- arrowDisplay: x,
210
- hasLabel: S,
211
- hover: g,
212
- isCardType: C,
213
- items: s,
214
- isVertical: w,
215
- containerStyle: T,
216
- isItemsTwoLength: y,
217
- handleButtonEnter: U,
218
- handleButtonLeave: W,
219
- handleIndicatorClick: G,
220
- handleMouseEnter: z,
221
- handleMouseLeave: V,
222
- setActiveItem: I,
223
- prev: J,
224
- next: Y,
225
- PlaceholderItem: oe,
226
- isTwoLengthShow: k,
227
- ItemsSorter: u,
228
- throttledArrowClick: E,
229
- throttledIndicatorHover: O
230
- };
231
- }, oe = ["aria-label"], se = ["aria-label"], $ = ["onMouseenter", "onClick"], ce = ["aria-label"], le = { key: 0 }, ue = {
232
- key: 2,
233
- xmlns: "http://www.w3.org/2000/svg",
234
- version: "1.1",
235
- style: { display: "none" }
236
- }, de = "ElCarousel", fe = /* @__PURE__ */ E({
237
- name: de,
238
- __name: "carousel",
239
- props: J,
240
- emits: Y,
241
- setup(e, { expose: t, emit: n }) {
242
- let r = e, { root: i, activeIndex: a, exposeActiveIndex: o, arrowDisplay: c, hasLabel: l, hover: m, isCardType: h, items: g, isVertical: _, containerStyle: E, handleButtonEnter: D, handleButtonLeave: O, handleIndicatorClick: ee, handleMouseEnter: j, handleMouseLeave: M, setActiveItem: te, prev: P, next: F, PlaceholderItem: R, isTwoLengthShow: ne, ItemsSorter: re, throttledArrowClick: H, throttledIndicatorHover: K } = ae(r, n, de), q = s("carousel"), { t: J } = p(), Y = b(() => {
243
- let e = [q.b(), q.m(r.direction)];
244
- return B(h) && e.push(q.m("card")), e.push(q.is("vertical-outside", B(_) && r.indicatorPosition === "outside")), e;
245
- }), X = b(() => {
246
- let e = [q.e("indicators"), q.em("indicators", r.direction)];
247
- return B(l) && e.push(q.em("indicators", "labels")), r.indicatorPosition === "outside" && e.push(q.em("indicators", "outside")), B(_) && e.push(q.em("indicators", "right")), e;
248
- });
249
- function Z(e) {
250
- if (!r.motionBlur) return;
251
- let t = B(_) ? `${q.namespace.value}-transitioning-vertical` : `${q.namespace.value}-transitioning`;
252
- e.currentTarget.classList.add(t);
253
- }
254
- function Q(e) {
255
- if (!r.motionBlur) return;
256
- let t = B(_) ? `${q.namespace.value}-transitioning-vertical` : `${q.namespace.value}-transitioning`;
257
- e.currentTarget.classList.remove(t);
258
- }
259
- return t({
260
- activeIndex: o,
261
- setActiveItem: te,
262
- prev: P,
263
- next: F
264
- }), (t, n) => (N(), C("div", {
265
- ref_key: "root",
266
- ref: i,
267
- class: k(Y.value),
268
- onMouseenter: n[6] || (n[6] = G((...e) => B(j) && B(j)(...e), ["stop"])),
269
- onMouseleave: n[7] || (n[7] = G((...e) => B(M) && B(M)(...e), ["stop"]))
270
- }, [
271
- B(c) ? (N(), x(y, {
272
- key: 0,
273
- name: "carousel-arrow-left",
274
- persisted: ""
275
- }, {
276
- default: U(() => [W(w("button", {
277
- type: "button",
278
- class: k([B(q).e("arrow"), B(q).em("arrow", "left")]),
279
- "aria-label": B(J)("el.carousel.leftArrow"),
280
- onMouseenter: n[0] || (n[0] = (e) => B(D)("left")),
281
- onMouseleave: n[1] || (n[1] = (...e) => B(O) && B(O)(...e)),
282
- onClick: n[2] || (n[2] = G((e) => B(H)(B(a) - 1), ["stop"]))
283
- }, [T(B(f), null, {
284
- default: U(() => [T(B(d))]),
285
- _: 1
286
- })], 42, oe), [[V, (e.arrow === "always" || B(m)) && (e.loop || B(a) > 0)]])]),
287
- _: 1
288
- })) : S("v-if", !0),
289
- B(c) ? (N(), x(y, {
290
- key: 1,
291
- name: "carousel-arrow-right",
292
- persisted: ""
293
- }, {
294
- default: U(() => [W(w("button", {
295
- type: "button",
296
- class: k([B(q).e("arrow"), B(q).em("arrow", "right")]),
297
- "aria-label": B(J)("el.carousel.rightArrow"),
298
- onMouseenter: n[3] || (n[3] = (e) => B(D)("right")),
299
- onMouseleave: n[4] || (n[4] = (...e) => B(O) && B(O)(...e)),
300
- onClick: n[5] || (n[5] = G((e) => B(H)(B(a) + 1), ["stop"]))
301
- }, [T(B(f), null, {
302
- default: U(() => [T(B(u))]),
303
- _: 1
304
- })], 42, se), [[V, (e.arrow === "always" || B(m)) && (e.loop || B(a) < B(g).length - 1)]])]),
305
- _: 1
306
- })) : S("v-if", !0),
307
- w("div", {
308
- class: k(B(q).e("container")),
309
- style: A(B(E)),
310
- onTransitionstart: Z,
311
- onTransitionend: Q
312
- }, [T(B(R)), L(t.$slots, "default")], 38),
313
- T(B(re), null, {
314
- default: U(() => [e.indicatorPosition === "none" ? S("v-if", !0) : (N(), C("ul", {
315
- key: 0,
316
- class: k(X.value)
317
- }, [(N(!0), C(v, null, I(B(g), (t, n) => W((N(), C("li", {
318
- key: n,
319
- class: k([
320
- B(q).e("indicator"),
321
- B(q).em("indicator", e.direction),
322
- B(q).is("active", n === B(a))
323
- ]),
324
- onMouseenter: (e) => B(K)(n),
325
- onClick: G((e) => B(ee)(n), ["stop"])
326
- }, [w("button", {
327
- class: k(B(q).e("button")),
328
- "aria-label": B(J)("el.carousel.indicator", { index: n + 1 })
329
- }, [B(l) ? (N(), C("span", le, z(t.props.label), 1)) : S("v-if", !0)], 10, ce)], 42, $)), [[V, B(ne)(n)]])), 128))], 2))]),
330
- _: 1
331
- }),
332
- e.motionBlur ? (N(), C("svg", ue, [...n[8] || (n[8] = [w("defs", null, [w("filter", { id: "elCarouselHorizontal" }, [w("feGaussianBlur", {
333
- in: "SourceGraphic",
334
- stdDeviation: "12,0"
335
- })]), w("filter", { id: "elCarouselVertical" }, [w("feGaussianBlur", {
336
- in: "SourceGraphic",
337
- stdDeviation: "0,10"
338
- })])], -1)])])) : S("v-if", !0)
339
- ], 34));
340
- }
341
- }), pe = (e) => {
342
- let t = O(X), r = D();
343
- t || n(Z, "usage: <el-carousel></el-carousel-item></el-carousel>"), r || n(Z, "compositional hook can only be invoked inside setups");
344
- let i = F(), a = F(!1), o = F(0), s = F(1), c = F(!1), u = F(!1), d = F(!1), f = F(!1), { isCardType: p, isVertical: m, cardScale: h } = t;
345
- function g(e, t, n) {
346
- let r = n - 1, i = t - 1, a = t + 1, o = n / 2;
347
- return t === 0 && e === r ? -1 : t === r && e === 0 ? n : e < i && t - e >= o ? n + 1 : e > a && e - t >= o ? -2 : e;
348
- }
349
- function _(e, n) {
350
- var r, i;
351
- let a = B(m) ? ((r = t.root.value) == null ? void 0 : r.offsetHeight) || 0 : ((i = t.root.value) == null ? void 0 : i.offsetWidth) || 0;
352
- return d.value ? a * ((2 - h) * (e - n) + 1) / 4 : e < n ? -(1 + h) * a / 4 : (3 + h) * a / 4;
353
- }
354
- function v(e, n, r) {
355
- let i = t.root.value;
356
- return i ? ((r ? i.offsetHeight : i.offsetWidth) || 0) * (e - n) : 0;
357
- }
358
- let y = (e, n, r) => {
359
- let a = B(p), y = t.items.value.length ?? NaN, b = e === n;
360
- !a && !l(r) && (f.value = b || e === r), !b && y > 2 && t.loop && (e = g(e, n, y));
361
- let x = B(m);
362
- c.value = b, a ? (d.value = Math.round(Math.abs(e - n)) <= 1, o.value = _(e, n), s.value = B(c) ? 1 : h) : o.value = v(e, n, x), u.value = !0, b && i.value && t.setContainerHeight(i.value.offsetHeight);
363
- };
364
- function b() {
365
- if (t && B(p)) {
366
- let e = t.items.value.findIndex(({ uid: e }) => e === r.uid);
367
- t.setActiveItem(e);
368
- }
369
- }
370
- let x = {
371
- props: e,
372
- states: P({
373
- hover: a,
374
- translate: o,
375
- scale: s,
376
- active: c,
377
- ready: u,
378
- inStage: d,
379
- animating: f
380
- }),
381
- uid: r.uid,
382
- getVnode: () => r.vnode,
383
- translateItem: y
384
- };
385
- return t.addItem(x), j(() => {
386
- t.removeItem(x);
387
- }), {
388
- carouselItemRef: i,
389
- active: c,
390
- animating: f,
391
- hover: a,
392
- inStage: d,
393
- isVertical: m,
394
- translate: o,
395
- isCardType: p,
396
- scale: s,
397
- ready: u,
398
- handleItemClick: b
399
- };
400
- }, me = /* @__PURE__ */ E({
401
- name: Z,
402
- __name: "carousel-item",
403
- props: Q,
404
- setup(e) {
405
- let t = e, n = s("carousel"), { carouselItemRef: r, active: i, animating: a, hover: o, inStage: c, isVertical: l, translate: u, isCardType: d, scale: f, ready: p, handleItemClick: m } = pe(t), h = b(() => [
406
- n.e("item"),
407
- n.is("active", i.value),
408
- n.is("in-stage", c.value),
409
- n.is("hover", o.value),
410
- n.is("animating", a.value),
411
- {
412
- [n.em("item", "card")]: d.value,
413
- [n.em("item", "card-vertical")]: d.value && l.value
414
- }
415
- ]), g = b(() => ({ transform: [`${`translate${B(l) ? "Y" : "X"}`}(${B(u)}px)`, `scale(${B(f)})`].join(" ") }));
416
- return (e, t) => W((N(), C("div", {
417
- ref_key: "carouselItemRef",
418
- ref: r,
419
- class: k(h.value),
420
- style: A(g.value),
421
- onClick: t[0] || (t[0] = (...e) => B(m) && B(m)(...e))
422
- }, [B(d) ? W((N(), C("div", {
423
- key: 0,
424
- class: k(B(n).e("mask"))
425
- }, null, 2)), [[V, !B(i)]]) : S("v-if", !0), L(e.$slots, "default")], 6)), [[V, B(p)]]);
426
- }
427
- }), he = c(fe, { CarouselItem: me }), ge = a(me), _e = {
428
- name: "ImagePreview",
429
- components: {
430
- ElCarousel: he,
431
- ElCarouselItem: ge
432
- },
433
- props: {
434
- visible: Boolean,
435
- beforeClose: Function,
436
- closeOnClickModal: Boolean,
437
- click: Function,
438
- modal: Boolean,
439
- datas: {
440
- type: Array,
441
- default: () => []
442
- },
443
- beginIndex: Number
444
- },
445
- emits: ["close"],
446
- data() {
447
- return {
448
- left: 0,
449
- top: 0,
450
- scale: 1,
451
- rotate: 0,
452
- index: this.beginIndex
453
- };
454
- },
455
- computed: {
456
- styleBoxName() {
457
- return {
458
- marginLeft: q(this.left),
459
- marginTop: q(this.top)
460
- };
461
- },
462
- styleName() {
463
- return {
464
- transform: `scale(${this.scale}) rotate(${this.rotate}deg)`,
465
- maxWidth: "100%",
466
- maxHeight: "100%"
467
- };
468
- },
469
- isRrrow() {
470
- return this.datas.length > 1;
471
- }
472
- },
473
- methods: {
474
- getName(e) {
475
- return e.substring(e.lastIndexOf("/") + 1);
476
- },
477
- handlePrint() {
478
- this.$Print(`#avue-image-preview__${this.index}`);
479
- },
480
- handlePrev() {
481
- this.$refs.carousel.prev(), this.index = this.$refs.carousel.activeIndex, this.stopItem();
482
- },
483
- handleNext() {
484
- this.$refs.carousel.next(), this.index = this.$refs.carousel.activeIndex, this.stopItem();
485
- },
486
- stopItem() {
487
- this.left = 0, this.top = 0, this.$refs.item.forEach((e) => {
488
- var t;
489
- (t = e.pause) == null || t.call(e);
490
- });
491
- },
492
- isMediaType(e) {
493
- return g(e.url, e.type);
494
- },
495
- subScale() {
496
- this.scale !== .2 && (this.scale = parseFloat((this.scale - .2).toFixed(2)));
497
- },
498
- addScale() {
499
- this.scale = parseFloat((this.scale + .2).toFixed(2));
500
- },
501
- handleChange() {
502
- this.scale = 1, this.rotate = 0;
503
- },
504
- move(e) {
505
- let t = e.clientX, n = e.clientY;
506
- document.onmousemove = (e) => {
507
- let r = e.clientX - t, i = e.clientY - n;
508
- t = e.clientX, n = e.clientY, this.left += r * 2, this.top += i * 2;
509
- }, document.onmouseup = () => {
510
- document.onmousemove = null, document.onmouseup = null;
511
- };
512
- },
513
- handleClick(e, t, n = !1) {
514
- typeof this.click == "function" ? this.click(e, t) : n && window.open(e.url);
515
- },
516
- close() {
517
- typeof this.beforeClose == "function" && this.beforeClose(this.datas, this.index), this.$emit("close", this.datas, this.index);
518
- }
519
- }
520
- }, ve = {
521
- key: 0,
522
- class: "avue-image-preview"
523
- }, ye = {
524
- ref: "box",
525
- class: "avue-image-preview__box"
526
- }, be = ["id", "onClick"], xe = { class: "el-image-viewer__btn el-image-viewer__actions" }, Se = { class: "el-image-viewer__actions__inner" };
527
- function Ce(e, t, n, r, i, a) {
528
- let o = ge, s = he;
529
- return n.visible ? (N(), C("div", ve, [
530
- n.modal ? (N(), C("div", {
531
- key: 0,
532
- class: "avue-image-preview__mask",
533
- onClick: t[0] || (t[0] = (...e) => a.close && a.close(...e))
534
- })) : S("v-if", !0),
535
- w("span", {
536
- class: "el-image-viewer__btn el-image-viewer__close",
537
- onClick: t[1] || (t[1] = (...e) => a.close && a.close(...e))
538
- }, [...t[10] || (t[10] = [w("i", { class: "el-icon-circle-close" }, null, -1)])]),
539
- a.isRrrow ? (N(), C("span", {
540
- key: 1,
541
- class: "el-image-viewer__btn el-image-viewer__prev",
542
- onClick: t[2] || (t[2] = (e) => a.handlePrev())
543
- }, [...t[11] || (t[11] = [w("i", { class: "el-icon-arrow-left" }, null, -1)])])) : S("v-if", !0),
544
- a.isRrrow ? (N(), C("span", {
545
- key: 2,
546
- class: "el-image-viewer__btn el-image-viewer__next",
547
- onClick: t[3] || (t[3] = (e) => a.handleNext())
548
- }, [...t[12] || (t[12] = [w("i", { class: "el-icon-arrow-right" }, null, -1)])])) : S("v-if", !0),
549
- w("div", ye, [T(s, {
550
- ref: "carousel",
551
- "show-indicators": !1,
552
- "initial-index": i.index,
553
- "initial-swipe": i.index,
554
- interval: 0,
555
- arrow: "never",
556
- "indicator-position": "none",
557
- onChange: a.handleChange
558
- }, {
559
- default: U(() => [(N(!0), C(v, null, I(n.datas, (e, r) => (N(), x(o, {
560
- key: r,
561
- onClick: t[4] || (t[4] = G((e) => n.closeOnClickModal ? a.close() : "", ["self"]))
562
- }, {
563
- default: U(() => [a.isMediaType(e) ? (N(), x(R(a.isMediaType(e)), {
564
- key: 0,
565
- id: `avue-image-preview__${r}`,
566
- ref_for: !0,
567
- ref: "item",
568
- src: e.url,
569
- style: A([a.styleName, a.styleBoxName]),
570
- controls: "controls",
571
- ondragstart: "return false",
572
- onClick: (t) => a.handleClick(e, r),
573
- onMousedown: a.move
574
- }, null, 40, [
575
- "id",
576
- "src",
577
- "style",
578
- "onClick",
579
- "onMousedown"
580
- ])) : (N(), C("div", {
581
- key: 1,
582
- id: `avue-image-preview__${r}`,
583
- class: "avue-image-preview__file",
584
- onClick: (t) => a.handleClick(e, r, !0)
585
- }, [w("span", null, [t[13] || (t[13] = w("i", { class: "el-icon-document" }, null, -1)), w("p", null, z(e.name || a.getName(e.url)), 1)])], 8, be))]),
586
- _: 2
587
- }, 1024))), 128))]),
588
- _: 1
589
- }, 8, [
590
- "initial-index",
591
- "initial-swipe",
592
- "onChange"
593
- ])], 512),
594
- w("div", xe, [w("div", Se, [
595
- w("i", {
596
- class: "el-icon-zoom-out",
597
- onClick: t[5] || (t[5] = (...e) => a.subScale && a.subScale(...e))
598
- }),
599
- w("i", {
600
- class: "el-icon-zoom-in",
601
- onClick: t[6] || (t[6] = (...e) => a.addScale && a.addScale(...e))
602
- }),
603
- t[14] || (t[14] = w("i", { class: "el-image-viewer__actions__divider" }, null, -1)),
604
- w("i", {
605
- class: "el-icon-printer",
606
- onClick: t[7] || (t[7] = (...e) => a.handlePrint && a.handlePrint(...e))
607
- }),
608
- t[15] || (t[15] = w("i", { class: "el-image-viewer__actions__divider" }, null, -1)),
609
- w("i", {
610
- class: "el-icon-refresh-left",
611
- onClick: t[8] || (t[8] = (e) => i.rotate -= 90)
612
- }),
613
- w("i", {
614
- class: "el-icon-refresh-right",
615
- onClick: t[9] || (t[9] = (e) => i.rotate += 90)
616
- })
617
- ])])
618
- ])) : S("v-if", !0);
619
- }
620
- var we = /* @__PURE__ */ _(_e, [["render", Ce]]);
621
- //#endregion
622
- export { we as t };
@@ -1,18 +0,0 @@
1
- import { c as e } from "./DrKq_frR.mjs";
2
- import { computed as t, inject as n, unref as r } from "vue";
3
- //#region node_modules/.pnpm/element-plus@2.13.7_typescr_0fa4751f8fa020301a8746973788e8b7/node_modules/element-plus/es/constants/size.mjs
4
- var i = [
5
- "",
6
- "default",
7
- "small",
8
- "large"
9
- ], a = e({
10
- type: String,
11
- values: i,
12
- required: !1
13
- }), o = Symbol("size"), s = () => {
14
- let e = n(o, {});
15
- return t(() => r(e.size) || "");
16
- };
17
- //#endregion
18
- export { i, s as n, a as r, o as t };
@@ -1,70 +0,0 @@
1
- import { i as e } from "./akEzJ4kG.mjs";
2
- import { l as t, s as n, t as r, y as i } from "./DrKq_frR.mjs";
3
- import { i as a } from "./CcT5SsZk.mjs";
4
- /* empty css */
5
- import { computed as o, createBlock as s, defineComponent as c, normalizeClass as l, normalizeStyle as u, onMounted as d, onUpdated as f, openBlock as p, ref as m, renderSlot as h, resolveDynamicComponent as g, useAttrs as _, withCtx as v } from "vue";
6
- //#endregion
7
- //#region node_modules/.pnpm/element-plus@2.13.7_typescr_0fa4751f8fa020301a8746973788e8b7/node_modules/element-plus/es/components/text/index.mjs
8
- var y = r(/* @__PURE__ */ c({
9
- name: "ElText",
10
- __name: "text",
11
- props: t({
12
- type: {
13
- type: String,
14
- values: [
15
- "primary",
16
- "success",
17
- "info",
18
- "warning",
19
- "danger",
20
- ""
21
- ],
22
- default: ""
23
- },
24
- size: {
25
- type: String,
26
- values: e,
27
- default: ""
28
- },
29
- truncated: Boolean,
30
- lineClamp: { type: [String, Number] },
31
- tag: {
32
- type: String,
33
- default: "span"
34
- }
35
- }),
36
- setup(e) {
37
- let t = e, r = m(), c = a(), y = n("text"), b = o(() => [
38
- y.b(),
39
- y.m(t.type),
40
- y.m(c.value),
41
- y.is("truncated", t.truncated),
42
- y.is("line-clamp", !i(t.lineClamp))
43
- ]), x = () => {
44
- var e, n, a;
45
- if (_().title) return;
46
- let o = !1, s = ((e = r.value) == null ? void 0 : e.textContent) || "";
47
- if (t.truncated) {
48
- var c, l;
49
- let e = (c = r.value) == null ? void 0 : c.offsetWidth, t = (l = r.value) == null ? void 0 : l.scrollWidth;
50
- e && t && t > e && (o = !0);
51
- } else if (!i(t.lineClamp)) {
52
- var u, d;
53
- let e = (u = r.value) == null ? void 0 : u.offsetHeight, t = (d = r.value) == null ? void 0 : d.scrollHeight;
54
- e && t && t > e && (o = !0);
55
- }
56
- o ? (n = r.value) == null || n.setAttribute("title", s) : (a = r.value) == null || a.removeAttribute("title");
57
- };
58
- return d(x), f(x), (t, n) => (p(), s(g(e.tag), {
59
- ref_key: "textRef",
60
- ref: r,
61
- class: l(b.value),
62
- style: u({ "-webkit-line-clamp": e.lineClamp })
63
- }, {
64
- default: v(() => [h(t.$slots, "default")]),
65
- _: 3
66
- }, 8, ["class", "style"]));
67
- }
68
- }));
69
- //#endregion
70
- export { y as t };