@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
@@ -0,0 +1,298 @@
1
+ import { defineComponent as ae, useAttrs as oe, ref as de, computed as h, openBlock as re, createBlock as le, unref as k, mergeProps as ce, createSlots as ue, withCtx as y, renderSlot as C } from "vue";
2
+ import { ElTree as ie } from "element-plus";
3
+ const ge = /* @__PURE__ */ ae({
4
+ name: "QyTree",
5
+ inheritAttrs: !1,
6
+ __name: "index",
7
+ props: {
8
+ data: { default: () => [] },
9
+ emptyText: {},
10
+ nodeKey: {},
11
+ props: { default: () => ({}) },
12
+ renderAfterExpand: { type: Boolean, default: !0 },
13
+ defaultExpandAll: { type: Boolean },
14
+ expandOnClickNode: { type: Boolean, default: !0 },
15
+ autoExpandParent: { type: Boolean, default: !0 },
16
+ defaultExpandedKeys: {},
17
+ accordion: { type: Boolean },
18
+ indent: { default: 18 },
19
+ icon: {},
20
+ highlightCurrent: { type: Boolean },
21
+ currentNodeKey: {},
22
+ showCheckbox: { type: Boolean },
23
+ checkStrictly: { type: Boolean },
24
+ checkOnClickNode: { type: Boolean },
25
+ checkOnClickLeaf: { type: Boolean, default: !0 },
26
+ checkDescendants: { type: Boolean },
27
+ defaultCheckedKeys: {},
28
+ filterNodeMethod: {},
29
+ lazy: { type: Boolean },
30
+ load: {},
31
+ draggable: { type: Boolean },
32
+ allowDrag: {},
33
+ allowDrop: {}
34
+ },
35
+ emits: ["node-click", "node-contextmenu", "current-change", "node-expand", "node-collapse", "check-change", "check", "node-drag-start", "node-drag-enter", "node-drag-over", "node-drag-leave", "node-drag-end", "node-drop"],
36
+ setup(l, { expose: p, emit: v }) {
37
+ const r = l, i = v, x = oe(), u = de(), D = Object.freeze([...r.defaultExpandedKeys ?? []]), m = Object.freeze([...r.defaultCheckedKeys ?? []]), K = h(() => Object.fromEntries(Object.entries(x).filter(
38
+ ([e]) => e === "class" || e === "style" || e === "id" || e === "title" || e.startsWith("data-") || e.startsWith("aria-")
39
+ )));
40
+ function o(e) {
41
+ var n, t, a, d;
42
+ return Object.freeze({
43
+ key: e.key ?? null,
44
+ parentKey: ((n = e.parent) == null ? void 0 : n.key) ?? null,
45
+ data: e.data,
46
+ label: e.label ?? String(((a = e.data) == null ? void 0 : a[typeof ((t = r.props) == null ? void 0 : t.label) == "string" ? r.props.label : "label"]) ?? ""),
47
+ level: e.level ?? 0,
48
+ expanded: e.expanded === !0,
49
+ checked: e.checked === !0,
50
+ indeterminate: e.indeterminate === !0,
51
+ disabled: e.disabled === !0,
52
+ leaf: e.isLeaf === !0,
53
+ visible: e.visible !== !1,
54
+ loading: e.loading === !0,
55
+ loaded: e.loaded === !0,
56
+ childCount: ((d = e.childNodes) == null ? void 0 : d.length) ?? 0
57
+ });
58
+ }
59
+ const b = h(() => {
60
+ const e = r.props ?? {};
61
+ return {
62
+ ...e,
63
+ ...typeof e.label == "function" ? { label: (n) => {
64
+ var t;
65
+ return ((t = e.label) == null ? void 0 : t.call(e, n)) ?? "";
66
+ } } : {},
67
+ ...typeof e.disabled == "function" ? { disabled: (n) => {
68
+ var t;
69
+ return ((t = e.disabled) == null ? void 0 : t.call(e, n)) ?? !1;
70
+ } } : {},
71
+ ...typeof e.isLeaf == "function" ? { isLeaf: (n) => {
72
+ var t;
73
+ return ((t = e.isLeaf) == null ? void 0 : t.call(e, n)) ?? !1;
74
+ } } : {},
75
+ ...typeof e.class == "function" ? { class: (n, t) => {
76
+ var a;
77
+ return ((a = e.class) == null ? void 0 : a.call(e, n, o(t))) ?? "";
78
+ } } : {}
79
+ };
80
+ }), w = h(() => r.filterNodeMethod ? (e, n, t) => {
81
+ var a;
82
+ return ((a = r.filterNodeMethod) == null ? void 0 : a.call(r, e, n, o(t))) ?? !1;
83
+ } : void 0), E = h(() => r.load ? (e, n, t) => {
84
+ var a;
85
+ return (a = r.load) == null ? void 0 : a.call(r, o(e), n, t);
86
+ } : void 0);
87
+ function c(e) {
88
+ var t;
89
+ return ((t = u.value) == null ? void 0 : t.getNode(e.data)) === e ? e : null;
90
+ }
91
+ function g(e) {
92
+ var t;
93
+ const n = (t = u.value) == null ? void 0 : t.getNode(e);
94
+ return (n == null ? void 0 : n.data) === e ? n : null;
95
+ }
96
+ const B = h(() => r.allowDrag ? (e) => {
97
+ var t;
98
+ const n = c(e);
99
+ return n ? ((t = r.allowDrag) == null ? void 0 : t.call(r, o(n))) ?? !1 : !1;
100
+ } : void 0), O = h(() => r.allowDrop ? (e, n, t) => {
101
+ var f;
102
+ const a = c(e), d = c(n);
103
+ return a && d ? ((f = r.allowDrop) == null ? void 0 : f.call(r, o(a), o(d), t === "prev" ? "before" : t === "next" ? "after" : "inner")) ?? !1 : !1;
104
+ } : void 0);
105
+ function A(e) {
106
+ return { checkedKeys: e.checkedKeys ?? [], checkedNodes: e.checkedNodes ?? [], halfCheckedKeys: e.halfCheckedKeys ?? [], halfCheckedNodes: e.halfCheckedNodes ?? [] };
107
+ }
108
+ function se(e) {
109
+ return e;
110
+ }
111
+ function L(e, n, t, a) {
112
+ const d = c(n);
113
+ d && i("node-click", d.data, o(d), a);
114
+ }
115
+ function P(e, n, t) {
116
+ const a = c(t);
117
+ a && i("node-contextmenu", e, a.data, o(a));
118
+ }
119
+ function S(e, n) {
120
+ if (e === null && n === null) {
121
+ i("current-change", null, null);
122
+ return;
123
+ }
124
+ const t = n ? c(n) : g(e);
125
+ t && i("current-change", t.data, n ? o(t) : null);
126
+ }
127
+ function z(e, n) {
128
+ const t = c(n);
129
+ t && i("node-expand", t.data, o(t));
130
+ }
131
+ function H(e, n) {
132
+ const t = c(n);
133
+ t && i("node-collapse", t.data, o(t));
134
+ }
135
+ function M(e, n, t) {
136
+ const a = g(e);
137
+ a && i("check-change", a.data, n, t);
138
+ }
139
+ function T(e, n) {
140
+ const t = g(e);
141
+ t && i("check", t.data, A(n));
142
+ }
143
+ function j(e, n) {
144
+ const t = c(e);
145
+ t && i("node-drag-start", o(t), n);
146
+ }
147
+ function $(e, n, t) {
148
+ const a = c(e), d = c(n);
149
+ a && d && i("node-drag-enter", o(a), o(d), t);
150
+ }
151
+ function q(e, n, t) {
152
+ const a = c(e), d = c(n);
153
+ a && d && i("node-drag-over", o(a), o(d), t);
154
+ }
155
+ function Q(e, n, t) {
156
+ const a = c(e), d = c(n);
157
+ a && d && i("node-drag-leave", o(a), o(d), t);
158
+ }
159
+ function I(e, n, t, a) {
160
+ const d = c(e), f = n ? c(n) : null;
161
+ d && (!n || f) && i("node-drag-end", o(d), f ? o(f) : null, t, a);
162
+ }
163
+ function R(e, n, t, a) {
164
+ const d = c(e), f = c(n);
165
+ d && f && i("node-drop", o(d), o(f), t, a);
166
+ }
167
+ function s(e) {
168
+ if (!r.nodeKey) throw new Error(`QyTree.${e} requires nodeKey`);
169
+ }
170
+ function W(e) {
171
+ var n;
172
+ if (!r.filterNodeMethod) throw new Error("QyTree.filter requires filterNodeMethod");
173
+ (n = u.value) == null || n.filter(e);
174
+ }
175
+ function F(e) {
176
+ var t;
177
+ s("getNode");
178
+ const n = (t = u.value) == null ? void 0 : t.getNode(e);
179
+ return n ? o(n) : null;
180
+ }
181
+ function G(e) {
182
+ var n;
183
+ return s("getNodePath"), ((n = u.value) == null ? void 0 : n.getNodePath(e)) ?? [];
184
+ }
185
+ function J(e) {
186
+ var n;
187
+ return s("getCheckedKeys"), ((n = u.value) == null ? void 0 : n.getCheckedKeys(e)) ?? [];
188
+ }
189
+ function U(e, n) {
190
+ var t;
191
+ return s("getCheckedNodes"), ((t = u.value) == null ? void 0 : t.getCheckedNodes(e, n)) ?? [];
192
+ }
193
+ function V() {
194
+ var e;
195
+ return s("getHalfCheckedKeys"), ((e = u.value) == null ? void 0 : e.getHalfCheckedKeys()) ?? [];
196
+ }
197
+ function X() {
198
+ var e;
199
+ return s("getHalfCheckedNodes"), ((e = u.value) == null ? void 0 : e.getHalfCheckedNodes()) ?? [];
200
+ }
201
+ function Y(e, n, t = !1) {
202
+ var a;
203
+ s("setChecked"), (a = u.value) == null || a.setChecked(e, n, t);
204
+ }
205
+ function Z(e, n) {
206
+ var t;
207
+ s("setCheckedKeys"), (t = u.value) == null || t.setCheckedKeys(e, n);
208
+ }
209
+ function _(e, n) {
210
+ var t;
211
+ s("setCheckedNodes"), (t = u.value) == null || t.setCheckedNodes(e, n);
212
+ }
213
+ function N() {
214
+ var n, t;
215
+ s("getCurrentKey");
216
+ const e = ((n = u.value) == null ? void 0 : n.getCurrentKey()) ?? null;
217
+ return e !== null && ((t = u.value) != null && t.getNode(e)) ? e : null;
218
+ }
219
+ function ee() {
220
+ var e;
221
+ return s("getCurrentNode"), N() === null ? null : ((e = u.value) == null ? void 0 : e.getCurrentNode()) ?? null;
222
+ }
223
+ function te(e, n = !0) {
224
+ var t;
225
+ s("setCurrentKey"), (t = u.value) == null || t.setCurrentKey(e, n);
226
+ }
227
+ function ne(e, n = !0) {
228
+ var t;
229
+ s("setCurrentNode"), (t = u.value) == null || t.setCurrentNode(e, n);
230
+ }
231
+ return p({ filter: W, getNode: F, getNodePath: G, getCheckedKeys: J, getCheckedNodes: U, getHalfCheckedKeys: V, getHalfCheckedNodes: X, setChecked: Y, setCheckedKeys: Z, setCheckedNodes: _, getCurrentKey: N, getCurrentNode: ee, setCurrentKey: te, setCurrentNode: ne }), (e, n) => (re(), le(k(ie), ce({
232
+ ref_key: "treeRef",
233
+ ref: u
234
+ }, K.value, {
235
+ class: "qy-tree",
236
+ data: l.data,
237
+ "empty-text": l.emptyText,
238
+ "node-key": l.nodeKey,
239
+ props: b.value,
240
+ "render-after-expand": l.renderAfterExpand,
241
+ "default-expand-all": l.defaultExpandAll,
242
+ "expand-on-click-node": l.expandOnClickNode,
243
+ "auto-expand-parent": l.autoExpandParent,
244
+ "default-expanded-keys": k(D),
245
+ accordion: l.accordion,
246
+ indent: l.indent,
247
+ icon: l.icon,
248
+ "highlight-current": l.highlightCurrent,
249
+ "current-node-key": l.currentNodeKey,
250
+ "show-checkbox": l.showCheckbox,
251
+ "check-strictly": l.checkStrictly,
252
+ "check-on-click-node": l.checkOnClickNode,
253
+ "check-on-click-leaf": l.checkOnClickLeaf,
254
+ "check-descendants": l.checkDescendants,
255
+ "default-checked-keys": k(m),
256
+ "filter-node-method": w.value,
257
+ lazy: l.lazy,
258
+ load: E.value,
259
+ draggable: l.draggable,
260
+ "allow-drag": B.value,
261
+ "allow-drop": O.value,
262
+ onNodeClick: L,
263
+ onNodeContextmenu: P,
264
+ onCurrentChange: S,
265
+ onNodeExpand: z,
266
+ onNodeCollapse: H,
267
+ onCheckChange: M,
268
+ onCheck: T,
269
+ onNodeDragStart: j,
270
+ onNodeDragEnter: $,
271
+ onNodeDragOver: q,
272
+ onNodeDragLeave: Q,
273
+ onNodeDragEnd: I,
274
+ onNodeDrop: R
275
+ }), ue({ _: 2 }, [
276
+ e.$slots.default ? {
277
+ name: "default",
278
+ fn: y((t) => [
279
+ C(e.$slots, "default", {
280
+ data: t.data,
281
+ node: o(t.node)
282
+ })
283
+ ]),
284
+ key: "0"
285
+ } : void 0,
286
+ e.$slots.empty ? {
287
+ name: "empty",
288
+ fn: y(() => [
289
+ C(e.$slots, "empty")
290
+ ]),
291
+ key: "1"
292
+ } : void 0
293
+ ]), 1040, ["data", "empty-text", "node-key", "props", "render-after-expand", "default-expand-all", "expand-on-click-node", "auto-expand-parent", "default-expanded-keys", "accordion", "indent", "icon", "highlight-current", "current-node-key", "show-checkbox", "check-strictly", "check-on-click-node", "check-on-click-leaf", "check-descendants", "default-checked-keys", "filter-node-method", "lazy", "load", "draggable", "allow-drag", "allow-drop"]));
294
+ }
295
+ });
296
+ export {
297
+ ge as _
298
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),Q=require("./index-CUlhX6fW.cjs"),T=require("./index-HNFq7v-A.cjs"),J=require("../qy-popover/index.cjs"),S=require("./index-CVWru9T3.cjs");function X(l,f){const v=f==null?"":String(f),n=l&&v?l.resolve(v):void 0;return Object.freeze({value:v,known:!!n,canonicalName:n==null?void 0:n.name,definition:n})}function Z(l,f,v=""){const n=(l==null?void 0:l.list())??[],c=f===void 0?void 0:new Set(f.map(r=>{var p;return(p=l==null?void 0:l.resolve(r))==null?void 0:p.name}).filter(r=>!!r).map(z)),d=String(v).trim().toLocaleLowerCase();return Object.freeze(n.filter(r=>c&&!c.has(z(r.name))?!1:d?[r.name,r.label,...r.keywords??[]].some(p=>typeof p=="string"&&p.toLocaleLowerCase().includes(d)):!0))}function z(l){return S.normalizeQyIconName(l).toLocaleLowerCase()}const ee={class:"qy-icon-picker"},ae=["onKeydown"],ne={class:"qy-icon-picker__preview","aria-hidden":"true"},oe={key:1,class:"qy-icon-picker__missing","aria-hidden":"true"},te=["id"],le={class:"qy-icon-picker__search","data-testid":"qy-icon-picker-search"},re={key:0,class:"qy-icon-picker__state","data-testid":"qy-icon-picker-loading",role:"status"},ie={key:1,class:"qy-icon-picker__state qy-icon-picker__state--error","data-testid":"qy-icon-picker-error",role:"alert"},ce=["aria-label"],ue=["id","data-qy-icon-option","data-qy-icon-active","aria-selected","tabindex","onClick","onFocus","onKeydown"],se={class:"qy-icon-picker__option-label"},de={key:3,class:"qy-icon-picker__empty"};let pe=0;const fe=e.defineComponent({name:"QyIconPicker",__name:"index",props:{modelValue:{default:""},allowedNames:{},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},size:{default:"default"},placeholder:{default:"点击选择图标"},searchPlaceholder:{default:"搜索图标名称、标签或关键词"},emptyText:{default:"暂无匹配图标"},panelWidth:{default:540},open:{type:Boolean,default:void 0},id:{},ariaLabel:{}},emits:["update:modelValue","change","clear","update:open","open-change"],setup(l,{expose:f,emit:v}){const n=l,c=v,d=e.inject(S.QY_ICON_REGISTRY_KEY,null),r=e.ref(""),p=e.ref(!1),i=e.ref(-1),w=e.ref([]),m=e.ref(!1),g=e.ref(""),V=e.ref(0);let x=!1;const h=e.ref(null),L=e.ref(null),q=e.ref("pointer"),$=`qy-icon-picker-${++pe}`,y=e.computed(()=>X(d,n.modelValue)),s=e.computed(()=>(V.value,Z(d,n.allowedNames,r.value))),_=e.computed(()=>n.open!==void 0),k=e.computed(()=>_.value?n.open===!0:p.value),M=e.computed(()=>"click"),B=e.computed(()=>`${n.id||$}-panel`);e.watch(k,(a,o)=>{!a||o||(r.value="",i.value=F(),w.value=[],!x&&d&&(x=!0,K(d.load())),q.value==="keyboard"&&e.nextTick(()=>{var t,u;return(u=(t=L.value)==null?void 0:t.focus)==null?void 0:u.call(t)}))});function K(a){m.value=!0,g.value="",a.then(()=>{m.value=!1,V.value++},o=>{m.value=!1,g.value=o instanceof Error?o.message:String(o)})}function A(){!d||m.value||K(d.retry())}e.watch(s,()=>{if(!s.value.length){i.value=-1;return}i.value>=s.value.length&&(i.value=0),i.value<0&&(i.value=0)});function P(){n.disabled||(q.value="keyboard",C("keyboard"))}function D(a){n.disabled||_.value&&n.open!==!1||(a.stopImmediatePropagation(),C("pointer"))}function O(a){I(a)}function U(a){a===k.value&&(_.value||(p.value=a),c("open-change",a),a||e.nextTick(()=>{var o,t;return(t=(o=h.value)==null?void 0:o.focus)==null?void 0:t.call(o)}))}function I(a){a&&n.disabled||a!==k.value&&(_.value||(p.value=a),c("update:open",a))}function C(a="programmatic"){q.value=a,I(!0)}function E(){I(!1),e.nextTick(()=>{var a,o;return(o=(a=h.value)==null?void 0:a.focus)==null?void 0:o.call(a)})}function R(){n.disabled||(c("update:modelValue",""),c("change",""),c("clear"))}function N(a){n.disabled||(c("update:modelValue",a.name),c("change",a.name),E())}function j(a){if(a.key==="Escape"){a.preventDefault(),E();return}if(!s.value.length||!["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(a.key))return;a.preventDefault();const o=a.key==="ArrowUp"||a.key==="ArrowLeft"?-1:1,t=s.value.length;i.value=(i.value+o+t)%t,e.nextTick(()=>{var u;return(u=w.value[i.value])==null?void 0:u.focus()})}function F(){const a=y.value.canonicalName;if(!a)return s.value.length?0:-1;const o=s.value.findIndex(({name:t})=>t===a);return o>=0?o:s.value.length?0:-1}function Y(a,o){a instanceof HTMLElement&&(w.value[o]=a)}function W(a){return`${B.value}-${encodeURIComponent(a)}`}function G(){var a,o;(o=(a=h.value)==null?void 0:a.focus)==null||o.call(a)}function H(){var a,o;(o=(a=h.value)==null?void 0:a.blur)==null||o.call(a)}return f({focus:G,blur:H,open:C,close:E}),(a,o)=>(e.openBlock(),e.createElementBlock("div",ee,[e.createVNode(e.unref(J.QyPopover),{ref:"popoverRef",class:"qy-icon-picker__popover",open:k.value,trigger:M.value,placement:"bottom-start",width:n.panelWidth,"show-delay":0,"hide-delay":0,disabled:n.disabled||_.value&&n.open===!1,"onUpdate:open":O,onOpenChange:U},{reference:e.withCtx(()=>[e.createElementVNode("div",{class:"qy-icon-picker__trigger","data-testid":"qy-icon-picker-trigger",onClick:D,onKeydown:[e.withKeys(e.withModifiers(P,["prevent"]),["enter"]),e.withKeys(e.withModifiers(P,["prevent"]),["space"])]},[e.createVNode(e.unref(T.QyInput),{ref_key:"triggerRef",ref:h,id:n.id,"model-value":y.value.value,size:n.size,disabled:n.disabled,clearable:n.clearable,readonly:"",placeholder:n.placeholder,"aria-label":n.ariaLabel,"aria-haspopup":"listbox","aria-expanded":k.value?"true":"false","aria-controls":B.value,onClear:R},{prefix:e.withCtx(()=>[e.createElementVNode("span",ne,[y.value.definition?(e.openBlock(),e.createBlock(e.unref(Q.QyIcon),{key:0,name:y.value.definition.name,size:18},null,8,["name"])):(e.openBlock(),e.createElementBlock("span",oe,"?"))])]),suffix:e.withCtx(()=>[n.clearable&&y.value.value?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"qy-icon-picker__clear","data-testid":"qy-icon-picker-clear","aria-label":"清空图标",onClick:e.withModifiers(R,["stop","prevent"])},[...o[1]||(o[1]=[e.createElementVNode("span",{"aria-hidden":"true"},"×",-1)])])):e.createCommentVNode("",!0)]),_:1},8,["id","model-value","size","disabled","clearable","placeholder","aria-label","aria-expanded","aria-controls"])],40,ae)]),default:e.withCtx(()=>[k.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:B.value,class:"qy-icon-picker__panel",onKeydown:j},[e.createElementVNode("div",le,[e.createVNode(e.unref(T.QyInput),{ref_key:"searchRef",ref:L,modelValue:r.value,"onUpdate:modelValue":o[0]||(o[0]=t=>r.value=t),type:"search",clearable:"",placeholder:n.searchPlaceholder,"aria-label":"搜索图标"},null,8,["modelValue","placeholder"])]),m.value?(e.openBlock(),e.createElementBlock("div",re," 正在加载图标… ")):g.value?(e.openBlock(),e.createElementBlock("div",ie,[e.createElementVNode("span",null,e.toDisplayString(g.value),1),e.createElementVNode("button",{type:"button","data-testid":"qy-icon-picker-retry",onClick:A}," 重试 ")])):s.value.length?(e.openBlock(),e.createElementBlock("div",{key:2,class:"qy-icon-picker__grid",role:"listbox","aria-label":n.ariaLabel||"图标列表"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(t,u)=>(e.openBlock(),e.createElementBlock("div",{id:W(t.name),key:t.name,ref_for:!0,ref:b=>Y(b,u),class:e.normalizeClass(["qy-icon-picker__option",{"is-active":i.value===u}]),"data-qy-icon-option":t.name,"data-qy-icon-active":i.value===u?"true":void 0,role:"option","aria-selected":y.value.canonicalName===t.name?"true":"false",tabindex:i.value===u?0:-1,onClick:b=>N(t),onFocus:b=>i.value=u,onKeydown:[e.withKeys(e.withModifiers(b=>N(t),["prevent"]),["enter"]),e.withKeys(e.withModifiers(b=>N(t),["prevent"]),["space"])]},[e.createVNode(e.unref(Q.QyIcon),{name:t.name,size:18,"aria-hidden":"true"},null,8,["name"]),e.createElementVNode("span",se,e.toDisplayString(t.label||t.name),1)],42,ue))),128))],8,ce)):(e.openBlock(),e.createElementBlock("div",de,[e.renderSlot(a.$slots,"empty",{},()=>[e.createTextVNode(e.toDisplayString(n.emptyText),1)])]))],40,te)):e.createCommentVNode("",!0)]),_:3},8,["open","trigger","width","disabled"])]))}});exports._sfc_main=fe;
@@ -0,0 +1 @@
1
+ "use strict";const a=require("vue"),x=require("element-plus"),D=a.defineComponent({name:"QyDatePicker",inheritAttrs:!1,__name:"index",props:{modelValue:{default:void 0},type:{default:"date"},placeholder:{default:"请选择日期"},startPlaceholder:{default:"开始时间"},endPlaceholder:{default:"结束时间"},rangeSeparator:{default:"-"},format:{default:void 0},valueFormat:{default:void 0},defaultTime:{default:void 0},disabledDate:{type:Function,default:void 0},shortcuts:{default:void 0},clearable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean},size:{default:void 0},teleported:{type:Boolean,default:!0},appendTo:{default:"body"},popperClass:{default:""},normalizeRangeEndTime:{type:Boolean,default:!1}},emits:["update:modelValue","change","clear","calendar-change","panel-change","visible-change","focus","blur"],setup(l,{expose:s,emit:c}){const d=l,r=c,f=a.useAttrs(),o=a.ref(null),h=a.computed(()=>["qy-date-picker__popper",d.popperClass].filter(Boolean).join(" "));function p(e){return Array.isArray(e)}function m(e){if(e.getHours()!==0||e.getMinutes()!==0||e.getSeconds()!==0||e.getMilliseconds()!==0)return e;const t=new Date(e);return t.setHours(23,59,59,0),t}function g(e){const t=e.match(/(T| )00:00:00(\.000)?(Z|[+-]\d{2}:?\d{2})?$/);return t?e.replace(t[0],`${t[1]}23:59:59${t[2]??""}${t[3]??""}`):e}function i(e){if(!d.normalizeRangeEndTime||!p(e)||e.length<2)return e;const t=e[1];let n=t;if(t instanceof Date?n=m(t):typeof t=="string"&&(n=g(t)),n===t)return e;const u=[...e];return u[1]=n,u}function y(e){r("update:modelValue",i(e))}function P(e){r("change",i(e))}function C(){r("clear")}function b(e){r("calendar-change",e)}function v(e,t,n){if(n===void 0){r("panel-change",e,t);return}r("panel-change",e,t,n)}function z(e){r("visible-change",e)}function V(e){r("focus",e)}function R(e){r("blur",e)}function B(){var e,t;(t=(e=o.value)==null?void 0:e.focus)==null||t.call(e)}function S(){var e,t;(t=(e=o.value)==null?void 0:e.blur)==null||t.call(e)}function $(){var e,t;(t=(e=o.value)==null?void 0:e.handleOpen)==null||t.call(e)}function k(){var e,t;(t=(e=o.value)==null?void 0:e.handleClose)==null||t.call(e)}return s({focus:B,blur:S,open:$,close:k}),(e,t)=>(a.openBlock(),a.createBlock(a.unref(x.ElDatePicker),a.mergeProps({ref_key:"datePickerRef",ref:o,class:"qy-date-picker"},a.unref(f),{"model-value":l.modelValue,type:l.type,placeholder:l.placeholder,"start-placeholder":l.startPlaceholder,"end-placeholder":l.endPlaceholder,"range-separator":l.rangeSeparator,format:l.format,"value-format":l.valueFormat,"default-time":l.defaultTime,"disabled-date":l.disabledDate,shortcuts:l.shortcuts,clearable:l.clearable,disabled:l.disabled,readonly:l.readonly,size:l.size,teleported:l.teleported,"append-to":l.appendTo,"popper-class":h.value,"onUpdate:modelValue":y,onChange:P,onClear:C,onCalendarChange:b,onPanelChange:v,onVisibleChange:z,onFocus:V,onBlur:R}),{default:a.withCtx(n=>[a.renderSlot(e.$slots,"default",a.normalizeProps(a.guardReactiveProps(n)))]),"range-separator":a.withCtx(n=>[a.renderSlot(e.$slots,"range-separator",a.normalizeProps(a.guardReactiveProps(n)))]),"prev-month":a.withCtx(n=>[a.renderSlot(e.$slots,"prev-month",a.normalizeProps(a.guardReactiveProps(n)))]),"next-month":a.withCtx(n=>[a.renderSlot(e.$slots,"next-month",a.normalizeProps(a.guardReactiveProps(n)))]),"prev-year":a.withCtx(n=>[a.renderSlot(e.$slots,"prev-year",a.normalizeProps(a.guardReactiveProps(n)))]),"next-year":a.withCtx(n=>[a.renderSlot(e.$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"]))}});exports._sfc_main=D;
@@ -1,7 +1,6 @@
1
- import { defineComponent as o, computed as a, h as s } from "vue";
2
- import { ElResult as m } from "element-plus";
3
- import { _ as g } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
4
- const u = ["success", "warning", "info", "error"], r = ["401", "403", "404", "500"], v = (t) => t === "class" || t === "style" || t === "id" || t === "role" || t === "title" || t.startsWith("data-") || t.startsWith("aria-"), _ = {
1
+ import { defineComponent as m, computed as a, h as s } from "vue";
2
+ import { ElResult as o } from "element-plus";
3
+ const u = ["success", "warning", "info", "error"], r = ["401", "403", "404", "500"], g = (t) => t === "class" || t === "style" || t === "id" || t === "role" || t === "title" || t.startsWith("data-") || t.startsWith("aria-"), v = {
5
4
  status: {
6
5
  type: String,
7
6
  default: "info",
@@ -23,13 +22,13 @@ const u = ["success", "warning", "info", "error"], r = ["401", "403", "404", "50
23
22
  type: String,
24
23
  default: ""
25
24
  }
26
- }, y = o({
25
+ }, h = m({
27
26
  name: "QyResult",
28
27
  inheritAttrs: !1,
29
- props: _,
28
+ props: v,
30
29
  setup(t, { attrs: l, slots: e }) {
31
30
  const n = a(
32
- () => Object.fromEntries(Object.entries(l).filter(([i]) => v(i)))
31
+ () => Object.fromEntries(Object.entries(l).filter(([i]) => g(i)))
33
32
  ), c = a(() => [
34
33
  "qy-result",
35
34
  `qy-result--${t.status}`,
@@ -63,7 +62,7 @@ const u = ["success", "warning", "info", "error"], r = ["401", "403", "404", "50
63
62
  title: t.title
64
63
  }, [
65
64
  s(
66
- m,
65
+ o,
67
66
  {
68
67
  class: d.value,
69
68
  icon: u.includes(t.status) ? t.status : void 0,
@@ -75,7 +74,7 @@ const u = ["success", "warning", "info", "error"], r = ["401", "403", "404", "50
75
74
  ]);
76
75
  };
77
76
  }
78
- }), b = /* @__PURE__ */ g(y, [["__file", "D:/xushenz/qy-components/packages/ui/lib/qy-result/index.vue"]]);
77
+ });
79
78
  export {
80
- b as R
79
+ h as _
81
80
  };
@@ -0,0 +1 @@
1
+ "use strict";const c=require("vue"),ee=require("element-plus"),te=c.defineComponent({name:"QyTree",inheritAttrs:!1,__name:"index",props:{data:{default:()=>[]},emptyText:{},nodeKey:{},props:{default:()=>({})},renderAfterExpand:{type:Boolean,default:!0},defaultExpandAll:{type:Boolean},expandOnClickNode:{type:Boolean,default:!0},autoExpandParent:{type:Boolean,default:!0},defaultExpandedKeys:{},accordion:{type:Boolean},indent:{default:18},icon:{},highlightCurrent:{type:Boolean},currentNodeKey:{},showCheckbox:{type:Boolean},checkStrictly:{type:Boolean},checkOnClickNode:{type:Boolean},checkOnClickLeaf:{type:Boolean,default:!0},checkDescendants:{type:Boolean},defaultCheckedKeys:{},filterNodeMethod:{},lazy:{type:Boolean},load:{},draggable:{type:Boolean},allowDrag:{},allowDrop:{}},emits:["node-click","node-contextmenu","current-change","node-expand","node-collapse","check-change","check","node-drag-start","node-drag-enter","node-drag-over","node-drag-leave","node-drag-end","node-drop"],setup(l,{expose:N,emit:y}){const r=l,s=y,C=c.useAttrs(),i=c.ref(),p=Object.freeze([...r.defaultExpandedKeys??[]]),v=Object.freeze([...r.defaultCheckedKeys??[]]),x=c.computed(()=>Object.fromEntries(Object.entries(C).filter(([e])=>e==="class"||e==="style"||e==="id"||e==="title"||e.startsWith("data-")||e.startsWith("aria-"))));function d(e){var n,t,a,o;return Object.freeze({key:e.key??null,parentKey:((n=e.parent)==null?void 0:n.key)??null,data:e.data,label:e.label??String(((a=e.data)==null?void 0:a[typeof((t=r.props)==null?void 0:t.label)=="string"?r.props.label:"label"])??""),level: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:((o=e.childNodes)==null?void 0:o.length)??0})}const D=c.computed(()=>{const e=r.props??{};return{...e,...typeof e.label=="function"?{label:n=>{var t;return((t=e.label)==null?void 0:t.call(e,n))??""}}:{},...typeof e.disabled=="function"?{disabled:n=>{var t;return((t=e.disabled)==null?void 0:t.call(e,n))??!1}}:{},...typeof e.isLeaf=="function"?{isLeaf:n=>{var t;return((t=e.isLeaf)==null?void 0:t.call(e,n))??!1}}:{},...typeof e.class=="function"?{class:(n,t)=>{var a;return((a=e.class)==null?void 0:a.call(e,n,d(t)))??""}}:{}}}),m=c.computed(()=>r.filterNodeMethod?(e,n,t)=>{var a;return((a=r.filterNodeMethod)==null?void 0:a.call(r,e,n,d(t)))??!1}:void 0),K=c.computed(()=>r.load?(e,n,t)=>{var a;return(a=r.load)==null?void 0:a.call(r,d(e),n,t)}:void 0);function u(e){var t;return((t=i.value)==null?void 0:t.getNode(e.data))===e?e:null}function g(e){var t;const n=(t=i.value)==null?void 0:t.getNode(e);return(n==null?void 0:n.data)===e?n:null}const b=c.computed(()=>r.allowDrag?e=>{var t;const n=u(e);return n?((t=r.allowDrag)==null?void 0:t.call(r,d(n)))??!1:!1}:void 0),w=c.computed(()=>r.allowDrop?(e,n,t)=>{var h;const a=u(e),o=u(n);return a&&o?((h=r.allowDrop)==null?void 0:h.call(r,d(a),d(o),t==="prev"?"before":t==="next"?"after":"inner"))??!1:!1}:void 0);function E(e){return{checkedKeys:e.checkedKeys??[],checkedNodes:e.checkedNodes??[],halfCheckedKeys:e.halfCheckedKeys??[],halfCheckedNodes:e.halfCheckedNodes??[]}}function ne(e){return e}function B(e,n,t,a){const o=u(n);o&&s("node-click",o.data,d(o),a)}function O(e,n,t){const a=u(t);a&&s("node-contextmenu",e,a.data,d(a))}function A(e,n){if(e===null&&n===null){s("current-change",null,null);return}const t=n?u(n):g(e);t&&s("current-change",t.data,n?d(t):null)}function L(e,n){const t=u(n);t&&s("node-expand",t.data,d(t))}function P(e,n){const t=u(n);t&&s("node-collapse",t.data,d(t))}function S(e,n,t){const a=g(e);a&&s("check-change",a.data,n,t)}function z(e,n){const t=g(e);t&&s("check",t.data,E(n))}function q(e,n){const t=u(e);t&&s("node-drag-start",d(t),n)}function H(e,n,t){const a=u(e),o=u(n);a&&o&&s("node-drag-enter",d(a),d(o),t)}function M(e,n,t){const a=u(e),o=u(n);a&&o&&s("node-drag-over",d(a),d(o),t)}function T(e,n,t){const a=u(e),o=u(n);a&&o&&s("node-drag-leave",d(a),d(o),t)}function j(e,n,t,a){const o=u(e),h=n?u(n):null;o&&(!n||h)&&s("node-drag-end",d(o),h?d(h):null,t,a)}function $(e,n,t,a){const o=u(e),h=u(n);o&&h&&s("node-drop",d(o),d(h),t,a)}function f(e){if(!r.nodeKey)throw new Error(`QyTree.${e} requires nodeKey`)}function Q(e){var n;if(!r.filterNodeMethod)throw new Error("QyTree.filter requires filterNodeMethod");(n=i.value)==null||n.filter(e)}function I(e){var t;f("getNode");const n=(t=i.value)==null?void 0:t.getNode(e);return n?d(n):null}function R(e){var n;return f("getNodePath"),((n=i.value)==null?void 0:n.getNodePath(e))??[]}function W(e){var n;return f("getCheckedKeys"),((n=i.value)==null?void 0:n.getCheckedKeys(e))??[]}function F(e,n){var t;return f("getCheckedNodes"),((t=i.value)==null?void 0:t.getCheckedNodes(e,n))??[]}function G(){var e;return f("getHalfCheckedKeys"),((e=i.value)==null?void 0:e.getHalfCheckedKeys())??[]}function J(){var e;return f("getHalfCheckedNodes"),((e=i.value)==null?void 0:e.getHalfCheckedNodes())??[]}function U(e,n,t=!1){var a;f("setChecked"),(a=i.value)==null||a.setChecked(e,n,t)}function V(e,n){var t;f("setCheckedKeys"),(t=i.value)==null||t.setCheckedKeys(e,n)}function X(e,n){var t;f("setCheckedNodes"),(t=i.value)==null||t.setCheckedNodes(e,n)}function k(){var n,t;f("getCurrentKey");const e=((n=i.value)==null?void 0:n.getCurrentKey())??null;return e!==null&&((t=i.value)!=null&&t.getNode(e))?e:null}function Y(){var e;return f("getCurrentNode"),k()===null?null:((e=i.value)==null?void 0:e.getCurrentNode())??null}function Z(e,n=!0){var t;f("setCurrentKey"),(t=i.value)==null||t.setCurrentKey(e,n)}function _(e,n=!0){var t;f("setCurrentNode"),(t=i.value)==null||t.setCurrentNode(e,n)}return N({filter:Q,getNode:I,getNodePath:R,getCheckedKeys:W,getCheckedNodes:F,getHalfCheckedKeys:G,getHalfCheckedNodes:J,setChecked:U,setCheckedKeys:V,setCheckedNodes:X,getCurrentKey:k,getCurrentNode:Y,setCurrentKey:Z,setCurrentNode:_}),(e,n)=>(c.openBlock(),c.createBlock(c.unref(ee.ElTree),c.mergeProps({ref_key:"treeRef",ref:i},x.value,{class:"qy-tree",data:l.data,"empty-text":l.emptyText,"node-key":l.nodeKey,props:D.value,"render-after-expand":l.renderAfterExpand,"default-expand-all":l.defaultExpandAll,"expand-on-click-node":l.expandOnClickNode,"auto-expand-parent":l.autoExpandParent,"default-expanded-keys":c.unref(p),accordion:l.accordion,indent:l.indent,icon:l.icon,"highlight-current":l.highlightCurrent,"current-node-key":l.currentNodeKey,"show-checkbox":l.showCheckbox,"check-strictly":l.checkStrictly,"check-on-click-node":l.checkOnClickNode,"check-on-click-leaf":l.checkOnClickLeaf,"check-descendants":l.checkDescendants,"default-checked-keys":c.unref(v),"filter-node-method":m.value,lazy:l.lazy,load:K.value,draggable:l.draggable,"allow-drag":b.value,"allow-drop":w.value,onNodeClick:B,onNodeContextmenu:O,onCurrentChange:A,onNodeExpand:L,onNodeCollapse:P,onCheckChange:S,onCheck:z,onNodeDragStart:q,onNodeDragEnter:H,onNodeDragOver:M,onNodeDragLeave:T,onNodeDragEnd:j,onNodeDrop:$}),c.createSlots({_:2},[e.$slots.default?{name:"default",fn:c.withCtx(t=>[c.renderSlot(e.$slots,"default",{data:t.data,node:d(t.node)})]),key:"0"}:void 0,e.$slots.empty?{name:"empty",fn:c.withCtx(()=>[c.renderSlot(e.$slots,"empty")]),key:"1"}:void 0]),1040,["data","empty-text","node-key","props","render-after-expand","default-expand-all","expand-on-click-node","auto-expand-parent","default-expanded-keys","accordion","indent","icon","highlight-current","current-node-key","show-checkbox","check-strictly","check-on-click-node","check-on-click-leaf","check-descendants","default-checked-keys","filter-node-method","lazy","load","draggable","allow-drag","allow-drop"]))}});exports._sfc_main=te;
@@ -1,7 +1,6 @@
1
- import { defineComponent as v, computed as d, h as i, unref as o, isVNode as T, Fragment as u } from "vue";
2
- import { ElTabs as g, ElTabPane as P } from "element-plus";
3
- import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
4
- const x = v({
1
+ import { defineComponent as v, computed as b, h as o, unref as i, isVNode as P, Fragment as u } from "vue";
2
+ import { ElTabs as V, ElTabPane as g } from "element-plus";
3
+ const S = v({
5
4
  name: "QyTabs",
6
5
  inheritAttrs: !1,
7
6
  props: {
@@ -21,26 +20,26 @@ const x = v({
21
20
  },
22
21
  emits: ["update:modelValue", "tab-change", "tab-click", "tab-remove", "tab-add", "edit"],
23
22
  setup(t, { attrs: f, emit: l, slots: r }) {
24
- const s = d(
23
+ const d = b(
25
24
  () => Object.fromEntries(
26
25
  Object.entries(f).filter(
27
26
  ([e]) => e === "class" || e === "style" || e === "id" || e === "role" || e === "title" || e.startsWith("data-") || e.startsWith("aria-")
28
27
  )
29
28
  )
30
- ), c = d(() => ({
31
- ...s.value,
32
- class: ["qy-tabs", s.value.class]
29
+ ), c = b(() => ({
30
+ ...d.value,
31
+ class: ["qy-tabs", d.value.class]
33
32
  }));
34
33
  function m(e) {
35
- const a = o(e.paneName), n = e.props ?? {};
34
+ const a = i(e.paneName), n = e.props ?? {};
36
35
  return Object.freeze({
37
36
  name: a ?? n.name,
38
37
  label: n.label ?? "",
39
38
  disabled: n.disabled ?? !1,
40
- closable: o(e.isClosable) ?? n.closable ?? !1,
39
+ closable: i(e.isClosable) ?? n.closable ?? !1,
41
40
  lazy: n.lazy ?? !1,
42
- active: o(e.active) ?? !1,
43
- index: o(e.index)
41
+ active: i(e.active) ?? !1,
42
+ index: i(e.index)
44
43
  });
45
44
  }
46
45
  function p(e) {
@@ -53,10 +52,10 @@ const x = v({
53
52
  )
54
53
  );
55
54
  }
56
- function b(e) {
57
- return e.map((a) => T(a) ? p(a) ? i(P, { ...y(a.props), key: a.key ?? void 0 }, a.children) : a.type === u && Array.isArray(a.children) ? i(u, { key: a.key ?? void 0 }, b(a.children)) : a : a);
55
+ function s(e) {
56
+ return e.map((a) => P(a) ? p(a) ? o(g, { ...y(a.props), key: a.key ?? void 0 }, a.children) : a.type === u && Array.isArray(a.children) ? o(u, { key: a.key ?? void 0 }, s(a.children)) : a : a);
58
57
  }
59
- return () => i(g, {
58
+ return () => o(V, {
60
59
  ...c.value,
61
60
  modelValue: t.modelValue,
62
61
  defaultValue: t.defaultValue,
@@ -77,12 +76,12 @@ const x = v({
77
76
  }, {
78
77
  default: () => {
79
78
  var e;
80
- return b(((e = r.default) == null ? void 0 : e.call(r)) ?? []);
79
+ return s(((e = r.default) == null ? void 0 : e.call(r)) ?? []);
81
80
  },
82
81
  "add-icon": r["add-icon"]
83
82
  });
84
83
  }
85
- }), j = /* @__PURE__ */ V(x, [["__file", "D:/xushenz/qy-components/packages/ui/lib/qy-tabs/index.vue"]]);
84
+ });
86
85
  export {
87
- j as T
86
+ S as _
88
87
  };
@@ -0,0 +1 @@
1
+ "use strict";const a=require("vue"),h=require("element-plus"),v=a.defineComponent({name:"QyScrollbar",inheritAttrs:!1,__name:"index",props:{distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:[String,Object,Array,Boolean],default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Object,Array,Boolean],default:""},noresize:{type:Boolean,default:!1},tag:{type:String,default:"div"},always:{type:Boolean,default:!1},minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:{type:String,default:void 0},role:{type:String,default:void 0},ariaLabel:{type:String,default:void 0},ariaOrientation:{type:String,default:void 0}},emits:["scroll","end-reached"],setup(t,{expose:o,emit:c}){const r=c,d=a.useAttrs(),i=a.ref(),u=a.computed(()=>Object.fromEntries(Object.entries(d).filter(([e])=>e==="class"||e==="style"||e==="title"||e.startsWith("data-")||e.startsWith("aria-"))));function f(e){r("scroll",Object.freeze({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}))}function y(e){r("end-reached",e)}function m(e,l){var n,s;if(typeof e=="number"){typeof l=="number"&&((n=i.value)==null||n.scrollTo(e,l));return}(s=i.value)==null||s.scrollTo(e)}function S(e){var l;(l=i.value)==null||l.setScrollTop(e)}function b(e){var l;(l=i.value)==null||l.setScrollLeft(e)}function g(){var e;(e=i.value)==null||e.update()}return o({scrollTo:m,setScrollTop:S,setScrollLeft:b,update:g}),(e,l)=>(a.openBlock(),a.createBlock(a.unref(h.ElScrollbar),a.mergeProps({ref_key:"scrollbarRef",ref:i},u.value,{class:"qy-scrollbar",distance:t.distance,height:t.height,"max-height":t.maxHeight,native:t.native,"wrap-style":t.wrapStyle,"wrap-class":t.wrapClass,"view-class":t.viewClass,"view-style":t.viewStyle,noresize:t.noresize,tag:t.tag,always:t.always,"min-size":t.minSize,tabindex:t.tabindex,id:t.id,role:t.role,"aria-label":t.ariaLabel,"aria-orientation":t.ariaOrientation,onScroll:f,onEndReached:y}),{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default")]),_:3},16,["distance","height","max-height","native","wrap-style","wrap-class","view-class","view-style","noresize","tag","always","min-size","tabindex","id","role","aria-label","aria-orientation"]))}});exports._sfc_main=v;