@qynpm/ui 1.0.36 → 1.0.38

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 (422) hide show
  1. package/README.md +109 -93
  2. package/dist/index.cjs +20 -19
  3. package/dist/index.mjs +22 -21
  4. package/dist/qy-action-bar/index.cjs +1 -1
  5. package/dist/qy-action-bar/index.mjs +1 -1
  6. package/dist/qy-alert/index.cjs +1 -1
  7. package/dist/qy-alert/index.mjs +4 -4
  8. package/dist/qy-aside/index.cjs +1 -1
  9. package/dist/qy-aside/index.mjs +4 -4
  10. package/dist/qy-autocomplete/index.cjs +1 -1
  11. package/dist/qy-autocomplete/index.mjs +3 -3
  12. package/dist/qy-avatar/index.cjs +1 -1
  13. package/dist/qy-avatar/index.mjs +1 -1
  14. package/dist/qy-badge/index.cjs +1 -1
  15. package/dist/qy-badge/index.mjs +4 -4
  16. package/dist/qy-button/index.cjs +2 -2
  17. package/dist/qy-button/index.mjs +2 -2
  18. package/dist/qy-card/index.cjs +1 -1
  19. package/dist/qy-card/index.mjs +1 -1
  20. package/dist/qy-cascader/index.cjs +1 -1
  21. package/dist/qy-cascader/index.mjs +3 -3
  22. package/dist/qy-checkbox/index.cjs +1 -1
  23. package/dist/qy-checkbox/index.mjs +1 -1
  24. package/dist/qy-checkbox-group/index.cjs +1 -1
  25. package/dist/qy-checkbox-group/index.mjs +4 -4
  26. package/dist/qy-col/index.cjs +1 -1
  27. package/dist/qy-col/index.mjs +4 -4
  28. package/dist/qy-collapse/index.cjs +1 -1
  29. package/dist/qy-collapse/index.mjs +2 -2
  30. package/dist/qy-collapse-item/index.cjs +1 -1
  31. package/dist/qy-collapse-item/index.mjs +5 -5
  32. package/dist/qy-color-picker/index.cjs +1 -1
  33. package/dist/qy-color-picker/index.mjs +4 -4
  34. package/dist/qy-container/index.cjs +1 -1
  35. package/dist/qy-container/index.mjs +3 -3
  36. package/dist/qy-date-picker/index.cjs +1 -1
  37. package/dist/qy-date-picker/index.mjs +1 -1
  38. package/dist/qy-descriptions/index.cjs +1 -1
  39. package/dist/qy-descriptions/index.mjs +1 -1
  40. package/dist/qy-descriptions-item/index.cjs +1 -1
  41. package/dist/qy-descriptions-item/index.mjs +4 -4
  42. package/dist/qy-dialog/index.cjs +2 -1
  43. package/dist/qy-dialog/index.mjs +5 -2
  44. package/dist/qy-divider/index.cjs +1 -1
  45. package/dist/qy-divider/index.mjs +4 -4
  46. package/dist/qy-drawer/index.cjs +1 -1
  47. package/dist/qy-drawer/index.mjs +2 -2
  48. package/dist/qy-dropdown/index.cjs +2 -2
  49. package/dist/qy-dropdown/index.mjs +2 -2
  50. package/dist/qy-empty/index.cjs +1 -1
  51. package/dist/qy-empty/index.mjs +4 -4
  52. package/dist/qy-file-picker/index.cjs +1 -1
  53. package/dist/qy-file-picker/index.mjs +1 -1
  54. package/dist/qy-form-section/index.cjs +1 -1
  55. package/dist/qy-form-section/index.mjs +1 -1
  56. package/dist/qy-fullscreen/index.cjs +1 -1
  57. package/dist/qy-fullscreen/index.mjs +1 -1
  58. package/dist/qy-icon/index.cjs +1 -1
  59. package/dist/qy-icon/index.mjs +2 -2
  60. package/dist/qy-icon-picker/index.cjs +3 -3
  61. package/dist/qy-icon-picker/index.mjs +6 -6
  62. package/dist/qy-iframe/index.cjs +1 -1
  63. package/dist/qy-iframe/index.mjs +1 -1
  64. package/dist/qy-image/index.cjs +1 -1
  65. package/dist/qy-image/index.mjs +1 -1
  66. package/dist/qy-image-preview/index.cjs +1 -1
  67. package/dist/qy-image-preview/index.mjs +1 -1
  68. package/dist/qy-image-upload/index.cjs +1 -1
  69. package/dist/qy-image-upload/index.mjs +1 -1
  70. package/dist/qy-input/index.cjs +1 -1
  71. package/dist/qy-input/index.mjs +1 -1
  72. package/dist/qy-input-number/index.cjs +2 -2
  73. package/dist/qy-input-number/index.mjs +3 -3
  74. package/dist/qy-input-tag/index.cjs +1 -1
  75. package/dist/qy-input-tag/index.mjs +4 -4
  76. package/dist/qy-legacy-selection-dialog/index.cjs +1 -1
  77. package/dist/qy-legacy-selection-dialog/index.mjs +1 -1
  78. package/dist/qy-link/index.cjs +1 -1
  79. package/dist/qy-link/index.mjs +5 -5
  80. package/dist/qy-main/index.cjs +1 -1
  81. package/dist/qy-main/index.mjs +4 -4
  82. package/dist/qy-menu-actions/index.cjs +1 -1
  83. package/dist/qy-menu-actions/index.mjs +1 -1
  84. package/dist/qy-money-input/index.cjs +1 -1
  85. package/dist/qy-money-input/index.mjs +4 -4
  86. package/dist/qy-popconfirm/index.cjs +1 -1
  87. package/dist/qy-popconfirm/index.mjs +5 -5
  88. package/dist/qy-popover/index.cjs +1 -1
  89. package/dist/qy-popover/index.mjs +4 -4
  90. package/dist/qy-progress/index.cjs +1 -1
  91. package/dist/qy-progress/index.mjs +3 -3
  92. package/dist/qy-radio/index.cjs +1 -1
  93. package/dist/qy-radio/index.mjs +1 -1
  94. package/dist/qy-radio-group/index.cjs +1 -1
  95. package/dist/qy-radio-group/index.mjs +1 -1
  96. package/dist/qy-record-quote-search/index.cjs +1 -1
  97. package/dist/qy-record-quote-search/index.mjs +1 -1
  98. package/dist/qy-remark-image/index.cjs +1 -1
  99. package/dist/qy-remark-image/index.mjs +1 -1
  100. package/dist/qy-remote-select/index.cjs +1 -1
  101. package/dist/qy-remote-select/index.mjs +1 -1
  102. package/dist/qy-result/index.cjs +1 -1
  103. package/dist/qy-result/index.mjs +4 -4
  104. package/dist/qy-row/index.cjs +1 -1
  105. package/dist/qy-row/index.mjs +4 -4
  106. package/dist/qy-scrollbar/index.cjs +1 -1
  107. package/dist/qy-scrollbar/index.mjs +3 -3
  108. package/dist/qy-search-input/index.cjs +1 -1
  109. package/dist/qy-search-input/index.mjs +1 -1
  110. package/dist/qy-select/index.cjs +1 -1
  111. package/dist/qy-select/index.mjs +1 -1
  112. package/dist/qy-selection-dialog/index.cjs +1 -1
  113. package/dist/qy-selection-dialog/index.mjs +1 -1
  114. package/dist/qy-skeleton/index.cjs +1 -1
  115. package/dist/qy-skeleton/index.mjs +4 -4
  116. package/dist/qy-skeleton-item/index.cjs +1 -1
  117. package/dist/qy-skeleton-item/index.mjs +4 -4
  118. package/dist/qy-statistic/index.cjs +1 -1
  119. package/dist/qy-statistic/index.mjs +3 -3
  120. package/dist/qy-step/index.cjs +1 -1
  121. package/dist/qy-step/index.mjs +5 -5
  122. package/dist/qy-steps/index.cjs +1 -1
  123. package/dist/qy-steps/index.mjs +4 -4
  124. package/dist/qy-switch/index.cjs +1 -1
  125. package/dist/qy-switch/index.mjs +1 -1
  126. package/dist/qy-tab-pane/index.cjs +1 -1
  127. package/dist/qy-tab-pane/index.mjs +4 -4
  128. package/dist/qy-table-column-settings/index.cjs +1 -1
  129. package/dist/qy-table-column-settings/index.mjs +1 -1
  130. package/dist/qy-tabs/index.cjs +1 -1
  131. package/dist/qy-tabs/index.mjs +4 -4
  132. package/dist/qy-tag/index.cjs +1 -1
  133. package/dist/qy-tag/index.mjs +1 -1
  134. package/dist/qy-tooltip/index.cjs +1 -1
  135. package/dist/qy-tooltip/index.mjs +4 -4
  136. package/dist/qy-tree/index.cjs +1 -1
  137. package/dist/qy-tree/index.mjs +5 -5
  138. package/dist/qy-tree-select/index.cjs +1 -1
  139. package/dist/qy-tree-select/index.mjs +1 -1
  140. package/dist/qy-upload/index.cjs +1 -1
  141. package/dist/qy-upload/index.mjs +1 -1
  142. package/dist/qy-watermark/index.cjs +1 -1
  143. package/dist/qy-watermark/index.mjs +1 -1
  144. package/dist/shared/index--I-pLtO3.cjs +1 -0
  145. package/dist/shared/{index.vue_vue_type_script_lang-BnmY1ndj.mjs → index-0aCI4Gj1.mjs} +25 -24
  146. package/dist/shared/index-0mok5nS2.cjs +1 -0
  147. package/dist/shared/index-2xIkj7uz.cjs +1 -0
  148. package/dist/shared/index-4uXwnK7G.cjs +1 -0
  149. package/dist/shared/{index.vue_vue_type_script_lang-C4JHCuXz.mjs → index-9KXqMXBF.mjs} +15 -14
  150. package/dist/shared/index-B-PlDm1A.cjs +1 -0
  151. package/dist/shared/{index.vue_vue_type_script_lang-Bk0kLg5l.mjs → index-B-d53uut.mjs} +11 -10
  152. package/dist/shared/index-B0aY8Q_T.cjs +1 -0
  153. package/dist/shared/index-B1-htEYJ.mjs +100 -0
  154. package/dist/shared/index-B1ZuGEIr.cjs +1 -0
  155. package/dist/shared/index-B3wIgwN7.cjs +1 -0
  156. package/dist/shared/index-B71cpH4T.cjs +1 -0
  157. package/dist/shared/index-B8S5RT2Z.mjs +206 -0
  158. package/dist/shared/index-B8znc-qD.cjs +1 -0
  159. package/dist/shared/{index.vue_vue_type_script_lang-DOOT2grg.mjs → index-BA6hc-j-.mjs} +11 -10
  160. package/dist/shared/index-BCfULlZK.cjs +1 -0
  161. package/dist/shared/{index-DY-CA7Vr.mjs → index-BE4CELs-.mjs} +1 -1
  162. package/dist/shared/index-BFFnf0Bn.cjs +1 -0
  163. package/dist/shared/index-BIWER6Wa.cjs +1 -0
  164. package/dist/shared/index-BM3ueCK9.cjs +1 -0
  165. package/dist/shared/index-BOLL0aGP.mjs +47 -0
  166. package/dist/shared/index-BWO4qxne.mjs +395 -0
  167. package/dist/shared/index-Ba3qQVYM.cjs +1 -0
  168. package/dist/shared/index-Ba5CLmrh.mjs +157 -0
  169. package/dist/shared/index-BcPpl_OJ.mjs +892 -0
  170. package/dist/shared/index-Bg_o9zrB.cjs +1 -0
  171. package/dist/shared/index-Bguu2ys0.cjs +1 -0
  172. package/dist/shared/index-BhO1ARf9.cjs +1 -0
  173. package/dist/shared/index-BiCdxX0E.mjs +63 -0
  174. package/dist/shared/index-BigCKPUY.mjs +153 -0
  175. package/dist/shared/index-BmWDUjpi.mjs +73 -0
  176. package/dist/shared/index-BoGA3Pdv.cjs +1 -0
  177. package/dist/shared/index-Brxx2EqN.mjs +156 -0
  178. package/dist/shared/{index-Bi9wgcgT.cjs → index-BsRfuMop.cjs} +1 -1
  179. package/dist/shared/index-BsTSa25A.cjs +1 -0
  180. package/dist/shared/index-Btwke2ql.cjs +1 -0
  181. package/dist/shared/index-BxQnJVT8.cjs +1 -0
  182. package/dist/shared/index-Bx_faI_u.mjs +53 -0
  183. package/dist/shared/index-C7GXprxF.cjs +1 -0
  184. package/dist/shared/index-C97qoSgI.cjs +1 -0
  185. package/dist/shared/index-CCqfQb_M.mjs +82 -0
  186. package/dist/shared/index-CDGjUhaC.mjs +72 -0
  187. package/dist/shared/index-CF3vimnX.mjs +73 -0
  188. package/dist/shared/index-CJxpEc9q.cjs +1 -0
  189. package/dist/shared/index-COpowa-E.mjs +48 -0
  190. package/dist/shared/index-CRU4YvLz.cjs +1 -0
  191. package/dist/shared/index-CSMOYD1R.cjs +1 -0
  192. package/dist/shared/index-CWB5fAb7.mjs +154 -0
  193. package/dist/shared/index-CXAVVShG.mjs +278 -0
  194. package/dist/shared/{index.vue_vue_type_script_lang-D7b9ABei.mjs → index-CaM4EpCy.mjs} +23 -22
  195. package/dist/shared/index-CeasMt4r.mjs +63 -0
  196. package/dist/shared/index-CftZiihF.mjs +525 -0
  197. package/dist/shared/index-ChEefC0G.cjs +1 -0
  198. package/dist/shared/index-CioDI8Ys.cjs +1 -0
  199. package/dist/shared/index-CjKfmMG4.cjs +1 -0
  200. package/dist/shared/index-CnIZoCkL.mjs +77 -0
  201. package/dist/shared/index-CndG7UWF.mjs +138 -0
  202. package/dist/shared/{index.vue_vue_type_script_lang-BGAdXWIL.mjs → index-Cp0dxH7g.mjs} +12 -11
  203. package/dist/shared/index-CrwhANF5.mjs +78 -0
  204. package/dist/shared/index-Cs-LC7ZG.mjs +150 -0
  205. package/dist/shared/index-CutbNRjY.mjs +198 -0
  206. package/dist/shared/index-CyJHJCj8.cjs +1 -0
  207. package/dist/shared/index-CypWMqI4.cjs +1 -0
  208. package/dist/shared/index-Cz6Lo9RL.cjs +1 -0
  209. package/dist/shared/index-CzyB5ttX.cjs +1 -0
  210. package/dist/shared/index-D1cbnYac.mjs +446 -0
  211. package/dist/shared/index-D8-4wR07.mjs +130 -0
  212. package/dist/shared/index-D9dQaZtu.cjs +1 -0
  213. package/dist/shared/{index.vue_vue_type_style_index_0_lang-Tzo8o6M8.mjs → index-DAoXMHpO.mjs} +10 -9
  214. package/dist/shared/index-DEosiUQV.mjs +245 -0
  215. package/dist/shared/index-DFTSBy3g.mjs +206 -0
  216. package/dist/shared/index-DFnpyAa1.mjs +69 -0
  217. package/dist/shared/index-DI5COVol.cjs +1 -0
  218. package/dist/shared/index-DNMOtH4s.mjs +36 -0
  219. package/dist/shared/index-DQn_5j_f.cjs +1 -0
  220. package/dist/shared/index-DRICnDix.mjs +295 -0
  221. package/dist/shared/index-DS539-rn.mjs +87 -0
  222. package/dist/shared/index-DTOfhAXP.mjs +74 -0
  223. package/dist/shared/index-DULBwiHC.mjs +234 -0
  224. package/dist/shared/index-DVPk0jMO.cjs +1 -0
  225. package/dist/shared/index-DWrymMO5.cjs +1 -0
  226. package/dist/shared/index-DYYPqv3Y.cjs +1 -0
  227. package/dist/shared/index-DZzMTGSJ.cjs +1 -0
  228. package/dist/shared/index-D_l30Gzr.cjs +1 -0
  229. package/dist/shared/index-Db7PhnjA.cjs +1 -0
  230. package/dist/shared/index-DdoFHdjY.mjs +307 -0
  231. package/dist/shared/index-DeBjILEK.cjs +1 -0
  232. package/dist/shared/index-DePXY0TI.cjs +1 -0
  233. package/dist/shared/index-DgPQ8292.cjs +1 -0
  234. package/dist/shared/index-Di3R0FOU.cjs +1 -0
  235. package/dist/shared/index-DiNSSXC8.mjs +76 -0
  236. package/dist/shared/index-DmEwKHe4.cjs +1 -0
  237. package/dist/shared/index-DnFQkBfl.cjs +1 -0
  238. package/dist/shared/index-DnexuGuJ.cjs +1 -0
  239. package/dist/shared/index-DniPcZnL.mjs +52 -0
  240. package/dist/shared/index-DpitpmqK.mjs +205 -0
  241. package/dist/shared/index-DtXU2qQS.cjs +1 -0
  242. package/dist/shared/index-Du-FNseo.cjs +1 -0
  243. package/dist/shared/index-DwHzztSj.cjs +1 -0
  244. package/dist/shared/index-DxFfP2Fn.cjs +1 -0
  245. package/dist/shared/index-DyqFfMhy.mjs +365 -0
  246. package/dist/shared/index-Hn-IGtqe.cjs +1 -0
  247. package/dist/shared/index-Nx_w1JYm.cjs +1 -0
  248. package/dist/shared/{index.vue_vue_type_script_lang-Dfq7D3mJ.mjs → index-Q8rXwNnM.mjs} +4 -3
  249. package/dist/shared/index-R6vvV3td.cjs +1 -0
  250. package/dist/shared/index-TMhQv4oD.mjs +104 -0
  251. package/dist/shared/index-VtJrvPka.mjs +27 -0
  252. package/dist/shared/{index.vue_vue_type_script_lang-BaIOvoQn.mjs → index-WUwab92q.mjs} +11 -10
  253. package/dist/shared/index-YWKumDEW.mjs +61 -0
  254. package/dist/shared/index-_AB6uqZw.mjs +51 -0
  255. package/dist/shared/index-bvvNTmuM.mjs +105 -0
  256. package/dist/shared/index-fVS62tLm.mjs +81 -0
  257. package/dist/shared/index-gOUVgYd_.cjs +1 -0
  258. package/dist/shared/index-gU6HjdHv.mjs +311 -0
  259. package/dist/shared/index-hPaHbb1Y.cjs +1 -0
  260. package/dist/shared/index-i0G6DcP0.cjs +1 -0
  261. package/dist/shared/index-jP71VQxo.cjs +1 -0
  262. package/dist/shared/index-jdGrSpGg.mjs +2657 -0
  263. package/dist/shared/index-jsEFCWaY.mjs +175 -0
  264. package/dist/shared/index-lsWZ_M5R.mjs +369 -0
  265. package/dist/shared/index-mKnRWsLn.cjs +1 -0
  266. package/dist/shared/{index.vue_vue_type_script_lang-chBiq2cG.mjs → index-qLomEtF6.mjs} +4 -3
  267. package/dist/shared/{index.vue_vue_type_style_index_0_lang-gs0YJI91.mjs → index-u7VYI7Kg.mjs} +17 -16
  268. package/dist/shared/index-xdsYNS2u.mjs +53 -0
  269. package/dist/shared/index-xhROPBam.mjs +129 -0
  270. package/index.d.ts +113 -113
  271. package/package.json +490 -489
  272. package/qy-alert/index.d.ts +64 -64
  273. package/qy-autocomplete/index.d.ts +5 -5
  274. package/qy-avatar/index.d.ts +67 -67
  275. package/qy-badge/index.d.ts +63 -63
  276. package/qy-card/index.d.ts +64 -64
  277. package/qy-cascader/index.d.ts +198 -198
  278. package/qy-collapse/index.d.ts +59 -59
  279. package/qy-collapse-item/index.d.ts +45 -45
  280. package/qy-descriptions/index.d.ts +47 -47
  281. package/qy-descriptions-item/index.d.ts +46 -46
  282. package/qy-dialog/index.d.ts +63 -63
  283. package/qy-divider/index.d.ts +53 -53
  284. package/qy-drawer/index.d.ts +55 -55
  285. package/qy-empty/index.d.ts +51 -51
  286. package/qy-file-picker/index.d.ts +4 -4
  287. package/qy-icon/index.d.ts +3 -0
  288. package/qy-iframe/index.d.ts +66 -66
  289. package/qy-image/index.d.ts +28 -28
  290. package/qy-image-preview/index.d.ts +20 -20
  291. package/qy-image-upload/index.d.ts +69 -69
  292. package/qy-input/index.d.ts +76 -76
  293. package/qy-input-number/index.d.ts +64 -64
  294. package/qy-input-tag/index.d.ts +69 -69
  295. package/qy-link/index.d.ts +69 -69
  296. package/qy-loading/index.d.ts +25 -25
  297. package/qy-menu-actions/index.d.ts +29 -29
  298. package/qy-money-input/index.d.ts +87 -87
  299. package/qy-progress/index.d.ts +74 -74
  300. package/qy-result/index.d.ts +64 -64
  301. package/qy-scrollbar/index.d.ts +85 -85
  302. package/qy-skeleton/index.d.ts +54 -54
  303. package/qy-skeleton-item/index.d.ts +48 -48
  304. package/qy-step/index.d.ts +55 -55
  305. package/qy-steps/index.d.ts +62 -62
  306. package/qy-tab-pane/index.d.ts +40 -40
  307. package/qy-table-column-settings/index.d.ts +18 -18
  308. package/qy-tabs/index.d.ts +84 -84
  309. package/qy-tree/index.d.ts +132 -132
  310. package/qy-tree-select/index.d.ts +123 -123
  311. package/qy-upload/index.d.ts +99 -99
  312. package/dist/shared/index-3qEac4h8.cjs +0 -1
  313. package/dist/shared/index-4SkLDBra.mjs +0 -377
  314. package/dist/shared/index-AMu0L6uU.cjs +0 -1
  315. package/dist/shared/index-B1b3BksF.mjs +0 -72
  316. package/dist/shared/index-BPaVDCe6.cjs +0 -1
  317. package/dist/shared/index-BYX0biqw.mjs +0 -766
  318. package/dist/shared/index-BdTlpKtr.cjs +0 -1
  319. package/dist/shared/index-Bli6Gx5d.cjs +0 -1
  320. package/dist/shared/index-BuUtJrIy.mjs +0 -119
  321. package/dist/shared/index-Bvot0uXo.cjs +0 -1
  322. package/dist/shared/index-BxxwEr52.mjs +0 -107
  323. package/dist/shared/index-C1i-hd-W.cjs +0 -1
  324. package/dist/shared/index-C7lRQtzs.cjs +0 -1
  325. package/dist/shared/index-C91mzAI3.mjs +0 -254
  326. package/dist/shared/index-CdnHMuo3.mjs +0 -149
  327. package/dist/shared/index-CwY_jv_I.cjs +0 -1
  328. package/dist/shared/index-D5S48q1B.mjs +0 -162
  329. package/dist/shared/index-D654b42n.mjs +0 -2754
  330. package/dist/shared/index-D8E_xu0N.mjs +0 -54
  331. package/dist/shared/index-DCzxcvkn.cjs +0 -1
  332. package/dist/shared/index-DK0hjfWr.mjs +0 -90
  333. package/dist/shared/index-DZRFSGxO.mjs +0 -225
  334. package/dist/shared/index-Dc6gLgAz.cjs +0 -1
  335. package/dist/shared/index-DcohgM8A.mjs +0 -68
  336. package/dist/shared/index-Di4bIOiB.cjs +0 -1
  337. package/dist/shared/index-DlGwHshu.cjs +0 -1
  338. package/dist/shared/index-DnHfk7NM.cjs +0 -1
  339. package/dist/shared/index-DnNIseRJ.cjs +0 -1
  340. package/dist/shared/index-Dr-Q5krU.mjs +0 -71
  341. package/dist/shared/index-Dwf-JfXM.mjs +0 -293
  342. package/dist/shared/index-JjHutKmT.mjs +0 -142
  343. package/dist/shared/index-Od6HC8Un.mjs +0 -127
  344. package/dist/shared/index-S8HW36Mc.mjs +0 -222
  345. package/dist/shared/index-aIqtIYsu.cjs +0 -1
  346. package/dist/shared/index-nSFTxVz8.cjs +0 -1
  347. package/dist/shared/index-nos4Y-fm.cjs +0 -1
  348. package/dist/shared/index.vue_vue_type_script_lang-69zSOotQ.mjs +0 -47
  349. package/dist/shared/index.vue_vue_type_script_lang-8AT3-xU-.cjs +0 -1
  350. package/dist/shared/index.vue_vue_type_script_lang-BO9Ju_i0.cjs +0 -1
  351. package/dist/shared/index.vue_vue_type_script_lang-Bc3tktk9.cjs +0 -1
  352. package/dist/shared/index.vue_vue_type_script_lang-BgapsQjI.cjs +0 -1
  353. package/dist/shared/index.vue_vue_type_script_lang-BkoqbceR.cjs +0 -1
  354. package/dist/shared/index.vue_vue_type_script_lang-By3jd4gw.cjs +0 -1
  355. package/dist/shared/index.vue_vue_type_script_lang-C9X0V5AK.mjs +0 -71
  356. package/dist/shared/index.vue_vue_type_script_lang-CCL57H5c.cjs +0 -1
  357. package/dist/shared/index.vue_vue_type_script_lang-CIOi2ahp.cjs +0 -1
  358. package/dist/shared/index.vue_vue_type_script_lang-CKZUcaZ5.cjs +0 -1
  359. package/dist/shared/index.vue_vue_type_script_lang-CWnNQBPN.mjs +0 -31
  360. package/dist/shared/index.vue_vue_type_script_lang-CZK0hDYa.mjs +0 -77
  361. package/dist/shared/index.vue_vue_type_script_lang-CfjfZCT3.cjs +0 -1
  362. package/dist/shared/index.vue_vue_type_script_lang-ChS-3_vl.mjs +0 -43
  363. package/dist/shared/index.vue_vue_type_script_lang-Cv4Pf58E.cjs +0 -1
  364. package/dist/shared/index.vue_vue_type_script_lang-CwrbII5c.cjs +0 -1
  365. package/dist/shared/index.vue_vue_type_script_lang-D42aRlO2.cjs +0 -1
  366. package/dist/shared/index.vue_vue_type_script_lang-D7nzeBUR.mjs +0 -35
  367. package/dist/shared/index.vue_vue_type_script_lang-DIKHRo0o.mjs +0 -72
  368. package/dist/shared/index.vue_vue_type_script_lang-DLmUPDR5.cjs +0 -1
  369. package/dist/shared/index.vue_vue_type_script_lang-DMrpLmWN.cjs +0 -1
  370. package/dist/shared/index.vue_vue_type_script_lang-DRvk4-_O.mjs +0 -43
  371. package/dist/shared/index.vue_vue_type_script_lang-DpSaB5eg.cjs +0 -1
  372. package/dist/shared/index.vue_vue_type_script_lang-WJ63_A7F.cjs +0 -1
  373. package/dist/shared/index.vue_vue_type_script_setup_true_lang-4KZSABSM.cjs +0 -1
  374. package/dist/shared/index.vue_vue_type_script_setup_true_lang-B4JrNUDc.mjs +0 -43
  375. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BJe7Uo6S.mjs +0 -42
  376. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BWi3g3mb.cjs +0 -1
  377. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BXnZt9UT.mjs +0 -63
  378. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Bdz9oDDW.mjs +0 -62
  379. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BiIgNax-.cjs +0 -1
  380. package/dist/shared/index.vue_vue_type_script_setup_true_lang-C6-hVGUO.mjs +0 -61
  381. package/dist/shared/index.vue_vue_type_script_setup_true_lang-C96ZaggL.cjs +0 -1
  382. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CGsXVhJy.mjs +0 -331
  383. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CKp87br2.cjs +0 -1
  384. package/dist/shared/index.vue_vue_type_script_setup_true_lang-COAUEujY.mjs +0 -48
  385. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CqSJ_8hG.cjs +0 -1
  386. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Cr9PdvyR.cjs +0 -1
  387. package/dist/shared/index.vue_vue_type_script_setup_true_lang-D7BlbHN5.cjs +0 -1
  388. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DIWWHODS.mjs +0 -197
  389. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DOuk75uN.cjs +0 -1
  390. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DUEhuwGQ.cjs +0 -1
  391. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Dd_nKJvH.mjs +0 -19
  392. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Dk83TGiU.cjs +0 -1
  393. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DwFGEW4B.mjs +0 -143
  394. package/dist/shared/index.vue_vue_type_script_setup_true_lang-EiHoQBXt.mjs +0 -94
  395. package/dist/shared/index.vue_vue_type_script_setup_true_lang-IyZesuKm.mjs +0 -48
  396. package/dist/shared/index.vue_vue_type_script_setup_true_lang-S-rQ0p3E.mjs +0 -106
  397. package/dist/shared/index.vue_vue_type_script_setup_true_lang-ccFLNRry.cjs +0 -1
  398. package/dist/shared/index.vue_vue_type_script_setup_true_lang-lvZQ_Cu6.cjs +0 -1
  399. package/dist/shared/index.vue_vue_type_style_index_0_lang-1cTut9Ql.cjs +0 -1
  400. package/dist/shared/index.vue_vue_type_style_index_0_lang-B1FgJZbw.mjs +0 -148
  401. package/dist/shared/index.vue_vue_type_style_index_0_lang-BXTkWo5P.cjs +0 -1
  402. package/dist/shared/index.vue_vue_type_style_index_0_lang-BcZb1U13.cjs +0 -1
  403. package/dist/shared/index.vue_vue_type_style_index_0_lang-BnPRHCwR.cjs +0 -1
  404. package/dist/shared/index.vue_vue_type_style_index_0_lang-BoaO6MKl.cjs +0 -1
  405. package/dist/shared/index.vue_vue_type_style_index_0_lang-C1n-zAZh.mjs +0 -67
  406. package/dist/shared/index.vue_vue_type_style_index_0_lang-C4Yk-UdJ.mjs +0 -172
  407. package/dist/shared/index.vue_vue_type_style_index_0_lang-CIcZet5j.mjs +0 -286
  408. package/dist/shared/index.vue_vue_type_style_index_0_lang-CPxbKjvY.mjs +0 -286
  409. package/dist/shared/index.vue_vue_type_style_index_0_lang-CVdFZeHK.mjs +0 -98
  410. package/dist/shared/index.vue_vue_type_style_index_0_lang-CcVf5MXE.mjs +0 -166
  411. package/dist/shared/index.vue_vue_type_style_index_0_lang-Ch3QcF8t.cjs +0 -1
  412. package/dist/shared/index.vue_vue_type_style_index_0_lang-D9DraThL.cjs +0 -1
  413. package/dist/shared/index.vue_vue_type_style_index_0_lang-DFAaBzkW.cjs +0 -1
  414. package/dist/shared/index.vue_vue_type_style_index_0_lang-DHK86rdP.cjs +0 -1
  415. package/dist/shared/index.vue_vue_type_style_index_0_lang-DSur831A.mjs +0 -68
  416. package/dist/shared/index.vue_vue_type_style_index_0_lang-DVXf-yUs.cjs +0 -1
  417. package/dist/shared/index.vue_vue_type_style_index_0_lang-DsOg_Rum.mjs +0 -128
  418. package/dist/shared/index.vue_vue_type_style_index_0_lang-KHk9wRYT.mjs +0 -298
  419. package/dist/shared/index.vue_vue_type_style_index_0_lang-RiwA2WPO.cjs +0 -1
  420. package/dist/shared/index.vue_vue_type_style_index_0_lang-WGzoSatU.cjs +0 -1
  421. package/dist/shared/index.vue_vue_type_style_index_0_lang-b0y8p1p1.mjs +0 -215
  422. package/dist/shared/index.vue_vue_type_style_index_0_lang-hbNK_h45.cjs +0 -1
@@ -1 +0,0 @@
1
- "use strict";const a=require("vue"),g=require("element-plus"),y=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),V=a.defineComponent({name:"QyRadio",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[Boolean,String,Number]},value:{type:[Boolean,String,Number],default:!0},label:{},disabled:{type:Boolean,default:!1},size:{default:void 0},name:{},border:{type:Boolean,default:!1},id:{},tabindex:{},ariaLabel:{},ariaControls:{}},emits:["update:modelValue","change","focus","blur"],setup(s,{emit:c}){const t=s,o=c,f=a.useAttrs(),m=a.computed(()=>Object.fromEntries(Object.entries(f).filter(([e])=>e==="class"||e==="style"||e==="role"||e==="title"||e.startsWith("data-")||e.startsWith("aria-")))),l=a.computed(()=>t.value),u=a.ref(null);let r=null;const b=a.computed(()=>t.modelValue!==void 0?t.modelValue:l.value===!0?!1:l.value===!1?!0:typeof l.value=="string"?`__qy-radio-unselected__${l.value}`:Number.NaN);a.onMounted(()=>{var e;r=((e=u.value)==null?void 0:e.$el.querySelector("input.el-radio__original"))??null,r==null||r.addEventListener("keydown",d)}),a.onBeforeUnmount(()=>{r==null||r.removeEventListener("keydown",d)});function i(){return!t.disabled&&t.modelValue!==l.value}function p(){i()&&o("update:modelValue",l.value)}function v(){i()&&o("change",l.value)}function d(e){if(e.key!==" "&&e.code!=="Space")return;const n=e.target;!n||n.tagName!=="INPUT"||n.type!=="radio"||n.disabled||n.checked||(e.preventDefault(),n.click())}function _(e){o("focus",e)}function h(e){o("blur",e)}return(e,n)=>(a.openBlock(),a.createBlock(a.unref(g.ElRadio),a.mergeProps({ref_key:"radioRef",ref:u},m.value,{class:"qy-radio","model-value":b.value,value:l.value,label:t.label,disabled:t.disabled,size:t.size,name:t.name,border:t.border,id:t.id,tabindex:t.tabindex,"aria-label":t.ariaLabel,"aria-controls":t.ariaControls,"onUpdate:modelValue":p,onChange:v,onFocusCapture:_,onBlurCapture:h}),{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(t.label),1)],!0)]),_:3},16,["model-value","value","label","disabled","size","name","border","id","tabindex","aria-label","aria-controls"]))}}),x=y._export_sfc(V,[["__scopeId","data-v-b75376cc"]]);exports.Radio=x;
@@ -1 +0,0 @@
1
- "use strict";const n=require("vue"),re=require("element-plus"),ce=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ie=n.defineComponent({name:"QyTreeSelect",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[String,Number,Boolean,Object,Array,null],default:void 0},data:{default:void 0},options:{default:()=>[]},labelKey:{default:"label"},valueKey:{default:"value"},childrenKey:{default:"children"},disabledKey:{default:"disabled"},props:{default:()=>({})},nodeKey:{default:void 0},placeholder:{default:"请选择"},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},filterable:{type:Boolean,default:!1},filterMethod:{type:Function,default:void 0},remote:{type:Boolean,default:!1},remoteMethod:{type:Function,default:void 0},remoteShowSuffix:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},multipleLimit:{default:0},collapseTags:{type:Boolean,default:!1},collapseTagsTooltip:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultExpandAll:{type:Boolean,default:!1},renderAfterExpand:{type:Boolean,default:!0},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},checkOnClickLeaf:{type:Boolean,default:!0},checkDescendants:{type:Boolean,default:!1},defaultExpandedKeys:{default:void 0},defaultCheckedKeys:{default:void 0},accordion:{type:Boolean,default:!1},indent:{default:18},highlightCurrent:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},load:{type:Function,default:void 0},cacheData:{default:()=>[]},filterNodeMethod:{type:Function,default:void 0},size:{default:void 0},teleported:{type:Boolean,default:!0},appendTo:{default:void 0},fitInputWidth:{type:Boolean,default:!1},popperClass:{default:""}},emits:["update:modelValue","change","clear","visible-change","focus","blur","node-click","node-expand","node-collapse","check-change","check"],setup(a,{expose:D,emit:E}){const u=Symbol("invalid-tree-select-value"),o=a,c=E,O=n.useAttrs(),v=n.ref(null),y=n.computed(()=>o.data===void 0?o.options:o.data),M=n.ref(o.defaultExpandedKeys?[...o.defaultExpandedKeys]:void 0),j=n.ref(o.defaultCheckedKeys?[...o.defaultCheckedKeys]:void 0);let C=new WeakSet,p=new Set;n.watch(y,e=>{C=new WeakSet,p=new Set,S(e)},{immediate:!0,deep:!1});const T=n.computed(()=>Object.fromEntries(Object.entries(O).filter(([e])=>e==="class"||e==="style"||e==="id"||e==="title"||e.startsWith("data-")||e.startsWith("aria-")))),z=n.computed(()=>["qy-tree-select__popper",o.popperClass].filter(Boolean).join(" ")),$=n.computed(()=>{const e=x(o.modelValue);if(e!==u&&F(e)&&!o.nodeKey)throw new Error("QyTreeSelect object values require nodeKey");return e===u?void 0:ae(e)}),R=n.computed(()=>{const e=o.props??{};return{value:h(e.value??o.nodeKey??o.valueKey),label:h(e.label??o.labelKey),children:h(e.children??o.childrenKey),disabled:h(e.disabled??o.disabledKey),isLeaf:h(e.isLeaf),class:q(e.class)}});function k(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function K(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"?e:k(e)?n.toRaw(e):u}function x(e){return e==null?e:Array.isArray(e)?e.every(t=>K(t)!==u)?e:u:K(e)}function F(e){return Array.isArray(e)?e.some(k):k(e)}function b(e){return k(e)?n.toRaw(e):null}function S(e){for(const t of e??[])w(t)}function w(e){const t=n.toRaw(e);C.add(t),p.add(t);const l=m("children",t);if(Array.isArray(l))for(const d of l){const r=b(d);r&&w(r)}}function i(e){const t=b(e);return t!==null&&C.has(t)}function m(e,t){var f;const l=(f=o.props)==null?void 0:f[e],d=e==="value"?o.valueKey:e==="label"?o.labelKey:e==="children"?o.childrenKey:e==="disabled"?o.disabledKey:void 0,r=l??d;return typeof r=="function"?r(t):typeof r=="string"?t[r]:void 0}function h(e){return typeof e=="function"?t=>e(t):e}function q(e){return typeof e!="function"?e:(t,l)=>{const d=s(l);return d&&i(t)?e(t,d):""}}function g(e){return typeof e=="string"||typeof e=="number"?e:null}function s(e){var l;if(!e||!i(e.data))return null;const t=b(e.data);return t?Object.freeze({key:g(e.key),parentKey:g((l=e.parent)==null?void 0:l.key),data:t,label:typeof e.label=="string"?e.label:String(m("label",t)??""),level:typeof e.level=="number"?e.level:0,expanded:e.expanded===!0,checked:e.checked===!0,indeterminate:e.indeterminate===!0,disabled:e.disabled===!0,leaf:e.isLeaf===!0,visible:e.visible!==!1,loading:e.loading===!0,loaded:e.loaded===!0,childCount:Array.isArray(e.childNodes)?e.childNodes.length:0}):null}function W(e){return Object.freeze({key:null,parentKey:null,data:{},label:"",level:0,expanded:!1,checked:!1,indeterminate:!1,disabled:!1,leaf:!1,visible:!0,loading:e.loading===!0,loaded:e.loaded===!0,childCount:Array.isArray(e.childNodes)?e.childNodes.length:0})}function I(e,t,l){const d=s(l);return!d||!i(t)?!1:o.filterNodeMethod?o.filterNodeMethod(e,t,d):String(d.label).toLocaleLowerCase().includes(String(e??"").toLocaleLowerCase())}function P(e,t,l){if(!o.load)return t([]);const d=e.level===0||e.data===void 0||e.data===null,r=y.value,f=s(e)??(d?W(e):null);if(!f)return l();o.load(f,L=>{(d?y.value!==r:!i(f.data))||(S(L),t(L))},l)}function U(e){const t=x(N(e));t!==u&&c("update:modelValue",t)}function Q(e){const t=x(N(e));t!==u&&c("change",t)}function H(){c("clear")}function G(e){c("visible-change",e)}function J(e){c("focus",e)}function X(e){c("blur",e)}function Y(e,t){const l=s(t);l&&i(e)&&c("node-click",e,l)}function Z(e,t){const l=s(t);l&&i(e)&&c("node-expand",e,l)}function _(e,t){const l=s(t);l&&i(e)&&c("node-collapse",e,l)}function ee(e,t,l){i(e)&&c("check-change",e,t,l)}function B(e){return(e??[]).map(b).filter(t=>t!==null&&i(t))}function A(e){return(e??[]).map(g).filter(t=>t!==null)}function te(e,t){i(e)&&c("check",e,{checkedKeys:A(t==null?void 0:t.checkedKeys),checkedNodes:B(t==null?void 0:t.checkedNodes),halfCheckedKeys:A(t==null?void 0:t.halfCheckedKeys),halfCheckedNodes:B(t==null?void 0:t.halfCheckedNodes)})}function V(e){for(const t of p)if(Object.is(n.toRaw(m("value",t)),n.toRaw(e)))return t}function le(e){if(o.nodeKey){for(const t of p)if(Object.is(t[o.nodeKey],e))return t}}function ae(e){if(!o.nodeKey||e===null||e===void 0)return e;const t=l=>{const d=V(l);return(d?g(d[o.nodeKey]):null)??l};return Array.isArray(e)?e.map(t):t(e)}function N(e){if(!o.nodeKey)return e;const t=l=>{const d=le(l);return d?m("value",d):l};return Array.isArray(e)?e.map(t):t(e)}function ne(e,t){return(e??[]).flatMap(l=>{const d=K(N(l.value));if(d===u)return[];const r=V(d);return[Object.freeze({value:d,label:typeof l.currentLabel=="string"?l.currentLabel:String(l.currentLabel??""),data:r?n.toRaw(r):void 0,closable:l.isDisabled!==!0,remove:()=>t==null?void 0:t(new MouseEvent("click"),l)})]})}function oe(){var e,t;(t=(e=v.value)==null?void 0:e.focus)==null||t.call(e)}function de(){var e,t;(t=(e=v.value)==null?void 0:e.blur)==null||t.call(e)}return D({focus:oe,blur:de}),(e,t)=>(n.openBlock(),n.createBlock(n.unref(re.ElTreeSelect),n.mergeProps({ref_key:"treeSelectRef",ref:v,class:"qy-tree-select"},T.value,{"model-value":$.value,data:y.value,props:R.value,"node-key":a.nodeKey,placeholder:a.placeholder,disabled:a.disabled,clearable:a.clearable,filterable:a.filterable,"filter-method":a.filterMethod,remote:a.remote,"remote-method":a.remoteMethod,"remote-show-suffix":a.remoteShowSuffix,loading:a.loading,multiple:a.multiple,"multiple-limit":a.multipleLimit,"collapse-tags":a.collapseTags,"collapse-tags-tooltip":a.collapseTagsTooltip,"check-strictly":a.checkStrictly,"show-checkbox":a.showCheckbox,"default-expand-all":a.defaultExpandAll,"render-after-expand":a.renderAfterExpand,"expand-on-click-node":a.expandOnClickNode,"check-on-click-node":a.checkOnClickNode,"check-on-click-leaf":a.checkOnClickLeaf,"check-descendants":a.checkDescendants,"default-expanded-keys":M.value,"default-checked-keys":j.value,accordion:a.accordion,indent:a.indent,"highlight-current":a.highlightCurrent,lazy:a.lazy,load:P,"cache-data":a.cacheData,"filter-node-method":I,size:a.size,teleported:a.teleported,"append-to":a.appendTo,"fit-input-width":a.fitInputWidth,"popper-class":z.value,"onUpdate:modelValue":U,onChange:Q,onClear:H,onVisibleChange:G,onFocus:J,onBlur:X,onNodeClick:Y,onNodeExpand:Z,onNodeCollapse:_,onCheckChange:ee,onCheck:te}),n.createSlots({_:2},[e.$slots.prefix?{name:"prefix",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"prefix",{},void 0,!0)]),key:"0"}:void 0,e.$slots.empty?{name:"empty",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"empty",{},void 0,!0)]),key:"1"}:void 0,e.$slots.loading?{name:"loading",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"loading",{},void 0,!0)]),key:"2"}:void 0,e.$slots.default?{name:"default",fn:n.withCtx(l=>[n.renderSlot(e.$slots,"default",{data:l.data,node:s(l.node)},void 0,!0)]),key:"3"}:void 0,e.$slots.tag?{name:"tag",fn:n.withCtx(l=>[n.renderSlot(e.$slots,"tag",{data:ne(l.data,l.deleteTag)},void 0,!0)]),key:"4"}:void 0]),1040,["model-value","data","props","node-key","placeholder","disabled","clearable","filterable","filter-method","remote","remote-method","remote-show-suffix","loading","multiple","multiple-limit","collapse-tags","collapse-tags-tooltip","check-strictly","show-checkbox","default-expand-all","render-after-expand","expand-on-click-node","check-on-click-node","check-on-click-leaf","check-descendants","default-expanded-keys","default-checked-keys","accordion","indent","highlight-current","lazy","cache-data","size","teleported","append-to","fit-input-width","popper-class"]))}}),ue=ce._export_sfc(ie,[["__scopeId","data-v-daef2030"]]);exports.TreeSelect=ue;
@@ -1,119 +0,0 @@
1
- import { defineComponent as L, ref as g, computed as a, watch as P, openBlock as _, createElementBlock as $, normalizeStyle as N, normalizeClass as Q, createBlock as V, unref as i, withCtx as n, renderSlot as p, createElementVNode as c, createVNode as u, createCommentVNode as j } from "vue";
2
- import { ElImage as D, ElIcon as w } from "element-plus";
3
- import { PictureFilled as z } from "@element-plus/icons-vue";
4
- import { n as I, r as F, o as O } from "./utils-DoyI5oM8.mjs";
5
- import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
6
- const U = { class: "qy-image__state qy-image__state--error" }, A = { class: "qy-image__state qy-image__state--empty" }, G = /* @__PURE__ */ L({
7
- name: "QyImage",
8
- __name: "index",
9
- props: {
10
- src: { default: "" },
11
- width: {},
12
- height: {},
13
- size: { default: 64 },
14
- fit: { default: "cover" },
15
- placeholder: { type: Boolean, default: !0 },
16
- lazy: { type: Boolean, default: !0 },
17
- compressor: { type: [Boolean, Object], default: !0 },
18
- preview: { type: Boolean, default: !1 },
19
- previewList: { default: () => [] },
20
- initialIndex: { default: 0 }
21
- },
22
- emits: ["load", "error", "fallback", "preview"],
23
- setup(d, { emit: q }) {
24
- const e = d, s = q, l = g(!1), o = g("");
25
- let m = 0;
26
- const f = a(() => I(e.src)), v = a(() => ({
27
- width: e.width ?? e.size,
28
- height: e.height ?? e.size
29
- })), S = a(() => ({
30
- width: h(v.value.width),
31
- height: h(v.value.height)
32
- })), k = a(() => e.placeholder || l.value), y = a(() => e.preview && !!f.value), B = a(() => (e.previewList.length ? e.previewList : [e.src]).map((r) => I(r)).filter(Boolean));
33
- P(
34
- () => [e.src, e.compressor],
35
- E,
36
- {
37
- immediate: !0,
38
- deep: !0
39
- }
40
- );
41
- async function E() {
42
- const t = ++m;
43
- if (o.value = "", l.value = !1, !!e.src)
44
- try {
45
- const r = await F(e.src, {
46
- compressor: e.compressor
47
- });
48
- if (t !== m) return;
49
- o.value = r.src, r.source === "fallback" && s("fallback", r.src);
50
- } catch {
51
- if (t !== m) return;
52
- l.value = !1, o.value = f.value;
53
- }
54
- }
55
- function b(t) {
56
- s("load", t);
57
- }
58
- function x(t) {
59
- l.value = !0, s("error", t);
60
- }
61
- function C() {
62
- y.value && (O({
63
- urlList: B.value,
64
- initialIndex: e.initialIndex
65
- }), s("preview", f.value));
66
- }
67
- function h(t) {
68
- return typeof t == "number" ? `${t}px` : t;
69
- }
70
- return (t, r) => (_(), $("div", {
71
- class: Q(["qy-image", { "qy-image--previewable": y.value }]),
72
- style: N(S.value),
73
- onClick: C
74
- }, [
75
- o.value && !l.value ? (_(), V(i(D), {
76
- key: 0,
77
- class: "qy-image__inner",
78
- src: o.value,
79
- fit: d.fit,
80
- lazy: d.lazy,
81
- onLoad: b,
82
- onError: x
83
- }, {
84
- placeholder: n(() => [
85
- p(t.$slots, "placeholder", {}, () => [
86
- r[0] || (r[0] = c("div", { class: "qy-image__state" }, [
87
- c("span", { class: "qy-image__loading" })
88
- ], -1))
89
- ], !0)
90
- ]),
91
- error: n(() => [
92
- p(t.$slots, "error", {}, () => [
93
- c("div", U, [
94
- u(i(w), { size: 20 }, {
95
- default: n(() => [
96
- u(i(z))
97
- ]),
98
- _: 1
99
- })
100
- ])
101
- ], !0)
102
- ]),
103
- _: 3
104
- }, 8, ["src", "fit", "lazy"])) : k.value ? p(t.$slots, "empty", {}, () => [
105
- c("div", A, [
106
- u(i(w), { size: 20 }, {
107
- default: n(() => [
108
- u(i(z))
109
- ]),
110
- _: 1
111
- })
112
- ])
113
- ], !0, 1) : j("", !0)
114
- ], 6));
115
- }
116
- }), W = /* @__PURE__ */ R(G, [["__scopeId", "data-v-02c4930c"]]);
117
- export {
118
- W as I
119
- };
@@ -1 +0,0 @@
1
- "use strict";const t=require("vue"),h=require("element-plus"),L=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),U=t.defineComponent({name:"QySelect",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[String,Number,Boolean,Object,Array,null],default:void 0},options:{default:()=>[]},labelKey:{default:"label"},valueKey:{default:"value"},objectIdentityKey:{default:void 0},disabledKey:{default:"disabled"},placeholder:{default:"请选择"},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},filterable:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!1},collapseTagsTooltip:{type:Boolean,default:!1},autoSelectSingle:{type:Boolean,default:!1},size:{default:void 0},teleported:{type:Boolean,default:!0},appendTo:{default:"body"},fitInputWidth:{type:Boolean,default:!0},popperClass:{default:""}},emits:["update:modelValue","change","clear","visible-change","focus","blur"],setup(o,{expose:S,emit:V}){const u=Symbol("invalid-select-value"),a=o,r=V,B=t.useAttrs(),A=t.useSlots(),f=t.ref(null),C=t.computed(()=>Object.fromEntries(Object.entries(B).filter(([e])=>e==="class"||e==="style"||e==="id"||e==="name"||e==="role"||e==="title"||e==="tabindex"||e==="remote"||e==="remoteMethod"||e==="remote-method"||e==="debounce"||e==="remoteShowSuffix"||e==="remote-show-suffix"||e.startsWith("data-")||e.startsWith("aria-")))),K=t.computed(()=>["qy-select__popper",a.popperClass].filter(Boolean).join(" ")),g=t.computed(()=>{const e=b(a.modelValue);return e===u?void 0:e}),d=t.computed(()=>a.options.map(e=>({raw:e,label:I(e),value:O(e),disabled:!!e[a.disabledKey]}))),p=t.computed(()=>{const e=A.default;return e?e().some(v):!1}),j=t.computed(()=>{if(!a.objectIdentityKey)return;const e=g.value,l=Array.isArray(e)?e.some(c):c(e),n=!p.value&&d.value.some(s=>c(s.value));return l||n?a.objectIdentityKey:void 0});function v(e){return e.type===t.Comment?!1:e.type===t.Text?typeof e.children=="string"&&e.children.trim()!=="":e.type!==t.Fragment||!Array.isArray(e.children)?!0:e.children.some(l=>t.isVNode(l)?v(l):typeof l=="string"?l.trim()!=="":l!=null)}function c(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function m(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||c(e)?e:u}function b(e){if(e==null)return e;if(Array.isArray(e)){const l=e;return l.every(n=>m(n)!==u)?l:u}return m(e)}function I(e){const l=e[a.labelKey]??e.label??e.value??"";return typeof l=="string"||typeof l=="number"?l:typeof l=="boolean"?String(l):""}function O(e){const l=e[a.valueKey]??e.value??e.label,n=m(l);return n===u?void 0:n}function w(e){return Array.isArray(e)?e.length===0:e===""||e===null||e===void 0}let i=null;t.watch([d,()=>a.modelValue,()=>a.autoSelectSingle,()=>a.disabled,()=>a.multiple],([e])=>y(e),{flush:"post"}),t.onMounted(()=>y(d.value)),t.onUpdated(()=>y(d.value));function y(e){if(!w(a.modelValue)){i=null;return}if(!a.autoSelectSingle||a.disabled||p.value||e.length!==1)return;const[l]=e;if(l.disabled||l.value===void 0)return;const n=x(l.value);if(i&&i.identityKey===a.objectIdentityKey&&i.multiple===a.multiple&&Object.is(i.candidate,n))return;i={candidate:n,identityKey:a.objectIdentityKey,multiple:a.multiple};const s=a.multiple?[l.value]:l.value;r("update:modelValue",s),r("change",s)}function x(e){return!c(e)||!a.objectIdentityKey?e:e[a.objectIdentityKey]??e}function $(e,l){return`${String(e.value??e.label??"")}-${l}`}function T(e){const l=b(e);l!==u&&r("update:modelValue",l)}function z(e){const l=b(e);l!==u&&r("change",l)}function E(){r("clear")}function q(e){r("visible-change",e)}function M(e){r("focus",e)}function P(e){r("blur",e)}function F(){var e,l;(l=(e=f.value)==null?void 0:e.focus)==null||l.call(e)}function H(){var e,l;(l=(e=f.value)==null?void 0:e.blur)==null||l.call(e)}return S({focus:F,blur:H}),(e,l)=>(t.openBlock(),t.createBlock(t.unref(h.ElSelect),t.mergeProps({ref_key:"selectRef",ref:f,class:"qy-select"},C.value,{"model-value":g.value,placeholder:o.placeholder,disabled:o.disabled,clearable:o.clearable,filterable:o.filterable,loading:o.loading,multiple:o.multiple,"collapse-tags":o.collapseTags,"collapse-tags-tooltip":o.collapseTagsTooltip,size:o.size,teleported:o.teleported,"fit-input-width":o.fitInputWidth,"popper-class":K.value,"append-to":o.appendTo,"value-key":j.value,"onUpdate:modelValue":T,onChange:z,onClear:E,onVisibleChange:q,onFocus:M,onBlur:P}),t.createSlots({default:t.withCtx(()=>[p.value?t.renderSlot(e.$slots,"default",{},void 0,!0,0):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(d.value,(n,s)=>(t.openBlock(),t.createBlock(t.unref(h.ElOption),{key:$(n,s),label:n.label,value:n.value,disabled:n.disabled},null,8,["label","value","disabled"]))),128))]),_:2},[e.$slots.prefix?{name:"prefix",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"prefix",{},void 0,!0)]),key:"0"}:void 0,e.$slots.empty?{name:"empty",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"empty",{},void 0,!0)]),key:"1"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"loading",{},void 0,!0)]),key:"2"}:void 0,e.$slots.tag?{name:"tag",fn:t.withCtx(n=>[t.renderSlot(e.$slots,"tag",t.normalizeProps(t.guardReactiveProps(n)),void 0,!0)]),key:"3"}:void 0]),1040,["model-value","placeholder","disabled","clearable","filterable","loading","multiple","collapse-tags","collapse-tags-tooltip","size","teleported","fit-input-width","popper-class","append-to","value-key"]))}}),W=L._export_sfc(U,[["__scopeId","data-v-722db6dd"]]);exports.Select=W;
@@ -1,107 +0,0 @@
1
- import { defineComponent as q, ref as p, computed as B, openBlock as c, createElementBlock as u, normalizeClass as g, createVNode as S, withCtx as I, createElementVNode as h, withModifiers as t, withKeys as y, toDisplayString as K, createCommentVNode as k } from "vue";
2
- import { U as M } from "./index-BYX0biqw.mjs";
3
- import { _ as N } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
4
- const U = ["tabindex", "aria-disabled", "onClick", "onKeydown"], _ = { class: "qy-file-picker__label" }, E = {
5
- key: 0,
6
- class: "qy-file-picker__hint"
7
- }, P = ["disabled"], R = /* @__PURE__ */ q({
8
- name: "QyFilePicker",
9
- __name: "index",
10
- props: {
11
- modelValue: { default: null },
12
- extensions: { default: () => [] },
13
- maxSizeMb: { default: 20 },
14
- disabled: { type: Boolean, default: !1 },
15
- drag: { type: Boolean, default: !0 },
16
- placeholder: { default: "请选择文件" }
17
- },
18
- emits: ["update:modelValue", "change", "clear", "invalid"],
19
- setup(e, { expose: x, emit: V }) {
20
- const a = e, i = V, d = p(null), n = p(!1), D = B(() => a.modelValue ? [a.modelValue] : []);
21
- let o = !1;
22
- function C() {
23
- var l;
24
- a.disabled || (l = d.value) == null || l.openFileDialog();
25
- }
26
- function f() {
27
- var l;
28
- o = !0, (l = d.value) == null || l.clearFiles(), o = !1, i("update:modelValue", null), i("change", null), i("clear");
29
- }
30
- function F() {
31
- a.disabled || f();
32
- }
33
- function m() {
34
- !a.disabled && a.drag && (n.value = !0);
35
- }
36
- function b() {
37
- n.value = !1;
38
- }
39
- function w(l) {
40
- if (o) return;
41
- const s = l[0] ?? null;
42
- i("update:modelValue", s), i("change", s);
43
- }
44
- function z(l) {
45
- i("invalid", l);
46
- }
47
- return x({
48
- openFileDialog: C,
49
- clear: f
50
- }), (l, s) => (c(), u("div", {
51
- class: g(["qy-file-picker", { "is-disabled": e.disabled, "is-dragover": n.value }])
52
- }, [
53
- S(M, {
54
- ref_key: "uploadRef",
55
- ref: d,
56
- variant: "file-list",
57
- "auto-upload": !1,
58
- "selected-files": D.value,
59
- "file-type": e.extensions,
60
- "file-size": e.maxSizeMb,
61
- disabled: e.disabled,
62
- "disable-drag": !e.drag,
63
- multiple: !1,
64
- limit: 1,
65
- "show-text": !1,
66
- "show-paste-input": !1,
67
- "onUpdate:selectedFiles": w,
68
- onInvalid: z
69
- }, {
70
- trigger: I(({ open: r }) => {
71
- var v;
72
- return [
73
- h("div", {
74
- class: g(["qy-file-picker__dropzone", { "is-click-only": !e.drag }]),
75
- role: "button",
76
- tabindex: e.disabled ? -1 : 0,
77
- "aria-disabled": e.disabled ? "true" : void 0,
78
- onClick: r,
79
- onKeydown: [
80
- y(t(r, ["prevent"]), ["enter"]),
81
- y(t(r, ["prevent"]), ["space"])
82
- ],
83
- onDragenter: t(m, ["prevent"]),
84
- onDragover: t(m, ["prevent"]),
85
- onDragleave: t(b, ["prevent"]),
86
- onDrop: b
87
- }, [
88
- h("span", _, K(((v = e.modelValue) == null ? void 0 : v.name) || e.placeholder), 1),
89
- e.drag ? (c(), u("span", E, " 点击选择或拖拽单个文件到此处 ")) : k("", !0)
90
- ], 42, U)
91
- ];
92
- }),
93
- _: 1
94
- }, 8, ["selected-files", "file-type", "file-size", "disabled", "disable-drag"]),
95
- e.modelValue ? (c(), u("button", {
96
- key: 0,
97
- class: "qy-file-picker__clear",
98
- type: "button",
99
- disabled: e.disabled,
100
- onClick: t(F, ["stop"])
101
- }, " 清空 ", 8, P)) : k("", !0)
102
- ], 2));
103
- }
104
- }), G = /* @__PURE__ */ N(R, [["__scopeId", "data-v-71a5d74d"]]);
105
- export {
106
- G as F
107
- };
@@ -1 +0,0 @@
1
- "use strict";const C=require("element-plus"),l=require("vue"),de=require("@element-plus/icons-vue"),g=require("element-plus"),Le=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");/*! js-cookie v3.0.8 | MIT */function E(r){for(var x=1;x<arguments.length;x++){var k=arguments[x];for(var a in k)a!=="__proto__"&&(r[a]=k[a])}return r}var Ie={read:function(r){return r[0]==='"'&&(r=r.slice(1,-1)),r.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(r){return encodeURIComponent(r).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function H(r,x){function k(u,V,f){if(!(typeof document>"u")){f=E({},x,f),typeof f.expires=="number"&&(f.expires=new Date(Date.now()+f.expires*864e5)),f.expires&&(f.expires=f.expires.toUTCString()),u=encodeURIComponent(u).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var y="";for(var s in f)f[s]&&(y+="; "+s,f[s]!==!0&&(y+="="+f[s].split(";")[0]));return document.cookie=u+"="+r.write(V,u)+y}}function a(u){if(!(typeof document>"u"||arguments.length&&!u)){for(var V=document.cookie?document.cookie.split("; "):[],f={},y=0;y<V.length;y++){var s=V[y].split("="),S=s.slice(1).join("=");try{var b=decodeURIComponent(s[0]);if(b in f||(f[b]=r.read(S,b)),u===b)break}catch{}}return u?f[u]:f}}return Object.create({set:k,get:a,remove:function(u,V){k(u,"",E({},V,{expires:-1}))},withAttributes:function(u){return H(this.converter,E({},this.attributes,u))},withConverter:function(u){return H(E({},this.converter,u),this.attributes)}},{attributes:{value:Object.freeze(x)},converter:{value:Object.freeze(r)}})}var ce=H(Ie,{path:"/"});const Ae="Admin-Token";function Pe(r=Ae){return ce.get(r)}const _e=["accept","multiple","disabled"],Oe=["disabled"],$e={class:"qy-upload__hint"},Ke=["placeholder","disabled"],We=["src"],He={key:1,class:"qy-upload__tip"},Xe={class:"error"},Je={class:"error"},Qe=Object.assign({name:"QyUpload"},{__name:"index",props:{modelValue:{type:[Object,Array,String],default:void 0},selectedFiles:{type:Array,default:()=>[]},autoUpload:{type:Boolean,default:!0},variant:{type:String,default:"media-card"},defaultValue:{type:Object,default:()=>({files:"",text:""})},valueFormat:{type:String,default:"object"},showText:{type:Boolean,default:!0},showPasteInput:{type:Boolean,default:!1},pastePlaceholder:{type:String,default:"输入文字"},multiple:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},fileType:{type:Array,default:()=>[]},fileSize:{type:Number,default:10},limit:{type:Number,default:9},isShowTip:{type:Boolean,default:!1},api:{type:String,default:"/permission-api/common/uploads"},name:{type:String,default:"file"},tokenKey:{type:String,default:"Admin-Token"},supportVideo:{type:Boolean,default:!1},size:{type:String,default:"default"},disableDrag:{type:Boolean,default:!1},callBack:{type:Function,default:null},extraData:{type:Object,default:()=>({})},uploadRequest:{type:Function,default:null}},emits:["update:modelValue","update:selectedFiles","selectedFilesChange","change","success","error","remove","invalid"],setup(r,{expose:x,emit:k}){const a=r,u=k,V=l.ref(null),f=l.ref(null),y=l.ref(null),s=l.ref([]),S=l.ref(null),b=l.ref(null),U=[],X=new WeakMap;let L=Date.now(),I=!1;const A=l.ref(!1),P=l.ref([]),J=l.ref(0),B=l.ref(!1),Q=l.ref(""),G=l.ref(""),q=new Set,D=l.ref(!1),h=l.ref(""),_=l.ref(!1);l.onMounted(()=>{a.modelValue!==void 0||!a.autoUpload||ee(a.defaultValue)});const pe=l.computed(()=>({large:"160px",default:"140px",small:"80px"})[a.size]??a.size),T=l.computed(()=>a.disabled),fe=l.computed(()=>s.value.some(e=>e.status==="uploading")),me=l.computed(()=>a.variant==="file-list"||a.supportVideo?"text":"picture-card"),ve=l.computed(()=>a.supportVideo?1:!a.autoUpload&&!a.multiple?2:a.limit),ge=l.computed(()=>{var e;return a.isShowTip&&(a.fileSize||((e=w.value)==null?void 0:e.length))}),w=l.computed(()=>{var e;return(e=a.fileType)!=null&&e.length?a.fileType.map(t=>String(t).trim().replace(/^\./,"").toLowerCase()).filter(Boolean):a.variant==="file-list"?[]:a.supportVideo?["mp4","mov","avi"]:["jpg","jpeg","png","gif","webp"]}),j=l.computed(()=>{if(!a.autoUpload&&!a.multiple)return!1;const e=a.supportVideo?1:a.limit;return s.value.length>=e}),Y=l.computed(()=>w.value.map(e=>`.${e}`).join(",")),ye=l.computed(()=>({"qy-upload--reached-limit":j.value,"qy-upload--disabled":a.disabled,"qy-upload--video":a.supportVideo,"qy-upload--without-text":!a.showText&&!a.showPasteInput}));l.watch(h,()=>{I||F()}),l.watch(()=>a.modelValue,e=>{a.autoUpload&&e!==void 0&&ee(e)},{immediate:!0,deep:!0}),l.watch(()=>[a.autoUpload,a.selectedFiles],([e,t])=>{e||(s.value=R(t))},{immediate:!0,deep:!0});function Z(e){return Array.isArray(e)?e.filter(Boolean):e?String(e).split(",").filter(Boolean):[]}function he(e){return Array.isArray(e)?{files:e,text:""}:typeof e=="string"?{files:Z(e),text:""}:e&&typeof e=="object"?{files:Z(e.files),text:e.text??""}:{files:[],text:""}}function we(e=[]){return e.map((t,n)=>({name:String(t).split("/").pop()||`file-${n}`,url:t,status:"success",uid:Date.now()+n}))}function R(e=[]){return e.filter(Boolean).map((t,n)=>{const i=l.toRaw(t);return{name:i.name,raw:i,status:"ready",uid:xe(i,n)}})}function xe(e,t){if(e.uid!=null)return e.uid;const n=X.get(e);return n??(L+=t+1,X.set(e,L),L)}function O(e=s.value){return e.map(t=>{const n=t.raw??(t instanceof File?t:null);return n?l.toRaw(n):null}).filter(Boolean)}function z(e){u("update:selectedFiles",e),u("selectedFilesChange",e)}function Ve(e,t){if(a.autoUpload)return;const n=e==null?void 0:e.raw;if(n&&!$(n)){s.value=R(a.selectedFiles);return}const i=O(t);n&&!i.includes(n)&&i.push(n);const o=a.multiple?i:i.slice(-1);s.value=R(o),z(o)}function ke(e){const t=new Set(e.map(i=>i.url)),n=s.value.filter(i=>i.status==="uploading"&&!t.has(i.url));return[...e,...n]}function ee(e){const t=he(e);I=!0,h.value=t.text,s.value=ke(we(t.files)),l.nextTick(()=>{I=!1})}function te(e){return a.valueFormat==="array"?e.files:a.valueFormat==="string"?e.files.join(","):e}function be(){var e;(e=S.value)==null||e.focus()}function Ue(e){e.target.value=""}function F(e){const i={files:(e??s.value).filter(o=>o.status==="success"&&o.url).map(o=>o.url),text:h.value};u("update:modelValue",te(i)),u("change",i),a.callBack&&a.callBack(i)}function Ce(e,t){if(!a.autoUpload){const n=O(t);s.value=R(n),z(n),u("remove",e,t);return}F(t),u("remove",e,t)}function le(e){var n;const t=(e==null?void 0:e.name)||"";return t.includes(".")&&((n=t.split(".").pop())==null?void 0:n.toLowerCase())||""}function ne(e){var o,d,p;const t=((d=(o=e==null?void 0:e.type)==null?void 0:o.toLowerCase)==null?void 0:d.call(o))||"",n={"image/jpeg":["jpg","jpeg"],"image/png":["png"],"image/gif":["gif"],"image/bmp":["bmp"],"image/webp":["webp"],"video/mp4":["mp4"],"video/quicktime":["mov"],"video/x-msvideo":["avi"],"video/webm":["webm"]};if(n[t])return n[t];const i=(p=t.split("/")[1])==null?void 0:p.split("+")[0];return i?[i]:[]}function Be(e){if(!w.value.length)return!0;const t=le(e),n=ne(e);return[t,...n].some(i=>w.value.includes(i))}function $(e){if(a.fileSize>0&&e.size>a.fileSize*1024*1024){const n={code:"size",file:e,message:`文件大小不能超过${a.fileSize}M`};return g.ElMessage.warning(n.message),u("invalid",n),!1}if(!Be(e)){const n={code:"extension",file:e,message:`格式不支持,仅允许: ${w.value.join("/")}`};return g.ElMessage.warning(n.message),u("invalid",n),!1}return!0}async function Re(e,t,n,i){const o=ae(e);try{const d=await a.uploadRequest({file:e,formData:o,api:a.api,name:a.name,tokenKey:a.tokenKey,extraData:a.extraData}),p=Fe(d);if(!p){const c=new Error("上传失败,未返回文件地址");g.ElMessage.error(c.message),u("error",c),n==null||n(c);return}g.ElMessage.success("上传成功"),t==null||t({...typeof d=="object"&&d?d:{},url:p})}catch(d){g.ElMessage.error("上传失败"),u("error",d),n==null||n(d)}finally{i.close()}}function ae(e){const t=new FormData;return t.append(a.name,e),a.extraData&&Object.entries(a.extraData).forEach(([n,i])=>t.append(n,i)),t}function Fe(e){var i,o;if(typeof e=="string")return e;const t=e||{},n=t.urls??t.url??((i=t.data)==null?void 0:i.urls)??((o=t.data)==null?void 0:o.url)??"";return Array.isArray(n)?n[0]||"":n||""}function ie(e,t,n,i){const o=g.ElLoading.service({target:f.value,text:"上传中",background:"rgba(255,255,255,0.7)"});if(a.uploadRequest){Re(e,n,i,o);return}const d=a.api.startsWith("http")?a.api:window.location.origin+a.api.replace(/^([^/])/,"/$1"),p=ae(e),c=new XMLHttpRequest;U.push(c);const N=()=>{const m=U.indexOf(c);m!==-1&&U.splice(m,1),o.close()};c.open("POST",d);const v=Pe(a.tokenKey);v&&c.setRequestHeader("Authorization",`Bearer ${v}`),c.upload.onprogress=m=>{m.total>0&&(t==null||t({percent:m.loaded/m.total*100}))},c.onload=()=>{if(N(),c.status<200||c.status>=300){const m=`上传失败 (HTTP ${c.status})`;g.ElMessage.error(m),u("error",{msg:m,status:c.status}),i==null||i(new Error(m));return}try{const m=JSON.parse(c.responseText);m.code===200&&m.urls?(g.ElMessage.success("上传成功"),n==null||n({...m,url:m.urls})):(g.ElMessage.error(m.msg||"上传失败"),u("error",m),i==null||i(m))}catch{g.ElMessage.error("上传失败,响应格式错误"),u("error",new Error("Response parse error")),i==null||i(new Error("Response parse error"))}},c.onerror=()=>{N(),g.ElMessage.error("上传失败,网络异常"),u("error",new Error("Network error")),i==null||i(new Error("Network error"))},c.send(p)}function oe(e){return a.disabled?!1:$(e)}function Me(e,t){const n=s.value.find(i=>{var o;return i.uid===(e==null?void 0:e.uid)||((o=i.raw)==null?void 0:o.uid)===(e==null?void 0:e.uid)});n&&(n.url=t,n.status="success")}function Ne(e){ie(e.file,e.onProgress,t=>{Me(e.file,t.url),e.onSuccess(t),F(),u("success",t)},t=>e.onError(t))}function Se(e){var i;if(!e.url)return;const t=((i=e.url.split(".").pop())==null?void 0:i.toLowerCase())||"";if(["mp4","mov","avi","webm"].includes(t)){Q.value=e.url,G.value=e.name||"视频预览",B.value=!0;return}const n=s.value.filter(o=>{var d;return o.status==="success"&&o.url&&!["mp4","mov","avi","webm"].includes((d=o.url.split(".").pop())==null?void 0:d.toLowerCase())});P.value=n.map(o=>o.url),J.value=n.findIndex(o=>o.uid===e.uid)||0,A.value=!0}function qe(){A.value=!1,P.value=[]}function De(e,t){if(e.name&&le(e))return e;const n=ne(e).find(i=>w.value.includes(i));return n?new File([e],`paste-${Date.now()+t}.${n}`,{type:e.type,lastModified:e.lastModified}):e}function K(e){if(!a.autoUpload){const t=O(),n=e.filter(o=>$(o));if(!n.length)return;const i=a.multiple?[...t,...n].slice(0,a.limit):n.slice(-1);s.value=R(i),z(i);return}for(let t=0;t<e.length;t++){const n=De(e[t],t);if(!oe(n))continue;const i=Date.now()+t,o=URL.createObjectURL(n);q.add(o),s.value.push({uid:i,name:n.name||`file-${i}`,status:"uploading",percentage:0,url:o}),ie(n,d=>{const p=s.value.find(c=>c.uid===i);p&&(p.percentage=d.percent)},d=>{const p=s.value.find(c=>c.uid===i);p&&(p.status="success",p.url=d.url,F(),u("success",d))},()=>ze(i))}}function Te(e){const t=e.target,n=Array.from(t.files||[]);if(t.value="",a.disabled||!n.length)return;const i=a.supportVideo||!a.multiple?n.slice(0,1):n;K(i)}function je(e){const t=Array.from((e==null?void 0:e.files)||[]).filter(d=>{var p;return(p=d.type)==null?void 0:p.startsWith("image/")});if(t.length)return t;const n=e==null?void 0:e.items;if(!n)return[];const i=[],o=new Set;for(let d=0;d<n.length;d++){const p=n[d];if(p.kind==="file"&&p.type.startsWith("image/")){const c=p.getAsFile();c&&!o.has(c)&&(o.add(c),i.push(c))}}return i}function M(e){if(a.disabled)return;const t=je(e.clipboardData);t.length&&(e.preventDefault(),K(t))}function re(){a.disabled||a.disableDrag||(D.value=!0)}function se(){D.value=!1}function ue(e){var n;if(D.value=!1,a.disabled||a.disableDrag||j.value)return;const t=Array.from(((n=e.dataTransfer)==null?void 0:n.files)||[]);t.length&&K(t)}function ze(e){var n;const t=s.value.findIndex(i=>i.uid===e);t!==-1&&((n=s.value[t].url)!=null&&n.startsWith("blob:")&&(URL.revokeObjectURL(s.value[t].url),q.delete(s.value[t].url)),s.value.splice(t,1))}l.onBeforeUnmount(()=>{U.forEach(e=>e.abort()),U.length=0,q.forEach(e=>URL.revokeObjectURL(e)),q.clear()});function W(){var e;a.disabled||j.value||(e=y.value)==null||e.click()}function Ee(){s.value=[],h.value="",z([]),a.autoUpload&&F()}return x({openFileDialog:W,getPathList:()=>s.value.filter(e=>e.status==="success").map(e=>e.url),clearFiles:Ee,getValue:()=>({files:s.value.filter(e=>e.status==="success"&&e.url).map(e=>e.url),text:h.value}),getModelValue:()=>te({files:s.value.filter(e=>e.status==="success"&&e.url).map(e=>e.url),text:h.value})}),(e,t)=>{var N;const n=C.ElIcon,i=C.ElInput,o=C.ElPopover,d=C.ElUpload,p=C.ElImageViewer,c=C.ElDialog;return l.openBlock(),l.createElementBlock("div",{ref_key:"rootRef",ref:f,class:l.normalizeClass(["qy-upload",ye.value]),style:l.normalizeStyle({"--qy-upload-size":pe.value})},[l.createElementVNode("input",{ref_key:"nativeInputRef",ref:y,class:"qy-upload__native-input",type:"file",accept:Y.value,multiple:r.supportVideo?!1:r.multiple,disabled:T.value,onChange:Te},null,40,_e),l.createVNode(d,{ref_key:"uploadRef",ref:V,"file-list":s.value,"onUpdate:fileList":t[7]||(t[7]=v=>s.value=v),action:"#",multiple:r.supportVideo?!1:r.multiple,limit:ve.value,"auto-upload":r.autoUpload,"list-type":me.value,accept:Y.value,disabled:T.value,"http-request":Ne,"before-upload":oe,"on-change":Ve,"on-preview":Se,"on-remove":Ce},l.createSlots({default:l.withCtx(()=>[r.variant!=="file-list"&&!j.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["qy-upload__trigger",{"is-dragover":D.value}]),onPaste:M,onDragover:l.withModifiers(re,["prevent"]),onDragleave:l.withModifiers(se,["prevent"]),onDrop:l.withModifiers(ue,["prevent"])},[l.createVNode(n,{class:"qy-upload__icon"},{default:l.withCtx(()=>[l.createVNode(l.unref(de.Plus))]),_:1}),r.supportVideo?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[t[10]||(t[10]=l.createElementVNode("span",{class:"qy-upload__label"},"点击上传视频",-1)),l.createElementVNode("span",$e,"支持 "+l.toDisplayString(w.value.join(" / "))+",不超过 "+l.toDisplayString(r.fileSize)+"MB",1)],64)):l.createCommentVNode("",!0),r.showText?(l.openBlock(),l.createElementBlock("div",{key:1,class:"qy-upload__text",onClick:t[4]||(t[4]=l.withModifiers(()=>{},["stop"])),onPaste:l.withModifiers(M,["stop"])},[l.createVNode(o,{visible:_.value,"onUpdate:visible":t[3]||(t[3]=v=>_.value=v),placement:"bottom-start",width:220,trigger:"click","popper-class":"qy-upload__text-popover",onAfterEnter:be},{reference:l.withCtx(()=>[l.createElementVNode("div",{class:l.normalizeClass(["qy-upload__text-preview",{"is-placeholder":!h.value}])},l.toDisplayString(h.value||r.pastePlaceholder),3)]),default:l.withCtx(()=>[l.createVNode(i,{ref_key:"inputRef",ref:S,modelValue:h.value,"onUpdate:modelValue":t[1]||(t[1]=v=>h.value=v),type:"textarea",autosize:{minRows:2,maxRows:5},placeholder:r.pastePlaceholder,disabled:r.disabled,onBlur:t[2]||(t[2]=v=>_.value=!1),onPaste:l.withModifiers(M,["stop"])},null,8,["modelValue","placeholder","disabled"])]),_:1},8,["visible"])],32)):r.showPasteInput?(l.openBlock(),l.createElementBlock("div",{key:2,class:"qy-upload__text",onClick:t[6]||(t[6]=l.withModifiers(()=>{},["stop"])),onPaste:l.withModifiers(M,["stop"])},[l.createElementVNode("input",{ref_key:"pasteInputRef",ref:b,class:"qy-upload__paste-input",placeholder:r.pastePlaceholder,disabled:r.disabled,onPaste:l.withModifiers(M,["stop"]),onInput:Ue,onClick:t[5]||(t[5]=l.withModifiers(()=>{},["stop"]))},null,40,Ke)],32)):l.createCommentVNode("",!0)],34)):l.createCommentVNode("",!0)]),_:2},[r.variant==="file-list"?{name:"trigger",fn:l.withCtx(()=>[l.createElementVNode("div",{class:"qy-upload__file-trigger",onClick:t[0]||(t[0]=l.withModifiers(()=>{},["stop"])),onDragover:l.withModifiers(re,["prevent"]),onDragleave:l.withModifiers(se,["prevent"]),onDrop:l.withModifiers(ue,["prevent"])},[l.renderSlot(e.$slots,"trigger",{open:W,disabled:T.value,uploading:fe.value},()=>[l.createElementVNode("button",{class:"qy-upload__file-button",type:"button",disabled:T.value,onClick:W}," 选择文件 ",8,Oe)],!0)],32)]),key:"0"}:void 0]),1032,["file-list","multiple","limit","auto-upload","list-type","accept","disabled"]),A.value?(l.openBlock(),l.createBlock(p,{key:0,"url-list":P.value,"initial-index":J.value,onClose:qe},null,8,["url-list","initial-index"])):l.createCommentVNode("",!0),l.createVNode(c,{modelValue:B.value,"onUpdate:modelValue":t[8]||(t[8]=v=>B.value=v),title:G.value,width:"640px","append-to-body":"","destroy-on-close":"",onClose:t[9]||(t[9]=v=>B.value=!1)},{default:l.withCtx(()=>[B.value?(l.openBlock(),l.createElementBlock("video",{key:0,src:Q.value,controls:"",autoplay:"",style:{width:"100%","max-height":"400px","border-radius":"4px"}},null,8,We)):l.createCommentVNode("",!0)]),_:1},8,["modelValue","title"]),ge.value?(l.openBlock(),l.createElementBlock("div",He,[l.createVNode(n,null,{default:l.withCtx(()=>[l.createVNode(l.unref(de.InfoFilled))]),_:1}),l.createElementVNode("span",null,[t[13]||(t[13]=l.createTextVNode(" 请上传 ",-1)),r.fileSize?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[t[11]||(t[11]=l.createTextVNode("大小不超过 ",-1)),l.createElementVNode("b",Xe,l.toDisplayString(r.fileSize)+"MB",1)],64)):l.createCommentVNode("",!0),(N=w.value)!=null&&N.length?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[t[12]||(t[12]=l.createTextVNode(",格式为 ",-1)),l.createElementVNode("b",Je,l.toDisplayString(w.value.join("/")),1)],64)):l.createCommentVNode("",!0),t[14]||(t[14]=l.createTextVNode(" 的文件。 ",-1))])])):l.createCommentVNode("",!0)],6)}}}),Ge=Le._export_sfc(Qe,[["__scopeId","data-v-3f7a045b"]]);exports.Upload=Ge;exports.api=ce;
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),d=require("element-plus"),v=require("@element-plus/icons-vue"),s=require("./utils-BjEXwY3L.cjs"),E=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),S={class:"qy-image__state qy-image__state--error"},V={class:"qy-image__state qy-image__state--empty"},k=e.defineComponent({name:"QyImage",__name:"index",props:{src:{default:""},width:{},height:{},size:{default:64},fit:{default:"cover"},placeholder:{type:Boolean,default:!0},lazy:{type:Boolean,default:!0},compressor:{type:[Boolean,Object],default:!0},preview:{type:Boolean,default:!1},previewList:{default:()=>[]},initialIndex:{default:0}},emits:["load","error","fallback","preview"],setup(n,{emit:h}){const t=n,i=h,l=e.ref(!1),o=e.ref("");let c=0;const u=e.computed(()=>s.normalizeImageSrc(t.src)),m=e.computed(()=>({width:t.width??t.size,height:t.height??t.size})),y=e.computed(()=>({width:f(m.value.width),height:f(m.value.height)})),g=e.computed(()=>t.placeholder||l.value),p=e.computed(()=>t.preview&&!!u.value),w=e.computed(()=>(t.previewList.length?t.previewList:[t.src]).map(a=>s.normalizeImageSrc(a)).filter(Boolean));e.watch(()=>[t.src,t.compressor],_,{immediate:!0,deep:!0});async function _(){const r=++c;if(o.value="",l.value=!1,!!t.src)try{const a=await s.resolveQyImageDisplaySrc(t.src,{compressor:t.compressor});if(r!==c)return;o.value=a.src,a.source==="fallback"&&i("fallback",a.src)}catch{if(r!==c)return;l.value=!1,o.value=u.value}}function z(r){i("load",r)}function I(r){l.value=!0,i("error",r)}function q(){p.value&&(s.openQyImagePreview({urlList:w.value,initialIndex:t.initialIndex}),i("preview",u.value))}function f(r){return typeof r=="number"?`${r}px`:r}return(r,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["qy-image",{"qy-image--previewable":p.value}]),style:e.normalizeStyle(y.value),onClick:q},[o.value&&!l.value?(e.openBlock(),e.createBlock(e.unref(d.ElImage),{key:0,class:"qy-image__inner",src:o.value,fit:n.fit,lazy:n.lazy,onLoad:z,onError:I},{placeholder:e.withCtx(()=>[e.renderSlot(r.$slots,"placeholder",{},()=>[a[0]||(a[0]=e.createElementVNode("div",{class:"qy-image__state"},[e.createElementVNode("span",{class:"qy-image__loading"})],-1))],!0)]),error:e.withCtx(()=>[e.renderSlot(r.$slots,"error",{},()=>[e.createElementVNode("div",S,[e.createVNode(e.unref(d.ElIcon),{size:20},{default:e.withCtx(()=>[e.createVNode(e.unref(v.PictureFilled))]),_:1})])],!0)]),_:3},8,["src","fit","lazy"])):g.value?e.renderSlot(r.$slots,"empty",{},()=>[e.createElementVNode("div",V,[e.createVNode(e.unref(d.ElIcon),{size:20},{default:e.withCtx(()=>[e.createVNode(e.unref(v.PictureFilled))]),_:1})])],!0,1):e.createCommentVNode("",!0)],6))}}),x=E._export_sfc(k,[["__scopeId","data-v-02c4930c"]]);exports.Image=x;
@@ -1,254 +0,0 @@
1
- import { defineComponent as L, useAttrs as P, useSlots as q, inject as B, computed as u, markRaw as T, toRaw as V, ref as M, watchEffect as k, openBlock as h, createElementBlock as I, mergeProps as W, unref as E, createBlock as S, resolveDynamicComponent as j, createElementVNode as Y, normalizeClass as F, renderSlot as Z, normalizeProps as G, guardReactiveProps as H, createCommentVNode as J } from "vue";
2
- import { _ as U } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
3
- const A = Symbol("QyIconRegistry"), _ = /* @__PURE__ */ new WeakMap();
4
- function X(e) {
5
- const t = [], n = /* @__PURE__ */ new Map();
6
- for (const s of (e == null ? void 0 : e.icons) ?? []) {
7
- const o = g(s == null ? void 0 : s.name);
8
- if (!o)
9
- throw new Error("QyIcon definition name must not be empty.");
10
- const l = d(o);
11
- if (n.has(l))
12
- throw new Error(`Duplicate icon name "${o}".`);
13
- const i = te(s, o);
14
- t.push(i), n.set(l, i);
15
- }
16
- const a = [], c = /* @__PURE__ */ new Map();
17
- for (const s of ee(e == null ? void 0 : e.aliases)) {
18
- const o = g(s.name), l = g(s.target), i = d(o), v = d(l);
19
- if (!o)
20
- throw new Error("QyIcon alias name must not be empty.");
21
- if (!l)
22
- throw new Error(`QyIcon alias "${o}" target must not be empty.`);
23
- if (n.has(i))
24
- throw new Error(`Icon alias "${o}" conflicts with a canonical icon name.`);
25
- if (c.has(i))
26
- throw new Error(`Duplicate icon alias "${o}".`);
27
- const m = n.get(v);
28
- if (!m)
29
- throw new Error(`Icon alias "${o}" target "${l}" not found.`);
30
- c.set(i, d(m.name)), a.push(Object.freeze({ name: o, target: m.name }));
31
- }
32
- const b = Object.freeze({
33
- definitions: Object.freeze(t),
34
- aliases: Object.freeze(a),
35
- byName: n,
36
- aliasTargets: c
37
- }), f = Object.freeze({
38
- resolve(s) {
39
- const o = d(g(s)), l = c.get(o) ?? o, i = n.get(l);
40
- return i ? O(i) : void 0;
41
- },
42
- has(s) {
43
- const o = d(g(s));
44
- return n.has(c.get(o) ?? o);
45
- },
46
- list() {
47
- return Object.freeze(t.map(O));
48
- }
49
- });
50
- return _.set(f, b), f;
51
- }
52
- function ue(...e) {
53
- const t = [], n = [];
54
- for (const a of e) {
55
- const c = _.get(a);
56
- if (!c)
57
- throw new TypeError("mergeQyIconRegistries accepts only QyIcon registries created by this package.");
58
- t.push(...c.definitions), n.push(...c.aliases);
59
- }
60
- try {
61
- return X({ icons: t, aliases: n });
62
- } catch (a) {
63
- const c = a instanceof Error ? a.message : String(a);
64
- throw new Error(`Icon registry merge conflict: ${c}`);
65
- }
66
- }
67
- function fe(e) {
68
- if (!_.has(e))
69
- throw new TypeError("createQyIconPlugin accepts only a QyIcon registry created by this package.");
70
- return Object.freeze({
71
- install(t) {
72
- t.provide(A, e);
73
- }
74
- });
75
- }
76
- function g(e) {
77
- const t = typeof e == "string" || typeof e == "number" ? String(e).trim() : "";
78
- if (!t) return "";
79
- const n = /^#icon-(.+)$/i.exec(t);
80
- if (n) return n[1].trim();
81
- const a = /^icon-\[([^\[\]]+?)--([^\[\]]+?)\]$/i.exec(t);
82
- return a ? `iconify:${a[1]}:${a[2]}` : t;
83
- }
84
- function d(e) {
85
- return e.toLocaleLowerCase();
86
- }
87
- function ee(e) {
88
- return e ? Array.isArray(e) ? [...e] : Object.entries(e).map(([t, n]) => ({ name: t, target: n })) : [];
89
- }
90
- function te(e, t) {
91
- const n = {
92
- ...e.label === void 0 ? {} : { label: re(e.label, t) },
93
- ...e.keywords === void 0 ? {} : { keywords: ne(e.keywords, t) }
94
- };
95
- switch (e.source) {
96
- case "symbol":
97
- return p({
98
- name: t,
99
- source: "symbol",
100
- value: z("symbol", e.value, t),
101
- ...n
102
- });
103
- case "component":
104
- return p({
105
- name: t,
106
- source: "component",
107
- value: z("component", e.value, t),
108
- ...n
109
- });
110
- case "class":
111
- return p({
112
- name: t,
113
- source: "class",
114
- value: z("class", e.value, t),
115
- ...n
116
- });
117
- default:
118
- throw new Error(`QyIcon definition "${t}" has unsupported source "${String(e.source)}".`);
119
- }
120
- }
121
- function z(e, t, n) {
122
- if (e === "symbol") {
123
- if (typeof t != "string" || !/^#[^\s#]+$/.test(t))
124
- throw new Error(`QyIcon symbol "${n}" must be a same-document #fragment.`);
125
- return t;
126
- }
127
- if (e === "component") {
128
- if (typeof t != "object" && typeof t != "function" || t === null)
129
- throw new Error(`QyIcon component "${n}" must be a Vue component.`);
130
- return t;
131
- }
132
- if (e !== "class")
133
- throw new Error(`QyIcon definition "${n}" has unsupported source "${String(e)}".`);
134
- if (typeof t != "string" || !t.trim() || !/^[A-Za-z0-9_:.\/\[\]%-]+(?:\s+[A-Za-z0-9_:.\/\[\]%-]+)*$/.test(t.trim()))
135
- throw new Error(`QyIcon class "${n}" must be a trusted static class string.`);
136
- return t.trim();
137
- }
138
- function re(e, t) {
139
- if (typeof e != "string")
140
- throw new Error(`QyIcon label "${t}" must be a string.`);
141
- return e;
142
- }
143
- function ne(e, t) {
144
- if (!Array.isArray(e) || e.some((n) => typeof n != "string"))
145
- throw new Error(`QyIcon keywords "${t}" must be strings.`);
146
- return Object.freeze([...e]);
147
- }
148
- function p(e) {
149
- return e.keywords && !Object.isFrozen(e.keywords) && (e = { ...e, keywords: Object.freeze([...e.keywords]) }), Object.freeze(e);
150
- }
151
- function O(e) {
152
- return p({
153
- ...e,
154
- ...e.keywords ? { keywords: [...e.keywords] } : {}
155
- });
156
- }
157
- const oe = ["role", "aria-label", "aria-hidden", "data-qy-icon-missing"], se = {
158
- key: 1,
159
- "aria-hidden": "true",
160
- focusable: "false"
161
- }, ae = ["href", "xlink:href"], ce = /* @__PURE__ */ L({
162
- name: "QyIcon",
163
- inheritAttrs: !1,
164
- __name: "index",
165
- props: {
166
- name: {},
167
- icon: {},
168
- size: { default: "1em" },
169
- color: { default: "currentColor" },
170
- spin: { type: Boolean, default: !1 },
171
- label: {}
172
- },
173
- setup(e) {
174
- const t = e, n = P(), a = q(), c = B(A, null), b = u(
175
- () => t.icon ? T(V(t.icon)) : void 0
176
- ), f = u(
177
- () => t.name === void 0 || t.name === null ? "" : g(t.name)
178
- ), s = u(() => {
179
- if (!(t.icon || !c || !f.value))
180
- return c.resolve(f.value);
181
- }), o = M(null), l = u(() => !!(!t.icon && f.value && !s.value)), i = u(() => {
182
- const r = typeof t.label == "string" ? t.label.trim() : "";
183
- if (r) return r;
184
- const y = n["aria-label"];
185
- return K(y) ? String(y) : "";
186
- }), v = u(() => i.value ? "img" : n.role), m = u(() => C(t.size)), x = u(() => ({
187
- width: m.value,
188
- height: m.value,
189
- fontSize: m.value,
190
- color: t.color || "currentColor"
191
- })), N = u(() => {
192
- const r = {};
193
- for (const [y, w] of Object.entries(n))
194
- D(y) && (r[y] = w);
195
- return r;
196
- }), R = u(() => Object.freeze({ name: f.value }));
197
- k(() => {
198
- const r = s.value;
199
- o.value && (r == null ? void 0 : r.source) === "symbol" && (o.value.setAttributeNS(
200
- "http://www.w3.org/1999/xlink",
201
- "xlink:href",
202
- r.value
203
- ), o.value.setAttribute("xlink:href", r.value));
204
- }), k(() => {
205
- });
206
- function C(r) {
207
- return typeof r == "number" ? Number.isFinite(r) && r > 0 ? `${r}px` : "1em" : r.trim() || "1em";
208
- }
209
- function K(r) {
210
- return typeof r == "string" ? r.trim().length > 0 : r != null && r !== !1;
211
- }
212
- function D(r) {
213
- return r !== "class" && r !== "style" && r !== "role" && r !== "aria-label" && r !== "aria-hidden" && r !== "data-qy-icon-missing" && (r === "id" || r === "title" || r.startsWith("data-") || r.startsWith("aria-"));
214
- }
215
- return (r, y) => {
216
- var w, $, Q;
217
- return h(), I("span", W(N.value, {
218
- class: ["qy-icon", [E(n).class, { "is-spin": t.spin }]],
219
- style: [E(n).style, x.value],
220
- role: v.value,
221
- "aria-label": i.value || void 0,
222
- "aria-hidden": i.value ? void 0 : "true",
223
- "data-qy-icon-missing": l.value ? f.value : void 0
224
- }), [
225
- b.value ? (h(), S(j(b.value), {
226
- key: 0,
227
- "aria-hidden": "true"
228
- })) : ((w = s.value) == null ? void 0 : w.source) === "symbol" ? (h(), I("svg", se, [
229
- Y("use", {
230
- ref_key: "symbolElement",
231
- ref: o,
232
- href: s.value.value,
233
- "xlink:href": s.value.value
234
- }, null, 8, ae)
235
- ])) : (($ = s.value) == null ? void 0 : $.source) === "component" ? (h(), S(j(s.value.value), {
236
- key: 2,
237
- "aria-hidden": "true"
238
- })) : ((Q = s.value) == null ? void 0 : Q.source) === "class" ? (h(), I("span", {
239
- key: 3,
240
- class: F(["qy-icon__class", s.value.value]),
241
- "aria-hidden": "true"
242
- }, null, 2)) : l.value && E(a).fallback ? Z(r.$slots, "fallback", G(H(R.value)), void 0, !0, 4) : J("", !0)
243
- ], 16, oe);
244
- };
245
- }
246
- }), me = /* @__PURE__ */ U(ce, [["__scopeId", "data-v-e4e9c6ae"]]);
247
- export {
248
- me as I,
249
- A as Q,
250
- X as a,
251
- fe as c,
252
- ue as m,
253
- g as n
254
- };