@qynpm/ui 1.0.40 → 1.0.42

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 +1797 -1797
  2. package/dist/index.cjs +19 -19
  3. package/dist/index.mjs +21 -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 +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 -1
  87. package/dist/qy-pagination/index.mjs +1 -1
  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-CBhrdEIf.mjs → index-2D5AFexl.mjs} +1 -1
  147. package/dist/shared/index-8Iwma3ls.mjs +222 -0
  148. package/dist/shared/index-B25yA5j-.mjs +71 -0
  149. package/dist/shared/index-B3GsIwhf.mjs +142 -0
  150. package/dist/shared/index-B3XwO-Lc.mjs +127 -0
  151. package/dist/shared/index-B3YHS3Aa.mjs +54 -0
  152. package/dist/shared/index-BEcS8y8g.mjs +68 -0
  153. package/dist/shared/index-BNssRW4d.mjs +90 -0
  154. package/dist/shared/index-BPnHycGa.cjs +1 -0
  155. package/dist/shared/index-BSTMCPDj.mjs +72 -0
  156. package/dist/shared/index-BhvOSOfi.mjs +766 -0
  157. package/dist/shared/index-BjqJCq-6.mjs +293 -0
  158. package/dist/shared/index-Bq9quq2D.cjs +1 -0
  159. package/dist/shared/index-ByQyMTPg.mjs +285 -0
  160. package/dist/shared/index-CGq7Q_hV.mjs +119 -0
  161. package/dist/shared/{index-D97QYFZw.cjs → index-CUlhX6fW.cjs} +1 -1
  162. package/dist/shared/index-CVWru9T3.cjs +1 -0
  163. package/dist/shared/index-CVYNG8Fc.cjs +1 -0
  164. package/dist/shared/index-CiE6qJCJ.mjs +377 -0
  165. package/dist/shared/index-CnVhquq5.cjs +1 -0
  166. package/dist/shared/index-Co84fsS5.mjs +225 -0
  167. package/dist/shared/index-D27mwR57.cjs +1 -0
  168. package/dist/shared/index-DAztNKSp.cjs +1 -0
  169. package/dist/shared/index-DKw-seoh.cjs +1 -0
  170. package/dist/shared/index-DRIoLeFE.mjs +162 -0
  171. package/dist/shared/index-DRugp8x0.cjs +1 -0
  172. package/dist/shared/index-DTbGlDqr.cjs +1 -0
  173. package/dist/shared/index-DXZ6Y6wd.mjs +107 -0
  174. package/dist/shared/index-DiEag4sK.cjs +1 -0
  175. package/dist/shared/index-DuP-b_eY.cjs +1 -0
  176. package/dist/shared/index-DvFMgAcu.mjs +149 -0
  177. package/dist/shared/index-EIFVul2W.cjs +1 -0
  178. package/dist/shared/index-HNFq7v-A.cjs +1 -0
  179. package/dist/shared/index-Mj7JZt7y.cjs +1 -0
  180. package/dist/shared/index-MyDDX-zj.cjs +1 -0
  181. package/dist/shared/index-QewoB6N4.mjs +2362 -0
  182. package/dist/shared/index-d76Z3yrB.cjs +1 -0
  183. package/dist/shared/index-gMrQlV5n.cjs +1 -0
  184. package/dist/shared/index-rSrDnOpu.cjs +1 -0
  185. package/dist/shared/index-zo5J-y0C.mjs +157 -0
  186. package/dist/shared/{index-CCVlab6d.mjs → index.vue_vue_type_script_lang-69zSOotQ.mjs} +10 -11
  187. package/dist/shared/index.vue_vue_type_script_lang-8AT3-xU-.cjs +1 -0
  188. package/dist/shared/{index-EPcAlzgc.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-1Vw54aYL.mjs → index.vue_vue_type_script_lang-BaIOvoQn.mjs} +5 -6
  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-BG3XKumS.mjs → index.vue_vue_type_script_lang-Bk0kLg5l.mjs} +8 -9
  194. package/dist/shared/index.vue_vue_type_script_lang-BkoqbceR.cjs +1 -0
  195. package/dist/shared/index.vue_vue_type_script_lang-BnmY1ndj.mjs +77 -0
  196. package/dist/shared/index.vue_vue_type_script_lang-By3jd4gw.cjs +1 -0
  197. package/dist/shared/{index-Se0xx6vl.mjs → index.vue_vue_type_script_lang-C4JHCuXz.mjs} +13 -14
  198. package/dist/shared/{index-D_Imq4-m.mjs → index.vue_vue_type_script_lang-C9X0V5AK.mjs} +12 -13
  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-CrlLsoRF.mjs → index.vue_vue_type_script_lang-CZK0hDYa.mjs} +20 -21
  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-BPXJkcM1.mjs → index.vue_vue_type_script_lang-D7b9ABei.mjs} +19 -20
  210. package/dist/shared/{index-LDtOVxCE.mjs → index.vue_vue_type_script_lang-D7nzeBUR.mjs} +7 -8
  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-TVUj4Yp4.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-BQzQcTgt.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-B1I7mCIm.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-C96ZaggL.cjs +1 -0
  229. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CKp87br2.cjs +1 -0
  230. package/dist/shared/index.vue_vue_type_script_setup_true_lang-COAUEujY.mjs +48 -0
  231. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CqSJ_8hG.cjs +1 -0
  232. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Cr9PdvyR.cjs +1 -0
  233. package/dist/shared/index.vue_vue_type_script_setup_true_lang-D7BlbHN5.cjs +1 -0
  234. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DIWWHODS.mjs +197 -0
  235. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DUEhuwGQ.cjs +1 -0
  236. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DbLp1kvW.cjs +1 -0
  237. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Dd_nKJvH.mjs +19 -0
  238. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Dn29lZTs.mjs +106 -0
  239. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DwFGEW4B.mjs +143 -0
  240. package/dist/shared/index.vue_vue_type_script_setup_true_lang-EiHoQBXt.mjs +94 -0
  241. package/dist/shared/index.vue_vue_type_script_setup_true_lang-IyZesuKm.mjs +48 -0
  242. package/dist/shared/index.vue_vue_type_script_setup_true_lang-UBQQ6Z03.cjs +1 -0
  243. package/dist/shared/index.vue_vue_type_script_setup_true_lang-ccFLNRry.cjs +1 -0
  244. package/dist/shared/index.vue_vue_type_script_setup_true_lang-r7iyZzDS.mjs +61 -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-BXAUYDO7.mjs +404 -0
  251. package/dist/shared/index.vue_vue_type_style_index_0_lang-BXTkWo5P.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-D9DraThL.cjs +1 -0
  260. package/dist/shared/index.vue_vue_type_style_index_0_lang-DFAaBzkW.cjs +1 -0
  261. package/dist/shared/index.vue_vue_type_style_index_0_lang-DHK86rdP.cjs +1 -0
  262. package/dist/shared/index.vue_vue_type_style_index_0_lang-DSur831A.mjs +68 -0
  263. package/dist/shared/index.vue_vue_type_style_index_0_lang-DVXf-yUs.cjs +1 -0
  264. package/dist/shared/index.vue_vue_type_style_index_0_lang-Da67JRFL.cjs +1 -0
  265. package/dist/shared/index.vue_vue_type_style_index_0_lang-DbQkbvgb.mjs +317 -0
  266. package/dist/shared/index.vue_vue_type_style_index_0_lang-DsOg_Rum.mjs +128 -0
  267. package/dist/shared/index.vue_vue_type_style_index_0_lang-KHk9wRYT.mjs +298 -0
  268. package/dist/shared/index.vue_vue_type_style_index_0_lang-OHPkiKBo.cjs +1 -0
  269. package/dist/shared/index.vue_vue_type_style_index_0_lang-RiwA2WPO.cjs +1 -0
  270. package/dist/shared/{index-DZU3jXf9.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-GRwpbz1m.mjs → index.vue_vue_type_style_index_0_lang-gs0YJI91.mjs} +17 -18
  273. package/dist/shared/index.vue_vue_type_style_index_0_lang-hbNK_h45.cjs +1 -0
  274. package/index.d.ts +592 -592
  275. package/package.json +14 -10
  276. package/qy-action-bar/index.d.ts +5 -5
  277. package/qy-aside/index.d.ts +47 -47
  278. package/qy-button/index.d.ts +34 -34
  279. package/qy-checkbox/index.d.ts +45 -45
  280. package/qy-checkbox-group/index.d.ts +48 -48
  281. package/qy-col/index.d.ts +65 -65
  282. package/qy-color-picker/index.d.ts +36 -36
  283. package/qy-container/index.d.ts +49 -49
  284. package/qy-date-picker/index.d.ts +140 -140
  285. package/qy-dropdown/index.d.ts +40 -40
  286. package/qy-file-picker/index.d.ts +48 -48
  287. package/qy-form-section/index.d.ts +5 -5
  288. package/qy-fullscreen/index.d.ts +72 -72
  289. package/qy-icon/index.d.ts +99 -99
  290. package/qy-icon-picker/index.d.ts +56 -56
  291. package/qy-input/index.d.ts +32 -32
  292. package/qy-input-number/index.d.ts +15 -15
  293. package/qy-legacy-selection-dialog/index.d.ts +5 -5
  294. package/qy-main/index.d.ts +45 -45
  295. package/qy-popconfirm/index.d.ts +55 -55
  296. package/qy-popover/index.d.ts +63 -63
  297. package/qy-radio/index.d.ts +44 -44
  298. package/qy-radio-group/index.d.ts +60 -60
  299. package/qy-record-quote-search/index.d.ts +5 -5
  300. package/qy-remark-image/index.d.ts +5 -5
  301. package/qy-remote-select/index.d.ts +12 -12
  302. package/qy-row/index.d.ts +59 -59
  303. package/qy-search-input/index.d.ts +5 -5
  304. package/qy-select/index.d.ts +67 -67
  305. package/qy-selection-dialog/index.d.ts +5 -5
  306. package/qy-statistic/index.d.ts +61 -61
  307. package/qy-switch/index.d.ts +46 -46
  308. package/qy-tag/index.d.ts +44 -44
  309. package/qy-tooltip/index.d.ts +54 -54
  310. package/qy-watermark/index.d.ts +72 -72
  311. package/dist/shared/index-5vWL_IJI.mjs +0 -150
  312. package/dist/shared/index-7fIb2Tqw.mjs +0 -129
  313. package/dist/shared/index-9T0p3USM.cjs +0 -1
  314. package/dist/shared/index-B-zfoMbw.cjs +0 -1
  315. package/dist/shared/index-B1aU9mew.mjs +0 -77
  316. package/dist/shared/index-B26-GlFX.cjs +0 -1
  317. package/dist/shared/index-B63vgrS4.mjs +0 -73
  318. package/dist/shared/index-B97hTd-h.cjs +0 -1
  319. package/dist/shared/index-B9zEH5Yq.cjs +0 -1
  320. package/dist/shared/index-BA_tJgLE.cjs +0 -1
  321. package/dist/shared/index-BBIPQa5N.mjs +0 -76
  322. package/dist/shared/index-BCWvMvRL.cjs +0 -1
  323. package/dist/shared/index-BDJIWxaw.cjs +0 -1
  324. package/dist/shared/index-BFbAB8UH.mjs +0 -307
  325. package/dist/shared/index-BHGDbXoK.mjs +0 -82
  326. package/dist/shared/index-BInkt-Al.cjs +0 -1
  327. package/dist/shared/index-BKEw_9fh.mjs +0 -2660
  328. package/dist/shared/index-BNfu2YgX.mjs +0 -47
  329. package/dist/shared/index-BUSdZ-x8.cjs +0 -1
  330. package/dist/shared/index-BZDbBD41.cjs +0 -1
  331. package/dist/shared/index-Bc1ny9GC.cjs +0 -1
  332. package/dist/shared/index-BcscC86C.mjs +0 -206
  333. package/dist/shared/index-BiowqiSD.cjs +0 -1
  334. package/dist/shared/index-Bpl6Jh4H.cjs +0 -1
  335. package/dist/shared/index-BqojE7aF.cjs +0 -1
  336. package/dist/shared/index-BrZzYI8x.cjs +0 -1
  337. package/dist/shared/index-BsXys36-.cjs +0 -1
  338. package/dist/shared/index-BvmXE8aK.cjs +0 -1
  339. package/dist/shared/index-Bw3nETeY.cjs +0 -1
  340. package/dist/shared/index-BxxuaQGJ.cjs +0 -1
  341. package/dist/shared/index-BxymsnW0.cjs +0 -1
  342. package/dist/shared/index-BzpgGytE.mjs +0 -52
  343. package/dist/shared/index-BzzZmppN.mjs +0 -63
  344. package/dist/shared/index-C0rOcDsc.cjs +0 -1
  345. package/dist/shared/index-C1hAuubZ.mjs +0 -157
  346. package/dist/shared/index-C2BQtQPa.mjs +0 -61
  347. package/dist/shared/index-C62Loq0f.cjs +0 -1
  348. package/dist/shared/index-C7N8x3DK.mjs +0 -206
  349. package/dist/shared/index-C8aLbb8l.cjs +0 -1
  350. package/dist/shared/index-CA279UZp.mjs +0 -87
  351. package/dist/shared/index-CDjAMIpe.cjs +0 -1
  352. package/dist/shared/index-CDleTMJj.mjs +0 -395
  353. package/dist/shared/index-CG4I3nRK.cjs +0 -1
  354. package/dist/shared/index-CHt1R1WD.cjs +0 -1
  355. package/dist/shared/index-CZIsLBLq.cjs +0 -1
  356. package/dist/shared/index-CcEXTVYA.mjs +0 -69
  357. package/dist/shared/index-CedTjtZr.cjs +0 -1
  358. package/dist/shared/index-CgXuleV-.mjs +0 -205
  359. package/dist/shared/index-CkfWS0Ba.cjs +0 -1
  360. package/dist/shared/index-Cm7k9j8a.cjs +0 -1
  361. package/dist/shared/index-CmgT_pgc.mjs +0 -154
  362. package/dist/shared/index-CngdcQWi.cjs +0 -1
  363. package/dist/shared/index-CqdhLbMe.cjs +0 -1
  364. package/dist/shared/index-CsI1WBRp.cjs +0 -1
  365. package/dist/shared/index-CsXA7Qfy.mjs +0 -105
  366. package/dist/shared/index-CsaDF9d4.mjs +0 -175
  367. package/dist/shared/index-CvdUJpAu.mjs +0 -365
  368. package/dist/shared/index-CvfLEIFE.mjs +0 -526
  369. package/dist/shared/index-CwcD7q4B.mjs +0 -446
  370. package/dist/shared/index-D0kCG3Ov.mjs +0 -278
  371. package/dist/shared/index-D1-QYDXi.cjs +0 -1
  372. package/dist/shared/index-D1BK66mG.cjs +0 -1
  373. package/dist/shared/index-D3IHte_d.cjs +0 -1
  374. package/dist/shared/index-D3VO2Ccd.mjs +0 -73
  375. package/dist/shared/index-D5spJ8nj.cjs +0 -1
  376. package/dist/shared/index-D7uPizqd.cjs +0 -1
  377. package/dist/shared/index-D8OJx-hy.mjs +0 -104
  378. package/dist/shared/index-DAiFZxwY.mjs +0 -51
  379. package/dist/shared/index-DBz3lz62.mjs +0 -53
  380. package/dist/shared/index-DCKEecrx.mjs +0 -138
  381. package/dist/shared/index-DCneRuMf.mjs +0 -78
  382. package/dist/shared/index-DD-zKgrO.cjs +0 -1
  383. package/dist/shared/index-DEHvfBYQ.mjs +0 -295
  384. package/dist/shared/index-DF_Q6c4g.mjs +0 -27
  385. package/dist/shared/index-DFeV2CL8.cjs +0 -1
  386. package/dist/shared/index-DIckpqrH.cjs +0 -1
  387. package/dist/shared/index-DKKMSKqm.cjs +0 -1
  388. package/dist/shared/index-DPhYSn9g.mjs +0 -130
  389. package/dist/shared/index-DSq7WIiO.cjs +0 -1
  390. package/dist/shared/index-DTHRZ-aL.mjs +0 -74
  391. package/dist/shared/index-DTqCwGN_.cjs +0 -1
  392. package/dist/shared/index-DVwCIrin.mjs +0 -100
  393. package/dist/shared/index-DbxSDJ7e.mjs +0 -81
  394. package/dist/shared/index-Dc4A_1-H.mjs +0 -53
  395. package/dist/shared/index-Dchy1DNn.mjs +0 -197
  396. package/dist/shared/index-DdKCUobQ.mjs +0 -311
  397. package/dist/shared/index-DdX40CzJ.cjs +0 -1
  398. package/dist/shared/index-DfP6txWq.mjs +0 -198
  399. package/dist/shared/index-Dh_dh3TS.cjs +0 -1
  400. package/dist/shared/index-DjRDV62n.mjs +0 -153
  401. package/dist/shared/index-DpGlBnUl.cjs +0 -1
  402. package/dist/shared/index-DsDUAk2R.cjs +0 -1
  403. package/dist/shared/index-DxUzSONj.cjs +0 -1
  404. package/dist/shared/index-DypZJHmM.cjs +0 -1
  405. package/dist/shared/index-DzCwEfCQ.cjs +0 -1
  406. package/dist/shared/index-Gyu5R4Gn.cjs +0 -1
  407. package/dist/shared/index-IJJI2ylC.mjs +0 -234
  408. package/dist/shared/index-OaA2R7Ur.mjs +0 -369
  409. package/dist/shared/index-S2TDFo5d.cjs +0 -1
  410. package/dist/shared/index-U3c1apvC.cjs +0 -1
  411. package/dist/shared/index-VExJFRrd.mjs +0 -156
  412. package/dist/shared/index-Xw2_Py_V.mjs +0 -63
  413. package/dist/shared/index-ZbSETCxZ.cjs +0 -1
  414. package/dist/shared/index-ZkHMbIv4.cjs +0 -1
  415. package/dist/shared/index-aveXATNw.cjs +0 -1
  416. package/dist/shared/index-byOl9Vtk.cjs +0 -1
  417. package/dist/shared/index-fiuhurmv.cjs +0 -1
  418. package/dist/shared/index-pqwrEshN.cjs +0 -1
  419. package/dist/shared/index-rowlxa3p.mjs +0 -245
  420. package/dist/shared/index-trf8Dvbk.cjs +0 -1
  421. package/dist/shared/index-tsfRa5ze.cjs +0 -1
  422. package/dist/shared/index-uRVIiLjP.mjs +0 -892
@@ -1 +0,0 @@
1
- "use strict";const a=require("vue"),q=require("element-plus"),S=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),V=a.defineComponent({name:"QyRadio",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[Boolean,String,Number],required:!1},value:{type:[Boolean,String,Number],required:!1,default:!0},label:{type:String,required:!1},disabled:{type:Boolean,required:!1,default:!1},size:{type:String,required:!1,default:void 0},name:{type:String,required:!1},border:{type:Boolean,required:!1,default:!1},id:{type:String,required:!1},tabindex:{type:[String,Number],required:!1},ariaLabel:{type:String,required:!1},ariaControls:{type:String,required:!1}},emits:["update:modelValue","change","focus","blur"],setup(i,{expose:c,emit:f}){c();const e=i,n=f,d=a.useAttrs(),b=a.computed(()=>Object.fromEntries(Object.entries(d).filter(([r])=>r==="class"||r==="style"||r==="role"||r==="title"||r.startsWith("data-")||r.startsWith("aria-")))),t=a.computed(()=>e.value),p=a.ref(null);let l=null;const _=a.computed(()=>e.modelValue!==void 0?e.modelValue:t.value===!0?!1:t.value===!1?!0:typeof t.value=="string"?`__qy-radio-unselected__${t.value}`:Number.NaN);a.onMounted(()=>{var r;l=((r=p.value)==null?void 0:r.$el.querySelector("input.el-radio__original"))??null,l==null||l.addEventListener("keydown",s)}),a.onBeforeUnmount(()=>{l==null||l.removeEventListener("keydown",s)});function u(){return!e.disabled&&e.modelValue!==t.value}function g(){u()&&n("update:modelValue",t.value)}function v(){u()&&n("change",t.value)}function s(r){if(r.key!==" "&&r.code!=="Space")return;const o=r.target;!o||o.tagName!=="INPUT"||o.type!=="radio"||o.disabled||o.checked||(r.preventDefault(),o.click())}function h(r){n("focus",r)}function y(r){n("blur",r)}const m={props:e,emit:n,attrs:d,safeAttrs:b,resolvedValue:t,radioRef:p,get radioInput(){return l},set radioInput(r){l=r},internalModelValue:_,canSelect:u,handleUpdateModelValue:g,handleChange:v,handleKeydown:s,handleFocus:h,handleBlur:y,get ElRadio(){return q.ElRadio}};return Object.defineProperty(m,"__isScriptSetup",{enumerable:!1,value:!0}),m}});function x(i,c,f,e,n,d){return a.openBlock(),a.createBlock(e.ElRadio,a.mergeProps({ref:"radioRef"},e.safeAttrs,{class:"qy-radio","model-value":e.internalModelValue,value:e.resolvedValue,label:e.props.label,disabled:e.props.disabled,size:e.props.size,name:e.props.name,border:e.props.border,id:e.props.id,tabindex:e.props.tabindex,"aria-label":e.props.ariaLabel,"aria-controls":e.props.ariaControls,"onUpdate:modelValue":e.handleUpdateModelValue,onChange:e.handleChange,onFocusCapture:e.handleFocus,onBlurCapture:e.handleBlur}),{default:a.withCtx(()=>[a.renderSlot(i.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(e.props.label),1)],!0)]),_:3},16,["model-value","value","label","disabled","size","name","border","id","tabindex","aria-label","aria-controls"])}const B=S._export_sfc(V,[["render",x],["__scopeId","data-v-4c863d1f"],["__file","D:/xushenz/qy-components/packages/ui/lib/qy-radio/index.vue"]]);exports.Radio=B;
@@ -1 +0,0 @@
1
- "use strict";const n=require("vue"),y=require("element-plus"),N=require("element-plus/es/locale/lang/zh-cn"),P=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),C=n.defineComponent({__name:"ElementPaginationRenderer",props:{total:{type:Number,required:!0},currentPage:{type:Number,required:!0},pageSize:{type:Number,required:!0},pageSizes:{type:Array,required:!0},disabled:{type:Boolean,required:!1,default:!1},loading:{type:Boolean,required:!1,default:!1}},emits:["page-change","page-size-change"],setup(m,{expose:_,emit:l}){_();const e=m,s=l,d=n.computed(()=>e.disabled||e.loading),f=n.computed(()=>e.pageSizes.length>1?"sizes, prev, pager, next":"prev, pager, next"),r=n.ref(null),b=n.ref(null);let u=0;function c(){var t,p;(p=(t=b.value)==null?void 0:t.querySelector('.el-pagination__sizes [role="combobox"]'))==null||p.setAttribute("aria-label","每页条数")}n.onMounted(c),n.onUpdated(c);function z(t){if(!d.value){if(r.value!==null){r.value=null;return}t!==e.currentPage&&s("page-change",t)}}function h(t){if(d.value)return;r.value=t;const p=++u;Promise.resolve().then(()=>{u===p&&(r.value=null)}),s("page-size-change",t)}const g={props:e,emit:s,isInactive:d,layout:f,pendingSizeIntent:r,rendererRef:b,get sizeIntentToken(){return u},set sizeIntentToken(t){u=t},labelPageSizeCombobox:c,handleCurrentPageUpdate:z,handlePageSizeUpdate:h,get ElConfigProvider(){return y.ElConfigProvider},get ElPagination(){return y.ElPagination},get zhCn(){return N}};return Object.defineProperty(g,"__isScriptSetup",{enumerable:!1,value:!0}),g}}),x={ref:"rendererRef",class:"qy-pagination-element-renderer","data-testid":"qy-pagination-element-renderer"};function E(m,_,l,e,s,d){return n.openBlock(),n.createElementBlock("div",x,[n.createVNode(e.ElConfigProvider,{locale:e.zhCn},{default:n.withCtx(()=>[n.createVNode(e.ElPagination,{layout:e.layout,total:l.total,"current-page":l.currentPage,"page-size":l.pageSize,"page-sizes":[...l.pageSizes],"pager-count":7,disabled:e.isInactive,teleported:!1,"onUpdate:currentPage":e.handleCurrentPageUpdate,"onUpdate:pageSize":e.handlePageSizeUpdate},null,8,["layout","total","current-page","page-size","page-sizes","disabled"])]),_:1},8,["locale"])],512)}const I=P._export_sfc(C,[["render",E],["__scopeId","data-v-28e703e9"],["__file","D:/xushenz/qy-components/packages/ui/lib/qy-pagination/renderers/ElementPaginationRenderer.vue"]]),k=n.defineComponent({__name:"index",props:{total:{type:Number,required:!1},page:{type:Number,required:!1},pageSize:{type:Number,required:!1},pageSizeOptions:{type:Array,required:!1,default:()=>[10,20,50]},hideOnSinglePage:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1},loading:{type:Boolean,required:!1},binding:{type:Object,required:!1}},emits:["page-change","page-size-change"],setup(m,{expose:_,emit:l}){_();const e=m,s=l;function d(a,i){const o=Number(a);return Number.isInteger(o)&&o>0?o:i}const f=n.computed(()=>{var i;const a=Number(e.total??((i=e.binding)==null?void 0:i.total)??0);return Number.isFinite(a)&&a>=0?a:0}),r=n.computed(()=>{var a;return d(e.pageSize??((a=e.binding)==null?void 0:a.pageSize),10)}),b=n.computed(()=>{const i=(Array.isArray(e.pageSizeOptions)?e.pageSizeOptions:[]).map(o=>Number(o)).filter(o=>Number.isInteger(o)&&o>0);return[...new Set([...i,r.value])].sort((o,S)=>o-S)}),u=n.computed(()=>Math.max(1,Math.ceil(f.value/r.value))),c=n.computed(()=>{var a;return Math.min(Math.max(1,d(e.page??((a=e.binding)==null?void 0:a.page),1)),u.value)}),z=n.computed(()=>{var a;return!!(e.disabled??((a=e.binding)==null?void 0:a.disabled))}),h=n.computed(()=>{var a;return!!(e.loading??((a=e.binding)==null?void 0:a.loading))}),g=n.computed(()=>z.value||h.value),t=n.computed(()=>f.value>0&&(!e.hideOnSinglePage||u.value>1));function p(a){var i;g.value||!Number.isInteger(a)||a<1||a>u.value||a===c.value||((i=e.binding)==null||i.setPage(a),s("page-change",a))}function q(a){var i;g.value||!Number.isInteger(a)||a<=0||a===r.value||((i=e.binding)==null||i.setPageSize(a),s("page-size-change",a))}const v={props:e,emit:s,normalizePositiveInteger:d,normalizedTotal:f,normalizedPageSize:r,normalizedPageSizeOptions:b,pageCount:u,currentPage:c,isDisabled:z,isLoading:h,isInactive:g,shouldRender:t,handlePageChange:p,handlePageSizeChange:q,ElementPaginationRenderer:I};return Object.defineProperty(v,"__isScriptSetup",{enumerable:!1,value:!0}),v}}),B=["aria-busy"],O={class:"qy-pagination__info"},V={class:"qy-pagination__total"},R={class:"qy-pagination__summary"},D={class:"qy-pagination__controls"};function U(m,_,l,e,s,d){return e.shouldRender?(n.openBlock(),n.createElementBlock("nav",{key:0,class:"qy-pagination","data-testid":"qy-pagination","aria-label":"分页","aria-busy":e.isLoading?"true":void 0},[n.createElementVNode("div",O,[n.createElementVNode("span",V,"共 "+n.toDisplayString(e.normalizedTotal)+" 条",1),n.createElementVNode("span",R," 第 "+n.toDisplayString(e.currentPage)+" / "+n.toDisplayString(e.pageCount)+" 页 ",1)]),n.createElementVNode("div",D,[n.createVNode(e.ElementPaginationRenderer,{total:e.normalizedTotal,"current-page":e.currentPage,"page-size":e.normalizedPageSize,"page-sizes":e.normalizedPageSizeOptions,disabled:e.isDisabled,loading:e.isLoading,onPageChange:e.handlePageChange,onPageSizeChange:e.handlePageSizeChange},null,8,["total","current-page","page-size","page-sizes","disabled","loading"])])],8,B)):n.createCommentVNode("v-if",!0)}const T=P._export_sfc(k,[["render",U],["__scopeId","data-v-824b0b13"],["__file","D:/xushenz/qy-components/packages/ui/lib/qy-pagination/index.vue"]]);exports.Pagination=T;
@@ -1,156 +0,0 @@
1
- import { defineComponent as U, computed as v, ref as y, useSlots as j, watch as w, onBeforeUnmount as F, onMounted as M, openBlock as E, createBlock as q, withCtx as B, renderSlot as Q, createElementBlock as R, Fragment as G, renderList as H, resolveDynamicComponent as J } from "vue";
2
- import { ElPopover as X } from "element-plus";
3
- import { _ as Y } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
4
- const P = 1e3, Z = /* @__PURE__ */ U({
5
- name: "QyPopover",
6
- inheritAttrs: !1,
7
- __name: "index",
8
- props: {
9
- trigger: { type: String, default: "click" },
10
- placement: { type: String, default: "bottom" },
11
- effect: { type: String, default: "light" },
12
- width: { type: [Number, String], default: 240 },
13
- offset: { type: Number, default: 12 },
14
- showDelay: { type: Number, default: 0 },
15
- hideDelay: { type: Number, default: 200 },
16
- showArrow: { type: Boolean, default: !0 },
17
- transition: { type: String, default: void 0 },
18
- disabled: { type: Boolean, default: !1 },
19
- open: { type: Boolean, default: void 0 }
20
- },
21
- emits: ["update:open", "open-change", "open", "close"],
22
- setup(g, { expose: b, emit: r }) {
23
- const t = g, d = r, l = v(() => t.open !== void 0), u = l.value && t.open === !0 && !t.disabled, a = y(u), c = y(u), _ = y(u), o = y(null), A = v(() => t.disabled ? !1 : l.value ? t.open === !0 : a.value);
24
- let n, f = !1, s;
25
- const S = v(
26
- () => typeof t.width == "number" ? `${t.width}px` : t.width
27
- ), C = v(() => ({
28
- "--qy-popover-width": S.value,
29
- "--qy-popover-mobile-gutter": "24px"
30
- })), m = j(), W = v(
31
- () => {
32
- var e;
33
- return ((e = m.reference) == null ? void 0 : e.call(m)) ?? [];
34
- }
35
- );
36
- function h() {
37
- n && (clearTimeout(n), n = void 0), o.value = null;
38
- }
39
- function T(e) {
40
- n && clearTimeout(n), n = setTimeout(() => {
41
- n = void 0, o.value === e && (o.value = null);
42
- }, P);
43
- }
44
- function i() {
45
- if (f) return;
46
- const e = A.value;
47
- c.value !== e && (f = !0, s = e, c.value = e);
48
- }
49
- function p(e) {
50
- if (!(e && t.disabled)) {
51
- if (!l.value) {
52
- if (a.value === e) return;
53
- a.value = e, d("update:open", e), i();
54
- return;
55
- }
56
- o.value !== e && (o.value === null && t.open === e || (o.value = e, e ? T(e) : n && (clearTimeout(n), n = void 0), d("update:open", e), i()));
57
- }
58
- }
59
- function D(e) {
60
- e === c.value && (!f || s !== e || (f = !1, s = void 0, e !== _.value && (_.value = e, o.value === e && h(), d("open-change", e), d(e ? "open" : "close"), i())));
61
- }
62
- function I(e) {
63
- p(e), i();
64
- }
65
- function O() {
66
- D(!0);
67
- }
68
- function z() {
69
- D(!1);
70
- }
71
- function L() {
72
- p(!1);
73
- }
74
- function k(e) {
75
- e.key !== "Escape" && e.code !== "Escape" || c.value && (e.preventDefault(), p(!1), i());
76
- }
77
- w(
78
- A,
79
- () => i()
80
- ), w(l, (e) => {
81
- h(), e ? a.value = t.open === !0 : a.value = c.value, i();
82
- }), w(
83
- () => t.open,
84
- (e, K) => {
85
- !l.value || o.value === null || (e === o.value || e !== K) && h();
86
- }
87
- ), w(
88
- () => t.disabled,
89
- (e) => {
90
- e ? p(!1) : i();
91
- }
92
- ), F(() => {
93
- window.removeEventListener("keydown", k), f = !1, s = void 0, n && clearTimeout(n);
94
- }), M(() => {
95
- window.addEventListener("keydown", k);
96
- }), b({ close: L });
97
- const N = { props: t, emit: d, isControlled: l, initialVisible: u, requestedDesired: a, renderedDesired: c, actualVisible: _, pendingIntent: o, targetDesired: A, CONTROLLED_ACK_WINDOW: P, get acknowledgementTimer() {
98
- return n;
99
- }, set acknowledgementTimer(e) {
100
- n = e;
101
- }, get transitionActive() {
102
- return f;
103
- }, set transitionActive(e) {
104
- f = e;
105
- }, get transitionDirection() {
106
- return s;
107
- }, set transitionDirection(e) {
108
- s = e;
109
- }, normalizedWidth: S, popperStyle: C, slots: m, referenceNodes: W, clearAcknowledgement: h, startAcknowledgementWindow: T, pumpTransition: i, requestIntent: p, confirmActual: D, handleElementVisibility: I, handleAfterEnter: O, handleAfterLeave: z, close: L, handleKeydown: k, get ElPopover() {
110
- return X;
111
- } };
112
- return Object.defineProperty(N, "__isScriptSetup", { enumerable: !1, value: !0 }), N;
113
- }
114
- });
115
- function x(g, b, r, t, d, l) {
116
- return E(), q(t.ElPopover, {
117
- visible: t.renderedDesired,
118
- trigger: r.trigger,
119
- placement: r.placement,
120
- effect: r.effect,
121
- width: r.width,
122
- offset: r.offset,
123
- "show-after": r.showDelay,
124
- "hide-after": r.hideDelay,
125
- "show-arrow": r.showArrow,
126
- transition: r.transition,
127
- disabled: r.disabled,
128
- enterable: !0,
129
- "popper-style": t.popperStyle,
130
- "popper-class": "qy-popover-popper",
131
- "onUpdate:visible": t.handleElementVisibility,
132
- onAfterEnter: t.handleAfterEnter,
133
- onAfterLeave: t.handleAfterLeave
134
- }, {
135
- reference: B(() => [
136
- (E(!0), R(
137
- G,
138
- null,
139
- H(t.referenceNodes, (u, a) => (E(), q(J(u), {
140
- key: u.key ?? a
141
- }))),
142
- 128
143
- /* KEYED_FRAGMENT */
144
- ))
145
- ]),
146
- default: B(() => [
147
- Q(g.$slots, "default")
148
- ]),
149
- _: 3
150
- /* FORWARDED */
151
- }, 8, ["visible", "trigger", "placement", "effect", "width", "offset", "show-after", "hide-after", "show-arrow", "transition", "disabled", "popper-style"]);
152
- }
153
- const te = /* @__PURE__ */ Y(Z, [["render", x], ["__file", "D:/xushenz/qy-components/packages/ui/lib/qy-popover/index.vue"]]);
154
- export {
155
- te as P
156
- };
@@ -1,63 +0,0 @@
1
- import { defineComponent as c, useAttrs as m, computed as s, openBlock as y, createBlock as _, mergeProps as g, withCtx as h, renderSlot as q } from "vue";
2
- import { ElWatermark as k } from "element-plus";
3
- import { _ as x } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
4
- const b = /* @__PURE__ */ c({
5
- name: "QyWatermark",
6
- inheritAttrs: !1,
7
- __name: "index",
8
- props: {
9
- content: { type: [String, Array], required: !1, default: "" },
10
- image: { type: String, required: !1 },
11
- zIndex: { type: Number, required: !1, default: 9 },
12
- rotate: { type: Number, required: !1, default: -22 },
13
- width: { type: Number, required: !1 },
14
- height: { type: Number, required: !1 },
15
- gap: { type: Array, required: !1, default: () => [100, 100] },
16
- offset: { type: Array, required: !1 },
17
- font: { type: Object, required: !1 }
18
- },
19
- setup(n, { expose: i }) {
20
- i();
21
- const e = n, r = m(), o = s(() => {
22
- const d = {};
23
- for (const [t, p] of Object.entries(r))
24
- (t === "class" || t === "style" || t === "id" || t === "title" || t === "role" || t.startsWith("data-") || t.startsWith("aria-")) && (d[t] = p);
25
- return d;
26
- }), a = s(() => ({
27
- content: e.content,
28
- image: e.image,
29
- zIndex: e.zIndex,
30
- rotate: e.rotate,
31
- width: e.width,
32
- height: e.height,
33
- gap: e.gap,
34
- offset: e.offset,
35
- font: e.font
36
- })), u = s(() => ({
37
- ...a.value,
38
- ...o.value
39
- })), l = s(() => JSON.stringify(a.value)), f = { props: e, attrs: r, safeAttrs: o, rendererProps: a, rendererAttrs: u, rendererKey: l, get ElWatermark() {
40
- return k;
41
- } };
42
- return Object.defineProperty(f, "__isScriptSetup", { enumerable: !1, value: !0 }), f;
43
- }
44
- });
45
- function A(n, i, e, r, o, a) {
46
- return y(), _(
47
- r.ElWatermark,
48
- g({ key: r.rendererKey }, r.rendererAttrs),
49
- {
50
- default: h(() => [
51
- q(n.$slots, "default")
52
- ]),
53
- _: 3
54
- /* FORWARDED */
55
- },
56
- 16
57
- /* FULL_PROPS */
58
- );
59
- }
60
- const w = /* @__PURE__ */ x(b, [["render", A], ["__file", "D:/xushenz/qy-components/packages/ui/lib/qy-watermark/index.vue"]]);
61
- export {
62
- w as W
63
- };
@@ -1 +0,0 @@
1
- "use strict";const t=require("vue"),f=require("element-plus"),p=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),_=t.defineComponent({name:"QyLink",inheritAttrs:!1,__name:"index",props:{type:{type:String,default:void 0},underline:{type:[Boolean,String],default:void 0},disabled:Boolean,href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:[String,Object,Function],default:void 0}},emits:["click"],setup(i,{expose:s,emit:r}){s();const n=i,l=r,o=t.useAttrs(),d=t.computed(()=>n.underline===!0?"hover":n.underline===!1?"never":n.underline),c=t.computed(()=>Object.fromEntries(Object.entries(o).filter(([e])=>e==="class"||e==="style"||e==="id"||e==="role"||e==="title"||e==="rel"||e==="download"||e==="hreflang"||e==="referrerpolicy"||e==="ping"||e==="tabindex"||e.startsWith("data-")||e.startsWith("aria-"))));function u(e){l("click",e)}const a={props:n,emit:l,attrs:o,normalizedUnderline:d,safeAttrs:c,handleClick:u,get ElLink(){return f.ElLink}};return Object.defineProperty(a,"__isScriptSetup",{enumerable:!1,value:!0}),a}});function m(i,s,r,n,l,o){return t.openBlock(),t.createBlock(n.ElLink,t.mergeProps(n.safeAttrs,{type:r.type,underline:n.normalizedUnderline,disabled:r.disabled,href:r.href,target:r.target,icon:r.icon,onClick:n.handleClick}),{icon:t.withCtx(()=>[t.renderSlot(i.$slots,"icon")]),default:t.withCtx(()=>[t.renderSlot(i.$slots,"default")]),_:3},16,["type","underline","disabled","href","target","icon"])}const g=p._export_sfc(_,[["render",m],["__file","D:/xushenz/qy-components/packages/ui/lib/qy-link/index.vue"]]);exports.Link=g;
@@ -1 +0,0 @@
1
- "use strict";const t=require("vue"),a=require("element-plus"),s=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),c=t.defineComponent({name:"QyContainerElementPlusRenderer",inheritAttrs:!1,__name:"element-plus",props:{direction:{type:String,required:!0}},setup(e,{expose:r}){r();const n={get ElContainer(){return a.ElContainer}};return Object.defineProperty(n,"__isScriptSetup",{enumerable:!1,value:!0}),n}});function l(e,r,n,i,o,f){return t.openBlock(),t.createBlock(i.ElContainer,t.mergeProps(e.$attrs,{direction:n.direction}),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["direction"])}const u=s._export_sfc(c,[["render",l],["__file","D:/xushenz/qy-components/packages/ui/lib/qy-container/renderer/element-plus.vue"]]),p=e=>e==="class"||e==="style"||e==="id"||e==="role"||e==="title"||e.startsWith("data-")||e.startsWith("aria-"),d=t.defineComponent({name:"QyContainer",inheritAttrs:!1,props:{direction:{type:String,default:"horizontal"}},setup(e,{attrs:r,slots:n}){const i=t.computed(()=>Object.fromEntries(Object.entries(r).filter(([o])=>p(o))));return()=>t.h(u,{...i.value,direction:e.direction},n.default?{default:n.default}:void 0)}}),_=s._export_sfc(d,[["__file","D:/xushenz/qy-components/packages/ui/lib/qy-container/index.vue"]]);exports.Container=_;
@@ -1 +0,0 @@
1
- "use strict";const r=require("vue"),i=require("element-plus"),n=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),c=e=>e==="class"||e==="style"||e==="id"||e==="role"||e==="title"||e==="tabindex"||e.startsWith("data-")||e.startsWith("aria-"),f=["header","default","footer"],u=r.defineComponent({name:"QyCard",inheritAttrs:!1,props:{header:{type:String,default:""},footer:{type:String,default:""},shadow:{type:String,default:"always"},bodyStyle:[String,Object,Array],headerClass:String,bodyClass:String,footerClass:String},emits:{click:()=>!0},setup(e,{attrs:a,slots:s,emit:o}){const l=r.computed(()=>Object.fromEntries(Object.entries(a).filter(([t])=>c(t)))),d=r.computed(()=>Object.fromEntries(f.filter(t=>s[t]).map(t=>[t,s[t]])));return()=>r.h(i.ElCard,{...l.value,header:e.header,footer:e.footer,shadow:e.shadow,bodyStyle:e.bodyStyle,headerClass:e.headerClass,bodyClass:e.bodyClass,footerClass:e.footerClass,onClick:t=>o("click",t)},d.value)}}),h=n._export_sfc(u,[["__file","D:/xushenz/qy-components/packages/ui/lib/qy-card/index.vue"]]);exports.Card=h;
@@ -1 +0,0 @@
1
- "use strict";const Y=require("element-plus"),e=require("vue"),re=require("clsx"),G=require("element-plus"),ie=require("@element-plus/icons-vue"),J=require("@vueuse/core"),ae=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),H=5,b=2e3,se=e.defineComponent({inheritAttrs:!1,__name:"index",props:{open:{type:Boolean,required:!0,default:!1},title:{type:String,required:!1,default:""},width:{type:[String,Number],required:!1,default:"50%"},showFooter:{type:Boolean,required:!1,default:!0},showConfirm:{type:Boolean,required:!1,default:!0},showCancel:{type:Boolean,required:!1,default:!0},confirmText:{type:String,required:!1,default:"确 认"},cancelText:{type:String,required:!1,default:"取 消"},confirmLoading:{type:Boolean,required:!1,default:!1},confirmDisabled:{type:Boolean,required:!1,default:!1},closeOnConfirm:{type:Boolean,required:!1,default:!1},closeOnEscape:{type:Boolean,required:!1,default:!0},closeOnOverlay:{type:Boolean,required:!1,default:!1},minimizable:{type:Boolean,required:!1,default:!0},destroyOnClose:{type:Boolean,required:!1,default:!1},draggable:{type:Boolean,required:!1,default:!0},lockScroll:{type:Boolean,required:!1,default:!0},top:{type:String,required:!1,default:"15vh"},fullscreen:{type:Boolean,required:!1,default:!1},showFullscreen:{type:Boolean,required:!1,default:!1},size:{type:String,required:!1,default:"default"},zIndex:{type:Number,required:!1,default:2e3}},emits:["update:open","open-change","confirm","cancel","close","opened","closed"],setup(d,{expose:n,emit:Z}){let o=0;const l=d,z=e.useSlots(),k=e.ref(!0),B=e.ref(!1),h=e.ref(b),M=e.ref(null),A=J.useBreakpoints({mobile:0,tablet:640,laptop:1024,desktop:1280}),F=A.isSmaller("tablet"),Q=e.computed(()=>{const t=[];return l.showCancel&&t.push("cancel"),l.showConfirm&&t.push("confirm"),t}),$=e.computed(()=>({CancelButton:e.createVNode(U),ConfirmButton:e.createVNode(W)})),ee=e.computed(()=>!!(z.footer||l.showFooter)),u=e.ref(!1),y=e.ref(!1);let w=!1,c=document.activeElement instanceof HTMLElement?document.activeElement:null;const N=e.ref(l.showFullscreen&&F?!0:l.fullscreen),a=Z,j=e.computed(()=>l.open);e.watchEffect(()=>{j.value&&(u.value=!1)}),e.watch(()=>l.open,(t,r)=>{if(t){u.value=!1,y.value=!1,c=document.activeElement instanceof HTMLElement?document.activeElement:c,r===!1&&a("open-change",!0);return}r&&!u.value&&(u.value=!0,a("open-change",!1),a("close","external"))}),e.watch(()=>l.confirmLoading,t=>{t?w=!0:w&&(w=!1,y.value=!1)}),n({handleMinimize:X});const f=`qy-dialog-${Math.random().toString(36).slice(2,11)}`,v=e.ref(!1);let m=!1;const E=e.ref(null),{x:V,y:_}=J.useDraggable(E,{initialValue:{x:5,y:window.innerHeight-100-o*60},onMove(t){var r;(r=E.value)==null||r.classList.add("dragging"),document.body.classList.add("qy-dialog--dragging"),V.value=Math.max(0,Math.min(window.innerWidth-300,t.x)),_.value=Math.max(0,Math.min(window.innerHeight-50,t.y))},onEnd(){var t;(t=E.value)==null||t.classList.remove("dragging"),document.body.classList.remove("qy-dialog--dragging")}}),oe=e.computed(()=>({transform:`translate(${V.value}px, ${_.value}px)`,willChange:"transform"}));function D(t){const r=t.target,{scrollTop:s,scrollHeight:g,clientHeight:C}=r;k.value=s<=H,B.value=g-(s+C)<=H}function te(){const t=document.querySelector(`.${f}.el-dialog`);t&&(M.value=t,t.addEventListener("scroll",D)),q(),a("opened")}function R(){N.value=!N.value,q()}function x(t){l.confirmLoading&&t!=="external"||u.value||(u.value=!0,T(),a("update:open",!1),a("open-change",!1),(t==="cancel"||t==="header")&&a("cancel"),a("close",t))}function le(){a("closed"),e.nextTick(()=>{c!=null&&c.isConnected&&c.focus()})}function ne(t){l.showFullscreen&&t.detail>=2&&R()}function W(){return e.h(G.ElButton,{type:"primary",class:"dialog__footerBtn",loading:l.confirmLoading,disabled:l.confirmDisabled||l.confirmLoading||y.value,onClick:P},()=>l.confirmText)}function P(){y.value||l.confirmLoading||l.confirmDisabled||(y.value=!0,a("confirm"),l.closeOnConfirm&&x("confirm"))}function U(){return e.h(G.ElButton,{class:"dialog__footerBtn",onClick:()=>x("cancel")},()=>l.cancelText)}e.onMounted(()=>{typeof window.qyDialogMaxZIndex>"u"&&(window.qyDialogMaxZIndex=b),q(),document.addEventListener("keydown",L),document.addEventListener("mousedown",O)});function I(){var g,C;const t=(g=document.querySelector(`.${f}`))==null?void 0:g.closest(".el-overlay");if(!t)return!1;const s=Array.from(document.querySelectorAll(".el-overlay")).filter(i=>window.getComputedStyle(i).display!=="none").map((i,p)=>({overlay:i,order:p,zIndex:Number.parseInt(window.getComputedStyle(i).zIndex||"0",10)}));return s.sort((i,p)=>i.zIndex-p.zIndex||i.order-p.order),((C=s.at(-1))==null?void 0:C.overlay)===t}function L(t){t.key!=="Escape"||!l.open||!l.closeOnEscape||l.confirmLoading||!I()||(t.preventDefault(),x("escape"))}function O(t){if(!l.open||!l.closeOnOverlay||l.confirmLoading||!I()||!(t.target instanceof Node))return;const r=document.querySelector(`.${f}.el-dialog`),s=r==null?void 0:r.closest(".el-overlay");!r||!s||!s.contains(t.target)||r.contains(t.target)||x("overlay")}function q(){var p;const t=Array.from(document.querySelectorAll(".el-overlay")).filter(S=>window.getComputedStyle(S).display!=="none"&&!S.classList.contains("is-message")),r=(p=document.querySelector(`.${f}`))==null?void 0:p.closest(".el-overlay"),s=document.querySelector(`.${f}.el-dialog`);if(!r||!s)return;const g=b;window.qyDialogMaxZIndex=window.qyDialogMaxZIndex||g;const i=Math.max(window.qyDialogMaxZIndex,...t.map(S=>parseInt(window.getComputedStyle(S).zIndex||g.toString())))+2;window.qyDialogMaxZIndex=i,e.nextTick(()=>{r.style.zIndex=i.toString(),s.style.zIndex=(i+1).toString(),h.value=i+1})}e.onUnmounted(()=>{var t;document.removeEventListener("keydown",L),document.removeEventListener("mousedown",O),(t=M.value)==null||t.removeEventListener("scroll",D),T()});function T(){if(!m){v.value=!1;return}m=!1,o=Math.max(0,o-1),v.value=!1}function X(){var r;const t=(r=document.querySelector(`.${f}`))==null?void 0:r.closest(".el-overlay");!t||!l.open||(v.value?(v.value=!1,t.style.display="block",m&&(m=!1,o=Math.max(0,o-1)),q()):(v.value=!0,t.style.display="none",m=!0,o+=1,_.value=window.innerHeight-50-o*60))}const K={OUTLINE_THRESHOLD:H,BASE_ZINDEX:b,get minimizedDialogCount(){return o},set minimizedDialogCount(t){o=t},props:l,slots:z,isScrollTop:k,isScrollBottom:B,zIndex:h,scrollTarget:M,breakpoints:A,isMobile:F,layout:Q,layouts:$,hasFooter:ee,closeCommitted:u,confirmLocked:y,get loadingWasActive(){return w},set loadingWasActive(t){w=t},get openingFocus(){return c},set openingFocus(t){c=t},fullscreen:N,emit:a,open:j,dialogId:f,isMinimized:v,get minimizedRegistered(){return m},set minimizedRegistered(t){m=t},minimizedRef:E,minimizedX:V,minimizedY:_,minimizedStyle:oe,handleScroll:D,handleOpened:te,scale:R,requestClose:x,handleClosed:le,handleHeaderClick:ne,ConfirmButton:W,handleConfirm:P,CancelButton:U,isTopmostOverlay:I,handleDocumentKeydown:L,handleDocumentMousedown:O,updateDialogZIndex:q,releaseMinimizedState:T,handleMinimize:X,get clsx(){return re},get Close(){return ie.Close}};return Object.defineProperty(K,"__isScriptSetup",{enumerable:!1,value:!0}),K}}),de={class:"text-lg flex items-center pt-2 pl-[var(--content-padding)]"},ce={key:0},ue={key:1},fe={key:0,class:"icon-[material-symbols--square-outline-rounded]",role:"img","aria-hidden":"true"},me={key:1,class:"icon-[tdesign--fullscreen-exit-1]",role:"img","aria-hidden":"true"},ge={key:0,class:"fixed -right-12 top-2 h-9 w-9 hover:bg-gray-600/80 transition-all"},pe={class:"flex justify-between h-[var(--footer-height)] px-[var(--content-padding)] items-center"},ye={class:"flex items-center justify-between w-full pl-1 pr-4 h-full ml-2"},ve={class:"flex items-center gap-2"},he={class:"text-sm text-gray-700 truncate max-w-[200px]"},we={class:"flex items-center gap-2"};function xe(d,n,Z,o,l,z){const k=Y.ElIcon,B=Y.ElDialog;return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(B,{ref:"dialogRef",class:e.normalizeClass(["qy-dialog",[o.props.size==="small"&&"[&_.el-dialog__header]:!hidden",o.dialogId]]),"model-value":o.open,title:o.props.title,width:o.props.width,top:o.props.top,"align-center":"","append-to-body":"","destroy-on-close":o.props.destroyOnClose,"lock-scroll":o.props.lockScroll,style:{"--el-dialog-padding-primary":0},"show-close":!1,"close-on-press-escape":!1,"close-on-click-modal":!1,fullscreen:o.fullscreen,"z-index":o.zIndex,onClosed:o.handleClosed,onOpened:o.handleOpened,draggable:o.props.draggable},e.createSlots({header:e.withCtx(()=>[o.props.size==="default"?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({borderBottom:"1px solid",borderColor:o.isScrollTop?"transparent":"var(--block-outline-color)",transition:"border-color .2s linear"}),class:"flex justify-between h-[var(--header-height)]",onDblclick:o.handleHeaderClick},[e.createElementVNode("div",de,[o.slots.header?o.slots.header?(e.openBlock(),e.createElementBlock("div",ue,[e.renderSlot(d.$slots,"header")])):e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("span",ce,e.toDisplayString(o.props.title),1))]),e.createElementVNode("div",{class:"flex",onMousedown:n[4]||(n[4]=e.withModifiers(()=>{},["stop"]))},[o.props.size==="default"&&o.props.minimizable?(e.openBlock(),e.createElementBlock("div",{key:0,class:"qy-dialog__btn qy-dialog__btn--default",onClick:e.withModifiers(o.handleMinimize,["stop"]),onMousedown:n[0]||(n[0]=e.withModifiers(()=>{},["stop"]))},[...n[7]||(n[7]=[e.createElementVNode("span",{class:"icon-[material-symbols--minimize] text-xl mb-3",role:"img","aria-hidden":"true"},null,-1)])],32)):e.createCommentVNode("v-if",!0),o.props.showFullscreen?(e.openBlock(),e.createElementBlock("div",{key:1,class:"qy-dialog__btn qy-dialog__btn--default",onClick:e.withModifiers(o.scale,["stop"]),onMousedown:n[1]||(n[1]=e.withModifiers(()=>{},["stop"]))},[o.fullscreen?(e.openBlock(),e.createElementBlock("span",me)):(e.openBlock(),e.createElementBlock("span",fe))],32)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:"qy-dialog__btn qy-dialog__btn--danger",onClick:n[2]||(n[2]=e.withModifiers(h=>o.requestClose("header"),["stop"])),onMousedown:n[3]||(n[3]=e.withModifiers(()=>{},["stop"]))},[...n[8]||(n[8]=[e.createElementVNode("span",{class:"icon-[ri--close-line] text-xl",role:"img","aria-hidden":"true"},null,-1)])],32)],32)],36)):e.createCommentVNode("v-if",!0)]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["qy-dialog__wrapper",o.clsx(o.fullscreen&&"qy-dialog__wrapper--fullscreen")]),style:e.normalizeStyle({maxHeight:o.hasFooter?"calc(100vh - var(--header-height) - var(--footer-height) - var(--sides-gap))":"calc(100vh - var(--header-height) - var(--sides-gap))",padding:o.props.size==="small"?"var(--small-content-padding)":"var(--content-padding)"})},[o.props.size==="small"?(e.openBlock(),e.createElementBlock("div",ge,[e.createVNode(k,{size:36,class:"cursor-pointer text-gray-100 active:scale-75 rounded-sm transition-all",onClick:n[5]||(n[5]=h=>o.requestClose("header"))},{default:e.withCtx(()=>[e.createVNode(o.Close)]),_:1})])):e.createCommentVNode("v-if",!0),e.renderSlot(d.$slots,"default")],6)]),_:2},[o.props.showFooter&&!d.$slots.footer&&Array.isArray(o.layout)?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",pe,[e.createElementVNode("div",null,[e.renderSlot(d.$slots,"footer-left")]),e.createElementVNode("div",{class:e.normalizeClass([{"qy-dialog__footer--outline":o.isScrollBottom},"qy-dialog__footer flex items-center justify-end"])},[o.layout.includes("cancel")?(e.openBlock(),e.createBlock(o.CancelButton,{key:0})):e.createCommentVNode("v-if",!0),o.layout.includes("confirm")?(e.openBlock(),e.createBlock(o.ConfirmButton,{key:1})):e.createCommentVNode("v-if",!0),e.renderSlot(d.$slots,"footer-append")],2)])]),key:"0"}:o.hasFooter?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([{"qy-dialog__footer--outline":o.isScrollBottom},"qy-dialog__footer px-[var(--content-padding)] min-h-[var(--footer-height)] flex items-center justify-end"])},[e.renderSlot(d.$slots,"footer",{layouts:o.layouts,layoutsNode:Object.values(o.layouts)})],2)]),key:"1"}:void 0]),1032,["class","model-value","title","width","top","destroy-on-close","lock-scroll","fullscreen","z-index","draggable"]),e.createCommentVNode(" 最小化视图 "),e.withDirectives(e.createElementVNode("div",{ref:"minimizedRef",class:"fixed left-0 top-0 bg-white rounded shadow-lg cursor-pointer z-[9999] hover:bg-gray-50",style:e.normalizeStyle([o.minimizedStyle,{width:"300px",height:"50px","will-change":"transform"}])},[e.createElementVNode("div",ye,[e.createElementVNode("div",ve,[n[9]||(n[9]=e.createElementVNode("div",{class:"icon-[mdi--window-restore] text-gray-600"},null,-1)),e.createElementVNode("span",he,e.toDisplayString(o.props.title),1)]),e.createElementVNode("div",we,[e.createElementVNode("div",{class:"p-1 hover:bg-gray-200 rounded",onClick:e.withModifiers(o.handleMinimize,["stop"])},[...n[10]||(n[10]=[e.createElementVNode("div",{class:"icon-[mdi--window-maximize] text-gray-600"},null,-1)])]),e.createElementVNode("div",{class:"p-1 hover:bg-red-100 rounded",onClick:n[6]||(n[6]=e.withModifiers(h=>o.requestClose("header"),["stop"]))},[...n[11]||(n[11]=[e.createElementVNode("div",{class:"icon-[mdi--close] text-red-600"},null,-1)])])])])],4),[[e.vShow,o.isMinimized]])])}const qe=ae._export_sfc(se,[["render",xe],["__file","D:/xushenz/qy-components/packages/ui/lib/dialog/index.vue"]]);exports.Dialog=qe;
@@ -1 +0,0 @@
1
- "use strict";const t=require("vue"),V=require("element-plus"),g=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),x=t.defineComponent({name:"QyCollapse",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[String,Number,Array],required:!1,default:()=>[]},accordion:{type:Boolean,required:!1,default:!1},expandIconPosition:{type:String,required:!1,default:"right"},beforeCollapse:{type:Function,required:!1}},emits:["update:modelValue","change"],setup(s,{expose:d,emit:a}){const o=s,n=a,c=t.useAttrs(),u=t.ref(),r=t.ref(o.modelValue),_=t.computed(()=>Object.fromEntries(Object.entries(c).filter(([e])=>e==="class"||e==="style"||e==="id"||e==="role"||e==="title"||e.startsWith("data-")||e.startsWith("aria-"))));function i(e){const l=Array.isArray(e)?e:[e];return o.accordion?l.slice(0,1):l}t.watch(()=>o.modelValue,e=>{r.value=e},{deep:!0});const p=t.computed(()=>i(o.modelValue));function h(e){r.value=e,n("update:modelValue",e),t.nextTick(()=>{r.value=o.modelValue})}function C(e){n("change",e)}function f(e){var l;(l=u.value)==null||l.setActiveNames(i(e))}d({activeNames:p,setActiveNames:f});const m={props:o,emit:n,attrs:c,collapseRef:u,renderedModelValue:r,safeAttrs:_,normalizeActiveNames:i,activeNames:p,handleUpdateModelValue:h,handleChange:C,setActiveNames:f,get ElCollapse(){return V.ElCollapse}};return Object.defineProperty(m,"__isScriptSetup",{enumerable:!1,value:!0}),m}});function b(s,d,a,o,n,c){return t.openBlock(),t.createBlock(o.ElCollapse,t.mergeProps({ref:"collapseRef"},o.safeAttrs,{class:"qy-collapse","model-value":o.renderedModelValue,accordion:a.accordion,"expand-icon-position":a.expandIconPosition,"before-collapse":a.beforeCollapse,"onUpdate:modelValue":o.handleUpdateModelValue,onChange:o.handleChange}),{default:t.withCtx(()=>[t.renderSlot(s.$slots,"default")]),_:3},16,["model-value","accordion","expand-icon-position","before-collapse"])}const q=g._export_sfc(x,[["render",b],["__file","D:/xushenz/qy-components/packages/ui/lib/qy-collapse/index.vue"]]);exports.Collapse=q;
@@ -1 +0,0 @@
1
- "use strict";const a=require("vue"),R=require("element-plus"),B=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),E=a.defineComponent({name:"QyDatePicker",inheritAttrs:!1,__name:"index",props:{modelValue:{type:null,required:!1,default:void 0},type:{type:String,required:!1,default:"date"},placeholder:{type:String,required:!1,default:"请选择日期"},startPlaceholder:{type:String,required:!1,default:"开始时间"},endPlaceholder:{type:String,required:!1,default:"结束时间"},rangeSeparator:{type:String,required:!1,default:"-"},format:{type:String,required:!1,default:void 0},valueFormat:{type:String,required:!1,default:void 0},defaultTime:{type:[Date,Array],required:!1,default:void 0},disabledDate:{type:Function,required:!1,default:void 0},shortcuts:{type:Array,required:!1,default:void 0},clearable:{type:Boolean,required:!1,default:!0},disabled:{type:Boolean,required:!1,default:!1},readonly:{type:Boolean,required:!1},size:{type:String,required:!1,default:void 0},teleported:{type:Boolean,required:!1,default:!0},appendTo:{type:null,required:!1,default:"body"},popperClass:{type:String,required:!1,default:""},normalizeRangeEndTime:{type:Boolean,required:!1,default:!1}},emits:["update:modelValue","change","clear","calendar-change","panel-change","visible-change","focus","blur"],setup(d,{expose:u,emit:t}){const l=d,o=t,c=a.useAttrs(),n=a.ref(null),b=a.computed(()=>["qy-date-picker__popper",l.popperClass].filter(Boolean).join(" "));function f(e){return Array.isArray(e)}function p(e){if(e.getHours()!==0||e.getMinutes()!==0||e.getSeconds()!==0||e.getMilliseconds()!==0)return e;const r=new Date(e);return r.setHours(23,59,59,0),r}function h(e){const r=e.match(/(T| )00:00:00(\.000)?(Z|[+-]\d{2}:?\d{2})?$/);return r?e.replace(r[0],`${r[1]}23:59:59${r[2]??""}${r[3]??""}`):e}function s(e){if(!l.normalizeRangeEndTime||!f(e)||e.length<2)return e;const r=e[1];let i=r;if(r instanceof Date?i=p(r):typeof r=="string"&&(i=h(r)),i===r)return e;const q=[...e];return q[1]=i,q}function S(e){o("update:modelValue",s(e))}function v(e){o("change",s(e))}function z(){o("clear")}function _(e){o("calendar-change",e)}function V(e,r,i){if(i===void 0){o("panel-change",e,r);return}o("panel-change",e,r,i)}function k(e){o("visible-change",e)}function x(e){o("focus",e)}function D(e){o("blur",e)}function g(){var e,r;(r=(e=n.value)==null?void 0:e.focus)==null||r.call(e)}function m(){var e,r;(r=(e=n.value)==null?void 0:e.blur)==null||r.call(e)}function y(){var e,r;(r=(e=n.value)==null?void 0:e.handleOpen)==null||r.call(e)}function P(){var e,r;(r=(e=n.value)==null?void 0:e.handleClose)==null||r.call(e)}u({focus:g,blur:m,open:y,close:P});const C={props:l,emit:o,attrs:c,datePickerRef:n,mergedPopperClass:b,isRangeValue:f,normalizeEndDate:p,normalizeEndString:h,normalizeRangeValue:s,handleUpdateModelValue:S,handleChange:v,handleClear:z,handleCalendarChange:_,handlePanelChange:V,handleVisibleChange:k,handleFocus:x,handleBlur:D,focus:g,blur:m,open:y,close:P,get ElDatePicker(){return R.ElDatePicker}};return Object.defineProperty(C,"__isScriptSetup",{enumerable:!1,value:!0}),C}});function T(d,u,t,l,o,c){return a.openBlock(),a.createBlock(l.ElDatePicker,a.mergeProps({ref:"datePickerRef",class:"qy-date-picker"},l.attrs,{"model-value":t.modelValue,type:t.type,placeholder:t.placeholder,"start-placeholder":t.startPlaceholder,"end-placeholder":t.endPlaceholder,"range-separator":t.rangeSeparator,format:t.format,"value-format":t.valueFormat,"default-time":t.defaultTime,"disabled-date":t.disabledDate,shortcuts:t.shortcuts,clearable:t.clearable,disabled:t.disabled,readonly:t.readonly,size:t.size,teleported:t.teleported,"append-to":t.appendTo,"popper-class":l.mergedPopperClass,"onUpdate:modelValue":l.handleUpdateModelValue,onChange:l.handleChange,onClear:l.handleClear,onCalendarChange:l.handleCalendarChange,onPanelChange:l.handlePanelChange,onVisibleChange:l.handleVisibleChange,onFocus:l.handleFocus,onBlur:l.handleBlur}),{default:a.withCtx(n=>[a.renderSlot(d.$slots,"default",a.normalizeProps(a.guardReactiveProps(n)))]),"range-separator":a.withCtx(n=>[a.renderSlot(d.$slots,"range-separator",a.normalizeProps(a.guardReactiveProps(n)))]),"prev-month":a.withCtx(n=>[a.renderSlot(d.$slots,"prev-month",a.normalizeProps(a.guardReactiveProps(n)))]),"next-month":a.withCtx(n=>[a.renderSlot(d.$slots,"next-month",a.normalizeProps(a.guardReactiveProps(n)))]),"prev-year":a.withCtx(n=>[a.renderSlot(d.$slots,"prev-year",a.normalizeProps(a.guardReactiveProps(n)))]),"next-year":a.withCtx(n=>[a.renderSlot(d.$slots,"next-year",a.normalizeProps(a.guardReactiveProps(n)))]),_:3},16,["model-value","type","placeholder","start-placeholder","end-placeholder","range-separator","format","value-format","default-time","disabled-date","shortcuts","clearable","disabled","readonly","size","teleported","append-to","popper-class"])}const w=B._export_sfc(E,[["render",T],["__file","D:/xushenz/qy-components/packages/ui/lib/qy-date-picker/index.vue"]]);exports.DatePicker=w;
@@ -1,245 +0,0 @@
1
- import { defineComponent as R, useAttrs as Q, useSlots as k, ref as G, computed as f, Comment as J, Text as X, Fragment as z, isVNode as Y, watch as Z, onMounted as $, onUpdated as ee, openBlock as A, createBlock as T, mergeProps as te, createSlots as le, withCtx as p, renderSlot as y, createElementBlock as ae, renderList as re, normalizeProps as ne, guardReactiveProps as oe } from "vue";
2
- import { ElSelect as ie, ElOption as ue } from "element-plus";
3
- import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
4
- const se = /* @__PURE__ */ R({
5
- name: "QySelect",
6
- inheritAttrs: !1,
7
- __name: "index",
8
- props: {
9
- modelValue: { type: [String, Number, Boolean, Object, Array, null], required: !1, skipCheck: !0, default: void 0 },
10
- options: { type: Array, required: !1, default: () => [] },
11
- labelKey: { type: String, required: !1, default: "label" },
12
- valueKey: { type: String, required: !1, default: "value" },
13
- objectIdentityKey: { type: String, required: !1, default: void 0 },
14
- disabledKey: { type: String, required: !1, default: "disabled" },
15
- placeholder: { type: String, required: !1, default: "请选择" },
16
- disabled: { type: Boolean, required: !1, default: !1 },
17
- clearable: { type: Boolean, required: !1, default: !0 },
18
- filterable: { type: Boolean, required: !1, default: !1 },
19
- loading: { type: Boolean, required: !1, default: !1 },
20
- multiple: { type: Boolean, required: !1, default: !1 },
21
- collapseTags: { type: Boolean, required: !1, default: !1 },
22
- collapseTagsTooltip: { type: Boolean, required: !1, default: !1 },
23
- autoSelectSingle: { type: Boolean, required: !1, default: !1 },
24
- size: { type: String, required: !1, default: void 0 },
25
- teleported: { type: Boolean, required: !1, default: !0 },
26
- appendTo: { type: null, required: !1, default: "body" },
27
- fitInputWidth: { type: Boolean, required: !1, default: !0 },
28
- popperClass: { type: String, required: !1, default: "" }
29
- },
30
- emits: ["update:modelValue", "change", "clear", "visible-change", "focus", "blur"],
31
- setup(n, { expose: C, emit: r }) {
32
- const l = Symbol("invalid-select-value"), a = n, o = r, i = Q(), m = k(), S = G(null), w = f(
33
- () => Object.fromEntries(
34
- Object.entries(i).filter(
35
- ([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-")
36
- )
37
- )
38
- ), M = f(
39
- () => ["qy-select__popper", a.popperClass].filter(Boolean).join(" ")
40
- ), B = f(() => {
41
- const e = g(a.modelValue);
42
- return e === l ? void 0 : e;
43
- }), c = f(
44
- () => a.options.map((e) => ({
45
- raw: e,
46
- label: K(e),
47
- value: j(e),
48
- disabled: !!e[a.disabledKey]
49
- }))
50
- ), V = f(() => {
51
- const e = m.default;
52
- return e ? e().some(q) : !1;
53
- }), P = f(() => {
54
- if (!a.objectIdentityKey) return;
55
- const e = B.value, t = Array.isArray(e) ? e.some(s) : s(e), u = !V.value && c.value.some((v) => s(v.value));
56
- return t || u ? a.objectIdentityKey : void 0;
57
- });
58
- function q(e) {
59
- return e.type === J ? !1 : e.type === X ? typeof e.children == "string" && e.children.trim() !== "" : e.type !== z || !Array.isArray(e.children) ? !0 : e.children.some((t) => Y(t) ? q(t) : typeof t == "string" ? t.trim() !== "" : t != null);
60
- }
61
- function s(e) {
62
- return typeof e == "object" && e !== null && !Array.isArray(e);
63
- }
64
- function b(e) {
65
- return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || s(e) ? e : l;
66
- }
67
- function g(e) {
68
- if (e == null) return e;
69
- if (Array.isArray(e)) {
70
- const t = e;
71
- return t.every((u) => b(u) !== l) ? t : l;
72
- }
73
- return b(e);
74
- }
75
- function K(e) {
76
- const t = e[a.labelKey] ?? e.label ?? e.value ?? "";
77
- return typeof t == "string" || typeof t == "number" ? t : typeof t == "boolean" ? String(t) : "";
78
- }
79
- function j(e) {
80
- const t = e[a.valueKey] ?? e.value ?? e.label, u = b(t);
81
- return u === l ? void 0 : u;
82
- }
83
- function O(e) {
84
- return Array.isArray(e) ? e.length === 0 : e === "" || e === null || e === void 0;
85
- }
86
- let d = null;
87
- Z(
88
- [
89
- c,
90
- () => a.modelValue,
91
- () => a.autoSelectSingle,
92
- () => a.disabled,
93
- () => a.multiple
94
- ],
95
- ([e]) => h(e),
96
- { flush: "post" }
97
- ), $(() => h(c.value)), ee(() => h(c.value));
98
- function h(e) {
99
- if (!O(a.modelValue)) {
100
- d = null;
101
- return;
102
- }
103
- if (!a.autoSelectSingle || a.disabled || V.value || e.length !== 1) return;
104
- const [t] = e;
105
- if (t.disabled || t.value === void 0) return;
106
- const u = _(t.value);
107
- if (d && d.identityKey === a.objectIdentityKey && d.multiple === a.multiple && Object.is(d.candidate, u))
108
- return;
109
- d = {
110
- candidate: u,
111
- identityKey: a.objectIdentityKey,
112
- multiple: a.multiple
113
- };
114
- const v = a.multiple ? [t.value] : t.value;
115
- o("update:modelValue", v), o("change", v);
116
- }
117
- function _(e) {
118
- return !s(e) || !a.objectIdentityKey ? e : e[a.objectIdentityKey] ?? e;
119
- }
120
- function U(e, t) {
121
- return `${String(e.value ?? e.label ?? "")}-${t}`;
122
- }
123
- function D(e) {
124
- const t = g(e);
125
- t !== l && o("update:modelValue", t);
126
- }
127
- function F(e) {
128
- const t = g(e);
129
- t !== l && o("change", t);
130
- }
131
- function L() {
132
- o("clear");
133
- }
134
- function W(e) {
135
- o("visible-change", e);
136
- }
137
- function H(e) {
138
- o("focus", e);
139
- }
140
- function N(e) {
141
- o("blur", e);
142
- }
143
- function I() {
144
- var e, t;
145
- (t = (e = S.value) == null ? void 0 : e.focus) == null || t.call(e);
146
- }
147
- function E() {
148
- var e, t;
149
- (t = (e = S.value) == null ? void 0 : e.blur) == null || t.call(e);
150
- }
151
- C({
152
- // 仅暴露业务常用焦点方法,复杂下拉行为仍交给 Element Plus 自身处理。
153
- focus: I,
154
- blur: E
155
- });
156
- const x = { INVALID_VALUE: l, props: a, emit: o, attrs: i, slots: m, selectRef: S, adapterAttrs: w, mergedPopperClass: M, controlledModelValue: B, normalizedOptions: c, hasDefaultSlotContent: V, elementValueKey: P, vnodeHasContent: q, isObjectValue: s, preserveSelectValue: b, preserveModelValue: g, getOptionLabel: K, getOptionValue: j, isEmptyValue: O, get lastAutoSelectState() {
157
- return d;
158
- }, set lastAutoSelectState(e) {
159
- d = e;
160
- }, runAutoSelect: h, getAutoSelectCandidate: _, getOptionKey: U, handleUpdateModelValue: D, handleChange: F, handleClear: L, handleVisibleChange: W, handleFocus: H, handleBlur: N, focus: I, blur: E, get ElOption() {
161
- return ue;
162
- }, get ElSelect() {
163
- return ie;
164
- } };
165
- return Object.defineProperty(x, "__isScriptSetup", { enumerable: !1, value: !0 }), x;
166
- }
167
- });
168
- function fe(n, C, r, l, a, o) {
169
- return A(), T(l.ElSelect, te({
170
- ref: "selectRef",
171
- class: "qy-select"
172
- }, l.adapterAttrs, {
173
- "model-value": l.controlledModelValue,
174
- placeholder: r.placeholder,
175
- disabled: r.disabled,
176
- clearable: r.clearable,
177
- filterable: r.filterable,
178
- loading: r.loading,
179
- multiple: r.multiple,
180
- "collapse-tags": r.collapseTags,
181
- "collapse-tags-tooltip": r.collapseTagsTooltip,
182
- size: r.size,
183
- teleported: r.teleported,
184
- "fit-input-width": r.fitInputWidth,
185
- "popper-class": l.mergedPopperClass,
186
- "append-to": r.appendTo,
187
- "value-key": l.elementValueKey,
188
- "onUpdate:modelValue": l.handleUpdateModelValue,
189
- onChange: l.handleChange,
190
- onClear: l.handleClear,
191
- onVisibleChange: l.handleVisibleChange,
192
- onFocus: l.handleFocus,
193
- onBlur: l.handleBlur
194
- }), le({
195
- default: p(() => [
196
- l.hasDefaultSlotContent ? y(n.$slots, "default", {}, void 0, !0, 0) : (A(!0), ae(
197
- z,
198
- { key: 1 },
199
- re(l.normalizedOptions, (i, m) => (A(), T(l.ElOption, {
200
- key: l.getOptionKey(i, m),
201
- label: i.label,
202
- value: i.value,
203
- disabled: i.disabled
204
- }, null, 8, ["label", "value", "disabled"]))),
205
- 128
206
- /* KEYED_FRAGMENT */
207
- ))
208
- ]),
209
- _: 2
210
- /* DYNAMIC */
211
- }, [
212
- n.$slots.prefix ? {
213
- name: "prefix",
214
- fn: p(() => [
215
- y(n.$slots, "prefix", {}, void 0, !0)
216
- ]),
217
- key: "0"
218
- } : void 0,
219
- n.$slots.empty ? {
220
- name: "empty",
221
- fn: p(() => [
222
- y(n.$slots, "empty", {}, void 0, !0)
223
- ]),
224
- key: "1"
225
- } : void 0,
226
- n.$slots.loading ? {
227
- name: "loading",
228
- fn: p(() => [
229
- y(n.$slots, "loading", {}, void 0, !0)
230
- ]),
231
- key: "2"
232
- } : void 0,
233
- n.$slots.tag ? {
234
- name: "tag",
235
- fn: p((i) => [
236
- y(n.$slots, "tag", ne(oe(i)), void 0, !0)
237
- ]),
238
- key: "3"
239
- } : void 0
240
- ]), 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"]);
241
- }
242
- const me = /* @__PURE__ */ de(se, [["render", fe], ["__scopeId", "data-v-27904def"], ["__file", "D:/xushenz/qy-components/packages/ui/lib/qy-select/index.vue"]]);
243
- export {
244
- me as S
245
- };
@@ -1 +0,0 @@
1
- "use strict";const a=require("vue"),V=require("element-plus"),x=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),z=a.defineComponent({name:"QyAutocomplete",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[String,Number,null],required:!1,default:""},options:{type:[Array,Object],required:!1,default:()=>[]},valueKey:{type:String,required:!1,default:"value"},labelKey:{type:String,required:!1,default:"label"},placeholder:{type:String,required:!1,default:"请输入"},disabled:{type:Boolean,required:!1,default:!1},clearable:{type:Boolean,required:!1,default:!0},size:{type:String,required:!1,default:void 0},teleported:{type:Boolean,required:!1,default:!0},appendTo:{type:String,required:!1,default:"body"},popperClass:{type:String,required:!1,default:""},filterMethod:{type:Function,required:!1,default:void 0}},emits:["update:modelValue","input","change","select","focus","blur","clear"],setup(c,{expose:o,emit:r}){const l=c,u=r,s=a.useAttrs(),d=a.ref(null),b=a.computed(()=>["qy-autocomplete__popper",l.popperClass].filter(Boolean).join(" ")),f=a.computed(()=>{const e=a.unref(l.options);return(Array.isArray(e)?e:a.unref(e==null?void 0:e.value)||[]).map(t=>({...t,value:(t==null?void 0:t[l.valueKey])??(t==null?void 0:t.value)??(t==null?void 0:t[l.labelKey])??(t==null?void 0:t.label)??""}))});function i(e,n){const t=String(e??""),B=f.value.filter(y=>l.filterMethod?l.filterMethod(t,y):t?String(y.value??"").includes(t):!0);n(B)}function g(e){u("update:modelValue",e)}function _(e){u("input",e)}function q(e){u("change",e)}function v(e){u("select",e)}function S(e){u("focus",e)}function A(e){u("blur",e)}function C(){u("clear")}function p(){var e,n;(n=(e=d.value)==null?void 0:e.focus)==null||n.call(e)}function m(){var e,n;(n=(e=d.value)==null?void 0:e.blur)==null||n.call(e)}o({querySearch:i,focus:p,blur:m});const h={props:l,emit:u,attrs:s,autocompleteRef:d,mergedPopperClass:b,normalizedOptions:f,querySearch:i,handleUpdateModelValue:g,handleInput:_,handleChange:q,handleSelect:v,handleFocus:S,handleBlur:A,handleClear:C,focus:p,blur:m,get ElAutocomplete(){return V.ElAutocomplete}};return Object.defineProperty(h,"__isScriptSetup",{enumerable:!1,value:!0}),h}});function M(c,o,r,l,u,s){return a.openBlock(),a.createBlock(l.ElAutocomplete,a.mergeProps({ref:"autocompleteRef"},l.attrs,{"model-value":r.modelValue,"fetch-suggestions":l.querySearch,placeholder:r.placeholder,disabled:r.disabled,clearable:r.clearable,size:r.size,teleported:r.teleported,"append-to":r.appendTo,"popper-class":l.mergedPopperClass,"onUpdate:modelValue":l.handleUpdateModelValue,onInput:l.handleInput,onChange:l.handleChange,onSelect:l.handleSelect,onFocus:l.handleFocus,onBlur:l.handleBlur,onClear:l.handleClear}),null,16,["model-value","placeholder","disabled","clearable","size","teleported","append-to","popper-class"])}const P=x._export_sfc(z,[["render",M],["__file","D:/xushenz/qy-components/packages/ui/lib/qy-autocomplete/index.vue"]]);exports.Autocomplete=P;
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),y=require("./index-Bw3nETeY.cjs"),k=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),q=e.defineComponent({name:"QyFilePicker",__name:"index",props:{modelValue:{type:null,required:!1,default:null},extensions:{type:Array,required:!1,default:()=>[]},maxSizeMb:{type:Number,required:!1,default:20},disabled:{type:Boolean,required:!1,default:!1},drag:{type:Boolean,required:!1,default:!0},placeholder:{type:String,required:!1,default:"请选择文件"}},emits:["update:modelValue","change","clear","invalid"],setup(c,{expose:u,emit:a}){const l=c,n=a,r=e.ref(null),t=e.ref(!1),o=e.computed(()=>l.modelValue?[l.modelValue]:[]);let d=!1;function f(){var i;l.disabled||(i=r.value)==null||i.openFileDialog()}function s(){var i;d=!0,(i=r.value)==null||i.clearFiles(),d=!1,n("update:modelValue",null),n("change",null),n("clear")}function m(){l.disabled||s()}function g(){!l.disabled&&l.drag&&(t.value=!0)}function v(){t.value=!1}function p(i){if(d)return;const h=i[0]??null;n("update:modelValue",h),n("change",h)}function b(i){n("invalid",i)}u({openFileDialog:f,clear:s});const _={props:l,emit:n,uploadRef:r,isDragover:t,selectedFiles:o,get clearing(){return d},set clearing(i){d=i},openFileDialog:f,clear:s,handleClearClick:m,handleDragenter:g,handleDragleave:v,handleSelectedFiles:p,handleInvalid:b,QyUpload:y.Upload};return Object.defineProperty(_,"__isScriptSetup",{enumerable:!1,value:!0}),_}}),x=["tabindex","aria-disabled","onClick","onKeydown"],D={class:"qy-file-picker__label"},V={key:0,class:"qy-file-picker__hint"},w=["disabled"];function C(c,u,a,l,n,r){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["qy-file-picker",{"is-disabled":a.disabled,"is-dragover":l.isDragover}])},[e.createVNode(l.QyUpload,{ref:"uploadRef",variant:"file-list","auto-upload":!1,"selected-files":l.selectedFiles,"file-type":a.extensions,"file-size":a.maxSizeMb,disabled:a.disabled,"disable-drag":!a.drag,multiple:!1,limit:1,"show-text":!1,"show-paste-input":!1,"onUpdate:selectedFiles":l.handleSelectedFiles,onInvalid:l.handleInvalid},{trigger:e.withCtx(({open:t})=>{var o;return[e.createElementVNode("div",{class:e.normalizeClass(["qy-file-picker__dropzone",{"is-click-only":!a.drag}]),role:"button",tabindex:a.disabled?-1:0,"aria-disabled":a.disabled?"true":void 0,onClick:t,onKeydown:[e.withKeys(e.withModifiers(t,["prevent"]),["enter"]),e.withKeys(e.withModifiers(t,["prevent"]),["space"])],onDragenter:e.withModifiers(l.handleDragenter,["prevent"]),onDragover:e.withModifiers(l.handleDragenter,["prevent"]),onDragleave:e.withModifiers(l.handleDragleave,["prevent"]),onDrop:l.handleDragleave},[e.createElementVNode("span",D,e.toDisplayString(((o=a.modelValue)==null?void 0:o.name)||a.placeholder),1),a.drag?(e.openBlock(),e.createElementBlock("span",V," 点击选择或拖拽单个文件到此处 ")):e.createCommentVNode("v-if",!0)],42,x)]}),_:1},8,["selected-files","file-type","file-size","disabled","disable-drag"]),a.modelValue?(e.openBlock(),e.createElementBlock("button",{key:0,class:"qy-file-picker__clear",type:"button",disabled:a.disabled,onClick:e.withModifiers(l.handleClearClick,["stop"])}," 清空 ",8,w)):e.createCommentVNode("v-if",!0)],2)}const F=k._export_sfc(q,[["render",C],["__scopeId","data-v-89753530"],["__file","D:/xushenz/qy-components/packages/ui/lib/qy-file-picker/index.vue"]]);exports.FilePicker=F;