@qynpm/ui 1.0.38 → 1.0.39

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 (429) hide show
  1. package/README.md +117 -113
  2. package/dist/index.cjs +19 -18
  3. package/dist/index.mjs +67 -65
  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 +1 -1
  43. package/dist/qy-dialog/index.mjs +4 -4
  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 +2 -2
  61. package/dist/qy-icon-picker/index.mjs +5 -5
  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 +1 -1
  73. package/dist/qy-input-number/index.mjs +2 -2
  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-pagination/index.cjs +1 -0
  87. package/dist/qy-pagination/index.mjs +7 -0
  88. package/dist/qy-popconfirm/index.cjs +1 -1
  89. package/dist/qy-popconfirm/index.mjs +5 -5
  90. package/dist/qy-popover/index.cjs +1 -1
  91. package/dist/qy-popover/index.mjs +4 -4
  92. package/dist/qy-progress/index.cjs +1 -1
  93. package/dist/qy-progress/index.mjs +3 -3
  94. package/dist/qy-radio/index.cjs +1 -1
  95. package/dist/qy-radio/index.mjs +1 -1
  96. package/dist/qy-radio-group/index.cjs +1 -1
  97. package/dist/qy-radio-group/index.mjs +1 -1
  98. package/dist/qy-record-quote-search/index.cjs +1 -1
  99. package/dist/qy-record-quote-search/index.mjs +1 -1
  100. package/dist/qy-remark-image/index.cjs +1 -1
  101. package/dist/qy-remark-image/index.mjs +1 -1
  102. package/dist/qy-remote-select/index.cjs +1 -1
  103. package/dist/qy-remote-select/index.mjs +1 -1
  104. package/dist/qy-result/index.cjs +1 -1
  105. package/dist/qy-result/index.mjs +4 -4
  106. package/dist/qy-row/index.cjs +1 -1
  107. package/dist/qy-row/index.mjs +4 -4
  108. package/dist/qy-scrollbar/index.cjs +1 -1
  109. package/dist/qy-scrollbar/index.mjs +3 -3
  110. package/dist/qy-search-input/index.cjs +1 -1
  111. package/dist/qy-search-input/index.mjs +1 -1
  112. package/dist/qy-select/index.cjs +1 -1
  113. package/dist/qy-select/index.mjs +1 -1
  114. package/dist/qy-selection-dialog/index.cjs +1 -1
  115. package/dist/qy-selection-dialog/index.mjs +1 -1
  116. package/dist/qy-skeleton/index.cjs +1 -1
  117. package/dist/qy-skeleton/index.mjs +4 -4
  118. package/dist/qy-skeleton-item/index.cjs +1 -1
  119. package/dist/qy-skeleton-item/index.mjs +4 -4
  120. package/dist/qy-statistic/index.cjs +1 -1
  121. package/dist/qy-statistic/index.mjs +3 -3
  122. package/dist/qy-step/index.cjs +1 -1
  123. package/dist/qy-step/index.mjs +5 -5
  124. package/dist/qy-steps/index.cjs +1 -1
  125. package/dist/qy-steps/index.mjs +4 -4
  126. package/dist/qy-switch/index.cjs +1 -1
  127. package/dist/qy-switch/index.mjs +1 -1
  128. package/dist/qy-tab-pane/index.cjs +1 -1
  129. package/dist/qy-tab-pane/index.mjs +4 -4
  130. package/dist/qy-table-column-settings/index.cjs +1 -1
  131. package/dist/qy-table-column-settings/index.mjs +1 -1
  132. package/dist/qy-tabs/index.cjs +1 -1
  133. package/dist/qy-tabs/index.mjs +4 -4
  134. package/dist/qy-tag/index.cjs +1 -1
  135. package/dist/qy-tag/index.mjs +1 -1
  136. package/dist/qy-tooltip/index.cjs +1 -1
  137. package/dist/qy-tooltip/index.mjs +4 -4
  138. package/dist/qy-tree/index.cjs +1 -1
  139. package/dist/qy-tree/index.mjs +5 -5
  140. package/dist/qy-tree-select/index.cjs +1 -1
  141. package/dist/qy-tree-select/index.mjs +1 -1
  142. package/dist/qy-upload/index.cjs +1 -1
  143. package/dist/qy-upload/index.mjs +1 -1
  144. package/dist/qy-watermark/index.cjs +1 -1
  145. package/dist/qy-watermark/index.mjs +1 -1
  146. package/dist/shared/index-9GEoEe00.cjs +1 -0
  147. package/dist/shared/index-B25yA5j-.mjs +71 -0
  148. package/dist/shared/index-B3GsIwhf.mjs +142 -0
  149. package/dist/shared/index-BFG8tzQV.mjs +149 -0
  150. package/dist/shared/index-BXWEn5kQ.mjs +766 -0
  151. package/dist/shared/index-Bd_aS-_F.mjs +162 -0
  152. package/dist/shared/index-Br_34fum.cjs +1 -0
  153. package/dist/shared/index-BsDC3meI.cjs +1 -0
  154. package/dist/shared/index-BzjGYfVd.mjs +222 -0
  155. package/dist/shared/index-C1gEZRI5.cjs +1 -0
  156. package/dist/shared/index-CCd7dB4w.cjs +1 -0
  157. package/dist/shared/index-CGq7Q_hV.mjs +119 -0
  158. package/dist/shared/index-CJeoAmoJ.mjs +293 -0
  159. package/dist/shared/index-CiE6qJCJ.mjs +377 -0
  160. package/dist/shared/index-CnVhquq5.cjs +1 -0
  161. package/dist/shared/index-D0hSquu3.cjs +1 -0
  162. package/dist/shared/index-D1Xkf7rL.mjs +107 -0
  163. package/dist/shared/index-D377Dw9z.cjs +1 -0
  164. package/dist/shared/index-D7WmSi5s.mjs +127 -0
  165. package/dist/shared/index-D8OXRBGc.mjs +285 -0
  166. package/dist/shared/index-DQosPVrl.mjs +68 -0
  167. package/dist/shared/index-DRugp8x0.cjs +1 -0
  168. package/dist/shared/{index-BsRfuMop.cjs → index-DYLQNCm_.cjs} +1 -1
  169. package/dist/shared/index-Db0-JPH3.cjs +1 -0
  170. package/dist/shared/index-DpSbQfft.mjs +90 -0
  171. package/dist/shared/index-Dt5TyzGy.cjs +1 -0
  172. package/dist/shared/index-DuP-b_eY.cjs +1 -0
  173. package/dist/shared/index-Dus42W4E.cjs +1 -0
  174. package/dist/shared/index-EIFVul2W.cjs +1 -0
  175. package/dist/shared/index-G3BezuiV.cjs +1 -0
  176. package/dist/shared/index-GQheV777.mjs +54 -0
  177. package/dist/shared/index-HNFq7v-A.cjs +1 -0
  178. package/dist/shared/index-KNAOQ6lE.mjs +225 -0
  179. package/dist/shared/index-MNEYnZEw.cjs +1 -0
  180. package/dist/shared/index-MPd3qxAh.cjs +1 -0
  181. package/dist/shared/index-_IQS5Lxm.mjs +2362 -0
  182. package/dist/shared/index-elwxiSmc.cjs +1 -0
  183. package/dist/shared/{index-BE4CELs-.mjs → index-lKF1vwdE.mjs} +1 -1
  184. package/dist/shared/index-nVNx7f9k.mjs +72 -0
  185. package/dist/shared/index-zo5J-y0C.mjs +157 -0
  186. package/dist/shared/index.vue_vue_type_script_lang-69zSOotQ.mjs +47 -0
  187. package/dist/shared/index.vue_vue_type_script_lang-8AT3-xU-.cjs +1 -0
  188. package/dist/shared/{index-Cp0dxH7g.mjs → index.vue_vue_type_script_lang-BGAdXWIL.mjs} +11 -12
  189. package/dist/shared/index.vue_vue_type_script_lang-BO9Ju_i0.cjs +1 -0
  190. package/dist/shared/{index-WUwab92q.mjs → index.vue_vue_type_script_lang-BaIOvoQn.mjs} +10 -11
  191. package/dist/shared/index.vue_vue_type_script_lang-Bc3tktk9.cjs +1 -0
  192. package/dist/shared/index.vue_vue_type_script_lang-BgapsQjI.cjs +1 -0
  193. package/dist/shared/{index-B-d53uut.mjs → index.vue_vue_type_script_lang-Bk0kLg5l.mjs} +10 -11
  194. package/dist/shared/index.vue_vue_type_script_lang-BkoqbceR.cjs +1 -0
  195. package/dist/shared/{index-0aCI4Gj1.mjs → index.vue_vue_type_script_lang-BnmY1ndj.mjs} +24 -25
  196. package/dist/shared/index.vue_vue_type_script_lang-By3jd4gw.cjs +1 -0
  197. package/dist/shared/{index-9KXqMXBF.mjs → index.vue_vue_type_script_lang-C4JHCuXz.mjs} +14 -15
  198. package/dist/shared/index.vue_vue_type_script_lang-C9X0V5AK.mjs +71 -0
  199. package/dist/shared/index.vue_vue_type_script_lang-CCL57H5c.cjs +1 -0
  200. package/dist/shared/index.vue_vue_type_script_lang-CIOi2ahp.cjs +1 -0
  201. package/dist/shared/index.vue_vue_type_script_lang-CKZUcaZ5.cjs +1 -0
  202. package/dist/shared/index.vue_vue_type_script_lang-CWnNQBPN.mjs +31 -0
  203. package/dist/shared/index.vue_vue_type_script_lang-CZK0hDYa.mjs +77 -0
  204. package/dist/shared/index.vue_vue_type_script_lang-CfjfZCT3.cjs +1 -0
  205. package/dist/shared/index.vue_vue_type_script_lang-ChS-3_vl.mjs +43 -0
  206. package/dist/shared/index.vue_vue_type_script_lang-Cv4Pf58E.cjs +1 -0
  207. package/dist/shared/index.vue_vue_type_script_lang-CwrbII5c.cjs +1 -0
  208. package/dist/shared/index.vue_vue_type_script_lang-D42aRlO2.cjs +1 -0
  209. package/dist/shared/{index-CaM4EpCy.mjs → index.vue_vue_type_script_lang-D7b9ABei.mjs} +22 -23
  210. package/dist/shared/index.vue_vue_type_script_lang-D7nzeBUR.mjs +35 -0
  211. package/dist/shared/index.vue_vue_type_script_lang-DIKHRo0o.mjs +72 -0
  212. package/dist/shared/index.vue_vue_type_script_lang-DLmUPDR5.cjs +1 -0
  213. package/dist/shared/index.vue_vue_type_script_lang-DMrpLmWN.cjs +1 -0
  214. package/dist/shared/{index-BA6hc-j-.mjs → index.vue_vue_type_script_lang-DOOT2grg.mjs} +10 -11
  215. package/dist/shared/index.vue_vue_type_script_lang-DRvk4-_O.mjs +43 -0
  216. package/dist/shared/{index-Q8rXwNnM.mjs → index.vue_vue_type_script_lang-Dfq7D3mJ.mjs} +3 -4
  217. package/dist/shared/index.vue_vue_type_script_lang-DpSaB5eg.cjs +1 -0
  218. package/dist/shared/index.vue_vue_type_script_lang-WJ63_A7F.cjs +1 -0
  219. package/dist/shared/{index-qLomEtF6.mjs → index.vue_vue_type_script_lang-chBiq2cG.mjs} +3 -4
  220. package/dist/shared/index.vue_vue_type_script_setup_true_lang-4KZSABSM.cjs +1 -0
  221. package/dist/shared/index.vue_vue_type_script_setup_true_lang-B4JrNUDc.mjs +43 -0
  222. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BJe7Uo6S.mjs +42 -0
  223. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BWi3g3mb.cjs +1 -0
  224. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BXnZt9UT.mjs +63 -0
  225. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Bdz9oDDW.mjs +62 -0
  226. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BiIgNax-.cjs +1 -0
  227. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BnIolx5s.cjs +1 -0
  228. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BvnOeUIM.mjs +61 -0
  229. package/dist/shared/index.vue_vue_type_script_setup_true_lang-C96ZaggL.cjs +1 -0
  230. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CKp87br2.cjs +1 -0
  231. package/dist/shared/index.vue_vue_type_script_setup_true_lang-COAUEujY.mjs +48 -0
  232. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CcbBUYM3.cjs +1 -0
  233. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CqSJ_8hG.cjs +1 -0
  234. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Cr9PdvyR.cjs +1 -0
  235. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Cswf_owk.cjs +1 -0
  236. package/dist/shared/index.vue_vue_type_script_setup_true_lang-D7BlbHN5.cjs +1 -0
  237. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DIWWHODS.mjs +197 -0
  238. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DUEhuwGQ.cjs +1 -0
  239. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Dd_nKJvH.mjs +19 -0
  240. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DwFGEW4B.mjs +143 -0
  241. package/dist/shared/index.vue_vue_type_script_setup_true_lang-EiHoQBXt.mjs +94 -0
  242. package/dist/shared/index.vue_vue_type_script_setup_true_lang-IyZesuKm.mjs +48 -0
  243. package/dist/shared/index.vue_vue_type_script_setup_true_lang-OmrHTMpe.mjs +106 -0
  244. package/dist/shared/index.vue_vue_type_script_setup_true_lang-ccFLNRry.cjs +1 -0
  245. package/dist/shared/index.vue_vue_type_script_setup_true_lang-wG7OTsWa.mjs +331 -0
  246. package/dist/shared/index.vue_vue_type_style_index_0_lang-1cTut9Ql.cjs +1 -0
  247. package/dist/shared/index.vue_vue_type_style_index_0_lang-B1FgJZbw.mjs +148 -0
  248. package/dist/shared/index.vue_vue_type_style_index_0_lang-B2thgQml.cjs +1 -0
  249. package/dist/shared/index.vue_vue_type_style_index_0_lang-BMZqMPZb.mjs +215 -0
  250. package/dist/shared/index.vue_vue_type_style_index_0_lang-BXTkWo5P.cjs +1 -0
  251. package/dist/shared/index.vue_vue_type_style_index_0_lang-BfQd7yxi.cjs +1 -0
  252. package/dist/shared/index.vue_vue_type_style_index_0_lang-BnPRHCwR.cjs +1 -0
  253. package/dist/shared/index.vue_vue_type_style_index_0_lang-BoaO6MKl.cjs +1 -0
  254. package/dist/shared/index.vue_vue_type_style_index_0_lang-C1n-zAZh.mjs +67 -0
  255. package/dist/shared/index.vue_vue_type_style_index_0_lang-C4Yk-UdJ.mjs +172 -0
  256. package/dist/shared/index.vue_vue_type_style_index_0_lang-CPxbKjvY.mjs +286 -0
  257. package/dist/shared/index.vue_vue_type_style_index_0_lang-CVdFZeHK.mjs +98 -0
  258. package/dist/shared/index.vue_vue_type_style_index_0_lang-CcVf5MXE.mjs +166 -0
  259. package/dist/shared/index.vue_vue_type_style_index_0_lang-D2CH70ZX.cjs +1 -0
  260. package/dist/shared/index.vue_vue_type_style_index_0_lang-D9DraThL.cjs +1 -0
  261. package/dist/shared/index.vue_vue_type_style_index_0_lang-DFAaBzkW.cjs +1 -0
  262. package/dist/shared/index.vue_vue_type_style_index_0_lang-DHK86rdP.cjs +1 -0
  263. package/dist/shared/index.vue_vue_type_style_index_0_lang-DOAbOPGO.mjs +403 -0
  264. package/dist/shared/index.vue_vue_type_style_index_0_lang-DSur831A.mjs +68 -0
  265. package/dist/shared/index.vue_vue_type_style_index_0_lang-DVXf-yUs.cjs +1 -0
  266. package/dist/shared/index.vue_vue_type_style_index_0_lang-Daww52B9.mjs +317 -0
  267. package/dist/shared/index.vue_vue_type_style_index_0_lang-DsOg_Rum.mjs +128 -0
  268. package/dist/shared/index.vue_vue_type_style_index_0_lang-KHk9wRYT.mjs +298 -0
  269. package/dist/shared/index.vue_vue_type_style_index_0_lang-RiwA2WPO.cjs +1 -0
  270. package/dist/shared/{index-DAoXMHpO.mjs → index.vue_vue_type_style_index_0_lang-Tzo8o6M8.mjs} +9 -10
  271. package/dist/shared/index.vue_vue_type_style_index_0_lang-WGzoSatU.cjs +1 -0
  272. package/dist/shared/{index-u7VYI7Kg.mjs → index.vue_vue_type_style_index_0_lang-gs0YJI91.mjs} +16 -17
  273. package/dist/shared/index.vue_vue_type_style_index_0_lang-hbNK_h45.cjs +1 -0
  274. package/index.d.ts +122 -113
  275. package/package.json +8 -2
  276. package/qy-alert/index.d.ts +64 -64
  277. package/qy-autocomplete/index.d.ts +5 -5
  278. package/qy-avatar/index.d.ts +67 -67
  279. package/qy-badge/index.d.ts +63 -63
  280. package/qy-card/index.d.ts +64 -64
  281. package/qy-cascader/index.d.ts +198 -198
  282. package/qy-collapse/index.d.ts +59 -59
  283. package/qy-collapse-item/index.d.ts +45 -45
  284. package/qy-descriptions/index.d.ts +47 -47
  285. package/qy-descriptions-item/index.d.ts +46 -46
  286. package/qy-dialog/index.d.ts +63 -63
  287. package/qy-divider/index.d.ts +53 -53
  288. package/qy-drawer/index.d.ts +55 -55
  289. package/qy-empty/index.d.ts +51 -51
  290. package/qy-file-picker/index.d.ts +4 -4
  291. package/qy-icon/index.d.ts +9 -9
  292. package/qy-iframe/index.d.ts +66 -66
  293. package/qy-image/index.d.ts +28 -28
  294. package/qy-image-preview/index.d.ts +20 -20
  295. package/qy-image-upload/index.d.ts +69 -69
  296. package/qy-input/index.d.ts +76 -76
  297. package/qy-input-number/index.d.ts +64 -64
  298. package/qy-input-tag/index.d.ts +69 -69
  299. package/qy-link/index.d.ts +69 -69
  300. package/qy-loading/index.d.ts +25 -25
  301. package/qy-menu-actions/index.d.ts +29 -29
  302. package/qy-money-input/index.d.ts +87 -87
  303. package/qy-pagination/index.d.ts +40 -0
  304. package/qy-progress/index.d.ts +74 -74
  305. package/qy-result/index.d.ts +64 -64
  306. package/qy-scrollbar/index.d.ts +85 -85
  307. package/qy-skeleton/index.d.ts +54 -54
  308. package/qy-skeleton-item/index.d.ts +48 -48
  309. package/qy-step/index.d.ts +55 -55
  310. package/qy-steps/index.d.ts +62 -62
  311. package/qy-tab-pane/index.d.ts +40 -40
  312. package/qy-table-column-settings/index.d.ts +18 -18
  313. package/qy-tabs/index.d.ts +84 -84
  314. package/qy-tree/index.d.ts +132 -132
  315. package/qy-tree-select/index.d.ts +123 -123
  316. package/qy-upload/index.d.ts +99 -99
  317. package/dist/shared/index--I-pLtO3.cjs +0 -1
  318. package/dist/shared/index-0mok5nS2.cjs +0 -1
  319. package/dist/shared/index-2xIkj7uz.cjs +0 -1
  320. package/dist/shared/index-4uXwnK7G.cjs +0 -1
  321. package/dist/shared/index-B-PlDm1A.cjs +0 -1
  322. package/dist/shared/index-B0aY8Q_T.cjs +0 -1
  323. package/dist/shared/index-B1-htEYJ.mjs +0 -100
  324. package/dist/shared/index-B1ZuGEIr.cjs +0 -1
  325. package/dist/shared/index-B3wIgwN7.cjs +0 -1
  326. package/dist/shared/index-B71cpH4T.cjs +0 -1
  327. package/dist/shared/index-B8S5RT2Z.mjs +0 -206
  328. package/dist/shared/index-B8znc-qD.cjs +0 -1
  329. package/dist/shared/index-BCfULlZK.cjs +0 -1
  330. package/dist/shared/index-BFFnf0Bn.cjs +0 -1
  331. package/dist/shared/index-BIWER6Wa.cjs +0 -1
  332. package/dist/shared/index-BM3ueCK9.cjs +0 -1
  333. package/dist/shared/index-BOLL0aGP.mjs +0 -47
  334. package/dist/shared/index-BWO4qxne.mjs +0 -395
  335. package/dist/shared/index-Ba3qQVYM.cjs +0 -1
  336. package/dist/shared/index-Ba5CLmrh.mjs +0 -157
  337. package/dist/shared/index-BcPpl_OJ.mjs +0 -892
  338. package/dist/shared/index-Bg_o9zrB.cjs +0 -1
  339. package/dist/shared/index-Bguu2ys0.cjs +0 -1
  340. package/dist/shared/index-BhO1ARf9.cjs +0 -1
  341. package/dist/shared/index-BiCdxX0E.mjs +0 -63
  342. package/dist/shared/index-BigCKPUY.mjs +0 -153
  343. package/dist/shared/index-BmWDUjpi.mjs +0 -73
  344. package/dist/shared/index-BoGA3Pdv.cjs +0 -1
  345. package/dist/shared/index-Brxx2EqN.mjs +0 -156
  346. package/dist/shared/index-BsTSa25A.cjs +0 -1
  347. package/dist/shared/index-Btwke2ql.cjs +0 -1
  348. package/dist/shared/index-BxQnJVT8.cjs +0 -1
  349. package/dist/shared/index-Bx_faI_u.mjs +0 -53
  350. package/dist/shared/index-C7GXprxF.cjs +0 -1
  351. package/dist/shared/index-C97qoSgI.cjs +0 -1
  352. package/dist/shared/index-CCqfQb_M.mjs +0 -82
  353. package/dist/shared/index-CDGjUhaC.mjs +0 -72
  354. package/dist/shared/index-CF3vimnX.mjs +0 -73
  355. package/dist/shared/index-CJxpEc9q.cjs +0 -1
  356. package/dist/shared/index-COpowa-E.mjs +0 -48
  357. package/dist/shared/index-CRU4YvLz.cjs +0 -1
  358. package/dist/shared/index-CSMOYD1R.cjs +0 -1
  359. package/dist/shared/index-CWB5fAb7.mjs +0 -154
  360. package/dist/shared/index-CXAVVShG.mjs +0 -278
  361. package/dist/shared/index-CeasMt4r.mjs +0 -63
  362. package/dist/shared/index-CftZiihF.mjs +0 -525
  363. package/dist/shared/index-ChEefC0G.cjs +0 -1
  364. package/dist/shared/index-CioDI8Ys.cjs +0 -1
  365. package/dist/shared/index-CjKfmMG4.cjs +0 -1
  366. package/dist/shared/index-CnIZoCkL.mjs +0 -77
  367. package/dist/shared/index-CndG7UWF.mjs +0 -138
  368. package/dist/shared/index-CrwhANF5.mjs +0 -78
  369. package/dist/shared/index-Cs-LC7ZG.mjs +0 -150
  370. package/dist/shared/index-CutbNRjY.mjs +0 -198
  371. package/dist/shared/index-CyJHJCj8.cjs +0 -1
  372. package/dist/shared/index-CypWMqI4.cjs +0 -1
  373. package/dist/shared/index-Cz6Lo9RL.cjs +0 -1
  374. package/dist/shared/index-CzyB5ttX.cjs +0 -1
  375. package/dist/shared/index-D1cbnYac.mjs +0 -446
  376. package/dist/shared/index-D8-4wR07.mjs +0 -130
  377. package/dist/shared/index-D9dQaZtu.cjs +0 -1
  378. package/dist/shared/index-DEosiUQV.mjs +0 -245
  379. package/dist/shared/index-DFTSBy3g.mjs +0 -206
  380. package/dist/shared/index-DFnpyAa1.mjs +0 -69
  381. package/dist/shared/index-DI5COVol.cjs +0 -1
  382. package/dist/shared/index-DNMOtH4s.mjs +0 -36
  383. package/dist/shared/index-DQn_5j_f.cjs +0 -1
  384. package/dist/shared/index-DRICnDix.mjs +0 -295
  385. package/dist/shared/index-DS539-rn.mjs +0 -87
  386. package/dist/shared/index-DTOfhAXP.mjs +0 -74
  387. package/dist/shared/index-DULBwiHC.mjs +0 -234
  388. package/dist/shared/index-DVPk0jMO.cjs +0 -1
  389. package/dist/shared/index-DWrymMO5.cjs +0 -1
  390. package/dist/shared/index-DYYPqv3Y.cjs +0 -1
  391. package/dist/shared/index-DZzMTGSJ.cjs +0 -1
  392. package/dist/shared/index-D_l30Gzr.cjs +0 -1
  393. package/dist/shared/index-Db7PhnjA.cjs +0 -1
  394. package/dist/shared/index-DdoFHdjY.mjs +0 -307
  395. package/dist/shared/index-DeBjILEK.cjs +0 -1
  396. package/dist/shared/index-DePXY0TI.cjs +0 -1
  397. package/dist/shared/index-DgPQ8292.cjs +0 -1
  398. package/dist/shared/index-Di3R0FOU.cjs +0 -1
  399. package/dist/shared/index-DiNSSXC8.mjs +0 -76
  400. package/dist/shared/index-DmEwKHe4.cjs +0 -1
  401. package/dist/shared/index-DnFQkBfl.cjs +0 -1
  402. package/dist/shared/index-DnexuGuJ.cjs +0 -1
  403. package/dist/shared/index-DniPcZnL.mjs +0 -52
  404. package/dist/shared/index-DpitpmqK.mjs +0 -205
  405. package/dist/shared/index-DtXU2qQS.cjs +0 -1
  406. package/dist/shared/index-Du-FNseo.cjs +0 -1
  407. package/dist/shared/index-DwHzztSj.cjs +0 -1
  408. package/dist/shared/index-DxFfP2Fn.cjs +0 -1
  409. package/dist/shared/index-DyqFfMhy.mjs +0 -365
  410. package/dist/shared/index-Hn-IGtqe.cjs +0 -1
  411. package/dist/shared/index-Nx_w1JYm.cjs +0 -1
  412. package/dist/shared/index-R6vvV3td.cjs +0 -1
  413. package/dist/shared/index-TMhQv4oD.mjs +0 -104
  414. package/dist/shared/index-VtJrvPka.mjs +0 -27
  415. package/dist/shared/index-YWKumDEW.mjs +0 -61
  416. package/dist/shared/index-_AB6uqZw.mjs +0 -51
  417. package/dist/shared/index-bvvNTmuM.mjs +0 -105
  418. package/dist/shared/index-fVS62tLm.mjs +0 -81
  419. package/dist/shared/index-gOUVgYd_.cjs +0 -1
  420. package/dist/shared/index-gU6HjdHv.mjs +0 -311
  421. package/dist/shared/index-hPaHbb1Y.cjs +0 -1
  422. package/dist/shared/index-i0G6DcP0.cjs +0 -1
  423. package/dist/shared/index-jP71VQxo.cjs +0 -1
  424. package/dist/shared/index-jdGrSpGg.mjs +0 -2657
  425. package/dist/shared/index-jsEFCWaY.mjs +0 -175
  426. package/dist/shared/index-lsWZ_M5R.mjs +0 -369
  427. package/dist/shared/index-mKnRWsLn.cjs +0 -1
  428. package/dist/shared/index-xdsYNS2u.mjs +0 -53
  429. package/dist/shared/index-xhROPBam.mjs +0 -129
@@ -0,0 +1 @@
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;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),x=require("./index.vue_vue_type_style_index_0_lang-DHK86rdP.cjs"),B=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),w={class:"qy-menu-actions__panel"},T=["disabled","data-action-key","onClick"],C={key:0,class:"qy-menu-actions__loading"},b={key:0,class:"qy-menu-actions__empty"},E={key:1,class:"qy-menu-actions__inline"},V=["disabled","data-action-key","onClick"],z={key:0,class:"qy-menu-actions__loading"},A={key:0,class:"qy-menu-actions__empty"},M=e.defineComponent({name:"QyMenuActions",__name:"index",props:{actions:{default:()=>[]},row:{},rowIndex:{},context:{},mode:{default:"inline"},emptyText:{default:"无数据"},popoverWidth:{default:150},confirmMethod:{}},emits:["action","confirm-required"],setup(r,{emit:f}){const l=r,y=f,p=e.computed(()=>{var n,o;return{...l.context,row:l.row??((n=l.context)==null?void 0:n.row),rowIndex:l.rowIndex??((o=l.context)==null?void 0:o.rowIndex)}}),d=e.ref(!1),i=e.ref(new Set),v=(n,o)=>({...p.value,target:o.currentTarget,hide:h,setLoading:t=>q(n,t)}),u=n=>typeof n=="function"?n(p.value):!!n,s=e.computed(()=>l.actions.filter(n=>!u(n.hidden))),g=e.computed(()=>s.value.some(n=>a(n))),m=n=>u(n.disabled)||a(n),a=n=>i.value.has(n.key)||u(n.loading),k=(n,o)=>{const t=n.type||o;return{default:"var(--el-text-color-primary)",primary:"var(--el-color-primary)",success:"var(--el-color-success)",warning:"var(--el-color-warning)",danger:"var(--el-color-danger)"}[t]},_=async(n,o)=>{if(o.stopPropagation(),m(n))return;const t=v(n,o);if(n.confirm){if(!l.confirmMethod){y("confirm-required",n,t);return}if(!await l.confirmMethod(n,t))return}y("action",n,t)};function h(){d.value=!1}function q(n,o){const t=new Set(i.value);o?t.add(n.key):t.delete(n.key),i.value=t}return e.onBeforeUnmount(()=>{i.value=new Set}),(n,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["qy-menu-actions",`is-${r.mode}`])},[r.mode==="popover"?(e.openBlock(),e.createBlock(x._sfc_main,{key:0,open:d.value,"onUpdate:open":o[0]||(o[0]=t=>d.value=t),trigger:"hover",placement:"left",width:r.popoverWidth,"hide-delay":g.value?999999:100,"show-arrow":!1},{reference:e.withCtx(()=>[...o[1]||(o[1]=[e.createElementVNode("button",{class:"qy-menu-actions__trigger",type:"button","aria-label":"行操作"},[e.createElementVNode("svg",{class:"qy-menu-actions__trigger-icon",viewBox:"0 0 24 24","aria-hidden":"true"},[e.createElementVNode("path",{fill:"currentColor",d:"M8 17q.425 0 .713-.288T9 16q0-.425-.288-.712T8 15q-.425 0-.712.288T7 16q0 .425.288.713T8 17m0-4q.425 0 .713-.288T9 12q0-.425-.288-.712T8 11q-.425 0-.712.288T7 12q0 .425.288.713T8 13m0-4q.425 0 .713-.288T9 8q0-.425-.288-.712T8 7q-.425 0-.712.288T7 8q0 .425.288.713T8 9m3 8h6v-2h-6zm0-4h6v-2h-6zm0-4h6V7h-6zM5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.587 1.413T19 21zm0-2h14V5H5z"})])],-1)])]),default:e.withCtx(()=>[e.createElementVNode("div",w,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,t=>(e.openBlock(),e.createElementBlock("button",{key:t.key,class:e.normalizeClass(["qy-menu-actions__item",[`is-${t.type||"default"}`,{"is-loading":a(t)}]]),disabled:m(t),"data-action-key":t.key,style:e.normalizeStyle({color:k(t,"default")}),type:"button",onClick:c=>_(t,c)},[a(t)?(e.openBlock(),e.createElementBlock("span",C)):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(t.label),1)],14,T))),128)),s.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",b,e.toDisplayString(r.emptyText),1))])]),_:1},8,["open","width","hide-delay"])):(e.openBlock(),e.createElementBlock("div",E,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,t=>(e.openBlock(),e.createElementBlock("button",{key:t.key,class:e.normalizeClass(["qy-menu-actions__item",[`is-${t.type||"primary"}`,{"is-loading":a(t)}]]),disabled:m(t),"data-action-key":t.key,style:e.normalizeStyle({color:k(t,"primary")}),type:"button",onClick:c=>_(t,c)},[a(t)?(e.openBlock(),e.createElementBlock("span",z)):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(t.label),1)],14,V))),128)),s.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",A,e.toDisplayString(r.emptyText),1))]))],2))}}),N=B._export_sfc(M,[["__scopeId","data-v-44454ac9"]]);exports.MenuActions=N;
@@ -0,0 +1,107 @@
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-BXWEn5kQ.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
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),I=["type","disabled","aria-busy","aria-disabled","aria-pressed"],E={key:0,class:"qy-button__icon qy-button__icon--loading","aria-hidden":"true"},S={key:1,class:"qy-button__icon qy-button__icon--prefix","aria-hidden":"true"},T={key:2,class:"qy-button__content"},z={key:3,class:"qy-button__icon qy-button__icon--suffix","aria-hidden":"true"},V={key:4,class:"qy-button__icon qy-button__icon--suffix","aria-hidden":"true"},$=e.defineComponent({name:"QyButton",inheritAttrs:!1,__name:"index",props:{type:{},variant:{},size:{default:"md"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},active:{type:Boolean,default:!1},block:{type:Boolean,default:!1},round:{type:Boolean,default:!1},nativeType:{default:"button"},prefixIcon:{},suffixIcon:{},iconOnly:{type:Boolean,default:!1}},emits:["click"],setup(o,{emit:y}){const m=["default","primary","success","warning","danger","text","ghost","link"],b=["sm","md","lg"],v=["button","submit","reset"],n=o,k=y,a=e.useAttrs(),c=e.useSlots(),B=e.computed(()=>{const t=n.variant||n.type||"default";return m.includes(t)?t:"default"}),_=e.computed(()=>b.includes(n.size)?n.size:"md"),g=e.computed(()=>v.includes(n.nativeType)?n.nativeType:"button"),l=e.computed(()=>n.disabled||n.loading),u=e.computed(()=>p(n.prefixIcon)),i=e.computed(()=>p(n.suffixIcon)),r=e.computed(()=>!!(u.value||c.prefix)),d=e.computed(()=>!!(i.value||c.suffix));e.computed(()=>{const t=a["aria-label"],s=a.title;return f(t)||f(s)});const x=e.computed(()=>{const t=a["aria-pressed"];return t??(n.active?"true":void 0)}),h=e.computed(()=>[`qy-button--${B.value}`,`qy-button--${_.value}`,{"is-disabled":n.disabled,"is-loading":n.loading,"is-active":n.active,"is-block":n.block,"is-round":n.round,"is-icon-only":n.iconOnly}]);e.watchEffect(()=>{});function f(t){return typeof t=="string"?t.trim().length>0:t!=null&&t!==!1}function p(t){if(!(!t||typeof t=="string"))return e.markRaw(e.toRaw(t))}function q(t){if(l.value){t.preventDefault();return}k("click",t)}return(t,s)=>(e.openBlock(),e.createElementBlock("button",e.mergeProps(e.unref(a),{class:["qy-button",h.value],type:g.value,disabled:l.value,"aria-busy":o.loading?"true":void 0,"aria-disabled":l.value?"true":void 0,"aria-pressed":x.value,onClick:q}),[o.loading?(e.openBlock(),e.createElementBlock("span",E,[...s[0]||(s[0]=[e.createElementVNode("span",{class:"qy-button__spinner"},null,-1)])])):r.value?(e.openBlock(),e.createElementBlock("span",S,[e.renderSlot(t.$slots,"prefix",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.value)))],!0)])):e.createCommentVNode("",!0),o.iconOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",T,[e.renderSlot(t.$slots,"default",{},void 0,!0)])),!o.loading&&!o.iconOnly&&d.value?(e.openBlock(),e.createElementBlock("span",z,[e.renderSlot(t.$slots,"suffix",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.value)))],!0)])):!o.loading&&o.iconOnly&&!r.value&&d.value?(e.openBlock(),e.createElementBlock("span",V,[e.renderSlot(t.$slots,"suffix",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.value)))],!0)])):e.createCommentVNode("",!0)],16,I))}}),D=C._export_sfc($,[["__scopeId","data-v-9a5e3d97"]]);exports.Button=D;
@@ -0,0 +1,127 @@
1
+ import { defineComponent as S, useAttrs as w, useSlots as D, computed as n, watchEffect as E, markRaw as P, toRaw as V, openBlock as o, createElementBlock as s, mergeProps as A, unref as N, createElementVNode as R, renderSlot as u, createBlock as d, resolveDynamicComponent as f, createCommentVNode as y } from "vue";
2
+ import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
3
+ const Q = ["type", "disabled", "aria-busy", "aria-disabled", "aria-pressed"], j = {
4
+ key: 0,
5
+ class: "qy-button__icon qy-button__icon--loading",
6
+ "aria-hidden": "true"
7
+ }, F = {
8
+ key: 1,
9
+ class: "qy-button__icon qy-button__icon--prefix",
10
+ "aria-hidden": "true"
11
+ }, G = {
12
+ key: 2,
13
+ class: "qy-button__content"
14
+ }, H = {
15
+ key: 3,
16
+ class: "qy-button__icon qy-button__icon--suffix",
17
+ "aria-hidden": "true"
18
+ }, J = {
19
+ key: 4,
20
+ class: "qy-button__icon qy-button__icon--suffix",
21
+ "aria-hidden": "true"
22
+ }, K = /* @__PURE__ */ S({
23
+ name: "QyButton",
24
+ inheritAttrs: !1,
25
+ __name: "index",
26
+ props: {
27
+ type: {},
28
+ variant: {},
29
+ size: { default: "md" },
30
+ disabled: { type: Boolean, default: !1 },
31
+ loading: { type: Boolean, default: !1 },
32
+ active: { type: Boolean, default: !1 },
33
+ block: { type: Boolean, default: !1 },
34
+ round: { type: Boolean, default: !1 },
35
+ nativeType: { default: "button" },
36
+ prefixIcon: {},
37
+ suffixIcon: {},
38
+ iconOnly: { type: Boolean, default: !1 }
39
+ },
40
+ emits: ["click"],
41
+ setup(a, { emit: g }) {
42
+ const h = [
43
+ "default",
44
+ "primary",
45
+ "success",
46
+ "warning",
47
+ "danger",
48
+ "text",
49
+ "ghost",
50
+ "link"
51
+ ], k = ["sm", "md", "lg"], B = ["button", "submit", "reset"], t = a, q = g, i = w(), p = D(), I = n(() => {
52
+ const e = t.variant || t.type || "default";
53
+ return h.includes(e) ? e : "default";
54
+ }), C = n(
55
+ () => k.includes(t.size) ? t.size : "md"
56
+ ), T = n(
57
+ () => B.includes(t.nativeType) ? t.nativeType : "button"
58
+ ), r = n(() => t.disabled || t.loading), b = n(() => x(t.prefixIcon)), c = n(() => x(t.suffixIcon)), v = n(() => !!(b.value || p.prefix)), m = n(() => !!(c.value || p.suffix));
59
+ n(() => {
60
+ const e = i["aria-label"], l = i.title;
61
+ return _(e) || _(l);
62
+ });
63
+ const z = n(() => {
64
+ const e = i["aria-pressed"];
65
+ return e ?? (t.active ? "true" : void 0);
66
+ }), $ = n(() => [
67
+ `qy-button--${I.value}`,
68
+ `qy-button--${C.value}`,
69
+ {
70
+ "is-disabled": t.disabled,
71
+ "is-loading": t.loading,
72
+ "is-active": t.active,
73
+ "is-block": t.block,
74
+ "is-round": t.round,
75
+ "is-icon-only": t.iconOnly
76
+ }
77
+ ]);
78
+ E(() => {
79
+ });
80
+ function _(e) {
81
+ return typeof e == "string" ? e.trim().length > 0 : e != null && e !== !1;
82
+ }
83
+ function x(e) {
84
+ if (!(!e || typeof e == "string"))
85
+ return P(V(e));
86
+ }
87
+ function O(e) {
88
+ if (r.value) {
89
+ e.preventDefault();
90
+ return;
91
+ }
92
+ q("click", e);
93
+ }
94
+ return (e, l) => (o(), s("button", A(N(i), {
95
+ class: ["qy-button", $.value],
96
+ type: T.value,
97
+ disabled: r.value,
98
+ "aria-busy": a.loading ? "true" : void 0,
99
+ "aria-disabled": r.value ? "true" : void 0,
100
+ "aria-pressed": z.value,
101
+ onClick: O
102
+ }), [
103
+ a.loading ? (o(), s("span", j, [...l[0] || (l[0] = [
104
+ R("span", { class: "qy-button__spinner" }, null, -1)
105
+ ])])) : v.value ? (o(), s("span", F, [
106
+ u(e.$slots, "prefix", {}, () => [
107
+ (o(), d(f(b.value)))
108
+ ], !0)
109
+ ])) : y("", !0),
110
+ a.iconOnly ? y("", !0) : (o(), s("span", G, [
111
+ u(e.$slots, "default", {}, void 0, !0)
112
+ ])),
113
+ !a.loading && !a.iconOnly && m.value ? (o(), s("span", H, [
114
+ u(e.$slots, "suffix", {}, () => [
115
+ (o(), d(f(c.value)))
116
+ ], !0)
117
+ ])) : !a.loading && a.iconOnly && !v.value && m.value ? (o(), s("span", J, [
118
+ u(e.$slots, "suffix", {}, () => [
119
+ (o(), d(f(c.value)))
120
+ ], !0)
121
+ ])) : y("", !0)
122
+ ], 16, Q));
123
+ }
124
+ }), W = /* @__PURE__ */ L(K, [["__scopeId", "data-v-9a5e3d97"]]);
125
+ export {
126
+ W as B
127
+ };
@@ -0,0 +1,285 @@
1
+ import { defineComponent as D, useAttrs as q, useSlots as B, inject as V, computed as y, markRaw as M, toRaw as F, ref as W, watchEffect as O, openBlock as I, createElementBlock as _, mergeProps as Y, unref as Q, createBlock as A, resolveDynamicComponent as N, createElementVNode as Z, normalizeClass as G, renderSlot as H, normalizeProps as J, guardReactiveProps as U, createCommentVNode as X } from "vue";
2
+ import { _ as ee } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
3
+ const R = Symbol("QyIconRegistry"), E = /* @__PURE__ */ new WeakMap();
4
+ function C(e) {
5
+ const r = [], o = /* @__PURE__ */ new Map();
6
+ for (const s of (e == null ? void 0 : e.icons) ?? []) {
7
+ const n = w(s == null ? void 0 : s.name);
8
+ if (!n)
9
+ throw new Error("QyIcon definition name must not be empty.");
10
+ const a = b(n);
11
+ if (o.has(a))
12
+ throw new Error(`Duplicate icon name "${n}".`);
13
+ const i = re(s, n);
14
+ r.push(i), o.set(a, i);
15
+ }
16
+ const c = [], f = /* @__PURE__ */ new Map();
17
+ for (const s of x(e == null ? void 0 : e.aliases)) {
18
+ const n = w(s.name), a = w(s.target), i = b(n), v = b(a);
19
+ if (!n)
20
+ throw new Error("QyIcon alias name must not be empty.");
21
+ if (!a)
22
+ throw new Error(`QyIcon alias "${n}" target must not be empty.`);
23
+ if (o.has(i))
24
+ throw new Error(`Icon alias "${n}" conflicts with a canonical icon name.`);
25
+ if (f.has(i))
26
+ throw new Error(`Duplicate icon alias "${n}".`);
27
+ const p = o.get(v);
28
+ if (!p)
29
+ throw new Error(`Icon alias "${n}" target "${a}" not found.`);
30
+ f.set(i, b(p.name)), c.push(Object.freeze({ name: n, target: p.name }));
31
+ }
32
+ let l = Object.freeze({
33
+ definitions: Object.freeze(r),
34
+ aliases: Object.freeze(c),
35
+ byName: o,
36
+ aliasTargets: f
37
+ }), m, u = !1;
38
+ const d = () => {
39
+ if (!e.loader) return m ?? (m = Promise.resolve());
40
+ u = !1;
41
+ let s;
42
+ try {
43
+ s = e.loader();
44
+ } catch (n) {
45
+ s = Promise.reject(n);
46
+ }
47
+ return m = Promise.resolve(s).then((n) => {
48
+ let a;
49
+ try {
50
+ a = C({
51
+ icons: [...l.definitions, ...n.icons],
52
+ aliases: [...l.aliases, ...x(n.aliases)]
53
+ });
54
+ } catch (i) {
55
+ const v = i instanceof Error ? i.message : String(i);
56
+ throw new Error(`Icon registry load conflict: ${v}`);
57
+ }
58
+ l = E.get(a), E.set(h, l);
59
+ }).catch((n) => {
60
+ throw u = !0, n;
61
+ }), m;
62
+ }, h = Object.freeze({
63
+ resolve(s) {
64
+ const n = b(w(s)), a = l.aliasTargets.get(n) ?? n, i = l.byName.get(a);
65
+ return i ? P(i) : void 0;
66
+ },
67
+ has(s) {
68
+ const n = b(w(s));
69
+ return l.byName.has(l.aliasTargets.get(n) ?? n);
70
+ },
71
+ list() {
72
+ return Object.freeze(l.definitions.map(P));
73
+ },
74
+ load() {
75
+ return m ?? d();
76
+ },
77
+ retry() {
78
+ return u ? d() : Promise.reject(new Error("QyIcon registry retry is only available after a failed load."));
79
+ }
80
+ });
81
+ return E.set(h, l), h;
82
+ }
83
+ function ue(...e) {
84
+ const r = [], o = [];
85
+ for (const c of e) {
86
+ const f = E.get(c);
87
+ if (!f)
88
+ throw new TypeError("mergeQyIconRegistries accepts only QyIcon registries created by this package.");
89
+ r.push(...f.definitions), o.push(...f.aliases);
90
+ }
91
+ try {
92
+ return C({ icons: r, aliases: o });
93
+ } catch (c) {
94
+ const f = c instanceof Error ? c.message : String(c);
95
+ throw new Error(`Icon registry merge conflict: ${f}`);
96
+ }
97
+ }
98
+ function fe(e) {
99
+ if (!E.has(e))
100
+ throw new TypeError("createQyIconPlugin accepts only a QyIcon registry created by this package.");
101
+ return Object.freeze({
102
+ install(r) {
103
+ r.provide(R, e);
104
+ }
105
+ });
106
+ }
107
+ function w(e) {
108
+ const r = typeof e == "string" || typeof e == "number" ? String(e).trim() : "";
109
+ if (!r) return "";
110
+ const o = /^#icon-(.+)$/i.exec(r);
111
+ if (o) return o[1].trim();
112
+ const c = /^icon-\[([^\[\]]+?)--([^\[\]]+?)\]$/i.exec(r);
113
+ return c ? `iconify:${c[1]}:${c[2]}` : r;
114
+ }
115
+ function b(e) {
116
+ return e.toLocaleLowerCase();
117
+ }
118
+ function x(e) {
119
+ return e ? Array.isArray(e) ? [...e] : Object.entries(e).map(([r, o]) => ({ name: r, target: o })) : [];
120
+ }
121
+ function re(e, r) {
122
+ const o = {
123
+ ...e.label === void 0 ? {} : { label: te(e.label, r) },
124
+ ...e.keywords === void 0 ? {} : { keywords: oe(e.keywords, r) }
125
+ };
126
+ switch (e.source) {
127
+ case "symbol":
128
+ return z({
129
+ name: r,
130
+ source: "symbol",
131
+ value: k("symbol", e.value, r),
132
+ ...o
133
+ });
134
+ case "component":
135
+ return z({
136
+ name: r,
137
+ source: "component",
138
+ value: k("component", e.value, r),
139
+ ...o
140
+ });
141
+ case "class":
142
+ return z({
143
+ name: r,
144
+ source: "class",
145
+ value: k("class", e.value, r),
146
+ ...o
147
+ });
148
+ default:
149
+ throw new Error(`QyIcon definition "${r}" has unsupported source "${String(e.source)}".`);
150
+ }
151
+ }
152
+ function k(e, r, o) {
153
+ if (e === "symbol") {
154
+ if (typeof r != "string" || !/^#[^\s#]+$/.test(r))
155
+ throw new Error(`QyIcon symbol "${o}" must be a same-document #fragment.`);
156
+ return r;
157
+ }
158
+ if (e === "component") {
159
+ if (typeof r != "object" && typeof r != "function" || r === null)
160
+ throw new Error(`QyIcon component "${o}" must be a Vue component.`);
161
+ return r;
162
+ }
163
+ if (e !== "class")
164
+ throw new Error(`QyIcon definition "${o}" has unsupported source "${String(e)}".`);
165
+ if (typeof r != "string" || !r.trim() || !/^[A-Za-z0-9_:.\/\[\]%-]+(?:\s+[A-Za-z0-9_:.\/\[\]%-]+)*$/.test(r.trim()))
166
+ throw new Error(`QyIcon class "${o}" must be a trusted static class string.`);
167
+ return r.trim();
168
+ }
169
+ function te(e, r) {
170
+ if (typeof e != "string")
171
+ throw new Error(`QyIcon label "${r}" must be a string.`);
172
+ return e;
173
+ }
174
+ function oe(e, r) {
175
+ if (!Array.isArray(e) || e.some((o) => typeof o != "string"))
176
+ throw new Error(`QyIcon keywords "${r}" must be strings.`);
177
+ return Object.freeze([...e]);
178
+ }
179
+ function z(e) {
180
+ return e.keywords && !Object.isFrozen(e.keywords) && (e = { ...e, keywords: Object.freeze([...e.keywords]) }), Object.freeze(e);
181
+ }
182
+ function P(e) {
183
+ return z({
184
+ ...e,
185
+ ...e.keywords ? { keywords: [...e.keywords] } : {}
186
+ });
187
+ }
188
+ const ne = ["role", "aria-label", "aria-hidden", "data-qy-icon-missing"], se = {
189
+ key: 1,
190
+ "aria-hidden": "true",
191
+ focusable: "false"
192
+ }, ae = ["href", "xlink:href"], ie = /* @__PURE__ */ D({
193
+ name: "QyIcon",
194
+ inheritAttrs: !1,
195
+ __name: "index",
196
+ props: {
197
+ name: {},
198
+ icon: {},
199
+ size: { default: "1em" },
200
+ color: { default: "currentColor" },
201
+ spin: { type: Boolean, default: !1 },
202
+ label: {}
203
+ },
204
+ setup(e) {
205
+ const r = e, o = q(), c = B(), f = V(R, null), l = y(
206
+ () => r.icon ? M(F(r.icon)) : void 0
207
+ ), m = y(
208
+ () => r.name === void 0 || r.name === null ? "" : w(r.name)
209
+ ), u = y(() => {
210
+ if (!(r.icon || !f || !m.value))
211
+ return f.resolve(m.value);
212
+ }), d = W(null), h = y(() => !!(!r.icon && m.value && !u.value)), s = y(() => {
213
+ const t = typeof r.label == "string" ? r.label.trim() : "";
214
+ if (t) return t;
215
+ const g = o["aria-label"];
216
+ return L(g) ? String(g) : "";
217
+ }), n = y(() => s.value ? "img" : o.role), a = y(() => K(r.size)), i = y(() => ({
218
+ width: a.value,
219
+ height: a.value,
220
+ fontSize: a.value,
221
+ color: r.color || "currentColor"
222
+ })), v = y(() => {
223
+ const t = {};
224
+ for (const [g, $] of Object.entries(o))
225
+ T(g) && (t[g] = $);
226
+ return t;
227
+ }), p = y(() => Object.freeze({ name: m.value }));
228
+ O(() => {
229
+ const t = u.value;
230
+ d.value && (t == null ? void 0 : t.source) === "symbol" && (d.value.setAttributeNS(
231
+ "http://www.w3.org/1999/xlink",
232
+ "xlink:href",
233
+ t.value
234
+ ), d.value.setAttribute("xlink:href", t.value));
235
+ }), O(() => {
236
+ });
237
+ function K(t) {
238
+ return typeof t == "number" ? Number.isFinite(t) && t > 0 ? `${t}px` : "1em" : t.trim() || "1em";
239
+ }
240
+ function L(t) {
241
+ return typeof t == "string" ? t.trim().length > 0 : t != null && t !== !1;
242
+ }
243
+ function T(t) {
244
+ return t !== "class" && t !== "style" && t !== "role" && t !== "aria-label" && t !== "aria-hidden" && t !== "data-qy-icon-missing" && (t === "id" || t === "title" || t.startsWith("data-") || t.startsWith("aria-"));
245
+ }
246
+ return (t, g) => {
247
+ var $, S, j;
248
+ return I(), _("span", Y(v.value, {
249
+ class: ["qy-icon", [Q(o).class, { "is-spin": r.spin }]],
250
+ style: [Q(o).style, i.value],
251
+ role: n.value,
252
+ "aria-label": s.value || void 0,
253
+ "aria-hidden": s.value ? void 0 : "true",
254
+ "data-qy-icon-missing": h.value ? m.value : void 0
255
+ }), [
256
+ l.value ? (I(), A(N(l.value), {
257
+ key: 0,
258
+ "aria-hidden": "true"
259
+ })) : (($ = u.value) == null ? void 0 : $.source) === "symbol" ? (I(), _("svg", se, [
260
+ Z("use", {
261
+ ref_key: "symbolElement",
262
+ ref: d,
263
+ href: u.value.value,
264
+ "xlink:href": u.value.value
265
+ }, null, 8, ae)
266
+ ])) : ((S = u.value) == null ? void 0 : S.source) === "component" ? (I(), A(N(u.value.value), {
267
+ key: 2,
268
+ "aria-hidden": "true"
269
+ })) : ((j = u.value) == null ? void 0 : j.source) === "class" ? (I(), _("span", {
270
+ key: 3,
271
+ class: G(["qy-icon__class", u.value.value]),
272
+ "aria-hidden": "true"
273
+ }, null, 2)) : h.value && Q(c).fallback ? H(t.$slots, "fallback", J(U(p.value)), void 0, !0, 4) : X("", !0)
274
+ ], 16, ne);
275
+ };
276
+ }
277
+ }), me = /* @__PURE__ */ ee(ie, [["__scopeId", "data-v-e4e9c6ae"]]);
278
+ export {
279
+ me as I,
280
+ R as Q,
281
+ C as a,
282
+ fe as c,
283
+ ue as m,
284
+ w as n
285
+ };
@@ -0,0 +1,68 @@
1
+ import { defineComponent as s, useAttrs as r, computed as m, openBlock as f, createBlock as v, unref as b, mergeProps as h } from "vue";
2
+ import { ElSwitch as x } from "element-plus";
3
+ import { _ as g } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
4
+ const V = /* @__PURE__ */ s({
5
+ name: "QySwitch",
6
+ inheritAttrs: !1,
7
+ __name: "index",
8
+ props: {
9
+ modelValue: { type: [Boolean, String, Number], default: !1 },
10
+ activeValue: { type: [Boolean, String, Number], default: !0 },
11
+ inactiveValue: { type: [Boolean, String, Number], default: !1 },
12
+ disabled: { type: Boolean, default: !1 },
13
+ loading: { type: Boolean, default: !1 },
14
+ size: {},
15
+ activeText: { default: "" },
16
+ inactiveText: { default: "" },
17
+ inlinePrompt: { type: Boolean, default: !1 },
18
+ name: { default: "" },
19
+ id: {},
20
+ tabindex: {},
21
+ ariaLabel: {}
22
+ },
23
+ emits: ["update:modelValue", "change", "focus", "blur"],
24
+ setup(e, { emit: i }) {
25
+ const t = i, l = r(), n = m(
26
+ () => Object.fromEntries(
27
+ Object.entries(l).filter(
28
+ ([a]) => a === "class" || a === "style" || a === "role" || a === "title" || a.startsWith("data-") || a.startsWith("aria-")
29
+ )
30
+ )
31
+ );
32
+ function d(a) {
33
+ t("focus", a);
34
+ }
35
+ function u(a) {
36
+ t("blur", a);
37
+ }
38
+ function o(a) {
39
+ e.disabled || e.loading || t("update:modelValue", a);
40
+ }
41
+ function c(a) {
42
+ e.disabled || e.loading || t("change", a);
43
+ }
44
+ return (a, B) => (f(), v(b(x), h(n.value, {
45
+ class: "qy-switch",
46
+ "model-value": e.modelValue,
47
+ "active-value": e.activeValue,
48
+ "inactive-value": e.inactiveValue,
49
+ disabled: e.disabled,
50
+ loading: e.loading,
51
+ size: e.size,
52
+ "active-text": e.activeText,
53
+ "inactive-text": e.inactiveText,
54
+ "inline-prompt": e.inlinePrompt,
55
+ name: e.name,
56
+ id: e.id,
57
+ tabindex: e.tabindex,
58
+ "aria-label": e.ariaLabel,
59
+ "onUpdate:modelValue": o,
60
+ onChange: c,
61
+ onFocusin: d,
62
+ onFocusout: u
63
+ }), null, 16, ["model-value", "active-value", "inactive-value", "disabled", "loading", "size", "active-text", "inactive-text", "inline-prompt", "name", "id", "tabindex", "aria-label"]));
64
+ }
65
+ }), z = /* @__PURE__ */ g(V, [["__scopeId", "data-v-35d68835"]]);
66
+ export {
67
+ z as S
68
+ };
@@ -0,0 +1 @@
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 +1 @@
1
- "use strict";const n=require("./index-CypWMqI4.cjs"),c=require("./install-c8il9DQv.cjs"),t=c.withInstall(n.Icon,"QyIcon");exports.QyIcon=t;
1
+ "use strict";const n=require("./index-9GEoEe00.cjs"),c=require("./install-c8il9DQv.cjs"),t=c.withInstall(n.Icon,"QyIcon");exports.QyIcon=t;
@@ -0,0 +1 @@
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;