@qynpm/ui 1.0.37 → 1.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (422) hide show
  1. package/README.md +113 -113
  2. package/dist/index.cjs +19 -18
  3. package/dist/index.mjs +21 -20
  4. package/dist/qy-action-bar/index.cjs +1 -1
  5. package/dist/qy-action-bar/index.mjs +1 -1
  6. package/dist/qy-alert/index.cjs +1 -1
  7. package/dist/qy-alert/index.mjs +4 -4
  8. package/dist/qy-aside/index.cjs +1 -1
  9. package/dist/qy-aside/index.mjs +4 -4
  10. package/dist/qy-autocomplete/index.cjs +1 -1
  11. package/dist/qy-autocomplete/index.mjs +3 -3
  12. package/dist/qy-avatar/index.cjs +1 -1
  13. package/dist/qy-avatar/index.mjs +1 -1
  14. package/dist/qy-badge/index.cjs +1 -1
  15. package/dist/qy-badge/index.mjs +4 -4
  16. package/dist/qy-button/index.cjs +2 -2
  17. package/dist/qy-button/index.mjs +2 -2
  18. package/dist/qy-card/index.cjs +1 -1
  19. package/dist/qy-card/index.mjs +1 -1
  20. package/dist/qy-cascader/index.cjs +1 -1
  21. package/dist/qy-cascader/index.mjs +3 -3
  22. package/dist/qy-checkbox/index.cjs +1 -1
  23. package/dist/qy-checkbox/index.mjs +1 -1
  24. package/dist/qy-checkbox-group/index.cjs +1 -1
  25. package/dist/qy-checkbox-group/index.mjs +4 -4
  26. package/dist/qy-col/index.cjs +1 -1
  27. package/dist/qy-col/index.mjs +4 -4
  28. package/dist/qy-collapse/index.cjs +1 -1
  29. package/dist/qy-collapse/index.mjs +2 -2
  30. package/dist/qy-collapse-item/index.cjs +1 -1
  31. package/dist/qy-collapse-item/index.mjs +5 -5
  32. package/dist/qy-color-picker/index.cjs +1 -1
  33. package/dist/qy-color-picker/index.mjs +4 -4
  34. package/dist/qy-container/index.cjs +1 -1
  35. package/dist/qy-container/index.mjs +3 -3
  36. package/dist/qy-date-picker/index.cjs +1 -1
  37. package/dist/qy-date-picker/index.mjs +1 -1
  38. package/dist/qy-descriptions/index.cjs +1 -1
  39. package/dist/qy-descriptions/index.mjs +1 -1
  40. package/dist/qy-descriptions-item/index.cjs +1 -1
  41. package/dist/qy-descriptions-item/index.mjs +4 -4
  42. package/dist/qy-dialog/index.cjs +2 -1
  43. package/dist/qy-dialog/index.mjs +5 -2
  44. package/dist/qy-divider/index.cjs +1 -1
  45. package/dist/qy-divider/index.mjs +4 -4
  46. package/dist/qy-drawer/index.cjs +1 -1
  47. package/dist/qy-drawer/index.mjs +2 -2
  48. package/dist/qy-dropdown/index.cjs +2 -2
  49. package/dist/qy-dropdown/index.mjs +2 -2
  50. package/dist/qy-empty/index.cjs +1 -1
  51. package/dist/qy-empty/index.mjs +4 -4
  52. package/dist/qy-file-picker/index.cjs +1 -1
  53. package/dist/qy-file-picker/index.mjs +1 -1
  54. package/dist/qy-form-section/index.cjs +1 -1
  55. package/dist/qy-form-section/index.mjs +1 -1
  56. package/dist/qy-fullscreen/index.cjs +1 -1
  57. package/dist/qy-fullscreen/index.mjs +1 -1
  58. package/dist/qy-icon/index.cjs +1 -1
  59. package/dist/qy-icon/index.mjs +2 -2
  60. package/dist/qy-icon-picker/index.cjs +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 +2 -2
  73. package/dist/qy-input-number/index.mjs +3 -3
  74. package/dist/qy-input-tag/index.cjs +1 -1
  75. package/dist/qy-input-tag/index.mjs +4 -4
  76. package/dist/qy-legacy-selection-dialog/index.cjs +1 -1
  77. package/dist/qy-legacy-selection-dialog/index.mjs +1 -1
  78. package/dist/qy-link/index.cjs +1 -1
  79. package/dist/qy-link/index.mjs +5 -5
  80. package/dist/qy-main/index.cjs +1 -1
  81. package/dist/qy-main/index.mjs +4 -4
  82. package/dist/qy-menu-actions/index.cjs +1 -1
  83. package/dist/qy-menu-actions/index.mjs +1 -1
  84. package/dist/qy-money-input/index.cjs +1 -1
  85. package/dist/qy-money-input/index.mjs +4 -4
  86. package/dist/qy-popconfirm/index.cjs +1 -1
  87. package/dist/qy-popconfirm/index.mjs +5 -5
  88. package/dist/qy-popover/index.cjs +1 -1
  89. package/dist/qy-popover/index.mjs +4 -4
  90. package/dist/qy-progress/index.cjs +1 -1
  91. package/dist/qy-progress/index.mjs +3 -3
  92. package/dist/qy-radio/index.cjs +1 -1
  93. package/dist/qy-radio/index.mjs +1 -1
  94. package/dist/qy-radio-group/index.cjs +1 -1
  95. package/dist/qy-radio-group/index.mjs +1 -1
  96. package/dist/qy-record-quote-search/index.cjs +1 -1
  97. package/dist/qy-record-quote-search/index.mjs +1 -1
  98. package/dist/qy-remark-image/index.cjs +1 -1
  99. package/dist/qy-remark-image/index.mjs +1 -1
  100. package/dist/qy-remote-select/index.cjs +1 -1
  101. package/dist/qy-remote-select/index.mjs +1 -1
  102. package/dist/qy-result/index.cjs +1 -1
  103. package/dist/qy-result/index.mjs +4 -4
  104. package/dist/qy-row/index.cjs +1 -1
  105. package/dist/qy-row/index.mjs +4 -4
  106. package/dist/qy-scrollbar/index.cjs +1 -1
  107. package/dist/qy-scrollbar/index.mjs +3 -3
  108. package/dist/qy-search-input/index.cjs +1 -1
  109. package/dist/qy-search-input/index.mjs +1 -1
  110. package/dist/qy-select/index.cjs +1 -1
  111. package/dist/qy-select/index.mjs +1 -1
  112. package/dist/qy-selection-dialog/index.cjs +1 -1
  113. package/dist/qy-selection-dialog/index.mjs +1 -1
  114. package/dist/qy-skeleton/index.cjs +1 -1
  115. package/dist/qy-skeleton/index.mjs +4 -4
  116. package/dist/qy-skeleton-item/index.cjs +1 -1
  117. package/dist/qy-skeleton-item/index.mjs +4 -4
  118. package/dist/qy-statistic/index.cjs +1 -1
  119. package/dist/qy-statistic/index.mjs +3 -3
  120. package/dist/qy-step/index.cjs +1 -1
  121. package/dist/qy-step/index.mjs +5 -5
  122. package/dist/qy-steps/index.cjs +1 -1
  123. package/dist/qy-steps/index.mjs +4 -4
  124. package/dist/qy-switch/index.cjs +1 -1
  125. package/dist/qy-switch/index.mjs +1 -1
  126. package/dist/qy-tab-pane/index.cjs +1 -1
  127. package/dist/qy-tab-pane/index.mjs +4 -4
  128. package/dist/qy-table-column-settings/index.cjs +1 -1
  129. package/dist/qy-table-column-settings/index.mjs +1 -1
  130. package/dist/qy-tabs/index.cjs +1 -1
  131. package/dist/qy-tabs/index.mjs +4 -4
  132. package/dist/qy-tag/index.cjs +1 -1
  133. package/dist/qy-tag/index.mjs +1 -1
  134. package/dist/qy-tooltip/index.cjs +1 -1
  135. package/dist/qy-tooltip/index.mjs +4 -4
  136. package/dist/qy-tree/index.cjs +1 -1
  137. package/dist/qy-tree/index.mjs +5 -5
  138. package/dist/qy-tree-select/index.cjs +1 -1
  139. package/dist/qy-tree-select/index.mjs +1 -1
  140. package/dist/qy-upload/index.cjs +1 -1
  141. package/dist/qy-upload/index.mjs +1 -1
  142. package/dist/qy-watermark/index.cjs +1 -1
  143. package/dist/qy-watermark/index.mjs +1 -1
  144. package/dist/shared/index--I-pLtO3.cjs +1 -0
  145. package/dist/shared/{index.vue_vue_type_script_lang-BnmY1ndj.mjs → index-0aCI4Gj1.mjs} +25 -24
  146. package/dist/shared/index-0mok5nS2.cjs +1 -0
  147. package/dist/shared/index-2xIkj7uz.cjs +1 -0
  148. package/dist/shared/index-4uXwnK7G.cjs +1 -0
  149. package/dist/shared/{index.vue_vue_type_script_lang-C4JHCuXz.mjs → index-9KXqMXBF.mjs} +15 -14
  150. package/dist/shared/index-B-PlDm1A.cjs +1 -0
  151. package/dist/shared/{index.vue_vue_type_script_lang-Bk0kLg5l.mjs → index-B-d53uut.mjs} +11 -10
  152. package/dist/shared/index-B0aY8Q_T.cjs +1 -0
  153. package/dist/shared/index-B1-htEYJ.mjs +100 -0
  154. package/dist/shared/index-B1ZuGEIr.cjs +1 -0
  155. package/dist/shared/index-B3wIgwN7.cjs +1 -0
  156. package/dist/shared/index-B71cpH4T.cjs +1 -0
  157. package/dist/shared/index-B8S5RT2Z.mjs +206 -0
  158. package/dist/shared/index-B8znc-qD.cjs +1 -0
  159. package/dist/shared/{index.vue_vue_type_script_lang-DOOT2grg.mjs → index-BA6hc-j-.mjs} +11 -10
  160. package/dist/shared/index-BCfULlZK.cjs +1 -0
  161. package/dist/shared/{index-BF6f9QDU.mjs → index-BE4CELs-.mjs} +1 -1
  162. package/dist/shared/index-BFFnf0Bn.cjs +1 -0
  163. package/dist/shared/index-BIWER6Wa.cjs +1 -0
  164. package/dist/shared/index-BM3ueCK9.cjs +1 -0
  165. package/dist/shared/index-BOLL0aGP.mjs +47 -0
  166. package/dist/shared/index-BWO4qxne.mjs +395 -0
  167. package/dist/shared/index-Ba3qQVYM.cjs +1 -0
  168. package/dist/shared/index-Ba5CLmrh.mjs +157 -0
  169. package/dist/shared/index-BcPpl_OJ.mjs +892 -0
  170. package/dist/shared/index-Bg_o9zrB.cjs +1 -0
  171. package/dist/shared/index-Bguu2ys0.cjs +1 -0
  172. package/dist/shared/index-BhO1ARf9.cjs +1 -0
  173. package/dist/shared/index-BiCdxX0E.mjs +63 -0
  174. package/dist/shared/index-BigCKPUY.mjs +153 -0
  175. package/dist/shared/index-BmWDUjpi.mjs +73 -0
  176. package/dist/shared/index-BoGA3Pdv.cjs +1 -0
  177. package/dist/shared/index-Brxx2EqN.mjs +156 -0
  178. package/dist/shared/{index-BQEymEbE.cjs → index-BsRfuMop.cjs} +1 -1
  179. package/dist/shared/index-BsTSa25A.cjs +1 -0
  180. package/dist/shared/index-Btwke2ql.cjs +1 -0
  181. package/dist/shared/index-BxQnJVT8.cjs +1 -0
  182. package/dist/shared/index-Bx_faI_u.mjs +53 -0
  183. package/dist/shared/index-C7GXprxF.cjs +1 -0
  184. package/dist/shared/index-C97qoSgI.cjs +1 -0
  185. package/dist/shared/index-CCqfQb_M.mjs +82 -0
  186. package/dist/shared/index-CDGjUhaC.mjs +72 -0
  187. package/dist/shared/index-CF3vimnX.mjs +73 -0
  188. package/dist/shared/index-CJxpEc9q.cjs +1 -0
  189. package/dist/shared/index-COpowa-E.mjs +48 -0
  190. package/dist/shared/index-CRU4YvLz.cjs +1 -0
  191. package/dist/shared/index-CSMOYD1R.cjs +1 -0
  192. package/dist/shared/index-CWB5fAb7.mjs +154 -0
  193. package/dist/shared/index-CXAVVShG.mjs +278 -0
  194. package/dist/shared/{index.vue_vue_type_script_lang-D7b9ABei.mjs → index-CaM4EpCy.mjs} +23 -22
  195. package/dist/shared/index-CeasMt4r.mjs +63 -0
  196. package/dist/shared/index-CftZiihF.mjs +525 -0
  197. package/dist/shared/index-ChEefC0G.cjs +1 -0
  198. package/dist/shared/index-CioDI8Ys.cjs +1 -0
  199. package/dist/shared/index-CjKfmMG4.cjs +1 -0
  200. package/dist/shared/index-CnIZoCkL.mjs +77 -0
  201. package/dist/shared/index-CndG7UWF.mjs +138 -0
  202. package/dist/shared/{index.vue_vue_type_script_lang-BGAdXWIL.mjs → index-Cp0dxH7g.mjs} +12 -11
  203. package/dist/shared/index-CrwhANF5.mjs +78 -0
  204. package/dist/shared/index-Cs-LC7ZG.mjs +150 -0
  205. package/dist/shared/index-CutbNRjY.mjs +198 -0
  206. package/dist/shared/index-CyJHJCj8.cjs +1 -0
  207. package/dist/shared/index-CypWMqI4.cjs +1 -0
  208. package/dist/shared/index-Cz6Lo9RL.cjs +1 -0
  209. package/dist/shared/index-CzyB5ttX.cjs +1 -0
  210. package/dist/shared/index-D1cbnYac.mjs +446 -0
  211. package/dist/shared/index-D8-4wR07.mjs +130 -0
  212. package/dist/shared/index-D9dQaZtu.cjs +1 -0
  213. package/dist/shared/{index.vue_vue_type_style_index_0_lang-Tzo8o6M8.mjs → index-DAoXMHpO.mjs} +10 -9
  214. package/dist/shared/index-DEosiUQV.mjs +245 -0
  215. package/dist/shared/index-DFTSBy3g.mjs +206 -0
  216. package/dist/shared/index-DFnpyAa1.mjs +69 -0
  217. package/dist/shared/index-DI5COVol.cjs +1 -0
  218. package/dist/shared/index-DNMOtH4s.mjs +36 -0
  219. package/dist/shared/index-DQn_5j_f.cjs +1 -0
  220. package/dist/shared/index-DRICnDix.mjs +295 -0
  221. package/dist/shared/index-DS539-rn.mjs +87 -0
  222. package/dist/shared/index-DTOfhAXP.mjs +74 -0
  223. package/dist/shared/index-DULBwiHC.mjs +234 -0
  224. package/dist/shared/index-DVPk0jMO.cjs +1 -0
  225. package/dist/shared/index-DWrymMO5.cjs +1 -0
  226. package/dist/shared/index-DYYPqv3Y.cjs +1 -0
  227. package/dist/shared/index-DZzMTGSJ.cjs +1 -0
  228. package/dist/shared/index-D_l30Gzr.cjs +1 -0
  229. package/dist/shared/index-Db7PhnjA.cjs +1 -0
  230. package/dist/shared/index-DdoFHdjY.mjs +307 -0
  231. package/dist/shared/index-DeBjILEK.cjs +1 -0
  232. package/dist/shared/index-DePXY0TI.cjs +1 -0
  233. package/dist/shared/index-DgPQ8292.cjs +1 -0
  234. package/dist/shared/index-Di3R0FOU.cjs +1 -0
  235. package/dist/shared/index-DiNSSXC8.mjs +76 -0
  236. package/dist/shared/index-DmEwKHe4.cjs +1 -0
  237. package/dist/shared/index-DnFQkBfl.cjs +1 -0
  238. package/dist/shared/index-DnexuGuJ.cjs +1 -0
  239. package/dist/shared/index-DniPcZnL.mjs +52 -0
  240. package/dist/shared/index-DpitpmqK.mjs +205 -0
  241. package/dist/shared/index-DtXU2qQS.cjs +1 -0
  242. package/dist/shared/index-Du-FNseo.cjs +1 -0
  243. package/dist/shared/index-DwHzztSj.cjs +1 -0
  244. package/dist/shared/index-DxFfP2Fn.cjs +1 -0
  245. package/dist/shared/index-DyqFfMhy.mjs +365 -0
  246. package/dist/shared/index-Hn-IGtqe.cjs +1 -0
  247. package/dist/shared/index-Nx_w1JYm.cjs +1 -0
  248. package/dist/shared/{index.vue_vue_type_script_lang-Dfq7D3mJ.mjs → index-Q8rXwNnM.mjs} +4 -3
  249. package/dist/shared/index-R6vvV3td.cjs +1 -0
  250. package/dist/shared/index-TMhQv4oD.mjs +104 -0
  251. package/dist/shared/index-VtJrvPka.mjs +27 -0
  252. package/dist/shared/{index.vue_vue_type_script_lang-BaIOvoQn.mjs → index-WUwab92q.mjs} +11 -10
  253. package/dist/shared/index-YWKumDEW.mjs +61 -0
  254. package/dist/shared/index-_AB6uqZw.mjs +51 -0
  255. package/dist/shared/index-bvvNTmuM.mjs +105 -0
  256. package/dist/shared/index-fVS62tLm.mjs +81 -0
  257. package/dist/shared/index-gOUVgYd_.cjs +1 -0
  258. package/dist/shared/index-gU6HjdHv.mjs +311 -0
  259. package/dist/shared/index-hPaHbb1Y.cjs +1 -0
  260. package/dist/shared/index-i0G6DcP0.cjs +1 -0
  261. package/dist/shared/index-jP71VQxo.cjs +1 -0
  262. package/dist/shared/index-jdGrSpGg.mjs +2657 -0
  263. package/dist/shared/index-jsEFCWaY.mjs +175 -0
  264. package/dist/shared/index-lsWZ_M5R.mjs +369 -0
  265. package/dist/shared/index-mKnRWsLn.cjs +1 -0
  266. package/dist/shared/{index.vue_vue_type_script_lang-chBiq2cG.mjs → index-qLomEtF6.mjs} +4 -3
  267. package/dist/shared/{index.vue_vue_type_style_index_0_lang-gs0YJI91.mjs → index-u7VYI7Kg.mjs} +17 -16
  268. package/dist/shared/index-xdsYNS2u.mjs +53 -0
  269. package/dist/shared/index-xhROPBam.mjs +129 -0
  270. package/index.d.ts +113 -113
  271. package/package.json +490 -490
  272. package/qy-alert/index.d.ts +64 -64
  273. package/qy-autocomplete/index.d.ts +5 -5
  274. package/qy-avatar/index.d.ts +67 -67
  275. package/qy-badge/index.d.ts +63 -63
  276. package/qy-card/index.d.ts +64 -64
  277. package/qy-cascader/index.d.ts +198 -198
  278. package/qy-collapse/index.d.ts +59 -59
  279. package/qy-collapse-item/index.d.ts +45 -45
  280. package/qy-descriptions/index.d.ts +47 -47
  281. package/qy-descriptions-item/index.d.ts +46 -46
  282. package/qy-dialog/index.d.ts +63 -63
  283. package/qy-divider/index.d.ts +53 -53
  284. package/qy-drawer/index.d.ts +55 -55
  285. package/qy-empty/index.d.ts +51 -51
  286. package/qy-file-picker/index.d.ts +4 -4
  287. package/qy-icon/index.d.ts +9 -9
  288. package/qy-iframe/index.d.ts +66 -66
  289. package/qy-image/index.d.ts +28 -28
  290. package/qy-image-preview/index.d.ts +20 -20
  291. package/qy-image-upload/index.d.ts +69 -69
  292. package/qy-input/index.d.ts +76 -76
  293. package/qy-input-number/index.d.ts +64 -64
  294. package/qy-input-tag/index.d.ts +69 -69
  295. package/qy-link/index.d.ts +69 -69
  296. package/qy-loading/index.d.ts +25 -25
  297. package/qy-menu-actions/index.d.ts +29 -29
  298. package/qy-money-input/index.d.ts +87 -87
  299. package/qy-progress/index.d.ts +74 -74
  300. package/qy-result/index.d.ts +64 -64
  301. package/qy-scrollbar/index.d.ts +85 -85
  302. package/qy-skeleton/index.d.ts +54 -54
  303. package/qy-skeleton-item/index.d.ts +48 -48
  304. package/qy-step/index.d.ts +55 -55
  305. package/qy-steps/index.d.ts +62 -62
  306. package/qy-tab-pane/index.d.ts +40 -40
  307. package/qy-table-column-settings/index.d.ts +18 -18
  308. package/qy-tabs/index.d.ts +84 -84
  309. package/qy-tree/index.d.ts +132 -132
  310. package/qy-tree-select/index.d.ts +123 -123
  311. package/qy-upload/index.d.ts +99 -99
  312. package/dist/shared/index-3KGa3jVi.mjs +0 -2754
  313. package/dist/shared/index-4SkLDBra.mjs +0 -377
  314. package/dist/shared/index-B1b3BksF.mjs +0 -72
  315. package/dist/shared/index-BPaVDCe6.cjs +0 -1
  316. package/dist/shared/index-BTbiht5h.cjs +0 -1
  317. package/dist/shared/index-BYX0biqw.mjs +0 -766
  318. package/dist/shared/index-BdTlpKtr.cjs +0 -1
  319. package/dist/shared/index-Bli6Gx5d.cjs +0 -1
  320. package/dist/shared/index-BuUtJrIy.mjs +0 -119
  321. package/dist/shared/index-Bvot0uXo.cjs +0 -1
  322. package/dist/shared/index-BxxwEr52.mjs +0 -107
  323. package/dist/shared/index-C1i-hd-W.cjs +0 -1
  324. package/dist/shared/index-C7lRQtzs.cjs +0 -1
  325. package/dist/shared/index-CdnHMuo3.mjs +0 -149
  326. package/dist/shared/index-Crr3HB8g.mjs +0 -222
  327. package/dist/shared/index-CwY_jv_I.cjs +0 -1
  328. package/dist/shared/index-D5S48q1B.mjs +0 -162
  329. package/dist/shared/index-D8E_xu0N.mjs +0 -54
  330. package/dist/shared/index-D8kce2jH.cjs +0 -1
  331. package/dist/shared/index-DCzxcvkn.cjs +0 -1
  332. package/dist/shared/index-DK0hjfWr.mjs +0 -90
  333. package/dist/shared/index-DZRFSGxO.mjs +0 -225
  334. package/dist/shared/index-Dc6gLgAz.cjs +0 -1
  335. package/dist/shared/index-DcohgM8A.mjs +0 -68
  336. package/dist/shared/index-Di4bIOiB.cjs +0 -1
  337. package/dist/shared/index-Di_xbC7d.cjs +0 -1
  338. package/dist/shared/index-DlGwHshu.cjs +0 -1
  339. package/dist/shared/index-Dm8kY2v6.mjs +0 -285
  340. package/dist/shared/index-DnHfk7NM.cjs +0 -1
  341. package/dist/shared/index-DnNIseRJ.cjs +0 -1
  342. package/dist/shared/index-Dr-Q5krU.mjs +0 -71
  343. package/dist/shared/index-Dwf-JfXM.mjs +0 -293
  344. package/dist/shared/index-JjHutKmT.mjs +0 -142
  345. package/dist/shared/index-Od6HC8Un.mjs +0 -127
  346. package/dist/shared/index-nSFTxVz8.cjs +0 -1
  347. package/dist/shared/index-nos4Y-fm.cjs +0 -1
  348. package/dist/shared/index.vue_vue_type_script_lang-69zSOotQ.mjs +0 -47
  349. package/dist/shared/index.vue_vue_type_script_lang-8AT3-xU-.cjs +0 -1
  350. package/dist/shared/index.vue_vue_type_script_lang-BO9Ju_i0.cjs +0 -1
  351. package/dist/shared/index.vue_vue_type_script_lang-Bc3tktk9.cjs +0 -1
  352. package/dist/shared/index.vue_vue_type_script_lang-BgapsQjI.cjs +0 -1
  353. package/dist/shared/index.vue_vue_type_script_lang-BkoqbceR.cjs +0 -1
  354. package/dist/shared/index.vue_vue_type_script_lang-By3jd4gw.cjs +0 -1
  355. package/dist/shared/index.vue_vue_type_script_lang-C9X0V5AK.mjs +0 -71
  356. package/dist/shared/index.vue_vue_type_script_lang-CCL57H5c.cjs +0 -1
  357. package/dist/shared/index.vue_vue_type_script_lang-CIOi2ahp.cjs +0 -1
  358. package/dist/shared/index.vue_vue_type_script_lang-CKZUcaZ5.cjs +0 -1
  359. package/dist/shared/index.vue_vue_type_script_lang-CWnNQBPN.mjs +0 -31
  360. package/dist/shared/index.vue_vue_type_script_lang-CZK0hDYa.mjs +0 -77
  361. package/dist/shared/index.vue_vue_type_script_lang-CfjfZCT3.cjs +0 -1
  362. package/dist/shared/index.vue_vue_type_script_lang-ChS-3_vl.mjs +0 -43
  363. package/dist/shared/index.vue_vue_type_script_lang-Cv4Pf58E.cjs +0 -1
  364. package/dist/shared/index.vue_vue_type_script_lang-CwrbII5c.cjs +0 -1
  365. package/dist/shared/index.vue_vue_type_script_lang-D42aRlO2.cjs +0 -1
  366. package/dist/shared/index.vue_vue_type_script_lang-D7nzeBUR.mjs +0 -35
  367. package/dist/shared/index.vue_vue_type_script_lang-DIKHRo0o.mjs +0 -72
  368. package/dist/shared/index.vue_vue_type_script_lang-DLmUPDR5.cjs +0 -1
  369. package/dist/shared/index.vue_vue_type_script_lang-DMrpLmWN.cjs +0 -1
  370. package/dist/shared/index.vue_vue_type_script_lang-DRvk4-_O.mjs +0 -43
  371. package/dist/shared/index.vue_vue_type_script_lang-DpSaB5eg.cjs +0 -1
  372. package/dist/shared/index.vue_vue_type_script_lang-WJ63_A7F.cjs +0 -1
  373. package/dist/shared/index.vue_vue_type_script_setup_true_lang-4KZSABSM.cjs +0 -1
  374. package/dist/shared/index.vue_vue_type_script_setup_true_lang-B4JrNUDc.mjs +0 -43
  375. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BJe7Uo6S.mjs +0 -42
  376. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BWi3g3mb.cjs +0 -1
  377. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BXnZt9UT.mjs +0 -63
  378. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Bdz9oDDW.mjs +0 -62
  379. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BiIgNax-.cjs +0 -1
  380. package/dist/shared/index.vue_vue_type_script_setup_true_lang-C6-hVGUO.mjs +0 -61
  381. package/dist/shared/index.vue_vue_type_script_setup_true_lang-C96ZaggL.cjs +0 -1
  382. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CGsXVhJy.mjs +0 -331
  383. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CKp87br2.cjs +0 -1
  384. package/dist/shared/index.vue_vue_type_script_setup_true_lang-COAUEujY.mjs +0 -48
  385. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CqSJ_8hG.cjs +0 -1
  386. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Cr9PdvyR.cjs +0 -1
  387. package/dist/shared/index.vue_vue_type_script_setup_true_lang-D7BlbHN5.cjs +0 -1
  388. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DIWWHODS.mjs +0 -197
  389. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DOuk75uN.cjs +0 -1
  390. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DUEhuwGQ.cjs +0 -1
  391. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Dd_nKJvH.mjs +0 -19
  392. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Dk83TGiU.cjs +0 -1
  393. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DwFGEW4B.mjs +0 -143
  394. package/dist/shared/index.vue_vue_type_script_setup_true_lang-EiHoQBXt.mjs +0 -94
  395. package/dist/shared/index.vue_vue_type_script_setup_true_lang-IyZesuKm.mjs +0 -48
  396. package/dist/shared/index.vue_vue_type_script_setup_true_lang-S-rQ0p3E.mjs +0 -106
  397. package/dist/shared/index.vue_vue_type_script_setup_true_lang-ccFLNRry.cjs +0 -1
  398. package/dist/shared/index.vue_vue_type_script_setup_true_lang-lvZQ_Cu6.cjs +0 -1
  399. package/dist/shared/index.vue_vue_type_style_index_0_lang-1cTut9Ql.cjs +0 -1
  400. package/dist/shared/index.vue_vue_type_style_index_0_lang-B1FgJZbw.mjs +0 -148
  401. package/dist/shared/index.vue_vue_type_style_index_0_lang-BXTkWo5P.cjs +0 -1
  402. package/dist/shared/index.vue_vue_type_style_index_0_lang-BnPRHCwR.cjs +0 -1
  403. package/dist/shared/index.vue_vue_type_style_index_0_lang-BoaO6MKl.cjs +0 -1
  404. package/dist/shared/index.vue_vue_type_style_index_0_lang-C1n-zAZh.mjs +0 -67
  405. package/dist/shared/index.vue_vue_type_style_index_0_lang-C4Yk-UdJ.mjs +0 -172
  406. package/dist/shared/index.vue_vue_type_style_index_0_lang-CAW_QOyJ.cjs +0 -1
  407. package/dist/shared/index.vue_vue_type_style_index_0_lang-CPxbKjvY.mjs +0 -286
  408. package/dist/shared/index.vue_vue_type_style_index_0_lang-CVdFZeHK.mjs +0 -98
  409. package/dist/shared/index.vue_vue_type_style_index_0_lang-CcVf5MXE.mjs +0 -166
  410. package/dist/shared/index.vue_vue_type_style_index_0_lang-Ch3QcF8t.cjs +0 -1
  411. package/dist/shared/index.vue_vue_type_style_index_0_lang-D9DraThL.cjs +0 -1
  412. package/dist/shared/index.vue_vue_type_style_index_0_lang-DFAaBzkW.cjs +0 -1
  413. package/dist/shared/index.vue_vue_type_style_index_0_lang-DHK86rdP.cjs +0 -1
  414. package/dist/shared/index.vue_vue_type_style_index_0_lang-DSur831A.mjs +0 -68
  415. package/dist/shared/index.vue_vue_type_style_index_0_lang-DVXf-yUs.cjs +0 -1
  416. package/dist/shared/index.vue_vue_type_style_index_0_lang-Dr9Elmzn.mjs +0 -317
  417. package/dist/shared/index.vue_vue_type_style_index_0_lang-DsOg_Rum.mjs +0 -128
  418. package/dist/shared/index.vue_vue_type_style_index_0_lang-KHk9wRYT.mjs +0 -298
  419. package/dist/shared/index.vue_vue_type_style_index_0_lang-RiwA2WPO.cjs +0 -1
  420. package/dist/shared/index.vue_vue_type_style_index_0_lang-WGzoSatU.cjs +0 -1
  421. package/dist/shared/index.vue_vue_type_style_index_0_lang-b0y8p1p1.mjs +0 -215
  422. package/dist/shared/index.vue_vue_type_style_index_0_lang-hbNK_h45.cjs +0 -1
@@ -0,0 +1,2657 @@
1
+ import { D as xe } from "./index-CftZiihF.mjs";
2
+ import { U as Re, a as ha } from "./index-BcPpl_OJ.mjs";
3
+ import { I as va } from "./index-Cs-LC7ZG.mjs";
4
+ import { I as ba } from "./index-YWKumDEW.mjs";
5
+ import { openBlock as b, createBlock as oe, mergeProps as fe, useAttrs as pe, ref as x, computed as C, defineComponent as he, watch as re, onMounted as Sa, nextTick as ke, onUnmounted as qa, createElementBlock as B, normalizeStyle as De, normalizeClass as ge, createElementVNode as $, withCtx as v, Fragment as Qe, renderList as Te, createCommentVNode as F, createVNode as O, createTextVNode as ie, onBeforeUnmount as Qa, createSlots as Ie, renderSlot as _, normalizeProps as ze, guardReactiveProps as Ke, withKeys as Fe, toDisplayString as ce, useSlots as _a, getCurrentInstance as wa, reactive as Ce, withModifiers as Be, withDirectives as Me, vShow as Ca } from "vue";
6
+ import { _ as ye } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
+ import { ElMessage as be, ElUpload as ka, ElSelect as Ue, ElPopover as Ta, ElOption as Le, ElInput as Pe, ElButton as we, ElAutocomplete as Ia, ElTableColumn as Fa, ElTable as Ba, ElPagination as Pa, ElFormItem as je, ElForm as Ne, ElTreeSelect as Aa } from "element-plus";
8
+ import { B as Va } from "./index-CndG7UWF.mjs";
9
+ import { D as Ea } from "./index-CutbNRjY.mjs";
10
+ import { I as Oa } from "./index-BigCKPUY.mjs";
11
+ import { I as xa } from "./index-CWB5fAb7.mjs";
12
+ import { I as Ra } from "./index-Ba5CLmrh.mjs";
13
+ import { M as Da } from "./index-B8S5RT2Z.mjs";
14
+ import { D as za } from "./index-jsEFCWaY.mjs";
15
+ import { C as Ka } from "./index-fVS62tLm.mjs";
16
+ import { C as Ma } from "./index-CCqfQb_M.mjs";
17
+ import { R as Ua } from "./index-TMhQv4oD.mjs";
18
+ import { A as La } from "./index-B1-htEYJ.mjs";
19
+ import { M as ja } from "./index-DpitpmqK.mjs";
20
+ import { T as Na } from "./index-D1cbnYac.mjs";
21
+ import { R as Wa } from "./index-D8-4wR07.mjs";
22
+ import { S as Ae } from "./index-DEosiUQV.mjs";
23
+ import { T as We } from "./index-BWO4qxne.mjs";
24
+ import { ElLoadingDirective as Ga } from "element-plus/es";
25
+ import { T as Ge } from "./index-BiCdxX0E.mjs";
26
+ import { F as Ha } from "./index-xhROPBam.mjs";
27
+ import { S as Ja } from "./index-DiNSSXC8.mjs";
28
+ import { B as Za } from "./index-CF3vimnX.mjs";
29
+ import { C as Xa } from "./index-DRICnDix.mjs";
30
+ import { T as Ya } from "./index-DS539-rn.mjs";
31
+ import { P as $a } from "./index-Brxx2EqN.mjs";
32
+ import { P as eo } from "./index-CXAVVShG.mjs";
33
+ import { S as to } from "./index-_AB6uqZw.mjs";
34
+ import { S as ao } from "./index-VtJrvPka.mjs";
35
+ import { T as oo } from "./index-u7VYI7Kg.mjs";
36
+ import { T as ro } from "./index-Q8rXwNnM.mjs";
37
+ import { S as lo } from "./index-CrwhANF5.mjs";
38
+ import { S as no } from "./index-COpowa-E.mjs";
39
+ import { F as io } from "./index-DULBwiHC.mjs";
40
+ import { Q as He } from "./index-BE4CELs-.mjs";
41
+ import { P as so } from "./index-DyqFfMhy.mjs";
42
+ import { P as uo } from "./index-DFTSBy3g.mjs";
43
+ import { R as co } from "./index-B-d53uut.mjs";
44
+ import { C as fo } from "./index-WUwab92q.mjs";
45
+ import { C as yo } from "./index-Bx_faI_u.mjs";
46
+ import { A as mo } from "./index-xdsYNS2u.mjs";
47
+ import { M as go } from "./index-BOLL0aGP.mjs";
48
+ import { D as po } from "./index-CaM4EpCy.mjs";
49
+ import { D as ho } from "./index-qLomEtF6.mjs";
50
+ import { C as vo } from "./index-DTOfhAXP.mjs";
51
+ import { C as bo } from "./index-DFnpyAa1.mjs";
52
+ import { L as So } from "./index-BmWDUjpi.mjs";
53
+ import { I as qo } from "./index-CnIZoCkL.mjs";
54
+ import { D as Qo } from "./index-DniPcZnL.mjs";
55
+ import { E as _o } from "./index-DNMOtH4s.mjs";
56
+ import { A as wo } from "./index-CDGjUhaC.mjs";
57
+ import { C as Co } from "./index-9KXqMXBF.mjs";
58
+ import { R as ko } from "./index-DAoXMHpO.mjs";
59
+ import { W as To } from "./index-CeasMt4r.mjs";
60
+ import { S as Io } from "./index-bvvNTmuM.mjs";
61
+ import { P as Fo } from "./index-Cp0dxH7g.mjs";
62
+ import { S as Bo } from "./index-0aCI4Gj1.mjs";
63
+ import { A as Po } from "./index-BA6hc-j-.mjs";
64
+ import { T as Ao } from "./index-DdoFHdjY.mjs";
65
+ import { w as f } from "./install-CxBnxbuN.mjs";
66
+ import { v as Vo, Q as Je } from "./index-B1zDCCqy.mjs";
67
+ import { D as Eo } from "./index-lsWZ_M5R.mjs";
68
+ import { o as Oo } from "./utils-DoyI5oM8.mjs";
69
+ import { openQyLoading as xo } from "@qynpm/hooks";
70
+ const Ro = /* @__PURE__ */ Object.assign({
71
+ name: "QyImageUpload",
72
+ inheritAttrs: !1
73
+ }, {
74
+ __name: "index",
75
+ props: {
76
+ /** 单图/单文件 URL;multiple=true 时为 URL 数组。 */
77
+ modelValue: { type: [String, Array], default: "" },
78
+ /** 上传接口路径。 */
79
+ api: { type: String, default: "/permission-api/common/uploads" },
80
+ /** FormData 中文件字段名。 */
81
+ name: { type: String, default: "files" },
82
+ /** 是否禁用。 */
83
+ disabled: { type: Boolean, default: !1 },
84
+ /** 是否多选;开启后 v-model 输出 string[]。 */
85
+ multiple: { type: Boolean, default: !1 },
86
+ /** 上传模式。voucher 用于承接旧 CopyImgUpload 的凭证图片场景。 */
87
+ mode: { type: String, default: "default" },
88
+ /** 是否启用凭证图片模式。 */
89
+ voucher: { type: Boolean, default: !1 },
90
+ /** 允许的文件类型后缀。 */
91
+ fileType: { type: Array, default: () => [] },
92
+ /** 单个文件大小限制(MB)。 */
93
+ fileSize: { type: Number, default: 10 },
94
+ /** 是否显示格式/大小提示。 */
95
+ isShowTip: { type: Boolean, default: !1 },
96
+ /** 文件数量限制;不传时单图为 1,多图为 9。 */
97
+ limit: { type: Number, default: void 0 },
98
+ /** token 读取 key。 */
99
+ tokenKey: { type: String, default: "Admin-Token" },
100
+ /** 是否为视频上传。 */
101
+ supportVideo: { type: Boolean, default: !1 },
102
+ /** 上传卡片尺寸。 */
103
+ size: { type: String, default: "128px" },
104
+ /** 禁用拖拽。 */
105
+ disableDrag: { type: Boolean, default: !1 },
106
+ /** 是否显示纯粘贴入口。 */
107
+ showPasteInput: { type: Boolean, default: !0 },
108
+ /** 粘贴入口提示文案。 */
109
+ pastePlaceholder: { type: String, default: "粘贴图片上传" },
110
+ /** 成功回调。 */
111
+ callBack: { type: Function, default: null },
112
+ /** 上传时附加的额外 FormData 字段。 */
113
+ extraData: { type: Object, default: () => ({}) },
114
+ /** 自定义上传请求,用于接入宿主项目 request / 鉴权 / baseURL。 */
115
+ uploadRequest: { type: Function, default: null }
116
+ },
117
+ emits: [
118
+ "update:modelValue",
119
+ "change",
120
+ "success",
121
+ "error",
122
+ "remove",
123
+ "updateImg"
124
+ ],
125
+ setup(t, { expose: i, emit: a }) {
126
+ const e = t, n = a, P = pe(), y = x(null), u = ["jpg", "jpeg", "png", "gif", "bmp", "webp"], m = C(
127
+ () => e.voucher || e.mode === "voucher"
128
+ ), R = C(() => Array.isArray(e.modelValue) ? e.modelValue.filter(Boolean) : e.modelValue ? String(e.modelValue).split(",").filter(Boolean) : []), Q = C(() => e.supportVideo ? 1 : m.value ? e.limit ?? 30 : e.limit ?? (e.multiple ? 9 : 1)), D = C(() => {
129
+ var o;
130
+ return (o = e.fileType) != null && o.length ? e.fileType : m.value && !e.supportVideo ? u : [];
131
+ });
132
+ function w(o) {
133
+ return Array.isArray(o) ? o.filter(Boolean) : [];
134
+ }
135
+ function A(o) {
136
+ const d = w(o);
137
+ return e.multiple ? d : d[0] || "";
138
+ }
139
+ function Z(o) {
140
+ n("update:modelValue", A(o));
141
+ }
142
+ function L(o) {
143
+ n("change", A(o == null ? void 0 : o.files));
144
+ }
145
+ function K(o) {
146
+ var H, s;
147
+ if (typeof o == "string") return o;
148
+ const d = o || {}, E = d.url ?? d.urls ?? ((H = d.data) == null ? void 0 : H.url) ?? ((s = d.data) == null ? void 0 : s.urls) ?? "";
149
+ return Array.isArray(E) ? E[0] || "" : E || "";
150
+ }
151
+ function V(o) {
152
+ const d = K(o);
153
+ d && n("updateImg", d), n("success", p(), o);
154
+ }
155
+ function X(o) {
156
+ n("error", o);
157
+ }
158
+ function ee(o, d) {
159
+ n("remove", o, d);
160
+ }
161
+ function N() {
162
+ var o, d;
163
+ (d = (o = y.value) == null ? void 0 : o.openFileDialog) == null || d.call(o);
164
+ }
165
+ function W() {
166
+ var o, d;
167
+ (d = (o = y.value) == null ? void 0 : o.clearFiles) == null || d.call(o);
168
+ }
169
+ function M() {
170
+ var o, d;
171
+ return ((d = (o = y.value) == null ? void 0 : o.getPathList) == null ? void 0 : d.call(o)) || [];
172
+ }
173
+ const G = C(() => M()), j = C(() => M());
174
+ function te() {
175
+ return M();
176
+ }
177
+ function p() {
178
+ const o = M();
179
+ return e.multiple ? o : o[0] || "";
180
+ }
181
+ i({
182
+ openFileDialog: N,
183
+ clearFiles: W,
184
+ getPathList: M,
185
+ getFullPathList: te,
186
+ fullPathList: G,
187
+ pathList: j,
188
+ getValue: p
189
+ });
190
+ const S = { props: e, emit: n, attrs: P, uploadRef: y, voucherImageTypes: u, isVoucherMode: m, modelAsArray: R, uploadLimit: Q, effectiveFileType: D, normalizeValue: w, formatValue: A, handleUpdateModelValue: Z, handleChange: L, resolveUploadUrl: K, handleSuccess: V, handleError: X, handleRemove: ee, openFileDialog: N, clearFiles: W, getPathList: M, fullPathList: G, pathList: j, getFullPathList: te, getValue: p, computed: C, ref: x, useAttrs: pe, QyUpload: Re };
191
+ return Object.defineProperty(S, "__isScriptSetup", { enumerable: !1, value: !0 }), S;
192
+ }
193
+ });
194
+ function Do(t, i, a, e, n, P) {
195
+ return b(), oe(e.QyUpload, fe({ ref: "uploadRef" }, e.attrs, {
196
+ "model-value": e.modelAsArray,
197
+ "value-format": "array",
198
+ api: a.api,
199
+ name: a.name,
200
+ multiple: a.multiple,
201
+ disabled: a.disabled,
202
+ "file-type": e.effectiveFileType,
203
+ "file-size": a.fileSize,
204
+ limit: e.uploadLimit,
205
+ "is-show-tip": a.isShowTip,
206
+ "token-key": a.tokenKey,
207
+ "support-video": a.supportVideo,
208
+ size: a.size,
209
+ "disable-drag": a.disableDrag,
210
+ "call-back": a.callBack,
211
+ "extra-data": a.extraData,
212
+ "upload-request": a.uploadRequest,
213
+ "show-text": !1,
214
+ "show-paste-input": a.showPasteInput,
215
+ "paste-placeholder": a.pastePlaceholder,
216
+ "onUpdate:modelValue": e.handleUpdateModelValue,
217
+ onChange: e.handleChange,
218
+ onSuccess: e.handleSuccess,
219
+ onError: e.handleError,
220
+ onRemove: e.handleRemove
221
+ }), 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"]);
222
+ }
223
+ const zo = /* @__PURE__ */ ye(Ro, [["render", Do], ["__file", "C:/Users/wzqy/.codex/worktrees/62ec/qy-components/packages/ui/lib/qy-image-upload/index.vue"]]);
224
+ function Ee(t) {
225
+ const i = t == null ? void 0 : t.match(/(\[url\:(.*?)\])(.*)/);
226
+ return i ? {
227
+ imageUrl: i[2],
228
+ text: i[3]
229
+ } : {
230
+ imageUrl: "",
231
+ text: t || ""
232
+ };
233
+ }
234
+ function Ko(t) {
235
+ const i = String(t || "").match(/(\[url\:.*?\])([\s\S]*)/);
236
+ return i ? i[2] : t;
237
+ }
238
+ function Oe(t, i) {
239
+ return i ? `[url:${i}]${t}` : t;
240
+ }
241
+ const Mo = /* @__PURE__ */ he({
242
+ __name: "index",
243
+ props: {
244
+ defaultValue: { type: String, required: !1, default: "" },
245
+ defaultImage: { type: String, required: !1, default: "" },
246
+ rows: { type: [String, Number], required: !1, default: 6 },
247
+ width: { type: [String, Number], required: !1, default: "" },
248
+ autosize: { type: [Boolean, Object], required: !1, default: !1 },
249
+ disabled: { type: Boolean, required: !1, default: !1 },
250
+ placeholder: { type: String, required: !1, default: "粘贴图片上传" },
251
+ type: { type: String, required: !1, default: "textarea" },
252
+ layout: { type: String, required: !1, default: "default" },
253
+ selectValue: { type: [String, Number, Boolean], required: !1, default: "" },
254
+ selectOptions: { type: Array, required: !1, default: () => [] },
255
+ selectDisabled: { type: Boolean, required: !1, default: !1 },
256
+ api: { type: String, required: !1, default: "/permission-api/common/uploads" },
257
+ tokenKey: { type: String, required: !1, default: "Admin-Token" },
258
+ uploadName: { type: String, required: !1, default: "files" },
259
+ uploadRequest: { type: Function, required: !1 }
260
+ },
261
+ emits: ["change", "update:selectValue", "select-change"],
262
+ setup(t, { expose: i, emit: a }) {
263
+ const e = t, n = a, P = pe(), y = x(null), u = x(""), m = x(""), R = x(!1), Q = C(
264
+ () => e.layout === "select-prefix"
265
+ ), D = C(() => ({
266
+ "qy-remark-image--select-prefix": Q.value
267
+ })), w = C(
268
+ () => Q.value || e.type === "text" ? "text" : "textarea"
269
+ ), A = C(() => {
270
+ if (e.width)
271
+ return {
272
+ width: typeof e.width == "number" ? `${e.width}px` : e.width
273
+ };
274
+ });
275
+ re(
276
+ () => e.defaultValue,
277
+ (p) => {
278
+ const S = Ee(p || "");
279
+ u.value = S.text, m.value = S.imageUrl || e.defaultImage || "";
280
+ },
281
+ { immediate: !0 }
282
+ ), re(
283
+ () => e.defaultImage,
284
+ (p) => {
285
+ p !== void 0 && !Ee(e.defaultValue || "").imageUrl && (m.value = p || "");
286
+ },
287
+ { immediate: !0 }
288
+ ), Sa(() => {
289
+ ke(L);
290
+ }), qa(() => {
291
+ const p = Z();
292
+ p && p.removeEventListener("paste", N);
293
+ });
294
+ function Z() {
295
+ var p, S;
296
+ return ((p = y.value) == null ? void 0 : p.textarea) || ((S = y.value) == null ? void 0 : S.input) || null;
297
+ }
298
+ function L() {
299
+ const p = Z();
300
+ p && (p.removeEventListener("paste", N), p.addEventListener("paste", N));
301
+ }
302
+ function K(p) {
303
+ u.value = Ko(p || "");
304
+ }
305
+ function V(p) {
306
+ n("update:selectValue", p), n("select-change", p);
307
+ }
308
+ function X() {
309
+ m.value = "", j();
310
+ }
311
+ function ee() {
312
+ u.value = "", m.value = "", j();
313
+ }
314
+ async function N(p) {
315
+ var d;
316
+ const o = Array.from(((d = p.clipboardData) == null ? void 0 : d.files) || []).find((E) => E.type.startsWith("image/"));
317
+ o && (p.preventDefault(), await W({
318
+ file: o,
319
+ onError: () => {
320
+ },
321
+ onProgress: () => {
322
+ },
323
+ onSuccess: () => {
324
+ }
325
+ }));
326
+ }
327
+ async function W(p) {
328
+ var S, o;
329
+ if (p.file.size > 51200 * 1e3)
330
+ return be.error("图片过大"), !1;
331
+ R.value = !0;
332
+ try {
333
+ const d = await M(p);
334
+ return m.value = G(d), j(), be.success("上传图片成功"), (S = p.onSuccess) == null || S.call(p, d), !0;
335
+ } catch (d) {
336
+ return (o = p.onError) == null || o.call(p, d), be.error("上传失败"), !1;
337
+ } finally {
338
+ R.value = !1;
339
+ }
340
+ }
341
+ async function M(p) {
342
+ const S = new FormData();
343
+ if (S.append(e.uploadName, p.file), e.uploadRequest)
344
+ return e.uploadRequest({
345
+ file: p.file,
346
+ formData: S,
347
+ options: p,
348
+ api: e.api,
349
+ tokenKey: e.tokenKey
350
+ });
351
+ const o = ha.get(e.tokenKey);
352
+ return (await fetch(e.api, {
353
+ method: "POST",
354
+ body: S,
355
+ credentials: "include",
356
+ headers: o ? { Authorization: `Bearer ${o}` } : void 0
357
+ })).json();
358
+ }
359
+ function G(p) {
360
+ var d, E;
361
+ if (typeof p == "string") return p;
362
+ const S = p, o = (S == null ? void 0 : S.urls) ?? ((d = S == null ? void 0 : S.data) == null ? void 0 : d.urls) ?? ((E = S == null ? void 0 : S.data) == null ? void 0 : E.url) ?? (S == null ? void 0 : S.url) ?? "";
363
+ return Array.isArray(o) ? o[0] || "" : o || "";
364
+ }
365
+ function j() {
366
+ n(
367
+ "change",
368
+ Oe(u.value || "", m.value || ""),
369
+ m.value || ""
370
+ );
371
+ }
372
+ i({
373
+ deleteImage: X,
374
+ // 兼容旧 remarkImage,在表单 reset/clearFrom 时清空文字和图片。
375
+ clearContent: ee,
376
+ // 给表单保存或外部调试读取当前拆分值。
377
+ getValue: () => ({
378
+ text: u.value || "",
379
+ imageUrl: m.value || "",
380
+ value: Oe(u.value || "", m.value || "")
381
+ })
382
+ });
383
+ const te = { props: e, emit: n, attrs: P, inputRef: y, remarkText: u, remarkImg: m, uploading: R, isSelectPrefixLayout: Q, rootClass: D, inputType: w, wrapperStyle: A, getTextarea: Z, bindPasteListener: L, handleTextChange: K, handleSelectChange: V, deleteImage: X, clearContent: ee, handlePaste: N, uploadImage: W, requestUpload: M, resolveUploadUrl: G, emitChange: j, get ElButton() {
384
+ return we;
385
+ }, get ElInput() {
386
+ return Pe;
387
+ }, get ElOption() {
388
+ return Le;
389
+ }, get ElPopover() {
390
+ return Ta;
391
+ }, get ElSelect() {
392
+ return Ue;
393
+ }, get ElUpload() {
394
+ return ka;
395
+ } };
396
+ return Object.defineProperty(te, "__isScriptSetup", { enumerable: !1, value: !0 }), te;
397
+ }
398
+ }), Uo = { class: "qy-remark-image__field" }, Lo = {
399
+ key: 1,
400
+ class: "qy-remark-image__divider"
401
+ }, jo = { class: "qy-remark-image__upload-anchor" }, No = {
402
+ key: 0,
403
+ class: "icon-[line-md--loading-twotone-loop]",
404
+ role: "img",
405
+ "aria-hidden": "true"
406
+ }, Wo = {
407
+ key: 1,
408
+ class: "icon-[ion--cloud-upload-outline]",
409
+ role: "img",
410
+ "aria-hidden": "true"
411
+ }, Go = {
412
+ key: 2,
413
+ class: "icon-[ph--images-thin]",
414
+ role: "img",
415
+ "aria-hidden": "true"
416
+ }, Ho = { class: "qy-remark-image__popover" }, Jo = ["src"], Zo = { class: "qy-remark-image__popover-footer" };
417
+ function Xo(t, i, a, e, n, P) {
418
+ return b(), B(
419
+ "div",
420
+ {
421
+ class: ge(["qy-remark-image", e.rootClass]),
422
+ style: De(e.wrapperStyle)
423
+ },
424
+ [
425
+ $("div", Uo, [
426
+ e.isSelectPrefixLayout ? (b(), oe(e.ElSelect, {
427
+ key: 0,
428
+ class: "qy-remark-image__prefix-select",
429
+ "model-value": a.selectValue,
430
+ options: a.selectOptions,
431
+ disabled: a.disabled || a.selectDisabled,
432
+ size: "small",
433
+ "onUpdate:modelValue": e.handleSelectChange
434
+ }, {
435
+ default: v(() => [
436
+ (b(!0), B(
437
+ Qe,
438
+ null,
439
+ Te(a.selectOptions, (y) => (b(), oe(e.ElOption, {
440
+ key: String(y.value),
441
+ label: y.label,
442
+ value: y.value,
443
+ disabled: y.disabled
444
+ }, null, 8, ["label", "value", "disabled"]))),
445
+ 128
446
+ /* KEYED_FRAGMENT */
447
+ ))
448
+ ]),
449
+ _: 1
450
+ /* STABLE */
451
+ }, 8, ["model-value", "options", "disabled"])) : F("v-if", !0),
452
+ e.isSelectPrefixLayout ? (b(), B("span", Lo)) : F("v-if", !0),
453
+ O(e.ElInput, fe({
454
+ ref: "inputRef",
455
+ "model-value": e.remarkText,
456
+ type: e.inputType,
457
+ rows: a.rows,
458
+ autosize: a.autosize,
459
+ disabled: a.disabled,
460
+ placeholder: a.placeholder
461
+ }, e.attrs, {
462
+ "onUpdate:modelValue": e.handleTextChange,
463
+ onBlur: e.emitChange
464
+ }), null, 16, ["model-value", "type", "rows", "autosize", "disabled", "placeholder"]),
465
+ O(e.ElPopover, {
466
+ placement: "top-start",
467
+ width: 400,
468
+ trigger: "hover",
469
+ disabled: !e.remarkImg
470
+ }, {
471
+ reference: v(() => [
472
+ $("div", jo, [
473
+ O(e.ElUpload, {
474
+ disabled: e.uploading || a.disabled,
475
+ class: "qy-remark-image__upload",
476
+ "show-file-list": !1,
477
+ "http-request": e.uploadImage
478
+ }, {
479
+ default: v(() => [
480
+ e.uploading ? (b(), B("span", No)) : e.remarkImg ? (b(), B("span", Go)) : (b(), B("span", Wo))
481
+ ]),
482
+ _: 1
483
+ /* STABLE */
484
+ }, 8, ["disabled"])
485
+ ])
486
+ ]),
487
+ default: v(() => [
488
+ $("div", Ho, [
489
+ $("img", {
490
+ src: e.remarkImg,
491
+ class: "qy-remark-image__preview-img"
492
+ }, null, 8, Jo),
493
+ $("div", Zo, [
494
+ i[1] || (i[1] = $(
495
+ "span",
496
+ { class: "qy-remark-image__popover-tip" },
497
+ "再次点击按钮可更换图片",
498
+ -1
499
+ /* CACHED */
500
+ )),
501
+ O(e.ElButton, {
502
+ link: "",
503
+ size: "small",
504
+ type: "danger",
505
+ disabled: a.disabled,
506
+ onClick: e.deleteImage
507
+ }, {
508
+ default: v(() => [...i[0] || (i[0] = [
509
+ ie(
510
+ " 删除图片 ",
511
+ -1
512
+ /* CACHED */
513
+ )
514
+ ])]),
515
+ _: 1
516
+ /* STABLE */
517
+ }, 8, ["disabled"])
518
+ ])
519
+ ])
520
+ ]),
521
+ _: 1
522
+ /* STABLE */
523
+ }, 8, ["disabled"])
524
+ ])
525
+ ],
526
+ 6
527
+ /* CLASS, STYLE */
528
+ );
529
+ }
530
+ const Yo = /* @__PURE__ */ ye(Mo, [["render", Xo], ["__scopeId", "data-v-e5764ee0"], ["__file", "C:/Users/wzqy/.codex/worktrees/62ec/qy-components/packages/ui/lib/remark-image/index.vue"]]), $o = /* @__PURE__ */ he({
531
+ name: "QyRemoteSelect",
532
+ inheritAttrs: !1,
533
+ __name: "index",
534
+ props: {
535
+ modelValue: { type: [String, Number, Boolean, Array, null], required: !1, default: void 0 },
536
+ fetchMethod: { type: Function, required: !0 },
537
+ defaultOptions: { type: Array, required: !1, default: () => [] },
538
+ labelKey: { type: String, required: !1, default: "label" },
539
+ valueKey: { type: String, required: !1, default: "value" },
540
+ disabledKey: { type: String, required: !1, default: "disabled" },
541
+ placeholder: { type: String, required: !1, default: "请选择" },
542
+ disabled: { type: Boolean, required: !1, default: !1 },
543
+ clearable: { type: Boolean, required: !1, default: !0 },
544
+ multiple: { type: Boolean, required: !1, default: !1 },
545
+ collapseTags: { type: Boolean, required: !1, default: !1 },
546
+ collapseTagsTooltip: { type: Boolean, required: !1, default: !1 },
547
+ autoSelectSingle: { type: Boolean, required: !1, default: !1 },
548
+ size: { type: String, required: !1, default: void 0 },
549
+ teleported: { type: Boolean, required: !1, default: !0 },
550
+ appendTo: { type: String, required: !1, default: "body" },
551
+ fitInputWidth: { type: Boolean, required: !1, default: !0 },
552
+ popperClass: { type: String, required: !1, default: "" },
553
+ debounce: { type: Number, required: !1, default: 300 },
554
+ minLength: { type: Number, required: !1, default: 1 },
555
+ remoteOnFocus: { type: Boolean, required: !1, default: !1 },
556
+ remoteShowSuffix: { type: Boolean, required: !1, default: !0 },
557
+ loading: { type: Boolean, required: !1, default: !1 },
558
+ reserveSelectedOption: { type: Boolean, required: !1, default: !0 },
559
+ allowCreate: { type: Boolean, required: !1, default: !1 },
560
+ commitOnBlur: { type: Boolean, required: !1, default: !1 }
561
+ },
562
+ emits: ["update:modelValue", "change", "clear", "visible-change", "focus", "blur", "options-change", "loading-change", "error"],
563
+ setup(t, { expose: i, emit: a }) {
564
+ const e = t, n = a, P = pe(), y = x(null), u = x([]), m = x(/* @__PURE__ */ new Map()), R = x(!1), Q = x(""), D = x("");
565
+ let w = 0, A = null;
566
+ const Z = C(() => e.loading || R.value), L = x(!1), K = C(() => Q.value !== ""), V = C(() => {
567
+ if (K.value) return u.value;
568
+ const c = /* @__PURE__ */ new Map(), U = (r) => {
569
+ c.set(X(r), r);
570
+ };
571
+ return e.defaultOptions.forEach(U), e.reserveSelectedOption && m.value.forEach((r) => U(r)), u.value.forEach(U), Array.from(c.values());
572
+ });
573
+ re(
574
+ () => e.defaultOptions,
575
+ (c) => {
576
+ c.forEach(N);
577
+ },
578
+ { immediate: !0 }
579
+ ), re(
580
+ () => e.modelValue,
581
+ () => {
582
+ V.value.forEach(N);
583
+ },
584
+ { immediate: !0 }
585
+ );
586
+ function X(c) {
587
+ return (c == null ? void 0 : c[e.valueKey]) ?? (c == null ? void 0 : c.value) ?? (c == null ? void 0 : c.label);
588
+ }
589
+ function ee(c) {
590
+ return Array.isArray(e.modelValue) ? e.modelValue.includes(c) : e.modelValue === c;
591
+ }
592
+ function N(c) {
593
+ if (!e.reserveSelectedOption) return;
594
+ const U = X(c);
595
+ ee(U) && m.value.set(U, c);
596
+ }
597
+ function W(c) {
598
+ return e.disabled ? !1 : c ? c.length >= e.minLength : e.remoteOnFocus;
599
+ }
600
+ function M(c) {
601
+ R.value !== c && (R.value = c, n("loading-change", c));
602
+ }
603
+ async function G(c) {
604
+ const U = I(c), r = ++w;
605
+ if (ae(U), !W(U)) {
606
+ u.value = [], M(!1), n("options-change", V.value);
607
+ return;
608
+ }
609
+ M(!0);
610
+ try {
611
+ const g = await e.fetchMethod(U);
612
+ if (r !== w) return;
613
+ u.value = Array.isArray(g) ? g : [], u.value.forEach(N), n("options-change", V.value);
614
+ } catch (g) {
615
+ if (r !== w) return;
616
+ u.value = [], n("error", g), n("options-change", V.value);
617
+ } finally {
618
+ r === w && M(!1);
619
+ }
620
+ }
621
+ function j() {
622
+ L.value || (L.value = !0, G(""));
623
+ }
624
+ function te(c) {
625
+ const U = I(c);
626
+ D.value = U, w += 1, ae(U), A && (clearTimeout(A), A = null), A = setTimeout(() => {
627
+ G(U);
628
+ }, e.debounce);
629
+ }
630
+ function p() {
631
+ L.value = !0, G("");
632
+ }
633
+ function S() {
634
+ G(Q.value);
635
+ }
636
+ function o(c) {
637
+ D.value = "", n("update:modelValue", c);
638
+ }
639
+ function d(c) {
640
+ D.value = "", V.value.forEach(N), n("change", c);
641
+ }
642
+ function E() {
643
+ D.value = "", n("clear");
644
+ }
645
+ function H(c) {
646
+ c && e.remoteOnFocus && !Q.value && j(), n("visible-change", c);
647
+ }
648
+ function s(c) {
649
+ e.remoteOnFocus && !Q.value && j(), n("focus", c);
650
+ }
651
+ function q(c) {
652
+ k(), n("blur", c);
653
+ }
654
+ function k() {
655
+ if (!e.allowCreate || !e.commitOnBlur || e.disabled) return;
656
+ const c = D.value;
657
+ c.trim() && (D.value = "", n("update:modelValue", c), n("change", c));
658
+ }
659
+ function I(c) {
660
+ return String(c ?? "");
661
+ }
662
+ function ae(c) {
663
+ Q.value = c, u.value = [], n("options-change", V.value);
664
+ }
665
+ function se() {
666
+ var c, U;
667
+ (U = (c = y.value) == null ? void 0 : c.focus) == null || U.call(c);
668
+ }
669
+ function ne() {
670
+ var c, U;
671
+ (U = (c = y.value) == null ? void 0 : c.blur) == null || U.call(c);
672
+ }
673
+ function ue() {
674
+ n("update:modelValue", e.multiple ? [] : ""), n("clear");
675
+ }
676
+ Qa(() => {
677
+ A && clearTimeout(A);
678
+ }), i({
679
+ // 暴露远程选择常用控制方法,供弹窗打开后聚焦或请求失败后重试。
680
+ focus: se,
681
+ blur: ne,
682
+ clear: ue,
683
+ retryFetch: S,
684
+ fetchDefaultOptions: p
685
+ });
686
+ const me = { props: e, emit: n, attrs: P, selectRef: y, remoteOptions: u, selectedOptionMap: m, innerLoading: R, lastKeyword: Q, pendingCreateText: D, get requestId() {
687
+ return w;
688
+ }, set requestId(c) {
689
+ w = c;
690
+ }, get debounceTimer() {
691
+ return A;
692
+ }, set debounceTimer(c) {
693
+ A = c;
694
+ }, mergedLoading: Z, defaultOptionsFetched: L, hasSearchKeyword: K, mergedOptions: V, getOptionValue: X, isValueSelected: ee, cacheOptionIfSelected: N, canFetch: W, setInnerLoading: M, fetchOptions: G, maybeFetchDefaultOptions: j, handleRemoteMethod: te, fetchDefaultOptions: p, retryFetch: S, handleUpdateModelValue: o, handleChange: d, handleClear: E, handleVisibleChange: H, handleFocus: s, handleBlur: q, commitPendingCreateText: k, normalizeKeyword: I, clearRemoteOptionsForKeyword: ae, focus: se, blur: ne, clear: ue, QySelect: Ae };
695
+ return Object.defineProperty(me, "__isScriptSetup", { enumerable: !1, value: !0 }), me;
696
+ }
697
+ });
698
+ function er(t, i, a, e, n, P) {
699
+ return b(), B(
700
+ Qe,
701
+ null,
702
+ [
703
+ F(" 远程防抖由本组件统一维护,底层需即时同步关键字,避免快速失焦丢失手输文本。 "),
704
+ O(e.QySelect, fe({ ref: "selectRef" }, e.attrs, {
705
+ "model-value": a.modelValue,
706
+ options: e.mergedOptions,
707
+ "label-key": a.labelKey,
708
+ "value-key": a.valueKey,
709
+ "disabled-key": a.disabledKey,
710
+ placeholder: a.placeholder,
711
+ disabled: a.disabled,
712
+ clearable: a.clearable,
713
+ filterable: !0,
714
+ multiple: a.multiple,
715
+ "collapse-tags": a.collapseTags,
716
+ "collapse-tags-tooltip": a.collapseTagsTooltip,
717
+ "auto-select-single": a.autoSelectSingle,
718
+ size: a.size,
719
+ teleported: a.teleported,
720
+ "append-to": a.appendTo,
721
+ "fit-input-width": a.fitInputWidth,
722
+ "popper-class": a.popperClass,
723
+ remote: "",
724
+ debounce: 0,
725
+ "remote-show-suffix": a.remoteShowSuffix,
726
+ "remote-method": e.handleRemoteMethod,
727
+ loading: e.mergedLoading,
728
+ "onUpdate:modelValue": e.handleUpdateModelValue,
729
+ onChange: e.handleChange,
730
+ onClear: e.handleClear,
731
+ onVisibleChange: e.handleVisibleChange,
732
+ onFocus: e.handleFocus,
733
+ onBlur: e.handleBlur
734
+ }), Ie({
735
+ default: v(() => [
736
+ t.$slots.default ? _(t.$slots, "default", {}, void 0, void 0, 0) : F("v-if", !0)
737
+ ]),
738
+ _: 2
739
+ /* DYNAMIC */
740
+ }, [
741
+ t.$slots.prefix ? {
742
+ name: "prefix",
743
+ fn: v(() => [
744
+ _(t.$slots, "prefix")
745
+ ]),
746
+ key: "0"
747
+ } : void 0,
748
+ t.$slots.empty ? {
749
+ name: "empty",
750
+ fn: v(() => [
751
+ _(t.$slots, "empty")
752
+ ]),
753
+ key: "1"
754
+ } : void 0,
755
+ t.$slots.loading ? {
756
+ name: "loading",
757
+ fn: v(() => [
758
+ _(t.$slots, "loading")
759
+ ]),
760
+ key: "2"
761
+ } : void 0,
762
+ t.$slots.tag ? {
763
+ name: "tag",
764
+ fn: v((y) => [
765
+ _(t.$slots, "tag", ze(Ke(y)))
766
+ ]),
767
+ key: "3"
768
+ } : void 0
769
+ ]), 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"])
770
+ ],
771
+ 2112
772
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
773
+ );
774
+ }
775
+ const tr = /* @__PURE__ */ ye($o, [["render", er], ["__file", "C:/Users/wzqy/.codex/worktrees/62ec/qy-components/packages/ui/lib/qy-remote-select/index.vue"]]), ar = /* @__PURE__ */ he({
776
+ name: "QySearchInput",
777
+ inheritAttrs: !1,
778
+ __name: "index",
779
+ props: {
780
+ modelValue: { type: [String, Number, null], required: !1, default: "" },
781
+ loading: { type: Boolean, required: !1, default: !1 },
782
+ disabled: { type: Boolean, required: !1, default: !1 },
783
+ placeholder: { type: String, required: !1, default: "请输入搜索内容" },
784
+ removeSpace: { type: Boolean, required: !1, default: !1 },
785
+ trimMode: { type: String, required: !1, default: "none" },
786
+ clearable: { type: Boolean, required: !1, default: !0 },
787
+ showButton: { type: Boolean, required: !1, default: !0 },
788
+ buttonText: { type: String, required: !1, default: "搜索" },
789
+ buttonProps: { type: Object, required: !1, default: () => ({}) },
790
+ suggestions: { type: Array, required: !1, default: () => [] },
791
+ fetchSuggestions: { type: [Function, null], required: !1, default: null },
792
+ fetchSuggestionsMethod: { type: [Function, null], required: !1, default: null },
793
+ debounce: { type: Number, required: !1, default: 300 },
794
+ minLength: { type: Number, required: !1, default: 1 },
795
+ triggerOnFocus: { type: Boolean, required: !1, default: !1 },
796
+ searchOnEnter: { type: Boolean, required: !1, default: !0 },
797
+ searchOnSelect: { type: Boolean, required: !1, default: !1 },
798
+ highlightKeyword: { type: Boolean, required: !1, default: !0 },
799
+ teleported: { type: Boolean, required: !1, default: !0 },
800
+ appendTo: { type: String, required: !1, default: "body" },
801
+ popperClass: { type: String, required: !1, default: "" },
802
+ fitInputWidth: { type: Boolean, required: !1, default: !0 }
803
+ },
804
+ emits: ["update:modelValue", "search", "clear", "input", "change", "focus", "blur", "enter", "select", "visible-change", "suggestions-change", "error"],
805
+ setup(t, { expose: i, emit: a }) {
806
+ const e = t, n = a, P = pe(), y = x(null), u = x(w(e.modelValue)), m = C(() => w(e.modelValue)), R = C(
807
+ () => ["qy-search-input__popper", e.popperClass].filter(Boolean).join(" ")
808
+ ), Q = C(() => w(e.modelValue)), D = x("");
809
+ re(
810
+ () => e.modelValue,
811
+ (r) => {
812
+ u.value = w(r);
813
+ }
814
+ );
815
+ function w(r) {
816
+ return r == null ? "" : String(r);
817
+ }
818
+ function A(r) {
819
+ return e.removeSpace ? r.replace(/\s+/g, "") : r;
820
+ }
821
+ function Z(r, g) {
822
+ return e.trimMode !== g ? r : r.trim();
823
+ }
824
+ function L(r) {
825
+ return A(w(r));
826
+ }
827
+ function K(r) {
828
+ u.value = r, n("update:modelValue", r);
829
+ }
830
+ function V(r, g = "") {
831
+ return {
832
+ ...r,
833
+ label: r.label || r.value,
834
+ value: r.value || r.label,
835
+ description: r.description || g
836
+ };
837
+ }
838
+ function X(r = []) {
839
+ return r.flatMap((g) => {
840
+ if (Array.isArray(g.items)) {
841
+ const J = g;
842
+ return J.items.map((le) => V(le, J.groupLabel));
843
+ }
844
+ return V(g);
845
+ });
846
+ }
847
+ function ee(r) {
848
+ const g = r.toLowerCase();
849
+ return (J) => [J.label, J.value, J.description].filter(Boolean).some((le) => String(le).toLowerCase().includes(g));
850
+ }
851
+ function N(r) {
852
+ return r ? r.length >= e.minLength : e.triggerOnFocus;
853
+ }
854
+ function W(r) {
855
+ n("suggestions-change", r), n("visible-change", r.length > 0);
856
+ }
857
+ async function M(r) {
858
+ if (!N(r))
859
+ return W([]), [];
860
+ if (e.fetchSuggestionsMethod) {
861
+ const le = await new Promise((Y) => {
862
+ var _e;
863
+ (_e = e.fetchSuggestionsMethod) == null || _e.call(e, r, (Se) => {
864
+ Y(X(Se));
865
+ });
866
+ });
867
+ return W(le), le;
868
+ }
869
+ if (e.fetchSuggestions) {
870
+ const le = await e.fetchSuggestions(r), Y = X(Array.isArray(le) ? le : []);
871
+ return W(Y), Y;
872
+ }
873
+ const g = X(e.suggestions), J = r ? g.filter(ee(r)) : g;
874
+ return W(J), J;
875
+ }
876
+ async function G(r, g) {
877
+ D.value = r;
878
+ try {
879
+ const J = await M(r);
880
+ g(J);
881
+ } catch (J) {
882
+ n("error", J), W([]), g([]);
883
+ }
884
+ }
885
+ function j() {
886
+ var r, g;
887
+ D.value && ((g = (r = y.value) == null ? void 0 : r.getData) == null || g.call(r, D.value));
888
+ }
889
+ function te(r) {
890
+ const g = L(r);
891
+ K(g);
892
+ }
893
+ function p(r) {
894
+ const g = L(r);
895
+ u.value = g, n("input", g);
896
+ }
897
+ function S(r) {
898
+ const g = Z(L(r), "change");
899
+ g !== w(e.modelValue) && K(g), n("change", g);
900
+ }
901
+ function o(r) {
902
+ n("focus", r);
903
+ }
904
+ function d(r) {
905
+ const g = Z(u.value, "blur");
906
+ g !== w(e.modelValue) && K(g), n("blur", r), n("visible-change", !1);
907
+ }
908
+ function E() {
909
+ u.value = "", n("update:modelValue", ""), n("clear"), W([]);
910
+ }
911
+ function H(r) {
912
+ n("enter", r), e.searchOnEnter && s();
913
+ }
914
+ function s() {
915
+ n("search", w(e.modelValue));
916
+ }
917
+ function q(r) {
918
+ n("select", r), e.searchOnSelect && n("search", r.value);
919
+ }
920
+ function k(r) {
921
+ return r.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
922
+ }
923
+ function I(r) {
924
+ return r.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
925
+ }
926
+ function ae(r) {
927
+ const g = k(r || "");
928
+ if (!e.highlightKeyword || !m.value) return g;
929
+ const J = I(k(m.value));
930
+ return J ? g.replace(
931
+ new RegExp(`(${J})`, "ig"),
932
+ '<mark class="qy-search-input__mark">$1</mark>'
933
+ ) : g;
934
+ }
935
+ function se() {
936
+ var r, g;
937
+ (g = (r = y.value) == null ? void 0 : r.focus) == null || g.call(r);
938
+ }
939
+ function ne() {
940
+ var r, g;
941
+ (g = (r = y.value) == null ? void 0 : r.blur) == null || g.call(r);
942
+ }
943
+ function ue() {
944
+ var r, g, J;
945
+ (J = (g = (r = y.value) == null ? void 0 : r.inputRef) == null ? void 0 : g.select) == null || J.call(g);
946
+ }
947
+ function me() {
948
+ var r, g;
949
+ (g = (r = y.value) == null ? void 0 : r.clear) == null || g.call(r);
950
+ }
951
+ function c() {
952
+ var r, g;
953
+ (g = (r = y.value) == null ? void 0 : r.close) == null || g.call(r);
954
+ }
955
+ i({
956
+ // 暴露搜索框常用控制方法,供弹窗打开后聚焦或失败后重试建议项。
957
+ focus: se,
958
+ blur: ne,
959
+ select: ue,
960
+ clear: me,
961
+ closePanel: c,
962
+ retryFetch: j
963
+ });
964
+ const U = { props: e, emit: n, attrs: P, autocompleteRef: y, innerValue: u, normalizedKeyword: m, mergedPopperClass: R, displayValue: Q, lastQuery: D, stringifyValue: w, sanitizeSpaces: A, sanitizeTrim: Z, sanitizeImmediate: L, emitModelValue: K, normalizeItem: V, flattenSuggestionList: X, createFilter: ee, canQuery: N, emitSuggestions: W, resolveSuggestionList: M, querySuggestions: G, retryFetch: j, handleUpdateModelValue: te, handleInput: p, handleChange: S, handleFocus: o, handleBlur: d, handleClear: E, handleEnter: H, triggerSearch: s, handleSelect: q, escapeHtml: k, escapeRegExp: I, renderHighlighted: ae, focus: se, blur: ne, select: ue, clear: me, closePanel: c, get ElAutocomplete() {
965
+ return Ia;
966
+ }, get ElButton() {
967
+ return we;
968
+ } };
969
+ return Object.defineProperty(U, "__isScriptSetup", { enumerable: !1, value: !0 }), U;
970
+ }
971
+ }), or = { class: "qy-search-input__item" }, rr = ["innerHTML"], lr = {
972
+ key: 0,
973
+ class: "qy-search-input__item-description"
974
+ };
975
+ function nr(t, i, a, e, n, P) {
976
+ return b(), B(
977
+ "div",
978
+ {
979
+ class: ge(["qy-search-input", { "is-disabled": a.disabled }])
980
+ },
981
+ [
982
+ O(e.ElAutocomplete, fe({ ref: "autocompleteRef" }, e.attrs, {
983
+ "model-value": e.displayValue,
984
+ disabled: a.disabled,
985
+ placeholder: a.placeholder,
986
+ clearable: a.clearable,
987
+ debounce: a.debounce,
988
+ "fetch-suggestions": e.querySuggestions,
989
+ "trigger-on-focus": a.triggerOnFocus,
990
+ teleported: a.teleported,
991
+ "fit-input-width": a.fitInputWidth,
992
+ "popper-class": e.mergedPopperClass,
993
+ "append-to": a.appendTo,
994
+ "value-key": "value",
995
+ "onUpdate:modelValue": e.handleUpdateModelValue,
996
+ onInput: e.handleInput,
997
+ onChange: e.handleChange,
998
+ onFocus: e.handleFocus,
999
+ onBlur: e.handleBlur,
1000
+ onClear: e.handleClear,
1001
+ onSelect: e.handleSelect,
1002
+ onKeydown: Fe(e.handleEnter, ["enter"])
1003
+ }), Ie({
1004
+ default: v(({ item: y }) => [
1005
+ _(t.$slots, "item", {
1006
+ item: y,
1007
+ keyword: e.normalizedKeyword
1008
+ }, () => [
1009
+ $("div", or, [
1010
+ $("div", {
1011
+ class: "qy-search-input__item-label",
1012
+ innerHTML: e.renderHighlighted(y.label || y.value || "")
1013
+ }, null, 8, rr),
1014
+ y.description ? (b(), B(
1015
+ "div",
1016
+ lr,
1017
+ ce(y.description),
1018
+ 1
1019
+ /* TEXT */
1020
+ )) : F("v-if", !0)
1021
+ ])
1022
+ ], !0)
1023
+ ]),
1024
+ _: 2
1025
+ /* DYNAMIC */
1026
+ }, [
1027
+ t.$slots.prefix ? {
1028
+ name: "prefix",
1029
+ fn: v(() => [
1030
+ _(t.$slots, "prefix", {}, void 0, !0)
1031
+ ]),
1032
+ key: "0"
1033
+ } : void 0,
1034
+ t.$slots.suffix ? {
1035
+ name: "suffix",
1036
+ fn: v(() => [
1037
+ _(t.$slots, "suffix", {}, void 0, !0)
1038
+ ]),
1039
+ key: "1"
1040
+ } : void 0,
1041
+ t.$slots.prepend ? {
1042
+ name: "prepend",
1043
+ fn: v(() => [
1044
+ _(t.$slots, "prepend", {}, void 0, !0)
1045
+ ]),
1046
+ key: "2"
1047
+ } : void 0,
1048
+ t.$slots.append || a.showButton ? {
1049
+ name: "append",
1050
+ fn: v(() => [
1051
+ t.$slots.append ? _(t.$slots, "append", {}, void 0, !0, 0) : (b(), oe(e.ElButton, fe({ key: 1 }, a.buttonProps, {
1052
+ loading: a.loading,
1053
+ disabled: a.disabled,
1054
+ onClick: e.triggerSearch
1055
+ }), {
1056
+ default: v(() => [
1057
+ ie(
1058
+ ce(a.buttonText),
1059
+ 1
1060
+ /* TEXT */
1061
+ )
1062
+ ]),
1063
+ _: 1
1064
+ /* STABLE */
1065
+ }, 16, ["loading", "disabled"]))
1066
+ ]),
1067
+ key: "3"
1068
+ } : void 0
1069
+ ]), 1040, ["model-value", "disabled", "placeholder", "clearable", "debounce", "trigger-on-focus", "teleported", "fit-input-width", "popper-class", "append-to"])
1070
+ ],
1071
+ 2
1072
+ /* CLASS */
1073
+ );
1074
+ }
1075
+ const Ze = /* @__PURE__ */ ye(ar, [["render", nr], ["__scopeId", "data-v-e2afec40"], ["__file", "C:/Users/wzqy/.codex/worktrees/62ec/qy-components/packages/ui/lib/qy-search-input/index.vue"]]), ir = /* @__PURE__ */ he({
1076
+ name: "QyRecordQuoteSearch",
1077
+ inheritAttrs: !1,
1078
+ __name: "index",
1079
+ props: {
1080
+ modelValue: { type: [String, null], required: !1, default: "" },
1081
+ loading: { type: Boolean, required: !1, default: !1 },
1082
+ disabled: { type: Boolean, required: !1, default: !1 },
1083
+ placeholder: { type: String, required: !1, default: "请输入报价单号" },
1084
+ buttonText: { type: String, required: !1, default: "查询报价单" },
1085
+ autoNormalize: { type: Boolean, required: !1, default: !0 },
1086
+ showStatus: { type: Boolean, required: !1, default: !0 },
1087
+ status: { type: String, required: !1, default: "default" },
1088
+ statusText: { type: String, required: !1, default: "" },
1089
+ suggestions: { type: Array, required: !1, default: () => [] },
1090
+ fetchSuggestions: { type: [Function, null], required: !1, default: null },
1091
+ fetchSuggestionsMethod: { type: [Function, null], required: !1, default: null },
1092
+ debounce: { type: Number, required: !1, default: 300 },
1093
+ minLength: { type: Number, required: !1, default: 1 },
1094
+ searchOnSelect: { type: Boolean, required: !1, default: !0 },
1095
+ searchMethod: { type: [Function, null], required: !1, default: null },
1096
+ extractMethod: { type: [Function, null], required: !1, default: null },
1097
+ normalizeMethod: { type: [Function, null], required: !1, default: null },
1098
+ label: { type: String, required: !1, default: "报价单号" },
1099
+ description: { type: String, required: !1, default: "" },
1100
+ trimMode: { type: String, required: !1, default: "blur" }
1101
+ },
1102
+ emits: ["update:modelValue", "search", "clear", "normalize", "enter", "select", "error", "success"],
1103
+ setup(t, { expose: i, emit: a }) {
1104
+ const e = t, n = a, P = pe(), y = x(null), u = x(!1), m = C(() => e.statusText || ""), R = C(() => e.loading || u.value);
1105
+ function Q(o) {
1106
+ return o == null ? "" : String(o);
1107
+ }
1108
+ function D(o) {
1109
+ const d = Q(o).trim(), E = w(d), H = E.match(/BJ\d{8}[A-Z0-9]{4}/i);
1110
+ return H ? H[0] : E;
1111
+ }
1112
+ function w(o) {
1113
+ return Q(o).replace(/\s+/g, "").trim().toUpperCase();
1114
+ }
1115
+ function A(o) {
1116
+ return e.extractMethod ? e.extractMethod(o) : D(o);
1117
+ }
1118
+ function Z(o) {
1119
+ return e.normalizeMethod ? e.normalizeMethod(o) : w(o);
1120
+ }
1121
+ function L(o, d) {
1122
+ const E = Q(o), H = A(E), s = e.autoNormalize ? Z(H) : H;
1123
+ return n("normalize", { rawValue: E, code: s }), {
1124
+ rawValue: E,
1125
+ code: s,
1126
+ item: d
1127
+ };
1128
+ }
1129
+ function K(o) {
1130
+ n("update:modelValue", o);
1131
+ }
1132
+ async function V(o) {
1133
+ if (n("search", o), !!e.searchMethod) {
1134
+ u.value = !0;
1135
+ try {
1136
+ const d = await e.searchMethod(o);
1137
+ n("success", d);
1138
+ } catch (d) {
1139
+ n("error", d);
1140
+ } finally {
1141
+ u.value = !1;
1142
+ }
1143
+ }
1144
+ }
1145
+ function X(o) {
1146
+ const d = L(o);
1147
+ d.code !== Q(e.modelValue) && n("update:modelValue", d.code), V(d);
1148
+ }
1149
+ function ee() {
1150
+ n("clear");
1151
+ }
1152
+ function N(o) {
1153
+ n("enter", o);
1154
+ }
1155
+ function W(o) {
1156
+ if (n("select", o), !e.searchOnSelect) return;
1157
+ const d = L(o.value, o);
1158
+ d.code !== Q(e.modelValue) && n("update:modelValue", d.code), V(d);
1159
+ }
1160
+ function M(o) {
1161
+ n("error", o);
1162
+ }
1163
+ function G() {
1164
+ var o, d;
1165
+ (d = (o = y.value) == null ? void 0 : o.focus) == null || d.call(o);
1166
+ }
1167
+ function j() {
1168
+ var o, d;
1169
+ (d = (o = y.value) == null ? void 0 : o.blur) == null || d.call(o);
1170
+ }
1171
+ function te() {
1172
+ var o, d;
1173
+ (d = (o = y.value) == null ? void 0 : o.select) == null || d.call(o);
1174
+ }
1175
+ function p() {
1176
+ var o, d;
1177
+ (d = (o = y.value) == null ? void 0 : o.clear) == null || d.call(o);
1178
+ }
1179
+ i({
1180
+ focus: G,
1181
+ blur: j,
1182
+ select: te,
1183
+ clear: p,
1184
+ extractQuoteOrderCode: A,
1185
+ normalizeQuoteOrderCode: Z
1186
+ });
1187
+ const S = { props: e, emit: n, attrs: P, searchRef: y, internalLoading: u, currentStatusText: m, mergedLoading: R, stringifyValue: Q, defaultExtractQuoteOrderCode: D, defaultNormalizeQuoteOrderCode: w, extractQuoteOrderCode: A, normalizeQuoteOrderCode: Z, buildSearchPayload: L, handleUpdateModelValue: K, dispatchSearch: V, handleSearch: X, handleClear: ee, handleEnter: N, handleSelect: W, handleError: M, focus: G, blur: j, select: te, clear: p, QySearchInput: Ze };
1188
+ return Object.defineProperty(S, "__isScriptSetup", { enumerable: !1, value: !0 }), S;
1189
+ }
1190
+ }), sr = { class: "qy-record-quote-search" }, ur = {
1191
+ key: 0,
1192
+ class: "qy-record-quote-search__header"
1193
+ }, dr = {
1194
+ key: 0,
1195
+ class: "qy-record-quote-search__label"
1196
+ }, cr = {
1197
+ key: 1,
1198
+ class: "qy-record-quote-search__description"
1199
+ };
1200
+ function fr(t, i, a, e, n, P) {
1201
+ return b(), B("div", sr, [
1202
+ _(t.$slots, "label", {}, () => [
1203
+ a.label || a.description ? (b(), B("div", ur, [
1204
+ a.label ? (b(), B(
1205
+ "div",
1206
+ dr,
1207
+ ce(a.label),
1208
+ 1
1209
+ /* TEXT */
1210
+ )) : F("v-if", !0),
1211
+ a.description ? (b(), B(
1212
+ "div",
1213
+ cr,
1214
+ ce(a.description),
1215
+ 1
1216
+ /* TEXT */
1217
+ )) : F("v-if", !0)
1218
+ ])) : F("v-if", !0)
1219
+ ], !0),
1220
+ O(e.QySearchInput, fe({ ref: "searchRef" }, e.attrs, {
1221
+ "model-value": a.modelValue,
1222
+ loading: e.mergedLoading,
1223
+ disabled: a.disabled,
1224
+ placeholder: a.placeholder,
1225
+ "remove-space": !0,
1226
+ "trim-mode": a.trimMode,
1227
+ "button-text": a.buttonText,
1228
+ suggestions: a.suggestions,
1229
+ "fetch-suggestions": a.fetchSuggestions,
1230
+ "fetch-suggestions-method": a.fetchSuggestionsMethod,
1231
+ debounce: a.debounce,
1232
+ "min-length": a.minLength,
1233
+ "search-on-select": !1,
1234
+ "onUpdate:modelValue": e.handleUpdateModelValue,
1235
+ onSearch: e.handleSearch,
1236
+ onClear: e.handleClear,
1237
+ onEnter: e.handleEnter,
1238
+ onSelect: e.handleSelect,
1239
+ onError: e.handleError
1240
+ }), Ie({
1241
+ _: 2
1242
+ /* DYNAMIC */
1243
+ }, [
1244
+ t.$slots.prefix ? {
1245
+ name: "prefix",
1246
+ fn: v(() => [
1247
+ _(t.$slots, "prefix", {}, void 0, !0)
1248
+ ]),
1249
+ key: "0"
1250
+ } : void 0,
1251
+ t.$slots.suffix ? {
1252
+ name: "suffix",
1253
+ fn: v(() => [
1254
+ _(t.$slots, "suffix", {}, void 0, !0)
1255
+ ]),
1256
+ key: "1"
1257
+ } : void 0,
1258
+ t.$slots.item ? {
1259
+ name: "item",
1260
+ fn: v((y) => [
1261
+ _(t.$slots, "item", ze(Ke(y)), void 0, !0)
1262
+ ]),
1263
+ key: "2"
1264
+ } : void 0,
1265
+ t.$slots.empty ? {
1266
+ name: "empty",
1267
+ fn: v(() => [
1268
+ _(t.$slots, "empty", {}, void 0, !0)
1269
+ ]),
1270
+ key: "3"
1271
+ } : void 0,
1272
+ t.$slots.loading ? {
1273
+ name: "loading",
1274
+ fn: v(() => [
1275
+ _(t.$slots, "loading", {}, void 0, !0)
1276
+ ]),
1277
+ key: "4"
1278
+ } : void 0
1279
+ ]), 1040, ["model-value", "loading", "disabled", "placeholder", "trim-mode", "button-text", "suggestions", "fetch-suggestions", "fetch-suggestions-method", "debounce", "min-length"]),
1280
+ a.showStatus && e.currentStatusText ? _(t.$slots, "status", {
1281
+ status: a.status,
1282
+ statusText: e.currentStatusText
1283
+ }, () => [
1284
+ $(
1285
+ "div",
1286
+ {
1287
+ class: ge(["qy-record-quote-search__status", `is-${a.status}`])
1288
+ },
1289
+ ce(e.currentStatusText),
1290
+ 3
1291
+ /* TEXT, CLASS */
1292
+ )
1293
+ ], !0, 0) : F("v-if", !0)
1294
+ ]);
1295
+ }
1296
+ const yr = /* @__PURE__ */ ye(ir, [["render", fr], ["__scopeId", "data-v-b95ce153"], ["__file", "C:/Users/wzqy/.codex/worktrees/62ec/qy-components/packages/ui/lib/qy-record-quote-search/index.vue"]]), mr = /* @__PURE__ */ he({
1297
+ name: "QySelectionDialog",
1298
+ inheritAttrs: !1,
1299
+ __name: "index",
1300
+ props: {
1301
+ modelValue: { type: Array, required: !1, default: () => [] },
1302
+ open: { type: Boolean, required: !1, default: !0 },
1303
+ title: { type: String, required: !1, default: "选择数据" },
1304
+ width: { type: [String, Number], required: !1, default: "1200px" },
1305
+ fetchMethod: { type: Function, required: !1, default: void 0 },
1306
+ query: { type: Function, required: !1, default: void 0 },
1307
+ responseFormatter: { type: Function, required: !1, default: void 0 },
1308
+ selectionMode: { type: String, required: !1, default: void 0 },
1309
+ selection: { type: String, required: !1, default: "single" },
1310
+ selected: { type: Array, required: !1, default: () => [] },
1311
+ rowKey: { type: String, required: !1, default: "id" },
1312
+ mainKey: { type: String, required: !1, default: void 0 },
1313
+ labelKey: { type: String, required: !1, default: "name" },
1314
+ tagName: { type: String, required: !1, default: void 0 },
1315
+ searchKey: { type: [String, null], required: !1, default: "conditions" },
1316
+ queryParams: { type: Object, required: !1, default: () => ({}) },
1317
+ category: { type: [Array, Function, Boolean], required: !1, default: !1 },
1318
+ categoryFormatter: { type: [Function, Array], required: !1, default: void 0 },
1319
+ categoryOptions: { type: Array, required: !1, default: () => [] },
1320
+ categoryFetchMethod: { type: [Function, null], required: !1, default: null },
1321
+ type: { type: [Array, Boolean], required: !1, default: !1 },
1322
+ typeOptions: { type: Array, required: !1, default: () => [] },
1323
+ typeSelectionProps: { type: Object, required: !1, default: () => ({}) },
1324
+ typeSelectProps: { type: Object, required: !1, default: () => ({}) },
1325
+ tableProps: { type: Object, required: !1, default: () => ({}) },
1326
+ showSelected: { type: Boolean, required: !1, default: !0 },
1327
+ showSearch: { type: Boolean, required: !1, default: !0 },
1328
+ showPagination: { type: Boolean, required: !1, default: !0 },
1329
+ showCopyPaste: { type: Boolean, required: !1, default: !1 },
1330
+ append: { type: Boolean, required: !1, default: !1 },
1331
+ showAppend: { type: Boolean, required: !1, default: !1 },
1332
+ pageSizes: { type: Array, required: !1, default: () => [10, 20, 50, 100] }
1333
+ },
1334
+ emits: ["update:modelValue", "selection-change", "confirm", "submit", "cancel", "close", "append", "loaded"],
1335
+ setup(t, { expose: i, emit: a }) {
1336
+ const e = t, n = a, P = pe(), y = _a(), u = wa(), m = x(null), R = x([]), Q = x([]), D = x([]), w = x(!1), A = x(0), Z = x(!1), L = x(""), K = Ce({
1337
+ category: [],
1338
+ type: "",
1339
+ page: 1,
1340
+ pageSize: 10,
1341
+ ...e.searchKey ? { [e.searchKey]: "" } : {},
1342
+ ...e.queryParams
1343
+ }), V = C(() => e.selectionMode ? e.selectionMode : e.selection === "multi" ? "multiple" : e.selection), X = C(() => e.mainKey || e.rowKey), ee = C(() => e.tagName || e.labelKey), N = C(() => e.typeOptions.length ? e.typeOptions : e.type || []), W = C(() => ({
1344
+ ...e.typeSelectionProps,
1345
+ ...e.typeSelectProps
1346
+ })), M = C(() => e.tableProps || {}), G = C(
1347
+ () => e.showSearch || !!P["search-visible"]
1348
+ ), j = C(() => e.showAppend || e.append), te = C(
1349
+ () => j.value || !!y.toolbar || !!y.bar
1350
+ ), p = C(() => e.fetchMethod || e.query), S = C(() => o() ? e.modelValue : e.selected);
1351
+ function o() {
1352
+ const l = (u == null ? void 0 : u.vnode.props) || {};
1353
+ return Object.prototype.hasOwnProperty.call(l, "modelValue") || Object.prototype.hasOwnProperty.call(l, "model-value") || Object.prototype.hasOwnProperty.call(l, "onUpdate:modelValue");
1354
+ }
1355
+ re(
1356
+ [() => e.modelValue, () => e.selected, () => e.open],
1357
+ () => {
1358
+ e.open && (Q.value = ve(S.value), g());
1359
+ },
1360
+ { immediate: !0, deep: !0 }
1361
+ ), re(
1362
+ [() => e.categoryOptions, () => e.category],
1363
+ (l) => {
1364
+ if (Array.isArray(e.category) && e.category.length) {
1365
+ D.value = e.category;
1366
+ return;
1367
+ }
1368
+ D.value = e.categoryOptions || [];
1369
+ },
1370
+ { immediate: !0 }
1371
+ ), re(Z, (l) => {
1372
+ l || (L.value = "");
1373
+ });
1374
+ async function d() {
1375
+ Q.value = ve(S.value), await E(), await H(), g();
1376
+ }
1377
+ async function E() {
1378
+ const l = e.categoryFetchMethod || (typeof e.category == "function" ? e.category : null);
1379
+ if (!l) return;
1380
+ const h = await l();
1381
+ D.value = se(h);
1382
+ }
1383
+ async function H() {
1384
+ if (p.value) {
1385
+ w.value = !0;
1386
+ try {
1387
+ const l = await p.value(ue()), h = e.responseFormatter ? await e.responseFormatter(l) : l, { rows: T, total: z } = ae(h);
1388
+ return R.value = T, A.value = z, n("loaded", T), g(), h;
1389
+ } finally {
1390
+ w.value = !1;
1391
+ }
1392
+ }
1393
+ }
1394
+ function s() {
1395
+ return K.page = 1, H();
1396
+ }
1397
+ function q() {
1398
+ return K.page = 1, H();
1399
+ }
1400
+ function k() {
1401
+ return Object.assign(K, {
1402
+ category: [],
1403
+ type: "",
1404
+ page: 1,
1405
+ pageSize: K.pageSize,
1406
+ ...e.searchKey ? { [e.searchKey]: "" } : {},
1407
+ ...e.queryParams
1408
+ }), H();
1409
+ }
1410
+ function I() {
1411
+ n("append");
1412
+ }
1413
+ function ae(l) {
1414
+ if (Array.isArray(l))
1415
+ return { rows: l, total: l.length };
1416
+ const h = l == null ? void 0 : l.data;
1417
+ if (Array.isArray(h))
1418
+ return { rows: h, total: (l == null ? void 0 : l.total) ?? h.length };
1419
+ const T = (l == null ? void 0 : l.records) || (l == null ? void 0 : l.rows) || (h == null ? void 0 : h.records) || [], z = (l == null ? void 0 : l.total) ?? (h == null ? void 0 : h.total) ?? T.length;
1420
+ return { rows: T, total: z };
1421
+ }
1422
+ function se(l) {
1423
+ const h = (l == null ? void 0 : l.data) ?? l;
1424
+ if (!Array.isArray(h)) return [];
1425
+ if (typeof e.categoryFormatter == "function")
1426
+ return e.categoryFormatter(h);
1427
+ if (Array.isArray(e.categoryFormatter)) {
1428
+ const [T, z] = e.categoryFormatter;
1429
+ return h.map((de) => ({
1430
+ ...de,
1431
+ label: de[T],
1432
+ value: de[z],
1433
+ children: Array.isArray(de.children) ? ne(de.children, T, z) : de.children
1434
+ }));
1435
+ }
1436
+ return h;
1437
+ }
1438
+ function ne(l, h, T) {
1439
+ return l.map((z) => ({
1440
+ ...z,
1441
+ label: z[h],
1442
+ value: z[T],
1443
+ children: Array.isArray(z.children) ? ne(z.children, h, T) : z.children
1444
+ }));
1445
+ }
1446
+ function ue() {
1447
+ const l = { ...e.queryParams, ...K };
1448
+ return e.searchKey && (l[e.searchKey] = String(l[e.searchKey] || "").trim()), l.category = me(), l;
1449
+ }
1450
+ function me() {
1451
+ if (Object.prototype.hasOwnProperty.call(e.queryParams, "category"))
1452
+ return e.queryParams.category;
1453
+ const l = K.category;
1454
+ return Array.isArray(l) ? l : l ? [l] : [];
1455
+ }
1456
+ function c(l) {
1457
+ var h, T;
1458
+ if (V.value !== "none") {
1459
+ if (V.value === "single") {
1460
+ Q.value = [l], (h = m.value) == null || h.setCurrentRow(l), qe();
1461
+ return;
1462
+ }
1463
+ J(l) && ((T = m.value) == null || T.toggleRowSelection(l, !le(l)));
1464
+ }
1465
+ }
1466
+ function U(l) {
1467
+ if (V.value !== "multiple") return;
1468
+ const h = new Set(R.value.map(Y)), T = new Set(l.map(Y));
1469
+ Q.value = Q.value.filter(
1470
+ (z) => !h.has(Y(z)) || T.has(Y(z))
1471
+ ), l.forEach((z) => {
1472
+ le(z) || Q.value.push(z);
1473
+ }), qe();
1474
+ }
1475
+ function r(l) {
1476
+ var T, z;
1477
+ Q.value = Q.value.filter(
1478
+ (de) => Y(de) !== Y(l)
1479
+ );
1480
+ const h = R.value.find((de) => Y(de) === Y(l));
1481
+ h && (V.value === "multiple" ? (T = m.value) == null || T.toggleRowSelection(h, !1) : (z = m.value) == null || z.setCurrentRow()), qe();
1482
+ }
1483
+ function g() {
1484
+ ke(() => {
1485
+ var l;
1486
+ if (m.value) {
1487
+ if (V.value === "single") {
1488
+ const [h] = Q.value, T = R.value.find(
1489
+ (z) => h && Y(z) === Y(h)
1490
+ );
1491
+ (l = m.value) == null || l.setCurrentRow(T);
1492
+ return;
1493
+ }
1494
+ V.value === "multiple" && R.value.forEach((h) => {
1495
+ var T;
1496
+ (T = m.value) == null || T.toggleRowSelection(h, le(h));
1497
+ });
1498
+ }
1499
+ });
1500
+ }
1501
+ function J(l) {
1502
+ var T;
1503
+ const h = (T = M.value) == null ? void 0 : T.selectable;
1504
+ return typeof h == "function" ? h(l) !== !1 : !0;
1505
+ }
1506
+ function le(l) {
1507
+ return Q.value.some((h) => Y(h) === Y(l));
1508
+ }
1509
+ function Y(l) {
1510
+ return Se(l, X.value);
1511
+ }
1512
+ function _e(l) {
1513
+ return Se(l, ee.value) ?? Y(l);
1514
+ }
1515
+ function Se(l, h) {
1516
+ if (!(!l || !h))
1517
+ return h.split(".").reduce((T, z) => T == null ? void 0 : T[z], l);
1518
+ }
1519
+ function qe() {
1520
+ const l = ve(Q.value);
1521
+ n("selection-change", l);
1522
+ }
1523
+ function ya() {
1524
+ const l = ve(Q.value);
1525
+ n("update:modelValue", l), n("confirm", l), n("submit", { selection: l, rows: l, query: { ...K } });
1526
+ }
1527
+ function ma() {
1528
+ Q.value = ve(S.value), n("cancel"), n("close");
1529
+ }
1530
+ async function ga() {
1531
+ var h;
1532
+ const l = JSON.stringify(Q.value);
1533
+ await ((h = navigator.clipboard) == null ? void 0 : h.writeText(l)), be.success("复制成功");
1534
+ }
1535
+ function pa() {
1536
+ try {
1537
+ const l = JSON.parse(L.value);
1538
+ if (!Array.isArray(l)) {
1539
+ be.error("粘贴内容需要是数组");
1540
+ return;
1541
+ }
1542
+ l.forEach((h) => {
1543
+ le(h) || Q.value.push(h);
1544
+ }), Z.value = !1, qe(), g();
1545
+ } catch (l) {
1546
+ be.error(`粘贴错误: ${(l == null ? void 0 : l.message) || "内容格式错误"}`);
1547
+ }
1548
+ }
1549
+ function ve(l = []) {
1550
+ return l.map((h) => ({ ...h }));
1551
+ }
1552
+ i({
1553
+ search: s,
1554
+ handleSearch: H,
1555
+ handleQuerySearch: s,
1556
+ resetSearch: k,
1557
+ getTableRef: () => m.value,
1558
+ getTableData: () => R.value,
1559
+ getSelection: () => ve(Q.value)
1560
+ });
1561
+ const Ve = { props: e, emit: n, attrs: P, slots: y, instance: u, tableRef: m, tableData: R, innerSelectedRows: Q, categoryOptions: D, loading: w, total: A, pasteDialogOpen: Z, pasteText: L, queryForm: K, selectionMode: V, resolvedRowKey: X, resolvedLabelKey: ee, resolvedTypeOptions: N, resolvedTypeSelectProps: W, resolvedTableProps: M, showSearchBar: G, showAppendButton: j, showToolbar: te, fetcher: p, sourceSelectedRows: S, hasModelValueBinding: o, handleOpened: d, loadCategoryOptions: E, handleSearch: H, handleQuerySearch: s, handlePageSizeChange: q, resetSearch: k, handleAppend: I, normalizeResponse: ae, normalizeCategoryOptions: se, normalizeCategoryChildren: ne, getRequestQuery: ue, getCategoryQueryParam: me, handleRowClick: c, handleSelectionChange: U, removeSelectedRow: r, syncTableSelection: g, isRowSelectable: J, hasSelected: le, getRowKey: Y, getRowLabel: _e, getValueByPath: Se, emitDraftSelection: qe, handleConfirm: ya, handleCancel: ma, copySelection: ga, applyPastedSelection: pa, cloneRows: ve, get ElButton() {
1562
+ return we;
1563
+ }, get ElForm() {
1564
+ return Ne;
1565
+ }, get ElFormItem() {
1566
+ return je;
1567
+ }, get ElInput() {
1568
+ return Pe;
1569
+ }, get ElPagination() {
1570
+ return Pa;
1571
+ }, get ElTable() {
1572
+ return Ba;
1573
+ }, get ElTableColumn() {
1574
+ return Fa;
1575
+ }, QyDialog: xe, QySelect: Ae, QyTag: Ge, QyTreeSelect: We };
1576
+ return Object.defineProperty(Ve, "__isScriptSetup", { enumerable: !1, value: !0 }), Ve;
1577
+ }
1578
+ }), gr = { class: "qy-selection-dialog" }, pr = { class: "qy-selection-dialog__main" }, hr = {
1579
+ key: 0,
1580
+ class: "qy-selection-dialog__selected"
1581
+ }, vr = { class: "qy-selection-dialog__selected-tags" }, br = {
1582
+ key: 0,
1583
+ class: "qy-selection-dialog__selected-actions"
1584
+ }, Sr = {
1585
+ key: 1,
1586
+ class: "qy-selection-dialog__search-row"
1587
+ }, qr = {
1588
+ key: 0,
1589
+ class: "qy-selection-dialog__toolbar"
1590
+ }, Qr = {
1591
+ key: 2,
1592
+ class: "qy-selection-dialog__pagination"
1593
+ }, _r = { class: "qy-selection-dialog__paste-actions" };
1594
+ function wr(t, i, a, e, n, P) {
1595
+ const y = Ga;
1596
+ return b(), oe(e.QyDialog, {
1597
+ open: a.open,
1598
+ title: a.title,
1599
+ width: a.width,
1600
+ onOpened: e.handleOpened,
1601
+ onConfirm: e.handleConfirm,
1602
+ onCancel: e.handleCancel
1603
+ }, {
1604
+ default: v(() => [
1605
+ $("div", gr, [
1606
+ _(t.$slots, "side", {}, void 0, !0),
1607
+ $("div", pr, [
1608
+ a.showSelected ? (b(), B("div", hr, [
1609
+ i[12] || (i[12] = $(
1610
+ "span",
1611
+ { class: "qy-selection-dialog__selected-label" },
1612
+ "已选项",
1613
+ -1
1614
+ /* CACHED */
1615
+ )),
1616
+ $("div", vr, [
1617
+ (b(!0), B(
1618
+ Qe,
1619
+ null,
1620
+ Te(e.innerSelectedRows, (u) => (b(), oe(e.QyTag, {
1621
+ key: e.getRowKey(u),
1622
+ closable: "",
1623
+ class: "qy-selection-dialog__selected-tag",
1624
+ onClose: (m) => e.removeSelectedRow(u)
1625
+ }, {
1626
+ default: v(() => [
1627
+ ie(
1628
+ ce(e.getRowLabel(u)),
1629
+ 1
1630
+ /* TEXT */
1631
+ )
1632
+ ]),
1633
+ _: 2
1634
+ /* DYNAMIC */
1635
+ }, 1032, ["onClose"]))),
1636
+ 128
1637
+ /* KEYED_FRAGMENT */
1638
+ )),
1639
+ e.innerSelectedRows.length ? F("v-if", !0) : (b(), oe(e.QyTag, {
1640
+ key: 0,
1641
+ tone: "info"
1642
+ }, {
1643
+ default: v(() => [...i[9] || (i[9] = [
1644
+ ie(
1645
+ "无",
1646
+ -1
1647
+ /* CACHED */
1648
+ )
1649
+ ])]),
1650
+ _: 1
1651
+ /* STABLE */
1652
+ }))
1653
+ ]),
1654
+ a.showCopyPaste ? (b(), B("div", br, [
1655
+ O(e.ElButton, {
1656
+ size: "small",
1657
+ onClick: e.copySelection
1658
+ }, {
1659
+ default: v(() => [...i[10] || (i[10] = [
1660
+ ie(
1661
+ "复制",
1662
+ -1
1663
+ /* CACHED */
1664
+ )
1665
+ ])]),
1666
+ _: 1
1667
+ /* STABLE */
1668
+ }),
1669
+ O(e.ElButton, {
1670
+ size: "small",
1671
+ onClick: i[0] || (i[0] = (u) => e.pasteDialogOpen = !0)
1672
+ }, {
1673
+ default: v(() => [...i[11] || (i[11] = [
1674
+ ie(
1675
+ "粘贴",
1676
+ -1
1677
+ /* CACHED */
1678
+ )
1679
+ ])]),
1680
+ _: 1
1681
+ /* STABLE */
1682
+ })
1683
+ ])) : F("v-if", !0)
1684
+ ])) : F("v-if", !0),
1685
+ e.showSearchBar ? (b(), B("div", Sr, [
1686
+ O(e.ElForm, {
1687
+ class: "qy-selection-dialog__search",
1688
+ inline: "",
1689
+ model: e.queryForm
1690
+ }, {
1691
+ default: v(() => [
1692
+ _(t.$slots, "search", {
1693
+ query: e.queryForm,
1694
+ search: e.handleQuerySearch,
1695
+ reset: e.resetSearch
1696
+ }, () => [
1697
+ e.categoryOptions.length ? (b(), oe(e.ElFormItem, {
1698
+ key: 0,
1699
+ label: "分类"
1700
+ }, {
1701
+ default: v(() => [
1702
+ O(e.QyTreeSelect, {
1703
+ modelValue: e.queryForm.category,
1704
+ "onUpdate:modelValue": i[1] || (i[1] = (u) => e.queryForm.category = u),
1705
+ class: "qy-selection-dialog__category",
1706
+ options: e.categoryOptions,
1707
+ clearable: "",
1708
+ filterable: "",
1709
+ "check-strictly": "",
1710
+ "render-after-expand": !1,
1711
+ onChange: e.handleQuerySearch
1712
+ }, null, 8, ["modelValue", "options"])
1713
+ ]),
1714
+ _: 1
1715
+ /* STABLE */
1716
+ })) : F("v-if", !0),
1717
+ e.resolvedTypeOptions.length ? (b(), oe(e.ElFormItem, {
1718
+ key: 1,
1719
+ label: "类型"
1720
+ }, {
1721
+ default: v(() => [
1722
+ O(e.QySelect, fe({
1723
+ modelValue: e.queryForm.type,
1724
+ "onUpdate:modelValue": i[2] || (i[2] = (u) => e.queryForm.type = u),
1725
+ class: "qy-selection-dialog__type",
1726
+ options: e.resolvedTypeOptions,
1727
+ placeholder: "请选择类型",
1728
+ clearable: ""
1729
+ }, e.resolvedTypeSelectProps, { onChange: e.handleQuerySearch }), null, 16, ["modelValue", "options"])
1730
+ ]),
1731
+ _: 1
1732
+ /* STABLE */
1733
+ })) : F("v-if", !0),
1734
+ a.searchKey ? (b(), oe(e.ElFormItem, {
1735
+ key: 2,
1736
+ label: "搜索"
1737
+ }, {
1738
+ default: v(() => [
1739
+ O(e.ElInput, {
1740
+ modelValue: e.queryForm[a.searchKey],
1741
+ "onUpdate:modelValue": i[3] || (i[3] = (u) => e.queryForm[a.searchKey] = u),
1742
+ clearable: "",
1743
+ placeholder: "请输入",
1744
+ class: "qy-selection-dialog__search-input",
1745
+ onKeydown: Fe(Be(e.handleQuerySearch, ["prevent"]), ["enter"])
1746
+ }, null, 8, ["modelValue", "onKeydown"])
1747
+ ]),
1748
+ _: 1
1749
+ /* STABLE */
1750
+ })) : F("v-if", !0),
1751
+ O(e.ElFormItem, null, {
1752
+ default: v(() => [
1753
+ O(e.ElButton, {
1754
+ type: "primary",
1755
+ onClick: e.handleQuerySearch
1756
+ }, {
1757
+ default: v(() => [...i[13] || (i[13] = [
1758
+ ie(
1759
+ "查询",
1760
+ -1
1761
+ /* CACHED */
1762
+ )
1763
+ ])]),
1764
+ _: 1
1765
+ /* STABLE */
1766
+ }),
1767
+ O(e.ElButton, { onClick: e.resetSearch }, {
1768
+ default: v(() => [...i[14] || (i[14] = [
1769
+ ie(
1770
+ "重置",
1771
+ -1
1772
+ /* CACHED */
1773
+ )
1774
+ ])]),
1775
+ _: 1
1776
+ /* STABLE */
1777
+ })
1778
+ ]),
1779
+ _: 1
1780
+ /* STABLE */
1781
+ })
1782
+ ], !0)
1783
+ ]),
1784
+ _: 3
1785
+ /* FORWARDED */
1786
+ }, 8, ["model"]),
1787
+ e.showToolbar ? (b(), B("div", qr, [
1788
+ e.showAppendButton ? (b(), oe(e.ElButton, {
1789
+ key: 0,
1790
+ type: "primary",
1791
+ onClick: e.handleAppend
1792
+ }, {
1793
+ default: v(() => [...i[15] || (i[15] = [
1794
+ ie(
1795
+ " 新增 ",
1796
+ -1
1797
+ /* CACHED */
1798
+ )
1799
+ ])]),
1800
+ _: 1
1801
+ /* STABLE */
1802
+ })) : F("v-if", !0),
1803
+ _(t.$slots, "toolbar", {
1804
+ query: e.queryForm,
1805
+ search: e.handleQuerySearch
1806
+ }, void 0, !0),
1807
+ _(t.$slots, "bar", {
1808
+ query: e.queryForm,
1809
+ search: e.handleQuerySearch
1810
+ }, void 0, !0)
1811
+ ])) : F("v-if", !0)
1812
+ ])) : F("v-if", !0),
1813
+ Me((b(), oe(e.ElTable, fe({
1814
+ ref: "tableRef",
1815
+ data: e.tableData,
1816
+ "row-key": e.resolvedRowKey,
1817
+ border: "",
1818
+ "highlight-current-row": "",
1819
+ "max-height": "550px"
1820
+ }, e.resolvedTableProps, {
1821
+ onSelectionChange: e.handleSelectionChange,
1822
+ onRowClick: e.handleRowClick
1823
+ }), {
1824
+ default: v(() => {
1825
+ var u;
1826
+ return [
1827
+ e.selectionMode === "multiple" ? (b(), oe(e.ElTableColumn, {
1828
+ key: 0,
1829
+ type: "selection",
1830
+ "reserve-selection": "",
1831
+ width: "42",
1832
+ selectable: (u = e.resolvedTableProps) == null ? void 0 : u.selectable
1833
+ }, null, 8, ["selectable"])) : F("v-if", !0),
1834
+ _(t.$slots, "columns", {}, void 0, !0),
1835
+ _(t.$slots, "cols", {}, void 0, !0)
1836
+ ];
1837
+ }),
1838
+ _: 3
1839
+ /* FORWARDED */
1840
+ }, 16, ["data", "row-key"])), [
1841
+ [y, e.loading]
1842
+ ]),
1843
+ a.showPagination && e.total > 0 ? (b(), B("div", Qr, [
1844
+ O(e.ElPagination, {
1845
+ "current-page": e.queryForm.page,
1846
+ "onUpdate:currentPage": i[4] || (i[4] = (u) => e.queryForm.page = u),
1847
+ "page-size": e.queryForm.pageSize,
1848
+ "onUpdate:pageSize": i[5] || (i[5] = (u) => e.queryForm.pageSize = u),
1849
+ total: e.total,
1850
+ "page-sizes": a.pageSizes,
1851
+ layout: "total, sizes, prev, pager, next, jumper",
1852
+ onSizeChange: e.handlePageSizeChange,
1853
+ onCurrentChange: e.handleSearch
1854
+ }, null, 8, ["current-page", "page-size", "total", "page-sizes"])
1855
+ ])) : F("v-if", !0)
1856
+ ])
1857
+ ]),
1858
+ O(e.QyDialog, {
1859
+ open: e.pasteDialogOpen,
1860
+ title: "粘贴数据",
1861
+ "show-footer": !1,
1862
+ width: "560px",
1863
+ "onUpdate:open": i[8] || (i[8] = (u) => e.pasteDialogOpen = u)
1864
+ }, {
1865
+ default: v(() => [
1866
+ O(e.ElInput, {
1867
+ modelValue: e.pasteText,
1868
+ "onUpdate:modelValue": i[6] || (i[6] = (u) => e.pasteText = u),
1869
+ type: "textarea",
1870
+ rows: 8
1871
+ }, null, 8, ["modelValue"]),
1872
+ $("div", _r, [
1873
+ O(e.ElButton, {
1874
+ onClick: i[7] || (i[7] = (u) => e.pasteDialogOpen = !1)
1875
+ }, {
1876
+ default: v(() => [...i[16] || (i[16] = [
1877
+ ie(
1878
+ "取消",
1879
+ -1
1880
+ /* CACHED */
1881
+ )
1882
+ ])]),
1883
+ _: 1
1884
+ /* STABLE */
1885
+ }),
1886
+ O(e.ElButton, {
1887
+ type: "primary",
1888
+ onClick: e.applyPastedSelection
1889
+ }, {
1890
+ default: v(() => [...i[17] || (i[17] = [
1891
+ ie(
1892
+ "确认",
1893
+ -1
1894
+ /* CACHED */
1895
+ )
1896
+ ])]),
1897
+ _: 1
1898
+ /* STABLE */
1899
+ })
1900
+ ])
1901
+ ]),
1902
+ _: 1
1903
+ /* STABLE */
1904
+ }, 8, ["open"])
1905
+ ]),
1906
+ _: 3
1907
+ /* FORWARDED */
1908
+ }, 8, ["open", "title", "width"]);
1909
+ }
1910
+ const Xe = /* @__PURE__ */ ye(mr, [["render", wr], ["__scopeId", "data-v-58940077"], ["__file", "C:/Users/wzqy/.codex/worktrees/62ec/qy-components/packages/ui/lib/qy-selection-dialog/index.vue"]]), Cr = /* @__PURE__ */ he({
1911
+ name: "QyLegacySelectionDialog",
1912
+ inheritAttrs: !1,
1913
+ __name: "index",
1914
+ props: {
1915
+ open: { type: Boolean, required: !1, default: !0 },
1916
+ title: { type: String, required: !1, default: "选择数据" },
1917
+ width: { type: [String, Number], required: !1, default: "1200px" },
1918
+ query: { type: Function, required: !1, default: void 0 },
1919
+ responseFormatter: { type: Function, required: !1, default: void 0 },
1920
+ selection: { type: String, required: !1, default: "single" },
1921
+ selected: { type: Array, required: !1, default: () => [] },
1922
+ mainKey: { type: String, required: !1, default: "" },
1923
+ tagName: { type: String, required: !1, default: "" },
1924
+ searchKey: { type: [String, null], required: !1, default: "conditions" },
1925
+ queryParams: { type: Object, required: !1, default: () => ({}) },
1926
+ category: { type: [Array, Function, Boolean], required: !1, default: !1 },
1927
+ categoryFormatter: { type: [Function, Array], required: !1, default: void 0 },
1928
+ type: { type: [Array, Boolean], required: !1, default: !1 },
1929
+ typeSelectionProps: { type: Object, required: !1, default: () => ({}) },
1930
+ tableProps: { type: Object, required: !1, default: () => ({}) },
1931
+ append: { type: Boolean, required: !1, default: !1 },
1932
+ delete: { type: Boolean, required: !1, default: !1 },
1933
+ select: { type: [Object, null], required: !1, default: null }
1934
+ },
1935
+ emits: ["close", "submit", "openDialog", "changeIndexShow"],
1936
+ setup(t, { expose: i, emit: a }) {
1937
+ const e = t, n = a, P = pe(), y = x(null), u = Ce({
1938
+ category: [],
1939
+ code: "",
1940
+ ...e.searchKey ? { [e.searchKey]: "" } : {},
1941
+ page: 1,
1942
+ pageSize: 10,
1943
+ type: "",
1944
+ ...e.queryParams
1945
+ }), m = Ce({
1946
+ total: 0,
1947
+ tableData: [],
1948
+ open: !1,
1949
+ selection: [],
1950
+ categories: [],
1951
+ types: [],
1952
+ tableRef: null,
1953
+ drag: !1,
1954
+ dialogOpen: !1,
1955
+ pasteData: "",
1956
+ pasteDataDialog: !1
1957
+ }), R = C(() => e.type || []), Q = C(() => m.categories), D = async (s) => {
1958
+ if (!e.query) return { data: { records: [], total: 0 } };
1959
+ const q = await e.query(W(s)), k = e.responseFormatter ? await e.responseFormatter(q) : q;
1960
+ return m.total = d(k), k;
1961
+ };
1962
+ re(
1963
+ () => e.open,
1964
+ (s) => {
1965
+ m.open = s;
1966
+ },
1967
+ { immediate: !0 }
1968
+ ), re(
1969
+ R,
1970
+ (s) => {
1971
+ m.types = [...s];
1972
+ },
1973
+ { immediate: !0, deep: !0 }
1974
+ ), re(
1975
+ [() => e.selected, () => e.open],
1976
+ () => {
1977
+ e.open && (m.selection = E(e.selected));
1978
+ },
1979
+ { immediate: !0, deep: !0 }
1980
+ ), re(
1981
+ () => e.queryParams,
1982
+ () => {
1983
+ Object.assign(u, e.queryParams);
1984
+ },
1985
+ { deep: !0 }
1986
+ ), re(
1987
+ () => m.pasteDataDialog,
1988
+ (s) => {
1989
+ s || (m.pasteData = "");
1990
+ }
1991
+ ), re(
1992
+ () => e.select,
1993
+ async () => {
1994
+ e.select && await N(e.select);
1995
+ },
1996
+ { deep: !0 }
1997
+ ), re(
1998
+ () => e.open,
1999
+ async (s) => {
2000
+ s && (m.dialogOpen = !1, await w());
2001
+ },
2002
+ { immediate: !0 }
2003
+ );
2004
+ async function w() {
2005
+ if (!e.category) {
2006
+ m.categories = [];
2007
+ return;
2008
+ }
2009
+ const s = typeof e.category == "function" ? await e.category() : e.category;
2010
+ m.categories = te(s);
2011
+ }
2012
+ async function A() {
2013
+ var s;
2014
+ return await ke(), (s = y.value) == null ? void 0 : s.handleQuerySearch();
2015
+ }
2016
+ function Z(s) {
2017
+ m.selection = E(s);
2018
+ }
2019
+ function L(s) {
2020
+ var q;
2021
+ m.tableData = s, m.tableRef = (q = y.value) == null ? void 0 : q.getTableRef();
2022
+ }
2023
+ function K(s) {
2024
+ m.selection = E(s), n("submit", m);
2025
+ }
2026
+ function V() {
2027
+ n("close");
2028
+ }
2029
+ function X() {
2030
+ m.dialogOpen = !0, n("openDialog");
2031
+ }
2032
+ function ee(s) {
2033
+ n("changeIndexShow", s);
2034
+ }
2035
+ async function N(s) {
2036
+ if (!e.query || !e.searchKey || !e.mainKey) return;
2037
+ const q = await e.query({
2038
+ ...u,
2039
+ [e.searchKey]: s[e.mainKey],
2040
+ category: []
2041
+ }), k = e.responseFormatter ? await e.responseFormatter(q) : q, [I] = o(k);
2042
+ I && (e.selection === "multi" ? (m.selection = m.selection.filter(
2043
+ (ae) => ae[e.mainKey] !== I[e.mainKey]
2044
+ ), m.selection.push(I)) : m.selection = [I]);
2045
+ }
2046
+ function W(s = {}) {
2047
+ u.page = s.page ?? u.page, u.pageSize = s.pageSize ?? u.pageSize;
2048
+ const q = {
2049
+ ...u,
2050
+ category: M()
2051
+ };
2052
+ return e.searchKey && (q[e.searchKey] = String(q[e.searchKey] || "").trim()), q;
2053
+ }
2054
+ function M() {
2055
+ if (e.queryParams.category)
2056
+ return e.queryParams.category;
2057
+ const s = u.category;
2058
+ if (Array.isArray(s)) return s;
2059
+ if (!s) return [];
2060
+ const q = G(m.categories, s);
2061
+ return q ? j(q) : [s];
2062
+ }
2063
+ function G(s, q) {
2064
+ for (const k of s || []) {
2065
+ if (k.value === q) return k;
2066
+ const I = G(k.children || [], q);
2067
+ if (I) return I;
2068
+ }
2069
+ }
2070
+ function j(s) {
2071
+ return [s.value, ...(s.children || []).flatMap(j)];
2072
+ }
2073
+ function te(s) {
2074
+ const q = (s == null ? void 0 : s.data) ?? s;
2075
+ if (!Array.isArray(q)) return [];
2076
+ if (typeof e.categoryFormatter == "function")
2077
+ return e.categoryFormatter(q);
2078
+ if (Array.isArray(e.categoryFormatter)) {
2079
+ const [k, I] = e.categoryFormatter;
2080
+ return S(p(q, I), k, I);
2081
+ }
2082
+ return q;
2083
+ }
2084
+ function p(s, q) {
2085
+ const k = s.map((ae) => ({ ...ae })), I = [];
2086
+ return k.forEach((ae) => {
2087
+ const se = ae.parentCateCode;
2088
+ if (!se) {
2089
+ I.push(ae);
2090
+ return;
2091
+ }
2092
+ const ne = k.find((ue) => ue[q] === se);
2093
+ ne ? (ne.children || (ne.children = [])).push(ae) : I.push(ae);
2094
+ }), I;
2095
+ }
2096
+ function S(s, q, k) {
2097
+ return s.map((I) => ({
2098
+ ...I,
2099
+ label: I[q],
2100
+ value: I[k],
2101
+ children: Array.isArray(I.children) ? S(I.children, q, k) : I.children
2102
+ }));
2103
+ }
2104
+ function o(s) {
2105
+ if (Array.isArray(s)) return s;
2106
+ const q = s == null ? void 0 : s.data;
2107
+ return Array.isArray(q) ? q : (s == null ? void 0 : s.records) || (s == null ? void 0 : s.rows) || (q == null ? void 0 : q.records) || [];
2108
+ }
2109
+ function d(s) {
2110
+ if (Array.isArray(s)) return s.length;
2111
+ const q = o(s), k = s == null ? void 0 : s.data;
2112
+ return (s == null ? void 0 : s.total) ?? (Array.isArray(k) ? k.length : k == null ? void 0 : k.total) ?? q.length;
2113
+ }
2114
+ function E(s = []) {
2115
+ return s.map((q) => ({ ...q }));
2116
+ }
2117
+ i({
2118
+ search: A,
2119
+ handleSearch: A,
2120
+ handleConditionChange: A,
2121
+ getTableRef: () => m.tableRef,
2122
+ getTableData: () => m.tableData,
2123
+ getSelection: () => E(m.selection)
2124
+ });
2125
+ const H = { props: e, emit: n, attrs: P, selectionDialogRef: y, queryForm: u, state: m, resolvedTypeOptions: R, categoryOptions: Q, legacyQuery: D, loadCategoryOptions: w, handleConditionChange: A, handleSelectionChange: Z, handleLoaded: L, handleConfirm: K, handleCancel: V, openDialog: X, handleChangeIndexShow: ee, selectByLegacyValue: N, buildRequestQuery: W, getCategoryQueryParam: M, findCategory: G, collectCategoryValues: j, normalizeCategoryOptions: te, arrayToTree: p, addTreeSelectFields: S, normalizeRows: o, normalizeTotal: d, cloneRows: E, get ElButton() {
2126
+ return we;
2127
+ }, get ElForm() {
2128
+ return Ne;
2129
+ }, get ElFormItem() {
2130
+ return je;
2131
+ }, get ElInput() {
2132
+ return Pe;
2133
+ }, get ElOption() {
2134
+ return Le;
2135
+ }, get ElSelect() {
2136
+ return Ue;
2137
+ }, get ElTreeSelect() {
2138
+ return Aa;
2139
+ }, QySelectionDialog: Xe };
2140
+ return Object.defineProperty(H, "__isScriptSetup", { enumerable: !1, value: !0 }), H;
2141
+ }
2142
+ });
2143
+ function kr(t, i, a, e, n, P) {
2144
+ return b(), B(
2145
+ Qe,
2146
+ null,
2147
+ [
2148
+ O(e.QySelectionDialog, fe({ ref: "selectionDialogRef" }, e.attrs, {
2149
+ modelValue: e.state.selection,
2150
+ "onUpdate:modelValue": i[3] || (i[3] = (y) => e.state.selection = y),
2151
+ open: a.open,
2152
+ title: a.title,
2153
+ width: a.width,
2154
+ query: e.legacyQuery,
2155
+ "response-formatter": a.responseFormatter,
2156
+ selection: a.selection,
2157
+ "row-key": a.mainKey,
2158
+ "label-key": a.tagName,
2159
+ "search-key": a.searchKey,
2160
+ "query-params": {},
2161
+ "category-options": e.categoryOptions,
2162
+ "type-options": e.resolvedTypeOptions,
2163
+ "type-select-props": a.typeSelectionProps,
2164
+ "table-props": a.tableProps,
2165
+ "show-copy-paste": !0,
2166
+ "show-append": a.append,
2167
+ onSelectionChange: e.handleSelectionChange,
2168
+ onConfirm: e.handleConfirm,
2169
+ onCancel: e.handleCancel,
2170
+ onAppend: e.openDialog,
2171
+ onLoaded: e.handleLoaded
2172
+ }), {
2173
+ side: v(() => [
2174
+ _(t.$slots, "side", {
2175
+ state: e.state,
2176
+ cate: e.state.categories,
2177
+ form: e.queryForm,
2178
+ query: e.queryForm,
2179
+ getData: e.handleConditionChange,
2180
+ search: e.handleConditionChange,
2181
+ changeIndexShow: e.handleChangeIndexShow
2182
+ }, void 0, !0)
2183
+ ]),
2184
+ search: v(() => [
2185
+ O(e.ElForm, {
2186
+ inline: "",
2187
+ model: e.queryForm
2188
+ }, {
2189
+ default: v(() => [
2190
+ e.state.categories.length ? (b(), oe(e.ElFormItem, {
2191
+ key: 0,
2192
+ label: "分类"
2193
+ }, {
2194
+ default: v(() => [
2195
+ O(e.ElTreeSelect, {
2196
+ modelValue: e.queryForm.category,
2197
+ "onUpdate:modelValue": i[0] || (i[0] = (y) => e.queryForm.category = y),
2198
+ class: "qy-legacy-selection-dialog__category",
2199
+ data: e.state.categories,
2200
+ clearable: "",
2201
+ filterable: "",
2202
+ "check-strictly": "",
2203
+ "render-after-expand": !1,
2204
+ onChange: e.handleConditionChange
2205
+ }, null, 8, ["modelValue", "data"])
2206
+ ]),
2207
+ _: 1
2208
+ /* STABLE */
2209
+ })) : F("v-if", !0),
2210
+ e.resolvedTypeOptions.length ? (b(), oe(e.ElFormItem, {
2211
+ key: 1,
2212
+ label: "类型"
2213
+ }, {
2214
+ default: v(() => [
2215
+ O(e.ElSelect, fe({
2216
+ modelValue: e.queryForm.type,
2217
+ "onUpdate:modelValue": i[1] || (i[1] = (y) => e.queryForm.type = y),
2218
+ clearable: ""
2219
+ }, a.typeSelectionProps, { onChange: e.handleConditionChange }), {
2220
+ default: v(() => [
2221
+ (b(!0), B(
2222
+ Qe,
2223
+ null,
2224
+ Te(e.resolvedTypeOptions, (y) => (b(), oe(e.ElOption, {
2225
+ key: y.value,
2226
+ label: y.label,
2227
+ value: y.value
2228
+ }, null, 8, ["label", "value"]))),
2229
+ 128
2230
+ /* KEYED_FRAGMENT */
2231
+ ))
2232
+ ]),
2233
+ _: 1
2234
+ /* STABLE */
2235
+ }, 16, ["modelValue"])
2236
+ ]),
2237
+ _: 1
2238
+ /* STABLE */
2239
+ })) : F("v-if", !0),
2240
+ a.searchKey ? (b(), oe(e.ElFormItem, {
2241
+ key: 2,
2242
+ label: "搜索"
2243
+ }, {
2244
+ default: v(() => [
2245
+ O(e.ElInput, {
2246
+ modelValue: e.queryForm[a.searchKey],
2247
+ "onUpdate:modelValue": i[2] || (i[2] = (y) => e.queryForm[a.searchKey] = y),
2248
+ clearable: "",
2249
+ class: "qy-legacy-selection-dialog__search-input",
2250
+ onKeydown: Fe(Be(e.handleConditionChange, ["prevent"]), ["enter"])
2251
+ }, null, 8, ["modelValue", "onKeydown"])
2252
+ ]),
2253
+ _: 1
2254
+ /* STABLE */
2255
+ })) : F("v-if", !0),
2256
+ O(e.ElFormItem, null, {
2257
+ default: v(() => [
2258
+ O(e.ElButton, {
2259
+ type: "primary",
2260
+ onClick: e.handleConditionChange
2261
+ }, {
2262
+ default: v(() => [...i[4] || (i[4] = [
2263
+ ie(
2264
+ "查询",
2265
+ -1
2266
+ /* CACHED */
2267
+ )
2268
+ ])]),
2269
+ _: 1
2270
+ /* STABLE */
2271
+ })
2272
+ ]),
2273
+ _: 1
2274
+ /* STABLE */
2275
+ })
2276
+ ]),
2277
+ _: 1
2278
+ /* STABLE */
2279
+ }, 8, ["model"])
2280
+ ]),
2281
+ toolbar: v(() => [
2282
+ _(t.$slots, "bar", {
2283
+ query: e.queryForm,
2284
+ search: e.handleConditionChange
2285
+ }, void 0, !0)
2286
+ ]),
2287
+ columns: v(() => [
2288
+ _(t.$slots, "cols", {}, void 0, !0),
2289
+ _(t.$slots, "columns", {}, void 0, !0)
2290
+ ]),
2291
+ _: 3
2292
+ /* FORWARDED */
2293
+ }, 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"]),
2294
+ _(t.$slots, "dialog", {
2295
+ state: e.state,
2296
+ form: e.queryForm,
2297
+ getData: e.handleConditionChange
2298
+ }, void 0, !0)
2299
+ ],
2300
+ 64
2301
+ /* STABLE_FRAGMENT */
2302
+ );
2303
+ }
2304
+ const Tr = /* @__PURE__ */ ye(Cr, [["render", kr], ["__scopeId", "data-v-e4bb0886"], ["__file", "C:/Users/wzqy/.codex/worktrees/62ec/qy-components/packages/ui/lib/qy-legacy-selection-dialog/index.vue"]]), Ir = /* @__PURE__ */ he({
2305
+ name: "QyFormSection",
2306
+ __name: "index",
2307
+ props: {
2308
+ title: { type: String, required: !1, default: "" },
2309
+ description: { type: String, required: !1, default: "" },
2310
+ tip: { type: String, required: !1, default: "" },
2311
+ tipType: { type: String, required: !1, default: "info" },
2312
+ collapsible: { type: Boolean, required: !1, default: !1 },
2313
+ defaultExpanded: { type: Boolean, required: !1, default: !0 },
2314
+ bordered: { type: Boolean, required: !1, default: !0 },
2315
+ background: { type: String, required: !1, default: "white" },
2316
+ bodyClass: { type: String, required: !1, default: "" },
2317
+ headerClass: { type: String, required: !1, default: "" }
2318
+ },
2319
+ emits: ["toggle"],
2320
+ setup(t, { expose: i, emit: a }) {
2321
+ i();
2322
+ const e = t, n = a, P = x(e.defaultExpanded);
2323
+ re(
2324
+ () => e.defaultExpanded,
2325
+ (R) => {
2326
+ P.value = R;
2327
+ }
2328
+ );
2329
+ function y() {
2330
+ e.collapsible && (P.value = !P.value, n("toggle", P.value));
2331
+ }
2332
+ function u() {
2333
+ e.collapsible && y();
2334
+ }
2335
+ const m = { props: e, emit: n, expanded: P, toggleExpanded: y, handleHeaderClick: u };
2336
+ return Object.defineProperty(m, "__isScriptSetup", { enumerable: !1, value: !0 }), m;
2337
+ }
2338
+ }), Fr = { class: "qy-form-section__heading" }, Br = {
2339
+ key: 0,
2340
+ class: "qy-form-section__title"
2341
+ }, Pr = {
2342
+ key: 0,
2343
+ class: "qy-form-section__description"
2344
+ }, Ar = { class: "qy-form-section__actions" };
2345
+ function Vr(t, i, a, e, n, P) {
2346
+ return b(), B(
2347
+ "section",
2348
+ {
2349
+ class: ge(["qy-form-section", [
2350
+ `is-bg-${a.background}`,
2351
+ {
2352
+ "is-bordered": a.bordered,
2353
+ "is-collapsible": a.collapsible
2354
+ }
2355
+ ]])
2356
+ },
2357
+ [
2358
+ $(
2359
+ "header",
2360
+ {
2361
+ class: ge(["qy-form-section__header", a.headerClass]),
2362
+ onClick: e.handleHeaderClick
2363
+ },
2364
+ [
2365
+ $("div", Fr, [
2366
+ _(t.$slots, "title", {}, () => [
2367
+ a.title ? (b(), B(
2368
+ "div",
2369
+ Br,
2370
+ ce(a.title),
2371
+ 1
2372
+ /* TEXT */
2373
+ )) : F("v-if", !0)
2374
+ ], !0),
2375
+ _(t.$slots, "description", {}, () => [
2376
+ a.description ? (b(), B(
2377
+ "div",
2378
+ Pr,
2379
+ ce(a.description),
2380
+ 1
2381
+ /* TEXT */
2382
+ )) : F("v-if", !0)
2383
+ ], !0)
2384
+ ]),
2385
+ $("div", Ar, [
2386
+ _(t.$slots, "actions", {}, void 0, !0),
2387
+ a.collapsible ? (b(), B(
2388
+ "button",
2389
+ {
2390
+ key: 0,
2391
+ type: "button",
2392
+ class: "qy-form-section__toggle",
2393
+ onClick: Be(e.toggleExpanded, ["stop"])
2394
+ },
2395
+ ce(e.expanded ? "收起" : "展开"),
2396
+ 1
2397
+ /* TEXT */
2398
+ )) : F("v-if", !0)
2399
+ ])
2400
+ ],
2401
+ 2
2402
+ /* CLASS */
2403
+ ),
2404
+ Me($(
2405
+ "div",
2406
+ {
2407
+ class: ge(["qy-form-section__body", a.bodyClass])
2408
+ },
2409
+ [
2410
+ _(t.$slots, "tip", {}, () => [
2411
+ a.tip ? (b(), B(
2412
+ "div",
2413
+ {
2414
+ key: 0,
2415
+ class: ge(["qy-form-section__tip", `is-${a.tipType}`])
2416
+ },
2417
+ ce(a.tip),
2418
+ 3
2419
+ /* TEXT, CLASS */
2420
+ )) : F("v-if", !0)
2421
+ ], !0),
2422
+ _(t.$slots, "default", {}, void 0, !0)
2423
+ ],
2424
+ 2
2425
+ /* CLASS */
2426
+ ), [
2427
+ [Ca, e.expanded]
2428
+ ])
2429
+ ],
2430
+ 2
2431
+ /* CLASS */
2432
+ );
2433
+ }
2434
+ const Er = /* @__PURE__ */ ye(Ir, [["render", Vr], ["__scopeId", "data-v-b1a327a2"], ["__file", "C:/Users/wzqy/.codex/worktrees/62ec/qy-components/packages/ui/lib/qy-form-section/index.vue"]]), Or = /* @__PURE__ */ he({
2435
+ name: "QyActionBar",
2436
+ __name: "index",
2437
+ props: {
2438
+ sticky: { type: Boolean, required: !1, default: !0 },
2439
+ offsetBottom: { type: Number, required: !1, default: 0 },
2440
+ bordered: { type: Boolean, required: !1, default: !0 },
2441
+ shadow: { type: Boolean, required: !1, default: !1 },
2442
+ wrap: { type: Boolean, required: !1, default: !0 },
2443
+ justify: { type: String, required: !1, default: "between" },
2444
+ background: { type: String, required: !1, default: "#fff" }
2445
+ },
2446
+ setup(t, { expose: i }) {
2447
+ i();
2448
+ const a = t, e = C(() => ({
2449
+ // offsetBottom 只负责业务偏移,安全区补偿由 CSS padding 处理。
2450
+ bottom: `${a.offsetBottom}px`,
2451
+ background: a.background
2452
+ })), n = { props: a, barStyle: e };
2453
+ return Object.defineProperty(n, "__isScriptSetup", { enumerable: !1, value: !0 }), n;
2454
+ }
2455
+ }), xr = {
2456
+ key: 0,
2457
+ class: "qy-action-bar__left"
2458
+ }, Rr = {
2459
+ key: 1,
2460
+ class: "qy-action-bar__center"
2461
+ }, Dr = {
2462
+ key: 2,
2463
+ class: "qy-action-bar__right"
2464
+ };
2465
+ function zr(t, i, a, e, n, P) {
2466
+ return b(), B(
2467
+ "div",
2468
+ {
2469
+ class: ge(["qy-action-bar", [
2470
+ `is-justify-${a.justify}`,
2471
+ {
2472
+ "is-sticky": a.sticky,
2473
+ "is-bordered": a.bordered,
2474
+ "is-shadow": a.shadow,
2475
+ "is-wrap": a.wrap
2476
+ }
2477
+ ]]),
2478
+ style: De(e.barStyle)
2479
+ },
2480
+ [
2481
+ t.$slots.left ? (b(), B("div", xr, [
2482
+ _(t.$slots, "left", {}, void 0, !0)
2483
+ ])) : F("v-if", !0),
2484
+ t.$slots.default ? (b(), B("div", Rr, [
2485
+ _(t.$slots, "default", {}, void 0, !0)
2486
+ ])) : F("v-if", !0),
2487
+ t.$slots.right ? (b(), B("div", Dr, [
2488
+ _(t.$slots, "right", {}, void 0, !0)
2489
+ ])) : F("v-if", !0)
2490
+ ],
2491
+ 6
2492
+ /* CLASS, STYLE */
2493
+ );
2494
+ }
2495
+ const Kr = /* @__PURE__ */ ye(Or, [["render", zr], ["__scopeId", "data-v-1efb467b"], ["__file", "C:/Users/wzqy/.codex/worktrees/62ec/qy-components/packages/ui/lib/qy-action-bar/index.vue"]]), Ye = f(Re, "QyUpload"), $e = f(va, "QyImage"), et = f(ba, "QyImagePreview"), tt = f(zo, "QyImageUpload"), at = f(xe, "QyDialog"), ot = f(Yo, "QyRemarkImage"), rt = f(Va, "QyButton"), lt = f(Ea, "QyDropdown"), nt = f(Oa, "QyInput"), it = f(xa, "QyInputTag"), st = f(Ra, "QyInputNumber"), ut = f(Da, "QyMoneyInput"), dt = f(za, "QyDatePicker"), ct = f(Ka, "QyCheckbox"), ft = f(Ma, "QyCheckboxGroup"), yt = f(Ua, "QyRadio"), mt = f(La, "QyAutocomplete"), gt = f(ja, "QyMenuActions"), pt = f(
2496
+ Na,
2497
+ "QyTableColumnSettings"
2498
+ ), ht = f(Wa, "QyRadioGroup"), vt = f(tr, "QyRemoteSelect"), bt = f(Ze, "QySearchInput"), St = f(
2499
+ yr,
2500
+ "QyRecordQuoteSearch"
2501
+ ), qt = f(Ae, "QySelect"), Qt = f(We, "QyTreeSelect"), _t = f(Xe, "QySelectionDialog"), wt = f(
2502
+ Tr,
2503
+ "QyLegacySelectionDialog"
2504
+ ), Ct = f(Er, "QyFormSection"), kt = f(Kr, "QyActionBar"), Tt = f(Ha, "QyFilePicker"), It = f(Ja, "QySwitch"), Ft = f(Ge, "QyTag"), Bt = f(Za, "QyBadge"), Pt = f(Xa, "QyCascader"), At = f(Ya, "QyTooltip"), Vt = f($a, "QyPopover"), Et = f(eo, "QyPopconfirm"), Ot = f(to, "QySkeleton"), xt = f(ao, "QySkeletonItem"), Rt = f(oo, "QyTabs"), Dt = f(ro, "QyTabPane"), zt = f(lo, "QySteps"), Kt = f(no, "QyStep"), Mt = f(io, "QyFullscreen"), Ut = f(co, "QyRow"), Lt = f(fo, "QyCol"), jt = f(yo, "QyContainer"), Nt = f(mo, "QyAside"), Wt = f(go, "QyMain"), Gt = f(po, "QyDescriptions"), Ht = f(ho, "QyDescriptionsItem"), Jt = f(vo, "QyCollapse"), Zt = f(bo, "QyCollapseItem"), Xt = f(So, "QyLink"), Yt = f(qo, "QyIframe"), $t = f(Qo, "QyDivider"), ea = f(_o, "QyEmpty"), ta = f(wo, "QyAlert"), aa = f(Co, "QyCard"), oa = f(ko, "QyResult"), ra = f(To, "QyWatermark"), la = f(Io, "QyScrollbar"), na = f(Fo, "QyProgress"), ia = f(Bo, "QyStatistic"), sa = f(Po, "QyAvatar"), ua = f(Ao, "QyTree"), da = f(so, "QyIconPicker"), ca = f(uo, "QyColorPicker"), fa = f(Eo, "QyDrawer"), Mr = (t) => {
2505
+ Je.install(t), t.component("QyDialog", at), t.component("QyDrawer", fa), t.component("QyUpload", Ye), t.component("QyImage", $e), t.component("QyImagePreview", et), t.component("QyImageUpload", tt), t.component("QyRemarkImage", ot), t.component("QyButton", rt), t.component("QyDropdown", lt), t.component("QyInput", nt), t.component("QyInputTag", it), t.component("QyInputNumber", st), t.component("QyMoneyInput", ut), t.component("QyDatePicker", dt), t.component("QyCheckbox", ct), t.component("QyCheckboxGroup", ft), t.component("QyRadio", yt), t.component("QyAutocomplete", mt), t.component("QyMenuActions", gt), t.component("QyTableColumnSettings", pt), t.component("QyRadioGroup", ht), t.component("QyRemoteSelect", vt), t.component("QySearchInput", bt), t.component("QyRecordQuoteSearch", St), t.component("QySelect", qt), t.component("QyTreeSelect", Qt), t.component("QySelectionDialog", _t), t.component("QyLegacySelectionDialog", wt), t.component("QyFormSection", Ct), t.component("QyActionBar", kt), t.component("QyFilePicker", Tt), t.component("QySwitch", It), t.component("QyTag", Ft), t.component("QyBadge", Bt), t.component("QyCascader", Pt), t.component("QyTooltip", At), t.component("QyPopover", Vt), t.component("QyPopconfirm", Et), t.component("QySkeleton", Ot), t.component("QySkeletonItem", xt), t.component("QyTabs", Rt), t.component("QyTabPane", Dt), t.component("QySteps", zt), t.component("QyStep", Kt), t.component("QyFullscreen", Mt), t.component("QyIcon", He), t.component("QyIconPicker", da), t.component("QyColorPicker", ca), t.component("QyRow", Ut), t.component("QyCol", Lt), t.component("QyContainer", jt), t.component("QyAside", Nt), t.component("QyMain", Wt), t.component("QyDescriptions", Gt), t.component("QyDescriptionsItem", Ht), t.component("QyCollapse", Jt), t.component("QyCollapseItem", Zt), t.component("QyLink", Xt), t.component("QyIframe", Yt), t.component("QyDivider", $t), t.component("QyEmpty", ea), t.component("QyAlert", ta), t.component("QyCard", aa), t.component("QyResult", oa), t.component("QyWatermark", ra), t.component("QyScrollbar", la), t.component("QyProgress", na), t.component("QyStatistic", ia), t.component("QyAvatar", sa), t.component("QyTree", ua);
2506
+ }, on = {
2507
+ install: Mr,
2508
+ QyUpload: Ye,
2509
+ QyImage: $e,
2510
+ QyImagePreview: et,
2511
+ openQyImagePreview: Oo,
2512
+ QyImageUpload: tt,
2513
+ QyDialog: at,
2514
+ QyButton: rt,
2515
+ QyDropdown: lt,
2516
+ QyInput: nt,
2517
+ QyInputTag: it,
2518
+ QyInputNumber: st,
2519
+ QyMoneyInput: ut,
2520
+ QyDatePicker: dt,
2521
+ QyCheckbox: ct,
2522
+ QyCheckboxGroup: ft,
2523
+ QyRadio: yt,
2524
+ QyAutocomplete: mt,
2525
+ QyMenuActions: gt,
2526
+ QyTableColumnSettings: pt,
2527
+ QyRadioGroup: ht,
2528
+ QyRemoteSelect: vt,
2529
+ QySearchInput: bt,
2530
+ QyRecordQuoteSearch: St,
2531
+ QySelect: qt,
2532
+ QyTreeSelect: Qt,
2533
+ QySelectionDialog: _t,
2534
+ QyLegacySelectionDialog: wt,
2535
+ QyFormSection: Ct,
2536
+ QyActionBar: kt,
2537
+ QyFilePicker: Tt,
2538
+ QySwitch: It,
2539
+ QyTag: Ft,
2540
+ QyBadge: Bt,
2541
+ QyCascader: Pt,
2542
+ QyTooltip: At,
2543
+ QyPopover: Vt,
2544
+ QyPopconfirm: Et,
2545
+ QySkeleton: Ot,
2546
+ QySkeletonItem: xt,
2547
+ QyTabs: Rt,
2548
+ QyTabPane: Dt,
2549
+ QySteps: zt,
2550
+ QyStep: Kt,
2551
+ QyFullscreen: Mt,
2552
+ QyDrawer: fa,
2553
+ QyIcon: He,
2554
+ QyIconPicker: da,
2555
+ QyColorPicker: ca,
2556
+ QyRow: Ut,
2557
+ QyCol: Lt,
2558
+ QyContainer: jt,
2559
+ QyAside: Nt,
2560
+ QyMain: Wt,
2561
+ QyDescriptions: Gt,
2562
+ QyDescriptionsItem: Ht,
2563
+ QyCollapse: Jt,
2564
+ QyCollapseItem: Zt,
2565
+ QyLink: Xt,
2566
+ QyIframe: Yt,
2567
+ QyDivider: $t,
2568
+ QyEmpty: ea,
2569
+ QyAlert: ta,
2570
+ QyCard: aa,
2571
+ QyResult: oa,
2572
+ QyWatermark: ra,
2573
+ QyScrollbar: la,
2574
+ QyProgress: na,
2575
+ QyStatistic: ia,
2576
+ QyAvatar: sa,
2577
+ QyTree: ua,
2578
+ QyRemarkImage: ot,
2579
+ QyLoading: Je,
2580
+ vQyLoading: Vo,
2581
+ openQyLoading: xo
2582
+ };
2583
+ export {
2584
+ _t as $,
2585
+ da as A,
2586
+ Yt as B,
2587
+ $e as C,
2588
+ et as D,
2589
+ tt as E,
2590
+ nt as F,
2591
+ st as G,
2592
+ it as H,
2593
+ wt as I,
2594
+ Xt as J,
2595
+ Wt as K,
2596
+ gt as L,
2597
+ ut as M,
2598
+ Et as N,
2599
+ Vt as O,
2600
+ na as P,
2601
+ kt as Q,
2602
+ yt as R,
2603
+ ht as S,
2604
+ St as T,
2605
+ ot as U,
2606
+ vt as V,
2607
+ oa as W,
2608
+ Ut as X,
2609
+ la as Y,
2610
+ bt as Z,
2611
+ qt as _,
2612
+ ta as a,
2613
+ Ot as a0,
2614
+ xt as a1,
2615
+ ia as a2,
2616
+ Kt as a3,
2617
+ zt as a4,
2618
+ It as a5,
2619
+ Dt as a6,
2620
+ pt as a7,
2621
+ Rt as a8,
2622
+ Ft as a9,
2623
+ At as aa,
2624
+ ua as ab,
2625
+ Qt as ac,
2626
+ Ye as ad,
2627
+ ra as ae,
2628
+ on as af,
2629
+ Ko as ag,
2630
+ Ee as ah,
2631
+ Oe as ai,
2632
+ Nt as b,
2633
+ mt as c,
2634
+ sa as d,
2635
+ Bt as e,
2636
+ rt as f,
2637
+ aa as g,
2638
+ Pt as h,
2639
+ ct as i,
2640
+ ft as j,
2641
+ Lt as k,
2642
+ Jt as l,
2643
+ Zt as m,
2644
+ ca as n,
2645
+ jt as o,
2646
+ dt as p,
2647
+ Gt as q,
2648
+ Ht as r,
2649
+ at as s,
2650
+ $t as t,
2651
+ fa as u,
2652
+ lt as v,
2653
+ ea as w,
2654
+ Tt as x,
2655
+ Ct as y,
2656
+ Mt as z
2657
+ };