@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,2362 @@
1
+ import { _ as Be } from "./index.vue_vue_type_style_index_0_lang-BXAUYDO7.mjs";
2
+ import { U as Ke, a as va } from "./index-BhvOSOfi.mjs";
3
+ import { I as ba } from "./index-CGq7Q_hV.mjs";
4
+ import { _ as Qa } from "./index.vue_vue_type_script_setup_true_lang-IyZesuKm.mjs";
5
+ import { useAttrs as ve, ref as z, computed as A, openBlock as v, createBlock as Z, mergeProps as ce, unref as S, defineComponent as he, watch as ae, onMounted as Sa, nextTick as qe, onUnmounted as wa, createElementBlock as I, normalizeStyle as _e, normalizeClass as pe, createElementVNode as X, withCtx as h, Fragment as $e, renderList as Te, createCommentVNode as T, createVNode as D, createTextVNode as ne, onBeforeUnmount as ka, createSlots as Ie, renderSlot as k, normalizeProps as Me, guardReactiveProps as Ee, withKeys as Fe, toDisplayString as ue, useSlots as $a, getCurrentInstance as Ca, reactive as Ae, withModifiers as Re, withDirectives as Le, vShow as Va } from "vue";
6
+ import { ElMessage as Se, ElSelect as Ue, ElOption as Ne, ElInput as Ce, ElPopover as Ba, ElButton as ie, ElUpload as Aa, ElAutocomplete as Pa, ElForm as je, ElFormItem as ge, ElTable as qa, ElTableColumn as Ta, ElPagination as Ia, ElTreeSelect as Fa } from "element-plus";
7
+ import { _ as be } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
8
+ import { B as Ra } from "./index-B3XwO-Lc.mjs";
9
+ import { D as Oa } from "./index-DRIoLeFE.mjs";
10
+ import { _ as xa } from "./index-B3GsIwhf.mjs";
11
+ import { _ as Da } from "./index.vue_vue_type_script_setup_true_lang-DwFGEW4B.mjs";
12
+ import { _ as za } from "./index.vue_vue_type_style_index_0_lang-B1FgJZbw.mjs";
13
+ import { _ as Ka } from "./index.vue_vue_type_script_setup_true_lang-DIWWHODS.mjs";
14
+ import { _ as _a } from "./index.vue_vue_type_style_index_0_lang-CcVf5MXE.mjs";
15
+ import { C as Ma } from "./index-BSTMCPDj.mjs";
16
+ import { _ as Ea } from "./index.vue_vue_type_script_setup_true_lang-r7iyZzDS.mjs";
17
+ import { R as La } from "./index-BNssRW4d.mjs";
18
+ import { _ as Ua } from "./index.vue_vue_type_script_setup_true_lang-EiHoQBXt.mjs";
19
+ import { M as Na } from "./index-DvFMgAcu.mjs";
20
+ import { T as ja } from "./index-BjqJCq-6.mjs";
21
+ import { _ as Wa } from "./index.vue_vue_type_script_setup_true_lang-Dn29lZTs.mjs";
22
+ import { S as Oe } from "./index-Co84fsS5.mjs";
23
+ import { T as We } from "./index-CiE6qJCJ.mjs";
24
+ import { ElLoadingDirective as Ga } from "element-plus/es";
25
+ import { T as Pe } from "./index-B3YHS3Aa.mjs";
26
+ import { F as Ha } from "./index-DXZ6Y6wd.mjs";
27
+ import { S as Ja } from "./index-BEcS8y8g.mjs";
28
+ import { _ as Za } from "./index.vue_vue_type_script_lang-DIKHRo0o.mjs";
29
+ import { _ as Xa } from "./index.vue_vue_type_style_index_0_lang-CPxbKjvY.mjs";
30
+ import { _ as Ya } from "./index.vue_vue_type_style_index_0_lang-DSur831A.mjs";
31
+ import { _ as eo } from "./index.vue_vue_type_style_index_0_lang-DsOg_Rum.mjs";
32
+ import { _ as to } from "./index.vue_vue_type_style_index_0_lang-BMZqMPZb.mjs";
33
+ import { _ as ao } from "./index.vue_vue_type_script_setup_true_lang-BJe7Uo6S.mjs";
34
+ import { _ as oo } from "./index.vue_vue_type_script_setup_true_lang-Dd_nKJvH.mjs";
35
+ import { _ as lo } from "./index.vue_vue_type_style_index_0_lang-gs0YJI91.mjs";
36
+ import { _ as no } from "./index.vue_vue_type_script_lang-Dfq7D3mJ.mjs";
37
+ import { _ as ro } from "./index.vue_vue_type_script_lang-CZK0hDYa.mjs";
38
+ import { _ as so } from "./index.vue_vue_type_script_lang-69zSOotQ.mjs";
39
+ import { F as io } from "./index-8Iwma3ls.mjs";
40
+ import { Q as Ge } from "./index-2D5AFexl.mjs";
41
+ import { _ as uo } from "./index.vue_vue_type_style_index_0_lang-DbQkbvgb.mjs";
42
+ import { _ as co } from "./index.vue_vue_type_style_index_0_lang-C4Yk-UdJ.mjs";
43
+ import { _ as fo } from "./index.vue_vue_type_script_lang-Bk0kLg5l.mjs";
44
+ import { _ as yo } from "./index.vue_vue_type_script_lang-BaIOvoQn.mjs";
45
+ import { _ as mo } from "./index.vue_vue_type_script_lang-DRvk4-_O.mjs";
46
+ import { _ as po } from "./index.vue_vue_type_script_lang-ChS-3_vl.mjs";
47
+ import { _ as go } from "./index.vue_vue_type_script_lang-CWnNQBPN.mjs";
48
+ import { _ as ho } from "./index.vue_vue_type_script_lang-D7b9ABei.mjs";
49
+ import { _ as vo } from "./index.vue_vue_type_script_lang-chBiq2cG.mjs";
50
+ import { _ as bo } from "./index.vue_vue_type_style_index_0_lang-C1n-zAZh.mjs";
51
+ import { _ as Qo } from "./index.vue_vue_type_script_setup_true_lang-Bdz9oDDW.mjs";
52
+ import { _ as So } from "./index.vue_vue_type_script_setup_true_lang-BXnZt9UT.mjs";
53
+ import { I as wo } from "./index-B25yA5j-.mjs";
54
+ import { _ as ko } from "./index.vue_vue_type_script_setup_true_lang-B4JrNUDc.mjs";
55
+ import { _ as $o } from "./index.vue_vue_type_script_lang-D7nzeBUR.mjs";
56
+ import { _ as Co } from "./index.vue_vue_type_script_lang-C9X0V5AK.mjs";
57
+ import { _ as Vo } from "./index.vue_vue_type_script_lang-C4JHCuXz.mjs";
58
+ import { _ as Bo } from "./index.vue_vue_type_style_index_0_lang-Tzo8o6M8.mjs";
59
+ import { _ as Ao } from "./index.vue_vue_type_script_setup_true_lang-COAUEujY.mjs";
60
+ import { _ as Po } from "./index.vue_vue_type_style_index_0_lang-CVdFZeHK.mjs";
61
+ import { _ as qo } from "./index.vue_vue_type_script_lang-BGAdXWIL.mjs";
62
+ import { _ as To } from "./index.vue_vue_type_script_lang-BnmY1ndj.mjs";
63
+ import { _ as Io } from "./index.vue_vue_type_script_lang-DOOT2grg.mjs";
64
+ import { _ as Fo } from "./index.vue_vue_type_style_index_0_lang-KHk9wRYT.mjs";
65
+ import { P as Ro } from "./index-zo5J-y0C.mjs";
66
+ import { w as c } from "./install-CxBnxbuN.mjs";
67
+ import { v as Oo, Q as He } from "./index-B1zDCCqy.mjs";
68
+ import { _ as xo } from "./index.vue_vue_type_script_setup_true_lang-wG7OTsWa.mjs";
69
+ import { o as Do } from "./utils-DoyI5oM8.mjs";
70
+ import { openQyLoading as zo } from "@qynpm/hooks";
71
+ const Ko = /* @__PURE__ */ Object.assign({
72
+ name: "QyImageUpload",
73
+ inheritAttrs: !1
74
+ }, {
75
+ __name: "index",
76
+ props: {
77
+ /** 单图/单文件 URL;multiple=true 时为 URL 数组。 */
78
+ modelValue: { type: [String, Array], default: "" },
79
+ /** 上传接口路径。 */
80
+ api: { type: String, default: "/permission-api/common/uploads" },
81
+ /** FormData 中文件字段名。 */
82
+ name: { type: String, default: "files" },
83
+ /** 是否禁用。 */
84
+ disabled: { type: Boolean, default: !1 },
85
+ /** 是否多选;开启后 v-model 输出 string[]。 */
86
+ multiple: { type: Boolean, default: !1 },
87
+ /** 上传模式。voucher 用于承接旧 CopyImgUpload 的凭证图片场景。 */
88
+ mode: { type: String, default: "default" },
89
+ /** 是否启用凭证图片模式。 */
90
+ voucher: { type: Boolean, default: !1 },
91
+ /** 允许的文件类型后缀。 */
92
+ fileType: { type: Array, default: () => [] },
93
+ /** 单个文件大小限制(MB)。 */
94
+ fileSize: { type: Number, default: 10 },
95
+ /** 是否显示格式/大小提示。 */
96
+ isShowTip: { type: Boolean, default: !1 },
97
+ /** 文件数量限制;不传时单图为 1,多图为 9。 */
98
+ limit: { type: Number, default: void 0 },
99
+ /** token 读取 key。 */
100
+ tokenKey: { type: String, default: "Admin-Token" },
101
+ /** 是否为视频上传。 */
102
+ supportVideo: { type: Boolean, default: !1 },
103
+ /** 上传卡片尺寸。 */
104
+ size: { type: String, default: "128px" },
105
+ /** 禁用拖拽。 */
106
+ disableDrag: { type: Boolean, default: !1 },
107
+ /** 是否显示纯粘贴入口。 */
108
+ showPasteInput: { type: Boolean, default: !0 },
109
+ /** 粘贴入口提示文案。 */
110
+ pastePlaceholder: { type: String, default: "粘贴图片上传" },
111
+ /** 成功回调。 */
112
+ callBack: { type: Function, default: null },
113
+ /** 上传时附加的额外 FormData 字段。 */
114
+ extraData: { type: Object, default: () => ({}) },
115
+ /** 自定义上传请求,用于接入宿主项目 request / 鉴权 / baseURL。 */
116
+ uploadRequest: { type: Function, default: null }
117
+ },
118
+ emits: [
119
+ "update:modelValue",
120
+ "change",
121
+ "success",
122
+ "error",
123
+ "remove",
124
+ "updateImg"
125
+ ],
126
+ setup(e, { expose: F, emit: N }) {
127
+ const t = e, s = N, te = ve(), $ = z(null), y = ["jpg", "jpeg", "png", "gif", "bmp", "webp"], d = A(
128
+ () => t.voucher || t.mode === "voucher"
129
+ ), R = A(() => Array.isArray(t.modelValue) ? t.modelValue.filter(Boolean) : t.modelValue ? String(t.modelValue).split(",").filter(Boolean) : []), Q = A(() => t.supportVideo ? 1 : d.value ? t.limit ?? 30 : t.limit ?? (t.multiple ? 9 : 1)), M = A(() => {
130
+ var a;
131
+ return (a = t.fileType) != null && a.length ? t.fileType : d.value && !t.supportVideo ? y : [];
132
+ });
133
+ function O(a) {
134
+ return Array.isArray(a) ? a.filter(Boolean) : [];
135
+ }
136
+ function B(a) {
137
+ const u = O(a);
138
+ return t.multiple ? u : u[0] || "";
139
+ }
140
+ function E(a) {
141
+ s("update:modelValue", B(a));
142
+ }
143
+ function L(a) {
144
+ s("change", B(a == null ? void 0 : a.files));
145
+ }
146
+ function C(a) {
147
+ var H, n;
148
+ if (typeof a == "string") return a;
149
+ const u = a || {}, K = u.url ?? u.urls ?? ((H = u.data) == null ? void 0 : H.url) ?? ((n = u.data) == null ? void 0 : n.urls) ?? "";
150
+ return Array.isArray(K) ? K[0] || "" : K || "";
151
+ }
152
+ function x(a) {
153
+ const u = C(a);
154
+ u && s("updateImg", u), s("success", b(), a);
155
+ }
156
+ function J(a) {
157
+ s("error", a);
158
+ }
159
+ function le(a, u) {
160
+ s("remove", a, u);
161
+ }
162
+ function j() {
163
+ var a, u;
164
+ (u = (a = $.value) == null ? void 0 : a.openFileDialog) == null || u.call(a);
165
+ }
166
+ function W() {
167
+ var a, u;
168
+ (u = (a = $.value) == null ? void 0 : a.clearFiles) == null || u.call(a);
169
+ }
170
+ function U() {
171
+ var a, u;
172
+ return ((u = (a = $.value) == null ? void 0 : a.getPathList) == null ? void 0 : u.call(a)) || [];
173
+ }
174
+ const Y = A(() => U()), G = A(() => U());
175
+ function p() {
176
+ return U();
177
+ }
178
+ function b() {
179
+ const a = U();
180
+ return t.multiple ? a : a[0] || "";
181
+ }
182
+ return F({
183
+ openFileDialog: j,
184
+ clearFiles: W,
185
+ getPathList: U,
186
+ getFullPathList: p,
187
+ fullPathList: Y,
188
+ pathList: G,
189
+ getValue: b
190
+ }), (a, u) => (v(), Z(Ke, ce({
191
+ ref_key: "uploadRef",
192
+ ref: $
193
+ }, S(te), {
194
+ "model-value": R.value,
195
+ "value-format": "array",
196
+ api: e.api,
197
+ name: e.name,
198
+ multiple: e.multiple,
199
+ disabled: e.disabled,
200
+ "file-type": M.value,
201
+ "file-size": e.fileSize,
202
+ limit: Q.value,
203
+ "is-show-tip": e.isShowTip,
204
+ "token-key": e.tokenKey,
205
+ "support-video": e.supportVideo,
206
+ size: e.size,
207
+ "disable-drag": e.disableDrag,
208
+ "call-back": e.callBack,
209
+ "extra-data": e.extraData,
210
+ "upload-request": e.uploadRequest,
211
+ "show-text": !1,
212
+ "show-paste-input": e.showPasteInput,
213
+ "paste-placeholder": e.pastePlaceholder,
214
+ "onUpdate:modelValue": E,
215
+ onChange: L,
216
+ onSuccess: x,
217
+ onError: J,
218
+ onRemove: le
219
+ }), null, 16, ["model-value", "api", "name", "multiple", "disabled", "file-type", "file-size", "limit", "is-show-tip", "token-key", "support-video", "size", "disable-drag", "call-back", "extra-data", "upload-request", "show-paste-input", "paste-placeholder"]));
220
+ }
221
+ });
222
+ function De(e) {
223
+ const F = e == null ? void 0 : e.match(/(\[url\:(.*?)\])(.*)/);
224
+ return F ? {
225
+ imageUrl: F[2],
226
+ text: F[3]
227
+ } : {
228
+ imageUrl: "",
229
+ text: e || ""
230
+ };
231
+ }
232
+ function _o(e) {
233
+ const F = String(e || "").match(/(\[url\:.*?\])([\s\S]*)/);
234
+ return F ? F[2] : e;
235
+ }
236
+ function ze(e, F) {
237
+ return F ? `[url:${F}]${e}` : e;
238
+ }
239
+ const Mo = { class: "qy-remark-image__field" }, Eo = {
240
+ key: 1,
241
+ class: "qy-remark-image__divider"
242
+ }, Lo = { class: "qy-remark-image__upload-anchor" }, Uo = {
243
+ key: 0,
244
+ class: "icon-[line-md--loading-twotone-loop]",
245
+ role: "img",
246
+ "aria-hidden": "true"
247
+ }, No = {
248
+ key: 1,
249
+ class: "icon-[ion--cloud-upload-outline]",
250
+ role: "img",
251
+ "aria-hidden": "true"
252
+ }, jo = {
253
+ key: 2,
254
+ class: "icon-[ph--images-thin]",
255
+ role: "img",
256
+ "aria-hidden": "true"
257
+ }, Wo = { class: "qy-remark-image__popover" }, Go = ["src"], Ho = { class: "qy-remark-image__popover-footer" }, Jo = /* @__PURE__ */ he({
258
+ __name: "index",
259
+ props: {
260
+ defaultValue: { default: "" },
261
+ defaultImage: { default: "" },
262
+ rows: { default: 6 },
263
+ width: { default: "" },
264
+ autosize: { type: [Boolean, Object], default: !1 },
265
+ disabled: { type: Boolean, default: !1 },
266
+ placeholder: { default: "粘贴图片上传" },
267
+ type: { default: "textarea" },
268
+ layout: { default: "default" },
269
+ selectValue: { type: [String, Number, Boolean], default: "" },
270
+ selectOptions: { default: () => [] },
271
+ selectDisabled: { type: Boolean, default: !1 },
272
+ api: { default: "/permission-api/common/uploads" },
273
+ tokenKey: { default: "Admin-Token" },
274
+ uploadName: { default: "files" },
275
+ uploadRequest: {}
276
+ },
277
+ emits: ["change", "update:selectValue", "select-change"],
278
+ setup(e, { expose: F, emit: N }) {
279
+ const t = e, s = N, te = ve(), $ = z(null), y = z(""), d = z(""), R = z(!1), Q = A(
280
+ () => t.layout === "select-prefix"
281
+ ), M = A(() => ({
282
+ "qy-remark-image--select-prefix": Q.value
283
+ })), O = A(
284
+ () => Q.value || t.type === "text" ? "text" : "textarea"
285
+ ), B = A(() => {
286
+ if (t.width)
287
+ return {
288
+ width: typeof t.width == "number" ? `${t.width}px` : t.width
289
+ };
290
+ });
291
+ ae(
292
+ () => t.defaultValue,
293
+ (p) => {
294
+ const b = De(p || "");
295
+ y.value = b.text, d.value = b.imageUrl || t.defaultImage || "";
296
+ },
297
+ { immediate: !0 }
298
+ ), ae(
299
+ () => t.defaultImage,
300
+ (p) => {
301
+ p !== void 0 && !De(t.defaultValue || "").imageUrl && (d.value = p || "");
302
+ },
303
+ { immediate: !0 }
304
+ ), Sa(() => {
305
+ qe(L);
306
+ }), wa(() => {
307
+ const p = E();
308
+ p && p.removeEventListener("paste", j);
309
+ });
310
+ function E() {
311
+ var p, b;
312
+ return ((p = $.value) == null ? void 0 : p.textarea) || ((b = $.value) == null ? void 0 : b.input) || null;
313
+ }
314
+ function L() {
315
+ const p = E();
316
+ p && (p.removeEventListener("paste", j), p.addEventListener("paste", j));
317
+ }
318
+ function C(p) {
319
+ y.value = _o(p || "");
320
+ }
321
+ function x(p) {
322
+ s("update:selectValue", p), s("select-change", p);
323
+ }
324
+ function J() {
325
+ d.value = "", G();
326
+ }
327
+ function le() {
328
+ y.value = "", d.value = "", G();
329
+ }
330
+ async function j(p) {
331
+ var u;
332
+ const a = Array.from(((u = p.clipboardData) == null ? void 0 : u.files) || []).find((K) => K.type.startsWith("image/"));
333
+ a && (p.preventDefault(), await W({
334
+ file: a,
335
+ onError: () => {
336
+ },
337
+ onProgress: () => {
338
+ },
339
+ onSuccess: () => {
340
+ }
341
+ }));
342
+ }
343
+ async function W(p) {
344
+ var b, a;
345
+ if (p.file.size > 51200 * 1e3)
346
+ return Se.error("图片过大"), !1;
347
+ R.value = !0;
348
+ try {
349
+ const u = await U(p);
350
+ return d.value = Y(u), G(), Se.success("上传图片成功"), (b = p.onSuccess) == null || b.call(p, u), !0;
351
+ } catch (u) {
352
+ return (a = p.onError) == null || a.call(p, u), Se.error("上传失败"), !1;
353
+ } finally {
354
+ R.value = !1;
355
+ }
356
+ }
357
+ async function U(p) {
358
+ const b = new FormData();
359
+ if (b.append(t.uploadName, p.file), t.uploadRequest)
360
+ return t.uploadRequest({
361
+ file: p.file,
362
+ formData: b,
363
+ options: p,
364
+ api: t.api,
365
+ tokenKey: t.tokenKey
366
+ });
367
+ const a = va.get(t.tokenKey);
368
+ return (await fetch(t.api, {
369
+ method: "POST",
370
+ body: b,
371
+ credentials: "include",
372
+ headers: a ? { Authorization: `Bearer ${a}` } : void 0
373
+ })).json();
374
+ }
375
+ function Y(p) {
376
+ var u, K;
377
+ if (typeof p == "string") return p;
378
+ const b = p, a = (b == null ? void 0 : b.urls) ?? ((u = b == null ? void 0 : b.data) == null ? void 0 : u.urls) ?? ((K = b == null ? void 0 : b.data) == null ? void 0 : K.url) ?? (b == null ? void 0 : b.url) ?? "";
379
+ return Array.isArray(a) ? a[0] || "" : a || "";
380
+ }
381
+ function G() {
382
+ s(
383
+ "change",
384
+ ze(y.value || "", d.value || ""),
385
+ d.value || ""
386
+ );
387
+ }
388
+ return F({
389
+ deleteImage: J,
390
+ // 兼容旧 remarkImage,在表单 reset/clearFrom 时清空文字和图片。
391
+ clearContent: le,
392
+ // 给表单保存或外部调试读取当前拆分值。
393
+ getValue: () => ({
394
+ text: y.value || "",
395
+ imageUrl: d.value || "",
396
+ value: ze(y.value || "", d.value || "")
397
+ })
398
+ }), (p, b) => (v(), I("div", {
399
+ class: pe(["qy-remark-image", M.value]),
400
+ style: _e(B.value)
401
+ }, [
402
+ X("div", Mo, [
403
+ Q.value ? (v(), Z(S(Ue), {
404
+ key: 0,
405
+ class: "qy-remark-image__prefix-select",
406
+ "model-value": e.selectValue,
407
+ options: e.selectOptions,
408
+ disabled: e.disabled || e.selectDisabled,
409
+ size: "small",
410
+ "onUpdate:modelValue": x
411
+ }, {
412
+ default: h(() => [
413
+ (v(!0), I($e, null, Te(e.selectOptions, (a) => (v(), Z(S(Ne), {
414
+ key: String(a.value),
415
+ label: a.label,
416
+ value: a.value,
417
+ disabled: a.disabled
418
+ }, null, 8, ["label", "value", "disabled"]))), 128))
419
+ ]),
420
+ _: 1
421
+ }, 8, ["model-value", "options", "disabled"])) : T("", !0),
422
+ Q.value ? (v(), I("span", Eo)) : T("", !0),
423
+ D(S(Ce), ce({
424
+ ref_key: "inputRef",
425
+ ref: $,
426
+ "model-value": y.value,
427
+ type: O.value,
428
+ rows: e.rows,
429
+ autosize: e.autosize,
430
+ disabled: e.disabled,
431
+ placeholder: e.placeholder
432
+ }, S(te), {
433
+ "onUpdate:modelValue": C,
434
+ onBlur: G
435
+ }), null, 16, ["model-value", "type", "rows", "autosize", "disabled", "placeholder"]),
436
+ D(S(Ba), {
437
+ placement: "top-start",
438
+ width: 400,
439
+ trigger: "hover",
440
+ disabled: !d.value
441
+ }, {
442
+ reference: h(() => [
443
+ X("div", Lo, [
444
+ D(S(Aa), {
445
+ disabled: R.value || e.disabled,
446
+ class: "qy-remark-image__upload",
447
+ "show-file-list": !1,
448
+ "http-request": W
449
+ }, {
450
+ default: h(() => [
451
+ R.value ? (v(), I("span", Uo)) : d.value ? (v(), I("span", jo)) : (v(), I("span", No))
452
+ ]),
453
+ _: 1
454
+ }, 8, ["disabled"])
455
+ ])
456
+ ]),
457
+ default: h(() => [
458
+ X("div", Wo, [
459
+ X("img", {
460
+ src: d.value,
461
+ class: "qy-remark-image__preview-img"
462
+ }, null, 8, Go),
463
+ X("div", Ho, [
464
+ b[1] || (b[1] = X("span", { class: "qy-remark-image__popover-tip" }, "再次点击按钮可更换图片", -1)),
465
+ D(S(ie), {
466
+ link: "",
467
+ size: "small",
468
+ type: "danger",
469
+ disabled: e.disabled,
470
+ onClick: J
471
+ }, {
472
+ default: h(() => [...b[0] || (b[0] = [
473
+ ne(" 删除图片 ", -1)
474
+ ])]),
475
+ _: 1
476
+ }, 8, ["disabled"])
477
+ ])
478
+ ])
479
+ ]),
480
+ _: 1
481
+ }, 8, ["disabled"])
482
+ ])
483
+ ], 6));
484
+ }
485
+ }), Zo = /* @__PURE__ */ be(Jo, [["__scopeId", "data-v-db8a7397"]]), Xo = /* @__PURE__ */ he({
486
+ name: "QyRemoteSelect",
487
+ inheritAttrs: !1,
488
+ __name: "index",
489
+ props: {
490
+ modelValue: { type: [String, Number, Boolean, Array, null], default: void 0 },
491
+ fetchMethod: {},
492
+ defaultOptions: { default: () => [] },
493
+ labelKey: { default: "label" },
494
+ valueKey: { default: "value" },
495
+ disabledKey: { default: "disabled" },
496
+ placeholder: { default: "请选择" },
497
+ disabled: { type: Boolean, default: !1 },
498
+ clearable: { type: Boolean, default: !0 },
499
+ multiple: { type: Boolean, default: !1 },
500
+ collapseTags: { type: Boolean, default: !1 },
501
+ collapseTagsTooltip: { type: Boolean, default: !1 },
502
+ autoSelectSingle: { type: Boolean, default: !1 },
503
+ size: { default: void 0 },
504
+ teleported: { type: Boolean, default: !0 },
505
+ appendTo: { default: "body" },
506
+ fitInputWidth: { type: Boolean, default: !0 },
507
+ popperClass: { default: "" },
508
+ debounce: { default: 300 },
509
+ minLength: { default: 1 },
510
+ remoteOnFocus: { type: Boolean, default: !1 },
511
+ remoteShowSuffix: { type: Boolean, default: !0 },
512
+ loading: { type: Boolean, default: !1 },
513
+ reserveSelectedOption: { type: Boolean, default: !0 },
514
+ allowCreate: { type: Boolean, default: !1 },
515
+ commitOnBlur: { type: Boolean, default: !1 }
516
+ },
517
+ emits: ["update:modelValue", "change", "clear", "visible-change", "focus", "blur", "options-change", "loading-change", "error"],
518
+ setup(e, { expose: F, emit: N }) {
519
+ const t = e, s = N, te = ve(), $ = z(null), y = z([]), d = z(/* @__PURE__ */ new Map()), R = z(!1), Q = z(""), M = z("");
520
+ let O = 0, B = null;
521
+ const E = A(() => t.loading || R.value), L = z(!1), C = A(() => Q.value !== ""), x = A(() => {
522
+ if (C.value) return y.value;
523
+ const i = /* @__PURE__ */ new Map(), _ = (o) => {
524
+ i.set(J(o), o);
525
+ };
526
+ return t.defaultOptions.forEach(_), t.reserveSelectedOption && d.value.forEach((o) => _(o)), y.value.forEach(_), Array.from(i.values());
527
+ });
528
+ ae(
529
+ () => t.defaultOptions,
530
+ (i) => {
531
+ i.forEach(j);
532
+ },
533
+ { immediate: !0 }
534
+ ), ae(
535
+ () => t.modelValue,
536
+ () => {
537
+ x.value.forEach(j);
538
+ },
539
+ { immediate: !0 }
540
+ );
541
+ function J(i) {
542
+ return (i == null ? void 0 : i[t.valueKey]) ?? (i == null ? void 0 : i.value) ?? (i == null ? void 0 : i.label);
543
+ }
544
+ function le(i) {
545
+ return Array.isArray(t.modelValue) ? t.modelValue.includes(i) : t.modelValue === i;
546
+ }
547
+ function j(i) {
548
+ if (!t.reserveSelectedOption) return;
549
+ const _ = J(i);
550
+ le(_) && d.value.set(_, i);
551
+ }
552
+ function W(i) {
553
+ return t.disabled ? !1 : i ? i.length >= t.minLength : t.remoteOnFocus;
554
+ }
555
+ function U(i) {
556
+ R.value !== i && (R.value = i, s("loading-change", i));
557
+ }
558
+ async function Y(i) {
559
+ const _ = oe(i), o = ++O;
560
+ if (de(_), !W(_)) {
561
+ y.value = [], U(!1), s("options-change", x.value);
562
+ return;
563
+ }
564
+ U(!0);
565
+ try {
566
+ const m = await t.fetchMethod(_);
567
+ if (o !== O) return;
568
+ y.value = Array.isArray(m) ? m : [], y.value.forEach(j), s("options-change", x.value);
569
+ } catch (m) {
570
+ if (o !== O) return;
571
+ y.value = [], s("error", m), s("options-change", x.value);
572
+ } finally {
573
+ o === O && U(!1);
574
+ }
575
+ }
576
+ function G() {
577
+ L.value || (L.value = !0, Y(""));
578
+ }
579
+ function p(i) {
580
+ const _ = oe(i);
581
+ M.value = _, O += 1, de(_), B && (clearTimeout(B), B = null), B = setTimeout(() => {
582
+ Y(_);
583
+ }, t.debounce);
584
+ }
585
+ function b() {
586
+ L.value = !0, Y("");
587
+ }
588
+ function a() {
589
+ Y(Q.value);
590
+ }
591
+ function u(i) {
592
+ M.value = "", s("update:modelValue", i);
593
+ }
594
+ function K(i) {
595
+ M.value = "", x.value.forEach(j), s("change", i);
596
+ }
597
+ function H() {
598
+ M.value = "", s("clear");
599
+ }
600
+ function n(i) {
601
+ i && t.remoteOnFocus && !Q.value && G(), s("visible-change", i);
602
+ }
603
+ function f(i) {
604
+ t.remoteOnFocus && !Q.value && G(), s("focus", i);
605
+ }
606
+ function w(i) {
607
+ P(), s("blur", i);
608
+ }
609
+ function P() {
610
+ if (!t.allowCreate || !t.commitOnBlur || t.disabled) return;
611
+ const i = M.value;
612
+ i.trim() && (M.value = "", s("update:modelValue", i), s("change", i));
613
+ }
614
+ function oe(i) {
615
+ return String(i ?? "");
616
+ }
617
+ function de(i) {
618
+ Q.value = i, y.value = [], s("options-change", x.value);
619
+ }
620
+ function fe() {
621
+ var i, _;
622
+ (_ = (i = $.value) == null ? void 0 : i.focus) == null || _.call(i);
623
+ }
624
+ function me() {
625
+ var i, _;
626
+ (_ = (i = $.value) == null ? void 0 : i.blur) == null || _.call(i);
627
+ }
628
+ function we() {
629
+ s("update:modelValue", t.multiple ? [] : ""), s("clear");
630
+ }
631
+ return ka(() => {
632
+ B && clearTimeout(B);
633
+ }), F({
634
+ // 暴露远程选择常用控制方法,供弹窗打开后聚焦或请求失败后重试。
635
+ focus: fe,
636
+ blur: me,
637
+ clear: we,
638
+ retryFetch: a,
639
+ fetchDefaultOptions: b
640
+ }), (i, _) => (v(), Z(Oe, ce({
641
+ ref_key: "selectRef",
642
+ ref: $
643
+ }, S(te), {
644
+ "model-value": e.modelValue,
645
+ options: x.value,
646
+ "label-key": e.labelKey,
647
+ "value-key": e.valueKey,
648
+ "disabled-key": e.disabledKey,
649
+ placeholder: e.placeholder,
650
+ disabled: e.disabled,
651
+ clearable: e.clearable,
652
+ filterable: !0,
653
+ multiple: e.multiple,
654
+ "collapse-tags": e.collapseTags,
655
+ "collapse-tags-tooltip": e.collapseTagsTooltip,
656
+ "auto-select-single": e.autoSelectSingle,
657
+ size: e.size,
658
+ teleported: e.teleported,
659
+ "append-to": e.appendTo,
660
+ "fit-input-width": e.fitInputWidth,
661
+ "popper-class": e.popperClass,
662
+ remote: "",
663
+ debounce: 0,
664
+ "remote-show-suffix": e.remoteShowSuffix,
665
+ "remote-method": p,
666
+ loading: E.value,
667
+ "onUpdate:modelValue": u,
668
+ onChange: K,
669
+ onClear: H,
670
+ onVisibleChange: n,
671
+ onFocus: f,
672
+ onBlur: w
673
+ }), Ie({
674
+ default: h(() => [
675
+ i.$slots.default ? k(i.$slots, "default", {}, void 0, void 0, 0) : T("", !0)
676
+ ]),
677
+ _: 2
678
+ }, [
679
+ i.$slots.prefix ? {
680
+ name: "prefix",
681
+ fn: h(() => [
682
+ k(i.$slots, "prefix")
683
+ ]),
684
+ key: "0"
685
+ } : void 0,
686
+ i.$slots.empty ? {
687
+ name: "empty",
688
+ fn: h(() => [
689
+ k(i.$slots, "empty")
690
+ ]),
691
+ key: "1"
692
+ } : void 0,
693
+ i.$slots.loading ? {
694
+ name: "loading",
695
+ fn: h(() => [
696
+ k(i.$slots, "loading")
697
+ ]),
698
+ key: "2"
699
+ } : void 0,
700
+ i.$slots.tag ? {
701
+ name: "tag",
702
+ fn: h((o) => [
703
+ k(i.$slots, "tag", Me(Ee(o)))
704
+ ]),
705
+ key: "3"
706
+ } : void 0
707
+ ]), 1040, ["model-value", "options", "label-key", "value-key", "disabled-key", "placeholder", "disabled", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "auto-select-single", "size", "teleported", "append-to", "fit-input-width", "popper-class", "remote-show-suffix", "loading"]));
708
+ }
709
+ }), Yo = { class: "qy-search-input__item" }, el = ["innerHTML"], tl = {
710
+ key: 0,
711
+ class: "qy-search-input__item-description"
712
+ }, al = /* @__PURE__ */ he({
713
+ name: "QySearchInput",
714
+ inheritAttrs: !1,
715
+ __name: "index",
716
+ props: {
717
+ modelValue: { default: "" },
718
+ loading: { type: Boolean, default: !1 },
719
+ disabled: { type: Boolean, default: !1 },
720
+ placeholder: { default: "请输入搜索内容" },
721
+ removeSpace: { type: Boolean, default: !1 },
722
+ trimMode: { default: "none" },
723
+ clearable: { type: Boolean, default: !0 },
724
+ showButton: { type: Boolean, default: !0 },
725
+ buttonText: { default: "搜索" },
726
+ buttonProps: { default: () => ({}) },
727
+ suggestions: { default: () => [] },
728
+ fetchSuggestions: { type: [Function, null], default: null },
729
+ fetchSuggestionsMethod: { type: [Function, null], default: null },
730
+ debounce: { default: 300 },
731
+ minLength: { default: 1 },
732
+ triggerOnFocus: { type: Boolean, default: !1 },
733
+ searchOnEnter: { type: Boolean, default: !0 },
734
+ searchOnSelect: { type: Boolean, default: !1 },
735
+ highlightKeyword: { type: Boolean, default: !0 },
736
+ teleported: { type: Boolean, default: !0 },
737
+ appendTo: { default: "body" },
738
+ popperClass: { default: "" },
739
+ fitInputWidth: { type: Boolean, default: !0 }
740
+ },
741
+ emits: ["update:modelValue", "search", "clear", "input", "change", "focus", "blur", "enter", "select", "visible-change", "suggestions-change", "error"],
742
+ setup(e, { expose: F, emit: N }) {
743
+ const t = e, s = N, te = ve(), $ = z(null), y = z(O(t.modelValue)), d = A(() => O(t.modelValue)), R = A(
744
+ () => ["qy-search-input__popper", t.popperClass].filter(Boolean).join(" ")
745
+ ), Q = A(() => O(t.modelValue)), M = z("");
746
+ ae(
747
+ () => t.modelValue,
748
+ (o) => {
749
+ y.value = O(o);
750
+ }
751
+ );
752
+ function O(o) {
753
+ return o == null ? "" : String(o);
754
+ }
755
+ function B(o) {
756
+ return t.removeSpace ? o.replace(/\s+/g, "") : o;
757
+ }
758
+ function E(o, m) {
759
+ return t.trimMode !== m ? o : o.trim();
760
+ }
761
+ function L(o) {
762
+ return B(O(o));
763
+ }
764
+ function C(o) {
765
+ y.value = o, s("update:modelValue", o);
766
+ }
767
+ function x(o, m = "") {
768
+ return {
769
+ ...o,
770
+ label: o.label || o.value,
771
+ value: o.value || o.label,
772
+ description: o.description || m
773
+ };
774
+ }
775
+ function J(o = []) {
776
+ return o.flatMap((m) => {
777
+ if (Array.isArray(m.items)) {
778
+ const q = m;
779
+ return q.items.map((re) => x(re, q.groupLabel));
780
+ }
781
+ return x(m);
782
+ });
783
+ }
784
+ function le(o) {
785
+ const m = o.toLowerCase();
786
+ return (q) => [q.label, q.value, q.description].filter(Boolean).some((re) => String(re).toLowerCase().includes(m));
787
+ }
788
+ function j(o) {
789
+ return o ? o.length >= t.minLength : t.triggerOnFocus;
790
+ }
791
+ function W(o) {
792
+ s("suggestions-change", o), s("visible-change", o.length > 0);
793
+ }
794
+ async function U(o) {
795
+ if (!j(o))
796
+ return W([]), [];
797
+ if (t.fetchSuggestionsMethod) {
798
+ const re = await new Promise((ye) => {
799
+ var ee;
800
+ (ee = t.fetchSuggestionsMethod) == null || ee.call(t, o, (Ve) => {
801
+ ye(J(Ve));
802
+ });
803
+ });
804
+ return W(re), re;
805
+ }
806
+ if (t.fetchSuggestions) {
807
+ const re = await t.fetchSuggestions(o), ye = J(Array.isArray(re) ? re : []);
808
+ return W(ye), ye;
809
+ }
810
+ const m = J(t.suggestions), q = o ? m.filter(le(o)) : m;
811
+ return W(q), q;
812
+ }
813
+ async function Y(o, m) {
814
+ M.value = o;
815
+ try {
816
+ const q = await U(o);
817
+ m(q);
818
+ } catch (q) {
819
+ s("error", q), W([]), m([]);
820
+ }
821
+ }
822
+ function G() {
823
+ var o, m;
824
+ M.value && ((m = (o = $.value) == null ? void 0 : o.getData) == null || m.call(o, M.value));
825
+ }
826
+ function p(o) {
827
+ const m = L(o);
828
+ C(m);
829
+ }
830
+ function b(o) {
831
+ const m = L(o);
832
+ y.value = m, s("input", m);
833
+ }
834
+ function a(o) {
835
+ const m = E(L(o), "change");
836
+ m !== O(t.modelValue) && C(m), s("change", m);
837
+ }
838
+ function u(o) {
839
+ s("focus", o);
840
+ }
841
+ function K(o) {
842
+ const m = E(y.value, "blur");
843
+ m !== O(t.modelValue) && C(m), s("blur", o), s("visible-change", !1);
844
+ }
845
+ function H() {
846
+ y.value = "", s("update:modelValue", ""), s("clear"), W([]);
847
+ }
848
+ function n(o) {
849
+ s("enter", o), t.searchOnEnter && f();
850
+ }
851
+ function f() {
852
+ s("search", O(t.modelValue));
853
+ }
854
+ function w(o) {
855
+ s("select", o), t.searchOnSelect && s("search", o.value);
856
+ }
857
+ function P(o) {
858
+ return o.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
859
+ }
860
+ function oe(o) {
861
+ return o.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
862
+ }
863
+ function de(o) {
864
+ const m = P(o || "");
865
+ if (!t.highlightKeyword || !d.value) return m;
866
+ const q = oe(P(d.value));
867
+ return q ? m.replace(
868
+ new RegExp(`(${q})`, "ig"),
869
+ '<mark class="qy-search-input__mark">$1</mark>'
870
+ ) : m;
871
+ }
872
+ function fe() {
873
+ var o, m;
874
+ (m = (o = $.value) == null ? void 0 : o.focus) == null || m.call(o);
875
+ }
876
+ function me() {
877
+ var o, m;
878
+ (m = (o = $.value) == null ? void 0 : o.blur) == null || m.call(o);
879
+ }
880
+ function we() {
881
+ var o, m, q;
882
+ (q = (m = (o = $.value) == null ? void 0 : o.inputRef) == null ? void 0 : m.select) == null || q.call(m);
883
+ }
884
+ function i() {
885
+ var o, m;
886
+ (m = (o = $.value) == null ? void 0 : o.clear) == null || m.call(o);
887
+ }
888
+ function _() {
889
+ var o, m;
890
+ (m = (o = $.value) == null ? void 0 : o.close) == null || m.call(o);
891
+ }
892
+ return F({
893
+ // 暴露搜索框常用控制方法,供弹窗打开后聚焦或失败后重试建议项。
894
+ focus: fe,
895
+ blur: me,
896
+ select: we,
897
+ clear: i,
898
+ closePanel: _,
899
+ retryFetch: G
900
+ }), (o, m) => (v(), I("div", {
901
+ class: pe(["qy-search-input", { "is-disabled": e.disabled }])
902
+ }, [
903
+ D(S(Pa), ce({
904
+ ref_key: "autocompleteRef",
905
+ ref: $
906
+ }, S(te), {
907
+ "model-value": Q.value,
908
+ disabled: e.disabled,
909
+ placeholder: e.placeholder,
910
+ clearable: e.clearable,
911
+ debounce: e.debounce,
912
+ "fetch-suggestions": Y,
913
+ "trigger-on-focus": e.triggerOnFocus,
914
+ teleported: e.teleported,
915
+ "fit-input-width": e.fitInputWidth,
916
+ "popper-class": R.value,
917
+ "append-to": e.appendTo,
918
+ "value-key": "value",
919
+ "onUpdate:modelValue": p,
920
+ onInput: b,
921
+ onChange: a,
922
+ onFocus: u,
923
+ onBlur: K,
924
+ onClear: H,
925
+ onSelect: w,
926
+ onKeydown: Fe(n, ["enter"])
927
+ }), Ie({
928
+ default: h(({ item: q }) => [
929
+ k(o.$slots, "item", {
930
+ item: q,
931
+ keyword: d.value
932
+ }, () => [
933
+ X("div", Yo, [
934
+ X("div", {
935
+ class: "qy-search-input__item-label",
936
+ innerHTML: de(q.label || q.value || "")
937
+ }, null, 8, el),
938
+ q.description ? (v(), I("div", tl, ue(q.description), 1)) : T("", !0)
939
+ ])
940
+ ], !0)
941
+ ]),
942
+ _: 2
943
+ }, [
944
+ o.$slots.prefix ? {
945
+ name: "prefix",
946
+ fn: h(() => [
947
+ k(o.$slots, "prefix", {}, void 0, !0)
948
+ ]),
949
+ key: "0"
950
+ } : void 0,
951
+ o.$slots.suffix ? {
952
+ name: "suffix",
953
+ fn: h(() => [
954
+ k(o.$slots, "suffix", {}, void 0, !0)
955
+ ]),
956
+ key: "1"
957
+ } : void 0,
958
+ o.$slots.prepend ? {
959
+ name: "prepend",
960
+ fn: h(() => [
961
+ k(o.$slots, "prepend", {}, void 0, !0)
962
+ ]),
963
+ key: "2"
964
+ } : void 0,
965
+ o.$slots.append || e.showButton ? {
966
+ name: "append",
967
+ fn: h(() => [
968
+ o.$slots.append ? k(o.$slots, "append", {}, void 0, !0, 0) : (v(), Z(S(ie), ce({ key: 1 }, e.buttonProps, {
969
+ loading: e.loading,
970
+ disabled: e.disabled,
971
+ onClick: f
972
+ }), {
973
+ default: h(() => [
974
+ ne(ue(e.buttonText), 1)
975
+ ]),
976
+ _: 1
977
+ }, 16, ["loading", "disabled"]))
978
+ ]),
979
+ key: "3"
980
+ } : void 0
981
+ ]), 1040, ["model-value", "disabled", "placeholder", "clearable", "debounce", "trigger-on-focus", "teleported", "fit-input-width", "popper-class", "append-to"])
982
+ ], 2));
983
+ }
984
+ }), Je = /* @__PURE__ */ be(al, [["__scopeId", "data-v-022788e1"]]), ol = { class: "qy-record-quote-search" }, ll = {
985
+ key: 0,
986
+ class: "qy-record-quote-search__header"
987
+ }, nl = {
988
+ key: 0,
989
+ class: "qy-record-quote-search__label"
990
+ }, rl = {
991
+ key: 1,
992
+ class: "qy-record-quote-search__description"
993
+ }, sl = /* @__PURE__ */ he({
994
+ name: "QyRecordQuoteSearch",
995
+ inheritAttrs: !1,
996
+ __name: "index",
997
+ props: {
998
+ modelValue: { default: "" },
999
+ loading: { type: Boolean, default: !1 },
1000
+ disabled: { type: Boolean, default: !1 },
1001
+ placeholder: { default: "请输入报价单号" },
1002
+ buttonText: { default: "查询报价单" },
1003
+ autoNormalize: { type: Boolean, default: !0 },
1004
+ showStatus: { type: Boolean, default: !0 },
1005
+ status: { default: "default" },
1006
+ statusText: { default: "" },
1007
+ suggestions: { default: () => [] },
1008
+ fetchSuggestions: { type: [Function, null], default: null },
1009
+ fetchSuggestionsMethod: { type: [Function, null], default: null },
1010
+ debounce: { default: 300 },
1011
+ minLength: { default: 1 },
1012
+ searchOnSelect: { type: Boolean, default: !0 },
1013
+ searchMethod: { type: [Function, null], default: null },
1014
+ extractMethod: { type: [Function, null], default: null },
1015
+ normalizeMethod: { type: [Function, null], default: null },
1016
+ label: { default: "报价单号" },
1017
+ description: { default: "" },
1018
+ trimMode: { default: "blur" }
1019
+ },
1020
+ emits: ["update:modelValue", "search", "clear", "normalize", "enter", "select", "error", "success"],
1021
+ setup(e, { expose: F, emit: N }) {
1022
+ const t = e, s = N, te = ve(), $ = z(null), y = z(!1), d = A(() => t.statusText || ""), R = A(() => t.loading || y.value);
1023
+ function Q(a) {
1024
+ return a == null ? "" : String(a);
1025
+ }
1026
+ function M(a) {
1027
+ const u = Q(a).trim(), K = O(u), H = K.match(/BJ\d{8}[A-Z0-9]{4}/i);
1028
+ return H ? H[0] : K;
1029
+ }
1030
+ function O(a) {
1031
+ return Q(a).replace(/\s+/g, "").trim().toUpperCase();
1032
+ }
1033
+ function B(a) {
1034
+ return t.extractMethod ? t.extractMethod(a) : M(a);
1035
+ }
1036
+ function E(a) {
1037
+ return t.normalizeMethod ? t.normalizeMethod(a) : O(a);
1038
+ }
1039
+ function L(a, u) {
1040
+ const K = Q(a), H = B(K), n = t.autoNormalize ? E(H) : H;
1041
+ return s("normalize", { rawValue: K, code: n }), {
1042
+ rawValue: K,
1043
+ code: n,
1044
+ item: u
1045
+ };
1046
+ }
1047
+ function C(a) {
1048
+ s("update:modelValue", a);
1049
+ }
1050
+ async function x(a) {
1051
+ if (s("search", a), !!t.searchMethod) {
1052
+ y.value = !0;
1053
+ try {
1054
+ const u = await t.searchMethod(a);
1055
+ s("success", u);
1056
+ } catch (u) {
1057
+ s("error", u);
1058
+ } finally {
1059
+ y.value = !1;
1060
+ }
1061
+ }
1062
+ }
1063
+ function J(a) {
1064
+ const u = L(a);
1065
+ u.code !== Q(t.modelValue) && s("update:modelValue", u.code), x(u);
1066
+ }
1067
+ function le() {
1068
+ s("clear");
1069
+ }
1070
+ function j(a) {
1071
+ s("enter", a);
1072
+ }
1073
+ function W(a) {
1074
+ if (s("select", a), !t.searchOnSelect) return;
1075
+ const u = L(a.value, a);
1076
+ u.code !== Q(t.modelValue) && s("update:modelValue", u.code), x(u);
1077
+ }
1078
+ function U(a) {
1079
+ s("error", a);
1080
+ }
1081
+ function Y() {
1082
+ var a, u;
1083
+ (u = (a = $.value) == null ? void 0 : a.focus) == null || u.call(a);
1084
+ }
1085
+ function G() {
1086
+ var a, u;
1087
+ (u = (a = $.value) == null ? void 0 : a.blur) == null || u.call(a);
1088
+ }
1089
+ function p() {
1090
+ var a, u;
1091
+ (u = (a = $.value) == null ? void 0 : a.select) == null || u.call(a);
1092
+ }
1093
+ function b() {
1094
+ var a, u;
1095
+ (u = (a = $.value) == null ? void 0 : a.clear) == null || u.call(a);
1096
+ }
1097
+ return F({
1098
+ focus: Y,
1099
+ blur: G,
1100
+ select: p,
1101
+ clear: b,
1102
+ extractQuoteOrderCode: B,
1103
+ normalizeQuoteOrderCode: E
1104
+ }), (a, u) => (v(), I("div", ol, [
1105
+ k(a.$slots, "label", {}, () => [
1106
+ e.label || e.description ? (v(), I("div", ll, [
1107
+ e.label ? (v(), I("div", nl, ue(e.label), 1)) : T("", !0),
1108
+ e.description ? (v(), I("div", rl, ue(e.description), 1)) : T("", !0)
1109
+ ])) : T("", !0)
1110
+ ], !0),
1111
+ D(Je, ce({
1112
+ ref_key: "searchRef",
1113
+ ref: $
1114
+ }, S(te), {
1115
+ "model-value": e.modelValue,
1116
+ loading: R.value,
1117
+ disabled: e.disabled,
1118
+ placeholder: e.placeholder,
1119
+ "remove-space": !0,
1120
+ "trim-mode": e.trimMode,
1121
+ "button-text": e.buttonText,
1122
+ suggestions: e.suggestions,
1123
+ "fetch-suggestions": e.fetchSuggestions,
1124
+ "fetch-suggestions-method": e.fetchSuggestionsMethod,
1125
+ debounce: e.debounce,
1126
+ "min-length": e.minLength,
1127
+ "search-on-select": !1,
1128
+ "onUpdate:modelValue": C,
1129
+ onSearch: J,
1130
+ onClear: le,
1131
+ onEnter: j,
1132
+ onSelect: W,
1133
+ onError: U
1134
+ }), Ie({ _: 2 }, [
1135
+ a.$slots.prefix ? {
1136
+ name: "prefix",
1137
+ fn: h(() => [
1138
+ k(a.$slots, "prefix", {}, void 0, !0)
1139
+ ]),
1140
+ key: "0"
1141
+ } : void 0,
1142
+ a.$slots.suffix ? {
1143
+ name: "suffix",
1144
+ fn: h(() => [
1145
+ k(a.$slots, "suffix", {}, void 0, !0)
1146
+ ]),
1147
+ key: "1"
1148
+ } : void 0,
1149
+ a.$slots.item ? {
1150
+ name: "item",
1151
+ fn: h((K) => [
1152
+ k(a.$slots, "item", Me(Ee(K)), void 0, !0)
1153
+ ]),
1154
+ key: "2"
1155
+ } : void 0,
1156
+ a.$slots.empty ? {
1157
+ name: "empty",
1158
+ fn: h(() => [
1159
+ k(a.$slots, "empty", {}, void 0, !0)
1160
+ ]),
1161
+ key: "3"
1162
+ } : void 0,
1163
+ a.$slots.loading ? {
1164
+ name: "loading",
1165
+ fn: h(() => [
1166
+ k(a.$slots, "loading", {}, void 0, !0)
1167
+ ]),
1168
+ key: "4"
1169
+ } : void 0
1170
+ ]), 1040, ["model-value", "loading", "disabled", "placeholder", "trim-mode", "button-text", "suggestions", "fetch-suggestions", "fetch-suggestions-method", "debounce", "min-length"]),
1171
+ e.showStatus && d.value ? k(a.$slots, "status", {
1172
+ status: e.status,
1173
+ statusText: d.value
1174
+ }, () => [
1175
+ X("div", {
1176
+ class: pe(["qy-record-quote-search__status", `is-${e.status}`])
1177
+ }, ue(d.value), 3)
1178
+ ], !0, 0) : T("", !0)
1179
+ ]));
1180
+ }
1181
+ }), il = /* @__PURE__ */ be(sl, [["__scopeId", "data-v-b48667ff"]]), ul = { class: "qy-selection-dialog" }, cl = { class: "qy-selection-dialog__main" }, dl = {
1182
+ key: 0,
1183
+ class: "qy-selection-dialog__selected"
1184
+ }, fl = { class: "qy-selection-dialog__selected-tags" }, yl = {
1185
+ key: 0,
1186
+ class: "qy-selection-dialog__selected-actions"
1187
+ }, ml = {
1188
+ key: 1,
1189
+ class: "qy-selection-dialog__search-row"
1190
+ }, pl = {
1191
+ key: 0,
1192
+ class: "qy-selection-dialog__toolbar"
1193
+ }, gl = {
1194
+ key: 2,
1195
+ class: "qy-selection-dialog__pagination"
1196
+ }, hl = { class: "qy-selection-dialog__paste-actions" }, vl = /* @__PURE__ */ he({
1197
+ name: "QySelectionDialog",
1198
+ inheritAttrs: !1,
1199
+ __name: "index",
1200
+ props: {
1201
+ modelValue: { default: () => [] },
1202
+ open: { type: Boolean, default: !0 },
1203
+ title: { default: "选择数据" },
1204
+ width: { default: "1200px" },
1205
+ fetchMethod: { type: Function, default: void 0 },
1206
+ query: { type: Function, default: void 0 },
1207
+ responseFormatter: { type: Function, default: void 0 },
1208
+ selectionMode: { default: void 0 },
1209
+ selection: { default: "single" },
1210
+ selected: { default: () => [] },
1211
+ rowKey: { default: "id" },
1212
+ mainKey: { default: void 0 },
1213
+ labelKey: { default: "name" },
1214
+ tagName: { default: void 0 },
1215
+ searchKey: { default: "conditions" },
1216
+ queryParams: { default: () => ({}) },
1217
+ category: { type: [Array, Function, Boolean], default: !1 },
1218
+ categoryFormatter: { type: [Function, Array], default: void 0 },
1219
+ categoryOptions: { default: () => [] },
1220
+ categoryFetchMethod: { type: [Function, null], default: null },
1221
+ type: { type: [Array, Boolean], default: !1 },
1222
+ typeOptions: { default: () => [] },
1223
+ typeSelectionProps: { default: () => ({}) },
1224
+ typeSelectProps: { default: () => ({}) },
1225
+ tableProps: { default: () => ({}) },
1226
+ showSelected: { type: Boolean, default: !0 },
1227
+ showSearch: { type: Boolean, default: !0 },
1228
+ showPagination: { type: Boolean, default: !0 },
1229
+ showCopyPaste: { type: Boolean, default: !1 },
1230
+ append: { type: Boolean, default: !1 },
1231
+ showAppend: { type: Boolean, default: !1 },
1232
+ pageSizes: { default: () => [10, 20, 50, 100] }
1233
+ },
1234
+ emits: ["update:modelValue", "selection-change", "confirm", "submit", "cancel", "close", "append", "loaded"],
1235
+ setup(e, { expose: F, emit: N }) {
1236
+ const t = e, s = N, te = ve(), $ = $a(), y = Ca(), d = z(null), R = z([]), Q = z([]), M = z([]), O = z(!1), B = z(0), E = z(!1), L = z(""), C = Ae({
1237
+ category: [],
1238
+ type: "",
1239
+ page: 1,
1240
+ pageSize: 10,
1241
+ ...t.searchKey ? { [t.searchKey]: "" } : {},
1242
+ ...t.queryParams
1243
+ }), x = A(() => t.selectionMode ? t.selectionMode : t.selection === "multi" ? "multiple" : t.selection), J = A(() => t.mainKey || t.rowKey), le = A(() => t.tagName || t.labelKey), j = A(() => t.typeOptions.length ? t.typeOptions : t.type || []), W = A(() => ({
1244
+ ...t.typeSelectionProps,
1245
+ ...t.typeSelectProps
1246
+ })), U = A(() => t.tableProps || {}), Y = A(
1247
+ () => t.showSearch || !!te["search-visible"]
1248
+ ), G = A(() => t.showAppend || t.append), p = A(
1249
+ () => G.value || !!$.toolbar || !!$.bar
1250
+ ), b = A(() => t.fetchMethod || t.query), a = A(() => u() ? t.modelValue : t.selected);
1251
+ function u() {
1252
+ const l = (y == null ? void 0 : y.vnode.props) || {};
1253
+ return Object.prototype.hasOwnProperty.call(l, "modelValue") || Object.prototype.hasOwnProperty.call(l, "model-value") || Object.prototype.hasOwnProperty.call(l, "onUpdate:modelValue");
1254
+ }
1255
+ ae(
1256
+ [() => t.modelValue, () => t.selected, () => t.open],
1257
+ () => {
1258
+ t.open && (Q.value = Qe(a.value), q());
1259
+ },
1260
+ { immediate: !0, deep: !0 }
1261
+ ), ae(
1262
+ [() => t.categoryOptions, () => t.category],
1263
+ (l) => {
1264
+ if (Array.isArray(t.category) && t.category.length) {
1265
+ M.value = t.category;
1266
+ return;
1267
+ }
1268
+ M.value = t.categoryOptions || [];
1269
+ },
1270
+ { immediate: !0 }
1271
+ ), ae(E, (l) => {
1272
+ l || (L.value = "");
1273
+ });
1274
+ async function K() {
1275
+ Q.value = Qe(a.value), await H(), await n(), q();
1276
+ }
1277
+ async function H() {
1278
+ const l = t.categoryFetchMethod || (typeof t.category == "function" ? t.category : null);
1279
+ if (!l) return;
1280
+ const r = await l();
1281
+ M.value = fe(r);
1282
+ }
1283
+ async function n() {
1284
+ if (b.value) {
1285
+ O.value = !0;
1286
+ try {
1287
+ const l = await b.value(we()), r = t.responseFormatter ? await t.responseFormatter(l) : l, { rows: V, total: g } = de(r);
1288
+ return R.value = V, B.value = g, s("loaded", V), q(), r;
1289
+ } finally {
1290
+ O.value = !1;
1291
+ }
1292
+ }
1293
+ }
1294
+ function f() {
1295
+ return C.page = 1, n();
1296
+ }
1297
+ function w() {
1298
+ return C.page = 1, n();
1299
+ }
1300
+ function P() {
1301
+ return Object.assign(C, {
1302
+ category: [],
1303
+ type: "",
1304
+ page: 1,
1305
+ pageSize: C.pageSize,
1306
+ ...t.searchKey ? { [t.searchKey]: "" } : {},
1307
+ ...t.queryParams
1308
+ }), n();
1309
+ }
1310
+ function oe() {
1311
+ s("append");
1312
+ }
1313
+ function de(l) {
1314
+ if (Array.isArray(l))
1315
+ return { rows: l, total: l.length };
1316
+ const r = l == null ? void 0 : l.data;
1317
+ if (Array.isArray(r))
1318
+ return { rows: r, total: (l == null ? void 0 : l.total) ?? r.length };
1319
+ const V = (l == null ? void 0 : l.records) || (l == null ? void 0 : l.rows) || (r == null ? void 0 : r.records) || [], g = (l == null ? void 0 : l.total) ?? (r == null ? void 0 : r.total) ?? V.length;
1320
+ return { rows: V, total: g };
1321
+ }
1322
+ function fe(l) {
1323
+ const r = (l == null ? void 0 : l.data) ?? l;
1324
+ if (!Array.isArray(r)) return [];
1325
+ if (typeof t.categoryFormatter == "function")
1326
+ return t.categoryFormatter(r);
1327
+ if (Array.isArray(t.categoryFormatter)) {
1328
+ const [V, g] = t.categoryFormatter;
1329
+ return r.map((se) => ({
1330
+ ...se,
1331
+ label: se[V],
1332
+ value: se[g],
1333
+ children: Array.isArray(se.children) ? me(se.children, V, g) : se.children
1334
+ }));
1335
+ }
1336
+ return r;
1337
+ }
1338
+ function me(l, r, V) {
1339
+ return l.map((g) => ({
1340
+ ...g,
1341
+ label: g[r],
1342
+ value: g[V],
1343
+ children: Array.isArray(g.children) ? me(g.children, r, V) : g.children
1344
+ }));
1345
+ }
1346
+ function we() {
1347
+ const l = { ...t.queryParams, ...C };
1348
+ return t.searchKey && (l[t.searchKey] = String(l[t.searchKey] || "").trim()), l.category = i(), l;
1349
+ }
1350
+ function i() {
1351
+ if (Object.prototype.hasOwnProperty.call(t.queryParams, "category"))
1352
+ return t.queryParams.category;
1353
+ const l = C.category;
1354
+ return Array.isArray(l) ? l : l ? [l] : [];
1355
+ }
1356
+ function _(l) {
1357
+ var r, V;
1358
+ if (x.value !== "none") {
1359
+ if (x.value === "single") {
1360
+ Q.value = [l], (r = d.value) == null || r.setCurrentRow(l), ke();
1361
+ return;
1362
+ }
1363
+ re(l) && ((V = d.value) == null || V.toggleRowSelection(l, !ye(l)));
1364
+ }
1365
+ }
1366
+ function o(l) {
1367
+ if (x.value !== "multiple") return;
1368
+ const r = new Set(R.value.map(ee)), V = new Set(l.map(ee));
1369
+ Q.value = Q.value.filter(
1370
+ (g) => !r.has(ee(g)) || V.has(ee(g))
1371
+ ), l.forEach((g) => {
1372
+ ye(g) || Q.value.push(g);
1373
+ }), ke();
1374
+ }
1375
+ function m(l) {
1376
+ var V, g;
1377
+ Q.value = Q.value.filter(
1378
+ (se) => ee(se) !== ee(l)
1379
+ );
1380
+ const r = R.value.find((se) => ee(se) === ee(l));
1381
+ r && (x.value === "multiple" ? (V = d.value) == null || V.toggleRowSelection(r, !1) : (g = d.value) == null || g.setCurrentRow()), ke();
1382
+ }
1383
+ function q() {
1384
+ qe(() => {
1385
+ var l;
1386
+ if (d.value) {
1387
+ if (x.value === "single") {
1388
+ const [r] = Q.value, V = R.value.find(
1389
+ (g) => r && ee(g) === ee(r)
1390
+ );
1391
+ (l = d.value) == null || l.setCurrentRow(V);
1392
+ return;
1393
+ }
1394
+ x.value === "multiple" && R.value.forEach((r) => {
1395
+ var V;
1396
+ (V = d.value) == null || V.toggleRowSelection(r, ye(r));
1397
+ });
1398
+ }
1399
+ });
1400
+ }
1401
+ function re(l) {
1402
+ var V;
1403
+ const r = (V = U.value) == null ? void 0 : V.selectable;
1404
+ return typeof r == "function" ? r(l) !== !1 : !0;
1405
+ }
1406
+ function ye(l) {
1407
+ return Q.value.some((r) => ee(r) === ee(l));
1408
+ }
1409
+ function ee(l) {
1410
+ return xe(l, J.value);
1411
+ }
1412
+ function Ve(l) {
1413
+ return xe(l, le.value) ?? ee(l);
1414
+ }
1415
+ function xe(l, r) {
1416
+ if (!(!l || !r))
1417
+ return r.split(".").reduce((V, g) => V == null ? void 0 : V[g], l);
1418
+ }
1419
+ function ke() {
1420
+ const l = Qe(Q.value);
1421
+ s("selection-change", l);
1422
+ }
1423
+ function ma() {
1424
+ const l = Qe(Q.value);
1425
+ s("update:modelValue", l), s("confirm", l), s("submit", { selection: l, rows: l, query: { ...C } });
1426
+ }
1427
+ function pa() {
1428
+ Q.value = Qe(a.value), s("cancel"), s("close");
1429
+ }
1430
+ async function ga() {
1431
+ var r;
1432
+ const l = JSON.stringify(Q.value);
1433
+ await ((r = navigator.clipboard) == null ? void 0 : r.writeText(l)), Se.success("复制成功");
1434
+ }
1435
+ function ha() {
1436
+ try {
1437
+ const l = JSON.parse(L.value);
1438
+ if (!Array.isArray(l)) {
1439
+ Se.error("粘贴内容需要是数组");
1440
+ return;
1441
+ }
1442
+ l.forEach((r) => {
1443
+ ye(r) || Q.value.push(r);
1444
+ }), E.value = !1, ke(), q();
1445
+ } catch (l) {
1446
+ Se.error(`粘贴错误: ${(l == null ? void 0 : l.message) || "内容格式错误"}`);
1447
+ }
1448
+ }
1449
+ function Qe(l = []) {
1450
+ return l.map((r) => ({ ...r }));
1451
+ }
1452
+ return F({
1453
+ search: f,
1454
+ handleSearch: n,
1455
+ handleQuerySearch: f,
1456
+ resetSearch: P,
1457
+ getTableRef: () => d.value,
1458
+ getTableData: () => R.value,
1459
+ getSelection: () => Qe(Q.value)
1460
+ }), (l, r) => {
1461
+ const V = Ga;
1462
+ return v(), Z(Be, {
1463
+ open: e.open,
1464
+ title: e.title,
1465
+ width: e.width,
1466
+ onOpened: K,
1467
+ onConfirm: ma,
1468
+ onCancel: pa
1469
+ }, {
1470
+ default: h(() => [
1471
+ X("div", ul, [
1472
+ k(l.$slots, "side", {}, void 0, !0),
1473
+ X("div", cl, [
1474
+ e.showSelected ? (v(), I("div", dl, [
1475
+ r[12] || (r[12] = X("span", { class: "qy-selection-dialog__selected-label" }, "已选项", -1)),
1476
+ X("div", fl, [
1477
+ (v(!0), I($e, null, Te(Q.value, (g) => (v(), Z(Pe, {
1478
+ key: ee(g),
1479
+ closable: "",
1480
+ class: "qy-selection-dialog__selected-tag",
1481
+ onClose: (se) => m(g)
1482
+ }, {
1483
+ default: h(() => [
1484
+ ne(ue(Ve(g)), 1)
1485
+ ]),
1486
+ _: 2
1487
+ }, 1032, ["onClose"]))), 128)),
1488
+ Q.value.length ? T("", !0) : (v(), Z(Pe, {
1489
+ key: 0,
1490
+ tone: "info"
1491
+ }, {
1492
+ default: h(() => [...r[9] || (r[9] = [
1493
+ ne("无", -1)
1494
+ ])]),
1495
+ _: 1
1496
+ }))
1497
+ ]),
1498
+ e.showCopyPaste ? (v(), I("div", yl, [
1499
+ D(S(ie), {
1500
+ size: "small",
1501
+ onClick: ga
1502
+ }, {
1503
+ default: h(() => [...r[10] || (r[10] = [
1504
+ ne("复制", -1)
1505
+ ])]),
1506
+ _: 1
1507
+ }),
1508
+ D(S(ie), {
1509
+ size: "small",
1510
+ onClick: r[0] || (r[0] = (g) => E.value = !0)
1511
+ }, {
1512
+ default: h(() => [...r[11] || (r[11] = [
1513
+ ne("粘贴", -1)
1514
+ ])]),
1515
+ _: 1
1516
+ })
1517
+ ])) : T("", !0)
1518
+ ])) : T("", !0),
1519
+ Y.value ? (v(), I("div", ml, [
1520
+ D(S(je), {
1521
+ class: "qy-selection-dialog__search",
1522
+ inline: "",
1523
+ model: C
1524
+ }, {
1525
+ default: h(() => [
1526
+ k(l.$slots, "search", {
1527
+ query: C,
1528
+ search: f,
1529
+ reset: P
1530
+ }, () => [
1531
+ M.value.length ? (v(), Z(S(ge), {
1532
+ key: 0,
1533
+ label: "分类"
1534
+ }, {
1535
+ default: h(() => [
1536
+ D(We, {
1537
+ modelValue: C.category,
1538
+ "onUpdate:modelValue": r[1] || (r[1] = (g) => C.category = g),
1539
+ class: "qy-selection-dialog__category",
1540
+ options: M.value,
1541
+ clearable: "",
1542
+ filterable: "",
1543
+ "check-strictly": "",
1544
+ "render-after-expand": !1,
1545
+ onChange: f
1546
+ }, null, 8, ["modelValue", "options"])
1547
+ ]),
1548
+ _: 1
1549
+ })) : T("", !0),
1550
+ j.value.length ? (v(), Z(S(ge), {
1551
+ key: 1,
1552
+ label: "类型"
1553
+ }, {
1554
+ default: h(() => [
1555
+ D(Oe, ce({
1556
+ modelValue: C.type,
1557
+ "onUpdate:modelValue": r[2] || (r[2] = (g) => C.type = g),
1558
+ class: "qy-selection-dialog__type",
1559
+ options: j.value,
1560
+ placeholder: "请选择类型",
1561
+ clearable: ""
1562
+ }, W.value, { onChange: f }), null, 16, ["modelValue", "options"])
1563
+ ]),
1564
+ _: 1
1565
+ })) : T("", !0),
1566
+ e.searchKey ? (v(), Z(S(ge), {
1567
+ key: 2,
1568
+ label: "搜索"
1569
+ }, {
1570
+ default: h(() => [
1571
+ D(S(Ce), {
1572
+ modelValue: C[e.searchKey],
1573
+ "onUpdate:modelValue": r[3] || (r[3] = (g) => C[e.searchKey] = g),
1574
+ clearable: "",
1575
+ placeholder: "请输入",
1576
+ class: "qy-selection-dialog__search-input",
1577
+ onKeydown: Fe(Re(f, ["prevent"]), ["enter"])
1578
+ }, null, 8, ["modelValue", "onKeydown"])
1579
+ ]),
1580
+ _: 1
1581
+ })) : T("", !0),
1582
+ D(S(ge), null, {
1583
+ default: h(() => [
1584
+ D(S(ie), {
1585
+ type: "primary",
1586
+ onClick: f
1587
+ }, {
1588
+ default: h(() => [...r[13] || (r[13] = [
1589
+ ne("查询", -1)
1590
+ ])]),
1591
+ _: 1
1592
+ }),
1593
+ D(S(ie), { onClick: P }, {
1594
+ default: h(() => [...r[14] || (r[14] = [
1595
+ ne("重置", -1)
1596
+ ])]),
1597
+ _: 1
1598
+ })
1599
+ ]),
1600
+ _: 1
1601
+ })
1602
+ ], !0)
1603
+ ]),
1604
+ _: 3
1605
+ }, 8, ["model"]),
1606
+ p.value ? (v(), I("div", pl, [
1607
+ G.value ? (v(), Z(S(ie), {
1608
+ key: 0,
1609
+ type: "primary",
1610
+ onClick: oe
1611
+ }, {
1612
+ default: h(() => [...r[15] || (r[15] = [
1613
+ ne(" 新增 ", -1)
1614
+ ])]),
1615
+ _: 1
1616
+ })) : T("", !0),
1617
+ k(l.$slots, "toolbar", {
1618
+ query: C,
1619
+ search: f
1620
+ }, void 0, !0),
1621
+ k(l.$slots, "bar", {
1622
+ query: C,
1623
+ search: f
1624
+ }, void 0, !0)
1625
+ ])) : T("", !0)
1626
+ ])) : T("", !0),
1627
+ Le((v(), Z(S(qa), ce({
1628
+ ref_key: "tableRef",
1629
+ ref: d,
1630
+ data: R.value,
1631
+ "row-key": J.value,
1632
+ border: "",
1633
+ "highlight-current-row": "",
1634
+ "max-height": "550px"
1635
+ }, U.value, {
1636
+ onSelectionChange: o,
1637
+ onRowClick: _
1638
+ }), {
1639
+ default: h(() => {
1640
+ var g;
1641
+ return [
1642
+ x.value === "multiple" ? (v(), Z(S(Ta), {
1643
+ key: 0,
1644
+ type: "selection",
1645
+ "reserve-selection": "",
1646
+ width: "42",
1647
+ selectable: (g = U.value) == null ? void 0 : g.selectable
1648
+ }, null, 8, ["selectable"])) : T("", !0),
1649
+ k(l.$slots, "columns", {}, void 0, !0),
1650
+ k(l.$slots, "cols", {}, void 0, !0)
1651
+ ];
1652
+ }),
1653
+ _: 3
1654
+ }, 16, ["data", "row-key"])), [
1655
+ [V, O.value]
1656
+ ]),
1657
+ e.showPagination && B.value > 0 ? (v(), I("div", gl, [
1658
+ D(S(Ia), {
1659
+ "current-page": C.page,
1660
+ "onUpdate:currentPage": r[4] || (r[4] = (g) => C.page = g),
1661
+ "page-size": C.pageSize,
1662
+ "onUpdate:pageSize": r[5] || (r[5] = (g) => C.pageSize = g),
1663
+ total: B.value,
1664
+ "page-sizes": e.pageSizes,
1665
+ layout: "total, sizes, prev, pager, next, jumper",
1666
+ onSizeChange: w,
1667
+ onCurrentChange: n
1668
+ }, null, 8, ["current-page", "page-size", "total", "page-sizes"])
1669
+ ])) : T("", !0)
1670
+ ])
1671
+ ]),
1672
+ D(Be, {
1673
+ open: E.value,
1674
+ title: "粘贴数据",
1675
+ "show-footer": !1,
1676
+ width: "560px",
1677
+ "onUpdate:open": r[8] || (r[8] = (g) => E.value = g)
1678
+ }, {
1679
+ default: h(() => [
1680
+ D(S(Ce), {
1681
+ modelValue: L.value,
1682
+ "onUpdate:modelValue": r[6] || (r[6] = (g) => L.value = g),
1683
+ type: "textarea",
1684
+ rows: 8
1685
+ }, null, 8, ["modelValue"]),
1686
+ X("div", hl, [
1687
+ D(S(ie), {
1688
+ onClick: r[7] || (r[7] = (g) => E.value = !1)
1689
+ }, {
1690
+ default: h(() => [...r[16] || (r[16] = [
1691
+ ne("取消", -1)
1692
+ ])]),
1693
+ _: 1
1694
+ }),
1695
+ D(S(ie), {
1696
+ type: "primary",
1697
+ onClick: ha
1698
+ }, {
1699
+ default: h(() => [...r[17] || (r[17] = [
1700
+ ne("确认", -1)
1701
+ ])]),
1702
+ _: 1
1703
+ })
1704
+ ])
1705
+ ]),
1706
+ _: 1
1707
+ }, 8, ["open"])
1708
+ ]),
1709
+ _: 3
1710
+ }, 8, ["open", "title", "width"]);
1711
+ };
1712
+ }
1713
+ }), Ze = /* @__PURE__ */ be(vl, [["__scopeId", "data-v-aa46a777"]]), bl = /* @__PURE__ */ he({
1714
+ name: "QyLegacySelectionDialog",
1715
+ inheritAttrs: !1,
1716
+ __name: "index",
1717
+ props: {
1718
+ open: { type: Boolean, default: !0 },
1719
+ title: { default: "选择数据" },
1720
+ width: { default: "1200px" },
1721
+ query: { type: Function, default: void 0 },
1722
+ responseFormatter: { type: Function, default: void 0 },
1723
+ selection: { default: "single" },
1724
+ selected: { default: () => [] },
1725
+ mainKey: { default: "" },
1726
+ tagName: { default: "" },
1727
+ searchKey: { default: "conditions" },
1728
+ queryParams: { default: () => ({}) },
1729
+ category: { type: [Array, Function, Boolean], default: !1 },
1730
+ categoryFormatter: { type: [Function, Array], default: void 0 },
1731
+ type: { type: [Array, Boolean], default: !1 },
1732
+ typeSelectionProps: { default: () => ({}) },
1733
+ tableProps: { default: () => ({}) },
1734
+ append: { type: Boolean, default: !1 },
1735
+ delete: { type: Boolean, default: !1 },
1736
+ select: { default: null }
1737
+ },
1738
+ emits: ["close", "submit", "openDialog", "changeIndexShow"],
1739
+ setup(e, { expose: F, emit: N }) {
1740
+ const t = e, s = N, te = ve(), $ = z(null), y = Ae({
1741
+ category: [],
1742
+ code: "",
1743
+ ...t.searchKey ? { [t.searchKey]: "" } : {},
1744
+ page: 1,
1745
+ pageSize: 10,
1746
+ type: "",
1747
+ ...t.queryParams
1748
+ }), d = Ae({
1749
+ total: 0,
1750
+ tableData: [],
1751
+ open: !1,
1752
+ selection: [],
1753
+ categories: [],
1754
+ types: [],
1755
+ tableRef: null,
1756
+ drag: !1,
1757
+ dialogOpen: !1,
1758
+ pasteData: "",
1759
+ pasteDataDialog: !1
1760
+ }), R = A(() => t.type || []), Q = A(() => d.categories), M = async (n) => {
1761
+ if (!t.query) return { data: { records: [], total: 0 } };
1762
+ const f = await t.query(W(n)), w = t.responseFormatter ? await t.responseFormatter(f) : f;
1763
+ return d.total = K(w), w;
1764
+ };
1765
+ ae(
1766
+ () => t.open,
1767
+ (n) => {
1768
+ d.open = n;
1769
+ },
1770
+ { immediate: !0 }
1771
+ ), ae(
1772
+ R,
1773
+ (n) => {
1774
+ d.types = [...n];
1775
+ },
1776
+ { immediate: !0, deep: !0 }
1777
+ ), ae(
1778
+ [() => t.selected, () => t.open],
1779
+ () => {
1780
+ t.open && (d.selection = H(t.selected));
1781
+ },
1782
+ { immediate: !0, deep: !0 }
1783
+ ), ae(
1784
+ () => t.queryParams,
1785
+ () => {
1786
+ Object.assign(y, t.queryParams);
1787
+ },
1788
+ { deep: !0 }
1789
+ ), ae(
1790
+ () => d.pasteDataDialog,
1791
+ (n) => {
1792
+ n || (d.pasteData = "");
1793
+ }
1794
+ ), ae(
1795
+ () => t.select,
1796
+ async () => {
1797
+ t.select && await j(t.select);
1798
+ },
1799
+ { deep: !0 }
1800
+ ), ae(
1801
+ () => t.open,
1802
+ async (n) => {
1803
+ n && (d.dialogOpen = !1, await O());
1804
+ },
1805
+ { immediate: !0 }
1806
+ );
1807
+ async function O() {
1808
+ if (!t.category) {
1809
+ d.categories = [];
1810
+ return;
1811
+ }
1812
+ const n = typeof t.category == "function" ? await t.category() : t.category;
1813
+ d.categories = p(n);
1814
+ }
1815
+ async function B() {
1816
+ var n;
1817
+ return await qe(), (n = $.value) == null ? void 0 : n.handleQuerySearch();
1818
+ }
1819
+ function E(n) {
1820
+ d.selection = H(n);
1821
+ }
1822
+ function L(n) {
1823
+ var f;
1824
+ d.tableData = n, d.tableRef = (f = $.value) == null ? void 0 : f.getTableRef();
1825
+ }
1826
+ function C(n) {
1827
+ d.selection = H(n), s("submit", d);
1828
+ }
1829
+ function x() {
1830
+ s("close");
1831
+ }
1832
+ function J() {
1833
+ d.dialogOpen = !0, s("openDialog");
1834
+ }
1835
+ function le(n) {
1836
+ s("changeIndexShow", n);
1837
+ }
1838
+ async function j(n) {
1839
+ if (!t.query || !t.searchKey || !t.mainKey) return;
1840
+ const f = await t.query({
1841
+ ...y,
1842
+ [t.searchKey]: n[t.mainKey],
1843
+ category: []
1844
+ }), w = t.responseFormatter ? await t.responseFormatter(f) : f, [P] = u(w);
1845
+ P && (t.selection === "multi" ? (d.selection = d.selection.filter(
1846
+ (oe) => oe[t.mainKey] !== P[t.mainKey]
1847
+ ), d.selection.push(P)) : d.selection = [P]);
1848
+ }
1849
+ function W(n = {}) {
1850
+ y.page = n.page ?? y.page, y.pageSize = n.pageSize ?? y.pageSize;
1851
+ const f = {
1852
+ ...y,
1853
+ category: U()
1854
+ };
1855
+ return t.searchKey && (f[t.searchKey] = String(f[t.searchKey] || "").trim()), f;
1856
+ }
1857
+ function U() {
1858
+ if (t.queryParams.category)
1859
+ return t.queryParams.category;
1860
+ const n = y.category;
1861
+ if (Array.isArray(n)) return n;
1862
+ if (!n) return [];
1863
+ const f = Y(d.categories, n);
1864
+ return f ? G(f) : [n];
1865
+ }
1866
+ function Y(n, f) {
1867
+ for (const w of n || []) {
1868
+ if (w.value === f) return w;
1869
+ const P = Y(w.children || [], f);
1870
+ if (P) return P;
1871
+ }
1872
+ }
1873
+ function G(n) {
1874
+ return [n.value, ...(n.children || []).flatMap(G)];
1875
+ }
1876
+ function p(n) {
1877
+ const f = (n == null ? void 0 : n.data) ?? n;
1878
+ if (!Array.isArray(f)) return [];
1879
+ if (typeof t.categoryFormatter == "function")
1880
+ return t.categoryFormatter(f);
1881
+ if (Array.isArray(t.categoryFormatter)) {
1882
+ const [w, P] = t.categoryFormatter;
1883
+ return a(b(f, P), w, P);
1884
+ }
1885
+ return f;
1886
+ }
1887
+ function b(n, f) {
1888
+ const w = n.map((oe) => ({ ...oe })), P = [];
1889
+ return w.forEach((oe) => {
1890
+ const de = oe.parentCateCode;
1891
+ if (!de) {
1892
+ P.push(oe);
1893
+ return;
1894
+ }
1895
+ const fe = w.find((me) => me[f] === de);
1896
+ fe ? (fe.children || (fe.children = [])).push(oe) : P.push(oe);
1897
+ }), P;
1898
+ }
1899
+ function a(n, f, w) {
1900
+ return n.map((P) => ({
1901
+ ...P,
1902
+ label: P[f],
1903
+ value: P[w],
1904
+ children: Array.isArray(P.children) ? a(P.children, f, w) : P.children
1905
+ }));
1906
+ }
1907
+ function u(n) {
1908
+ if (Array.isArray(n)) return n;
1909
+ const f = n == null ? void 0 : n.data;
1910
+ return Array.isArray(f) ? f : (n == null ? void 0 : n.records) || (n == null ? void 0 : n.rows) || (f == null ? void 0 : f.records) || [];
1911
+ }
1912
+ function K(n) {
1913
+ if (Array.isArray(n)) return n.length;
1914
+ const f = u(n), w = n == null ? void 0 : n.data;
1915
+ return (n == null ? void 0 : n.total) ?? (Array.isArray(w) ? w.length : w == null ? void 0 : w.total) ?? f.length;
1916
+ }
1917
+ function H(n = []) {
1918
+ return n.map((f) => ({ ...f }));
1919
+ }
1920
+ return F({
1921
+ search: B,
1922
+ handleSearch: B,
1923
+ handleConditionChange: B,
1924
+ getTableRef: () => d.tableRef,
1925
+ getTableData: () => d.tableData,
1926
+ getSelection: () => H(d.selection)
1927
+ }), (n, f) => (v(), I($e, null, [
1928
+ D(Ze, ce({
1929
+ ref_key: "selectionDialogRef",
1930
+ ref: $
1931
+ }, S(te), {
1932
+ modelValue: d.selection,
1933
+ "onUpdate:modelValue": f[3] || (f[3] = (w) => d.selection = w),
1934
+ open: e.open,
1935
+ title: e.title,
1936
+ width: e.width,
1937
+ query: M,
1938
+ "response-formatter": e.responseFormatter,
1939
+ selection: e.selection,
1940
+ "row-key": e.mainKey,
1941
+ "label-key": e.tagName,
1942
+ "search-key": e.searchKey,
1943
+ "query-params": {},
1944
+ "category-options": Q.value,
1945
+ "type-options": R.value,
1946
+ "type-select-props": e.typeSelectionProps,
1947
+ "table-props": e.tableProps,
1948
+ "show-copy-paste": !0,
1949
+ "show-append": e.append,
1950
+ onSelectionChange: E,
1951
+ onConfirm: C,
1952
+ onCancel: x,
1953
+ onAppend: J,
1954
+ onLoaded: L
1955
+ }), {
1956
+ side: h(() => [
1957
+ k(n.$slots, "side", {
1958
+ state: d,
1959
+ cate: d.categories,
1960
+ form: y,
1961
+ query: y,
1962
+ getData: B,
1963
+ search: B,
1964
+ changeIndexShow: le
1965
+ }, void 0, !0)
1966
+ ]),
1967
+ search: h(() => [
1968
+ D(S(je), {
1969
+ inline: "",
1970
+ model: y
1971
+ }, {
1972
+ default: h(() => [
1973
+ d.categories.length ? (v(), Z(S(ge), {
1974
+ key: 0,
1975
+ label: "分类"
1976
+ }, {
1977
+ default: h(() => [
1978
+ D(S(Fa), {
1979
+ modelValue: y.category,
1980
+ "onUpdate:modelValue": f[0] || (f[0] = (w) => y.category = w),
1981
+ class: "qy-legacy-selection-dialog__category",
1982
+ data: d.categories,
1983
+ clearable: "",
1984
+ filterable: "",
1985
+ "check-strictly": "",
1986
+ "render-after-expand": !1,
1987
+ onChange: B
1988
+ }, null, 8, ["modelValue", "data"])
1989
+ ]),
1990
+ _: 1
1991
+ })) : T("", !0),
1992
+ R.value.length ? (v(), Z(S(ge), {
1993
+ key: 1,
1994
+ label: "类型"
1995
+ }, {
1996
+ default: h(() => [
1997
+ D(S(Ue), ce({
1998
+ modelValue: y.type,
1999
+ "onUpdate:modelValue": f[1] || (f[1] = (w) => y.type = w),
2000
+ clearable: ""
2001
+ }, e.typeSelectionProps, { onChange: B }), {
2002
+ default: h(() => [
2003
+ (v(!0), I($e, null, Te(R.value, (w) => (v(), Z(S(Ne), {
2004
+ key: w.value,
2005
+ label: w.label,
2006
+ value: w.value
2007
+ }, null, 8, ["label", "value"]))), 128))
2008
+ ]),
2009
+ _: 1
2010
+ }, 16, ["modelValue"])
2011
+ ]),
2012
+ _: 1
2013
+ })) : T("", !0),
2014
+ e.searchKey ? (v(), Z(S(ge), {
2015
+ key: 2,
2016
+ label: "搜索"
2017
+ }, {
2018
+ default: h(() => [
2019
+ D(S(Ce), {
2020
+ modelValue: y[e.searchKey],
2021
+ "onUpdate:modelValue": f[2] || (f[2] = (w) => y[e.searchKey] = w),
2022
+ clearable: "",
2023
+ class: "qy-legacy-selection-dialog__search-input",
2024
+ onKeydown: Fe(Re(B, ["prevent"]), ["enter"])
2025
+ }, null, 8, ["modelValue", "onKeydown"])
2026
+ ]),
2027
+ _: 1
2028
+ })) : T("", !0),
2029
+ D(S(ge), null, {
2030
+ default: h(() => [
2031
+ D(S(ie), {
2032
+ type: "primary",
2033
+ onClick: B
2034
+ }, {
2035
+ default: h(() => [...f[4] || (f[4] = [
2036
+ ne("查询", -1)
2037
+ ])]),
2038
+ _: 1
2039
+ })
2040
+ ]),
2041
+ _: 1
2042
+ })
2043
+ ]),
2044
+ _: 1
2045
+ }, 8, ["model"])
2046
+ ]),
2047
+ toolbar: h(() => [
2048
+ k(n.$slots, "bar", {
2049
+ query: y,
2050
+ search: B
2051
+ }, void 0, !0)
2052
+ ]),
2053
+ columns: h(() => [
2054
+ k(n.$slots, "cols", {}, void 0, !0),
2055
+ k(n.$slots, "columns", {}, void 0, !0)
2056
+ ]),
2057
+ _: 3
2058
+ }, 16, ["modelValue", "open", "title", "width", "response-formatter", "selection", "row-key", "label-key", "search-key", "category-options", "type-options", "type-select-props", "table-props", "show-append"]),
2059
+ k(n.$slots, "dialog", {
2060
+ state: d,
2061
+ form: y,
2062
+ getData: B
2063
+ }, void 0, !0)
2064
+ ], 64));
2065
+ }
2066
+ }), Ql = /* @__PURE__ */ be(bl, [["__scopeId", "data-v-5c8cd0de"]]), Sl = { class: "qy-form-section__heading" }, wl = {
2067
+ key: 0,
2068
+ class: "qy-form-section__title"
2069
+ }, kl = {
2070
+ key: 0,
2071
+ class: "qy-form-section__description"
2072
+ }, $l = { class: "qy-form-section__actions" }, Cl = /* @__PURE__ */ he({
2073
+ name: "QyFormSection",
2074
+ __name: "index",
2075
+ props: {
2076
+ title: { default: "" },
2077
+ description: { default: "" },
2078
+ tip: { default: "" },
2079
+ tipType: { default: "info" },
2080
+ collapsible: { type: Boolean, default: !1 },
2081
+ defaultExpanded: { type: Boolean, default: !0 },
2082
+ bordered: { type: Boolean, default: !0 },
2083
+ background: { default: "white" },
2084
+ bodyClass: { default: "" },
2085
+ headerClass: { default: "" }
2086
+ },
2087
+ emits: ["toggle"],
2088
+ setup(e, { emit: F }) {
2089
+ const N = e, t = F, s = z(N.defaultExpanded);
2090
+ ae(
2091
+ () => N.defaultExpanded,
2092
+ (y) => {
2093
+ s.value = y;
2094
+ }
2095
+ );
2096
+ function te() {
2097
+ N.collapsible && (s.value = !s.value, t("toggle", s.value));
2098
+ }
2099
+ function $() {
2100
+ N.collapsible && te();
2101
+ }
2102
+ return (y, d) => (v(), I("section", {
2103
+ class: pe(["qy-form-section", [
2104
+ `is-bg-${e.background}`,
2105
+ {
2106
+ "is-bordered": e.bordered,
2107
+ "is-collapsible": e.collapsible
2108
+ }
2109
+ ]])
2110
+ }, [
2111
+ X("header", {
2112
+ class: pe(["qy-form-section__header", e.headerClass]),
2113
+ onClick: $
2114
+ }, [
2115
+ X("div", Sl, [
2116
+ k(y.$slots, "title", {}, () => [
2117
+ e.title ? (v(), I("div", wl, ue(e.title), 1)) : T("", !0)
2118
+ ], !0),
2119
+ k(y.$slots, "description", {}, () => [
2120
+ e.description ? (v(), I("div", kl, ue(e.description), 1)) : T("", !0)
2121
+ ], !0)
2122
+ ]),
2123
+ X("div", $l, [
2124
+ k(y.$slots, "actions", {}, void 0, !0),
2125
+ e.collapsible ? (v(), I("button", {
2126
+ key: 0,
2127
+ type: "button",
2128
+ class: "qy-form-section__toggle",
2129
+ onClick: Re(te, ["stop"])
2130
+ }, ue(s.value ? "收起" : "展开"), 1)) : T("", !0)
2131
+ ])
2132
+ ], 2),
2133
+ Le(X("div", {
2134
+ class: pe(["qy-form-section__body", e.bodyClass])
2135
+ }, [
2136
+ k(y.$slots, "tip", {}, () => [
2137
+ e.tip ? (v(), I("div", {
2138
+ key: 0,
2139
+ class: pe(["qy-form-section__tip", `is-${e.tipType}`])
2140
+ }, ue(e.tip), 3)) : T("", !0)
2141
+ ], !0),
2142
+ k(y.$slots, "default", {}, void 0, !0)
2143
+ ], 2), [
2144
+ [Va, s.value]
2145
+ ])
2146
+ ], 2));
2147
+ }
2148
+ }), Vl = /* @__PURE__ */ be(Cl, [["__scopeId", "data-v-3b271926"]]), Bl = {
2149
+ key: 0,
2150
+ class: "qy-action-bar__left"
2151
+ }, Al = {
2152
+ key: 1,
2153
+ class: "qy-action-bar__center"
2154
+ }, Pl = {
2155
+ key: 2,
2156
+ class: "qy-action-bar__right"
2157
+ }, ql = /* @__PURE__ */ he({
2158
+ name: "QyActionBar",
2159
+ __name: "index",
2160
+ props: {
2161
+ sticky: { type: Boolean, default: !0 },
2162
+ offsetBottom: { default: 0 },
2163
+ bordered: { type: Boolean, default: !0 },
2164
+ shadow: { type: Boolean, default: !1 },
2165
+ wrap: { type: Boolean, default: !0 },
2166
+ justify: { default: "between" },
2167
+ background: { default: "#fff" }
2168
+ },
2169
+ setup(e) {
2170
+ const F = e, N = A(() => ({
2171
+ // offsetBottom 只负责业务偏移,安全区补偿由 CSS padding 处理。
2172
+ bottom: `${F.offsetBottom}px`,
2173
+ background: F.background
2174
+ }));
2175
+ return (t, s) => (v(), I("div", {
2176
+ class: pe(["qy-action-bar", [
2177
+ `is-justify-${e.justify}`,
2178
+ {
2179
+ "is-sticky": e.sticky,
2180
+ "is-bordered": e.bordered,
2181
+ "is-shadow": e.shadow,
2182
+ "is-wrap": e.wrap
2183
+ }
2184
+ ]]),
2185
+ style: _e(N.value)
2186
+ }, [
2187
+ t.$slots.left ? (v(), I("div", Bl, [
2188
+ k(t.$slots, "left", {}, void 0, !0)
2189
+ ])) : T("", !0),
2190
+ t.$slots.default ? (v(), I("div", Al, [
2191
+ k(t.$slots, "default", {}, void 0, !0)
2192
+ ])) : T("", !0),
2193
+ t.$slots.right ? (v(), I("div", Pl, [
2194
+ k(t.$slots, "right", {}, void 0, !0)
2195
+ ])) : T("", !0)
2196
+ ], 6));
2197
+ }
2198
+ }), Tl = /* @__PURE__ */ be(ql, [["__scopeId", "data-v-d1ffc43c"]]), Xe = c(Ke, "QyUpload"), Ye = c(ba, "QyImage"), et = c(Qa, "QyImagePreview"), tt = c(Ko, "QyImageUpload"), at = c(Be, "QyDialog"), ot = c(Zo, "QyRemarkImage"), lt = c(Ra, "QyButton"), nt = c(Oa, "QyDropdown"), rt = c(xa, "QyInput"), st = c(Da, "QyInputTag"), it = c(za, "QyInputNumber"), ut = c(Ka, "QyMoneyInput"), ct = c(_a, "QyDatePicker"), dt = c(Ma, "QyCheckbox"), ft = c(Ea, "QyCheckboxGroup"), yt = c(La, "QyRadio"), mt = c(Ua, "QyAutocomplete"), pt = c(Na, "QyMenuActions"), gt = c(
2199
+ ja,
2200
+ "QyTableColumnSettings"
2201
+ ), ht = c(Wa, "QyRadioGroup"), vt = c(Xo, "QyRemoteSelect"), bt = c(Je, "QySearchInput"), Qt = c(
2202
+ il,
2203
+ "QyRecordQuoteSearch"
2204
+ ), St = c(Oe, "QySelect"), wt = c(We, "QyTreeSelect"), kt = c(Ze, "QySelectionDialog"), $t = c(
2205
+ Ql,
2206
+ "QyLegacySelectionDialog"
2207
+ ), Ct = c(Vl, "QyFormSection"), Vt = c(Tl, "QyActionBar"), Bt = c(Ha, "QyFilePicker"), At = c(Ja, "QySwitch"), Pt = c(Pe, "QyTag"), qt = c(Za, "QyBadge"), Tt = c(Xa, "QyCascader"), It = c(Ya, "QyTooltip"), Ft = c(eo, "QyPopover"), Rt = c(to, "QyPopconfirm"), Ot = c(ao, "QySkeleton"), xt = c(oo, "QySkeletonItem"), Dt = c(lo, "QyTabs"), zt = c(no, "QyTabPane"), Kt = c(ro, "QySteps"), _t = c(so, "QyStep"), Mt = c(io, "QyFullscreen"), Et = c(fo, "QyRow"), Lt = c(yo, "QyCol"), Ut = c(mo, "QyContainer"), Nt = c(po, "QyAside"), jt = c(go, "QyMain"), Wt = c(ho, "QyDescriptions"), Gt = c(vo, "QyDescriptionsItem"), Ht = c(bo, "QyCollapse"), Jt = c(Qo, "QyCollapseItem"), Zt = c(So, "QyLink"), Xt = c(wo, "QyIframe"), Yt = c(ko, "QyDivider"), ea = c($o, "QyEmpty"), ta = c(Co, "QyAlert"), aa = c(Vo, "QyCard"), oa = c(Bo, "QyResult"), la = c(Ao, "QyWatermark"), na = c(Po, "QyScrollbar"), ra = c(qo, "QyProgress"), sa = c(To, "QyStatistic"), ia = c(Io, "QyAvatar"), ua = c(Fo, "QyTree"), ca = c(Ro, "QyPagination"), da = c(uo, "QyIconPicker"), fa = c(co, "QyColorPicker"), ya = c(xo, "QyDrawer"), Il = (e) => {
2208
+ He.install(e), e.component("QyDialog", at), e.component("QyDrawer", ya), e.component("QyUpload", Xe), e.component("QyImage", Ye), e.component("QyImagePreview", et), e.component("QyImageUpload", tt), e.component("QyRemarkImage", ot), e.component("QyButton", lt), e.component("QyDropdown", nt), e.component("QyInput", rt), e.component("QyInputTag", st), e.component("QyInputNumber", it), e.component("QyMoneyInput", ut), e.component("QyDatePicker", ct), e.component("QyCheckbox", dt), e.component("QyCheckboxGroup", ft), e.component("QyRadio", yt), e.component("QyAutocomplete", mt), e.component("QyMenuActions", pt), e.component("QyTableColumnSettings", gt), e.component("QyRadioGroup", ht), e.component("QyRemoteSelect", vt), e.component("QySearchInput", bt), e.component("QyRecordQuoteSearch", Qt), e.component("QySelect", St), e.component("QyTreeSelect", wt), e.component("QySelectionDialog", kt), e.component("QyLegacySelectionDialog", $t), e.component("QyFormSection", Ct), e.component("QyActionBar", Vt), e.component("QyFilePicker", Bt), e.component("QySwitch", At), e.component("QyTag", Pt), e.component("QyBadge", qt), e.component("QyCascader", Tt), e.component("QyTooltip", It), e.component("QyPopover", Ft), e.component("QyPopconfirm", Rt), e.component("QySkeleton", Ot), e.component("QySkeletonItem", xt), e.component("QyTabs", Dt), e.component("QyTabPane", zt), e.component("QySteps", Kt), e.component("QyStep", _t), e.component("QyFullscreen", Mt), e.component("QyIcon", Ge), e.component("QyIconPicker", da), e.component("QyColorPicker", fa), e.component("QyRow", Et), e.component("QyCol", Lt), e.component("QyContainer", Ut), e.component("QyAside", Nt), e.component("QyMain", jt), e.component("QyDescriptions", Wt), e.component("QyDescriptionsItem", Gt), e.component("QyCollapse", Ht), e.component("QyCollapseItem", Jt), e.component("QyLink", Zt), e.component("QyIframe", Xt), e.component("QyDivider", Yt), e.component("QyEmpty", ea), e.component("QyAlert", ta), e.component("QyCard", aa), e.component("QyResult", oa), e.component("QyWatermark", la), e.component("QyScrollbar", na), e.component("QyProgress", ra), e.component("QyStatistic", sa), e.component("QyAvatar", ia), e.component("QyTree", ua), e.component("QyPagination", ca);
2209
+ }, Jn = {
2210
+ install: Il,
2211
+ QyUpload: Xe,
2212
+ QyImage: Ye,
2213
+ QyImagePreview: et,
2214
+ openQyImagePreview: Do,
2215
+ QyImageUpload: tt,
2216
+ QyDialog: at,
2217
+ QyButton: lt,
2218
+ QyDropdown: nt,
2219
+ QyInput: rt,
2220
+ QyInputTag: st,
2221
+ QyInputNumber: it,
2222
+ QyMoneyInput: ut,
2223
+ QyDatePicker: ct,
2224
+ QyCheckbox: dt,
2225
+ QyCheckboxGroup: ft,
2226
+ QyRadio: yt,
2227
+ QyAutocomplete: mt,
2228
+ QyMenuActions: pt,
2229
+ QyTableColumnSettings: gt,
2230
+ QyRadioGroup: ht,
2231
+ QyRemoteSelect: vt,
2232
+ QySearchInput: bt,
2233
+ QyRecordQuoteSearch: Qt,
2234
+ QySelect: St,
2235
+ QyTreeSelect: wt,
2236
+ QySelectionDialog: kt,
2237
+ QyLegacySelectionDialog: $t,
2238
+ QyFormSection: Ct,
2239
+ QyActionBar: Vt,
2240
+ QyFilePicker: Bt,
2241
+ QySwitch: At,
2242
+ QyTag: Pt,
2243
+ QyBadge: qt,
2244
+ QyCascader: Tt,
2245
+ QyTooltip: It,
2246
+ QyPopover: Ft,
2247
+ QyPopconfirm: Rt,
2248
+ QySkeleton: Ot,
2249
+ QySkeletonItem: xt,
2250
+ QyTabs: Dt,
2251
+ QyTabPane: zt,
2252
+ QySteps: Kt,
2253
+ QyStep: _t,
2254
+ QyFullscreen: Mt,
2255
+ QyDrawer: ya,
2256
+ QyIcon: Ge,
2257
+ QyIconPicker: da,
2258
+ QyColorPicker: fa,
2259
+ QyRow: Et,
2260
+ QyCol: Lt,
2261
+ QyContainer: Ut,
2262
+ QyAside: Nt,
2263
+ QyMain: jt,
2264
+ QyDescriptions: Wt,
2265
+ QyDescriptionsItem: Gt,
2266
+ QyCollapse: Ht,
2267
+ QyCollapseItem: Jt,
2268
+ QyLink: Zt,
2269
+ QyIframe: Xt,
2270
+ QyDivider: Yt,
2271
+ QyEmpty: ea,
2272
+ QyAlert: ta,
2273
+ QyCard: aa,
2274
+ QyResult: oa,
2275
+ QyWatermark: la,
2276
+ QyScrollbar: na,
2277
+ QyProgress: ra,
2278
+ QyStatistic: sa,
2279
+ QyAvatar: ia,
2280
+ QyTree: ua,
2281
+ QyPagination: ca,
2282
+ QyRemarkImage: ot,
2283
+ QyLoading: He,
2284
+ vQyLoading: Oo,
2285
+ openQyLoading: zo
2286
+ };
2287
+ export {
2288
+ St as $,
2289
+ da as A,
2290
+ Xt as B,
2291
+ Ye as C,
2292
+ et as D,
2293
+ tt as E,
2294
+ rt as F,
2295
+ it as G,
2296
+ st as H,
2297
+ $t as I,
2298
+ Zt as J,
2299
+ jt as K,
2300
+ pt as L,
2301
+ ut as M,
2302
+ ca as N,
2303
+ Rt as O,
2304
+ Ft as P,
2305
+ Vt as Q,
2306
+ ra as R,
2307
+ yt as S,
2308
+ ht as T,
2309
+ Qt as U,
2310
+ ot as V,
2311
+ vt as W,
2312
+ oa as X,
2313
+ Et as Y,
2314
+ na as Z,
2315
+ bt as _,
2316
+ ta as a,
2317
+ kt as a0,
2318
+ Ot as a1,
2319
+ xt as a2,
2320
+ sa as a3,
2321
+ _t as a4,
2322
+ Kt as a5,
2323
+ At as a6,
2324
+ zt as a7,
2325
+ gt as a8,
2326
+ Dt as a9,
2327
+ Pt as aa,
2328
+ It as ab,
2329
+ ua as ac,
2330
+ wt as ad,
2331
+ Xe as ae,
2332
+ la as af,
2333
+ Jn as ag,
2334
+ _o as ah,
2335
+ De as ai,
2336
+ ze as aj,
2337
+ Nt as b,
2338
+ mt as c,
2339
+ ia as d,
2340
+ qt as e,
2341
+ lt as f,
2342
+ aa as g,
2343
+ Tt as h,
2344
+ dt as i,
2345
+ ft as j,
2346
+ Lt as k,
2347
+ Ht as l,
2348
+ Jt as m,
2349
+ fa as n,
2350
+ Ut as o,
2351
+ ct as p,
2352
+ Wt as q,
2353
+ Gt as r,
2354
+ at as s,
2355
+ Yt as t,
2356
+ ya as u,
2357
+ nt as v,
2358
+ ea as w,
2359
+ Bt as x,
2360
+ Ct as y,
2361
+ Mt as z
2362
+ };