@qynpm/ui 1.0.33 → 1.0.35

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 (191) hide show
  1. package/README.md +88 -5
  2. package/dist/index.cjs +7 -4
  3. package/dist/index.mjs +79 -72
  4. package/dist/qy-action-bar/index.cjs +1 -1
  5. package/dist/qy-action-bar/index.mjs +1 -1
  6. package/dist/qy-button/index.cjs +1 -1
  7. package/dist/qy-button/index.mjs +1 -1
  8. package/dist/qy-checkbox/index.cjs +1 -1
  9. package/dist/qy-checkbox/index.mjs +1 -1
  10. package/dist/qy-checkbox-group/index.cjs +1 -1
  11. package/dist/qy-checkbox-group/index.mjs +1 -1
  12. package/dist/qy-collapse/index.cjs +1 -1
  13. package/dist/qy-collapse/index.mjs +1 -1
  14. package/dist/qy-color-picker/index.cjs +1 -0
  15. package/dist/qy-color-picker/index.mjs +7 -0
  16. package/dist/qy-dialog/index.cjs +1 -1
  17. package/dist/qy-dialog/index.mjs +2 -2
  18. package/dist/qy-drawer/index.cjs +1 -1
  19. package/dist/qy-drawer/index.mjs +1 -1
  20. package/dist/qy-dropdown/index.cjs +1 -1
  21. package/dist/qy-dropdown/index.mjs +1 -1
  22. package/dist/qy-file-picker/index.cjs +1 -1
  23. package/dist/qy-file-picker/index.mjs +1 -1
  24. package/dist/qy-form-section/index.cjs +1 -1
  25. package/dist/qy-form-section/index.mjs +1 -1
  26. package/dist/qy-fullscreen/index.cjs +1 -1
  27. package/dist/qy-fullscreen/index.mjs +1 -1
  28. package/dist/qy-icon/index.cjs +1 -1
  29. package/dist/qy-icon/index.mjs +2 -2
  30. package/dist/qy-icon-picker/index.cjs +1 -1
  31. package/dist/qy-icon-picker/index.mjs +1 -1
  32. package/dist/qy-iframe/index.cjs +1 -0
  33. package/dist/qy-iframe/index.mjs +7 -0
  34. package/dist/qy-image/index.cjs +1 -1
  35. package/dist/qy-image/index.mjs +1 -1
  36. package/dist/qy-image-preview/index.cjs +1 -1
  37. package/dist/qy-image-preview/index.mjs +2 -2
  38. package/dist/qy-image-upload/index.cjs +1 -1
  39. package/dist/qy-image-upload/index.mjs +1 -1
  40. package/dist/qy-input/index.cjs +1 -1
  41. package/dist/qy-input/index.mjs +1 -1
  42. package/dist/qy-legacy-selection-dialog/index.cjs +1 -1
  43. package/dist/qy-legacy-selection-dialog/index.mjs +1 -1
  44. package/dist/qy-menu-actions/index.cjs +1 -1
  45. package/dist/qy-menu-actions/index.mjs +1 -1
  46. package/dist/qy-money-input/index.cjs +1 -1
  47. package/dist/qy-money-input/index.mjs +1 -1
  48. package/dist/qy-popconfirm/index.cjs +2 -0
  49. package/dist/qy-popconfirm/index.mjs +8 -0
  50. package/dist/qy-popover/index.cjs +1 -1
  51. package/dist/qy-popover/index.mjs +1 -1
  52. package/dist/qy-radio/index.cjs +1 -1
  53. package/dist/qy-radio/index.mjs +1 -1
  54. package/dist/qy-radio-group/index.cjs +1 -1
  55. package/dist/qy-radio-group/index.mjs +1 -1
  56. package/dist/qy-record-quote-search/index.cjs +1 -1
  57. package/dist/qy-record-quote-search/index.mjs +1 -1
  58. package/dist/qy-remark-image/index.cjs +1 -1
  59. package/dist/qy-remark-image/index.mjs +1 -1
  60. package/dist/qy-remote-select/index.cjs +1 -1
  61. package/dist/qy-remote-select/index.mjs +1 -1
  62. package/dist/qy-result/index.cjs +1 -1
  63. package/dist/qy-result/index.mjs +1 -1
  64. package/dist/qy-scrollbar/index.cjs +1 -1
  65. package/dist/qy-scrollbar/index.mjs +1 -1
  66. package/dist/qy-search-input/index.cjs +1 -1
  67. package/dist/qy-search-input/index.mjs +1 -1
  68. package/dist/qy-select/index.cjs +1 -1
  69. package/dist/qy-select/index.mjs +1 -1
  70. package/dist/qy-selection-dialog/index.cjs +1 -1
  71. package/dist/qy-selection-dialog/index.mjs +1 -1
  72. package/dist/qy-switch/index.cjs +1 -1
  73. package/dist/qy-switch/index.mjs +1 -1
  74. package/dist/qy-table-column-settings/index.cjs +1 -1
  75. package/dist/qy-table-column-settings/index.mjs +1 -1
  76. package/dist/qy-tag/index.cjs +1 -1
  77. package/dist/qy-tag/index.mjs +1 -1
  78. package/dist/qy-tree/index.cjs +1 -1
  79. package/dist/qy-tree/index.mjs +1 -1
  80. package/dist/qy-tree-select/index.cjs +1 -1
  81. package/dist/qy-tree-select/index.mjs +1 -1
  82. package/dist/qy-upload/index.cjs +1 -1
  83. package/dist/qy-upload/index.mjs +1 -1
  84. package/dist/qy-watermark/index.cjs +1 -0
  85. package/dist/qy-watermark/index.mjs +7 -0
  86. package/dist/shared/{index-D-YyFaZ6.cjs → index-3qEac4h8.cjs} +1 -1
  87. package/dist/shared/{index-B0zL9hEY.mjs → index-4SkLDBra.mjs} +1 -1
  88. package/dist/shared/{index-gcsw_rtX.mjs → index-BekN1g_r.mjs} +967 -955
  89. package/dist/shared/{index-B6xIO6kg.cjs → index-Bi9wgcgT.cjs} +1 -1
  90. package/dist/shared/{index-D5DmmUX2.cjs → index-Bli6Gx5d.cjs} +1 -1
  91. package/dist/shared/{index-CaDqecpT.mjs → index-BuUtJrIy.mjs} +9 -9
  92. package/dist/shared/{index-DqsG1Mam.cjs → index-C7lRQtzs.cjs} +1 -1
  93. package/dist/shared/{index-DfR8Z9MN.mjs → index-CdnHMuo3.mjs} +1 -1
  94. package/dist/shared/index-Ce_hvR--.cjs +1 -0
  95. package/dist/shared/{index-BWDaV6FO.cjs → index-CwY_jv_I.cjs} +1 -1
  96. package/dist/shared/{index-xuTVtF4x.mjs → index-DY-CA7Vr.mjs} +1 -1
  97. package/dist/shared/index-DlGwHshu.cjs +1 -0
  98. package/dist/shared/{index-CwzztWPU.cjs → index-DnHfk7NM.cjs} +1 -1
  99. package/dist/shared/index-Dr-Q5krU.mjs +71 -0
  100. package/dist/shared/{index-1LT6Q6XJ.mjs → index-Dwf-JfXM.mjs} +1 -1
  101. package/dist/shared/{index-BmJPEXUM.mjs → index-S8HW36Mc.mjs} +2 -2
  102. package/dist/shared/{index.vue_vue_type_script_setup_true_lang-C91DUwOD.mjs → index.vue_vue_type_script_setup_true_lang-C6-hVGUO.mjs} +1 -1
  103. package/dist/shared/index.vue_vue_type_script_setup_true_lang-COAUEujY.mjs +48 -0
  104. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CqSJ_8hG.cjs +1 -0
  105. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Cr9PdvyR.cjs +1 -0
  106. package/dist/shared/{index.vue_vue_type_script_setup_true_lang-CuXBYNXZ.cjs → index.vue_vue_type_script_setup_true_lang-DOuk75uN.cjs} +1 -1
  107. package/dist/shared/{index.vue_vue_type_script_setup_true_lang-DoL8xnpo.mjs → index.vue_vue_type_script_setup_true_lang-IyZesuKm.mjs} +9 -9
  108. package/dist/shared/{index.vue_vue_type_script_setup_true_lang-DP-jqqo2.mjs → index.vue_vue_type_script_setup_true_lang-S-rQ0p3E.mjs} +1 -1
  109. package/dist/shared/{index.vue_vue_type_script_setup_true_lang-DkDEcB4G.cjs → index.vue_vue_type_script_setup_true_lang-lvZQ_Cu6.cjs} +1 -1
  110. package/dist/shared/{index.vue_vue_type_style_index_0_lang-CL_IFx-Z.cjs → index.vue_vue_type_style_index_0_lang-BcZb1U13.cjs} +1 -1
  111. package/dist/shared/index.vue_vue_type_style_index_0_lang-BoaO6MKl.cjs +1 -0
  112. package/dist/shared/index.vue_vue_type_style_index_0_lang-C4Yk-UdJ.mjs +172 -0
  113. package/dist/shared/{index.vue_vue_type_style_index_0_lang-DXQ9l1XF.mjs → index.vue_vue_type_style_index_0_lang-CIcZet5j.mjs} +3 -3
  114. package/dist/shared/index.vue_vue_type_style_index_0_lang-Ch3QcF8t.cjs +1 -0
  115. package/dist/shared/index.vue_vue_type_style_index_0_lang-DHK86rdP.cjs +1 -0
  116. package/dist/shared/{index.vue_vue_type_style_index_0_lang-BJXS2dVf.mjs → index.vue_vue_type_style_index_0_lang-DsOg_Rum.mjs} +19 -17
  117. package/dist/shared/index.vue_vue_type_style_index_0_lang-b0y8p1p1.mjs +215 -0
  118. package/dist/shared/utils-BjEXwY3L.cjs +1 -0
  119. package/dist/shared/utils-DoyI5oM8.mjs +148 -0
  120. package/index.d.ts +60 -21
  121. package/package.json +25 -1
  122. package/qy-alert/index.d.ts +64 -64
  123. package/qy-autocomplete/index.d.ts +5 -5
  124. package/qy-avatar/index.d.ts +67 -67
  125. package/qy-badge/index.d.ts +63 -63
  126. package/qy-card/index.d.ts +64 -64
  127. package/qy-cascader/index.d.ts +198 -198
  128. package/qy-collapse/index.d.ts +59 -59
  129. package/qy-collapse-item/index.d.ts +45 -45
  130. package/qy-color-picker/index.d.ts +36 -0
  131. package/qy-descriptions/index.d.ts +47 -47
  132. package/qy-descriptions-item/index.d.ts +46 -46
  133. package/qy-dialog/index.d.ts +63 -63
  134. package/qy-divider/index.d.ts +53 -53
  135. package/qy-drawer/index.d.ts +55 -55
  136. package/qy-empty/index.d.ts +51 -51
  137. package/qy-iframe/index.d.ts +66 -0
  138. package/qy-image/index.d.ts +28 -28
  139. package/qy-image-preview/index.d.ts +21 -20
  140. package/qy-link/index.d.ts +69 -69
  141. package/qy-loading/index.d.ts +25 -25
  142. package/qy-menu-actions/index.d.ts +29 -29
  143. package/qy-popconfirm/index.d.ts +55 -0
  144. package/qy-progress/index.d.ts +74 -74
  145. package/qy-result/index.d.ts +64 -64
  146. package/qy-scrollbar/index.d.ts +85 -85
  147. package/qy-skeleton/index.d.ts +54 -54
  148. package/qy-skeleton-item/index.d.ts +48 -48
  149. package/qy-step/index.d.ts +55 -55
  150. package/qy-steps/index.d.ts +62 -62
  151. package/qy-tab-pane/index.d.ts +40 -40
  152. package/qy-table-column-settings/index.d.ts +18 -18
  153. package/qy-tabs/index.d.ts +84 -84
  154. package/qy-tree/index.d.ts +132 -132
  155. package/qy-tree-select/index.d.ts +123 -123
  156. package/qy-watermark/index.d.ts +72 -0
  157. package/dist/shared/index-uhxRj2ZT.cjs +0 -1
  158. package/dist/shared/index.vue_vue_type_script_setup_true_lang-5gku7Zwv.cjs +0 -1
  159. package/dist/shared/index.vue_vue_type_style_index_0_lang-M0qKRXd2.cjs +0 -1
  160. package/dist/shared/utils-D2KAQCCB.cjs +0 -1
  161. package/dist/shared/utils-DUntDntI.mjs +0 -112
  162. /package/dist/shared/{index-AirHUQwm.cjs → index-AMu0L6uU.cjs} +0 -0
  163. /package/dist/shared/{index-D6ybNdgn.mjs → index-B1b3BksF.mjs} +0 -0
  164. /package/dist/shared/{index-BpI0jwYK.cjs → index-BPaVDCe6.cjs} +0 -0
  165. /package/dist/shared/{index-CCZttbsg.cjs → index-BdTlpKtr.cjs} +0 -0
  166. /package/dist/shared/{index-Bxz4crCd.cjs → index-BkX9xlbI.cjs} +0 -0
  167. /package/dist/shared/{index-DLLDXfic.cjs → index-Bvot0uXo.cjs} +0 -0
  168. /package/dist/shared/{index-CaNxcPSD.mjs → index-C91mzAI3.mjs} +0 -0
  169. /package/dist/shared/{index-CmRclPWX.mjs → index-C_1KP3l9.mjs} +0 -0
  170. /package/dist/shared/{index-DEZF-Fkt.mjs → index-D5S48q1B.mjs} +0 -0
  171. /package/dist/shared/{index-Co0_4YEV.mjs → index-D8E_xu0N.mjs} +0 -0
  172. /package/dist/shared/{index-Bmw9BNXm.cjs → index-DCzxcvkn.cjs} +0 -0
  173. /package/dist/shared/{index-C31wpivi.mjs → index-DK0hjfWr.mjs} +0 -0
  174. /package/dist/shared/{index-D_rRdrge.mjs → index-DZRFSGxO.mjs} +0 -0
  175. /package/dist/shared/{index-BDdhBEFr.cjs → index-Dc6gLgAz.cjs} +0 -0
  176. /package/dist/shared/{index-C-ZAw_DP.mjs → index-DcohgM8A.mjs} +0 -0
  177. /package/dist/shared/{index-BxvS3vlc.cjs → index-Di4bIOiB.cjs} +0 -0
  178. /package/dist/shared/{index-Bs2OQHXk.mjs → index-JjHutKmT.mjs} +0 -0
  179. /package/dist/shared/{index-seQHtqdh.mjs → index-Od6HC8Un.mjs} +0 -0
  180. /package/dist/shared/{index-rcu9CzSn.cjs → index-nSFTxVz8.cjs} +0 -0
  181. /package/dist/shared/{index-DIs6iPjF.cjs → index-nos4Y-fm.cjs} +0 -0
  182. /package/dist/shared/{index.vue_vue_type_script_setup_true_lang-S6QPMZay.cjs → index.vue_vue_type_script_setup_true_lang-CglCPcj-.cjs} +0 -0
  183. /package/dist/shared/{index.vue_vue_type_script_setup_true_lang-BLF3RNlY.mjs → index.vue_vue_type_script_setup_true_lang-q37rBg6Z.mjs} +0 -0
  184. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-DUgOOzEZ.cjs → index.vue_vue_type_style_index_0_lang-BXTkWo5P.cjs} +0 -0
  185. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-lmRmXLwB.cjs → index.vue_vue_type_style_index_0_lang-BnPRHCwR.cjs} +0 -0
  186. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-DWiolYb3.mjs → index.vue_vue_type_style_index_0_lang-C1n-zAZh.mjs} +0 -0
  187. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-B-FeHatv.mjs → index.vue_vue_type_style_index_0_lang-CVdFZeHK.mjs} +0 -0
  188. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-DzfGx6ce.mjs → index.vue_vue_type_style_index_0_lang-KHk9wRYT.mjs} +0 -0
  189. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-CUqnwExG.mjs → index.vue_vue_type_style_index_0_lang-Tzo8o6M8.mjs} +0 -0
  190. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-DOfJV2oz.cjs → index.vue_vue_type_style_index_0_lang-WGzoSatU.cjs} +0 -0
  191. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-Cn3P9d4L.cjs → index.vue_vue_type_style_index_0_lang-hbNK_h45.cjs} +0 -0
@@ -1,77 +1,81 @@
1
- import { ElUpload as Oa, ElIcon as ut, ElPopover as Pa, ElInput as Ma, ElImageViewer as La, ElDialog as ct, ElLoadingDirective as _a } from "element-plus/es";
2
- import { ref as B, onMounted as Xe, computed as z, watch as fe, nextTick as Le, onBeforeUnmount as dt, openBlock as v, createElementBlock as A, normalizeStyle as Me, normalizeClass as ke, createVNode as L, withCtx as w, withModifiers as ce, unref as q, Fragment as Pe, createElementVNode as R, toDisplayString as ve, createCommentVNode as O, createBlock as de, createTextVNode as Se, useAttrs as Fe, mergeProps as Ie, defineComponent as Ae, useSlots as ft, watchEffect as Ua, h as nt, onUnmounted as mt, createSlots as Ke, renderSlot as F, withDirectives as Ye, vShow as yt, renderList as et, withKeys as je, normalizeProps as pt, guardReactiveProps as gt, getCurrentInstance as Ka, reactive as Ze } from "vue";
3
- import { Plus as Ea, InfoFilled as ja, Close as Na } from "@element-plus/icons-vue";
4
- import { ElMessage as we, ElLoading as Ha, ElButton as Be, ElSelect as vt, ElOption as ht, ElInput as Ue, ElPopover as Za, ElUpload as Wa, ElAutocomplete as Ga, ElForm as bt, ElFormItem as ze, ElTable as Ja, ElTableColumn as Xa, ElPagination as Ya, ElTreeSelect as eo } from "element-plus";
5
- import { _ as De } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
6
- import { I as to } from "./index-CaDqecpT.mjs";
7
- import { _ as ao } from "./index.vue_vue_type_script_setup_true_lang-DoL8xnpo.mjs";
8
- import oo from "clsx";
9
- import { useBreakpoints as lo, useDraggable as no } from "@vueuse/core";
10
- import { B as ro } from "./index-seQHtqdh.mjs";
11
- import { D as io } from "./index-DEZF-Fkt.mjs";
12
- import { _ as so } from "./index-Bs2OQHXk.mjs";
13
- import { _ as uo } from "./index.vue_vue_type_style_index_0_lang-B0CXLnL1.mjs";
14
- import { _ as co } from "./index.vue_vue_type_style_index_0_lang-CcVf5MXE.mjs";
15
- import { C as fo } from "./index-D6ybNdgn.mjs";
16
- import { _ as mo } from "./index.vue_vue_type_script_setup_true_lang-C91DUwOD.mjs";
17
- import { R as yo } from "./index-C31wpivi.mjs";
18
- import { _ as po } from "./index.vue_vue_type_script_setup_true_lang-EiHoQBXt.mjs";
19
- import { M as go } from "./index-DfR8Z9MN.mjs";
20
- import { T as vo } from "./index-1LT6Q6XJ.mjs";
21
- import { _ as ho } from "./index.vue_vue_type_script_setup_true_lang-DP-jqqo2.mjs";
22
- import { S as tt } from "./index-D_rRdrge.mjs";
23
- import { T as wt } from "./index-B0zL9hEY.mjs";
24
- import { T as We } from "./index-Co0_4YEV.mjs";
25
- import { F as bo } from "./index-CmRclPWX.mjs";
26
- import { S as wo } from "./index-C-ZAw_DP.mjs";
27
- import { _ as So } from "./index.vue_vue_type_script_lang-DIKHRo0o.mjs";
28
- import { _ as ko } from "./index.vue_vue_type_style_index_0_lang-CPxbKjvY.mjs";
29
- import { _ as xo } from "./index.vue_vue_type_style_index_0_lang-DSur831A.mjs";
30
- import { _ as Qo } from "./index.vue_vue_type_style_index_0_lang-BJXS2dVf.mjs";
31
- import { _ as $o } from "./index.vue_vue_type_script_setup_true_lang-BJe7Uo6S.mjs";
32
- import { _ as Co } from "./index.vue_vue_type_script_setup_true_lang-Dd_nKJvH.mjs";
33
- import { _ as Vo } from "./index.vue_vue_type_style_index_0_lang-gs0YJI91.mjs";
34
- import { _ as Bo } from "./index.vue_vue_type_script_lang-Dfq7D3mJ.mjs";
35
- import { _ as qo } from "./index.vue_vue_type_script_lang-CZK0hDYa.mjs";
36
- import { _ as Io } from "./index.vue_vue_type_script_lang-69zSOotQ.mjs";
37
- import { F as Ao } from "./index-BmJPEXUM.mjs";
38
- import { Q as St } from "./index-xuTVtF4x.mjs";
39
- import { _ as To } from "./index.vue_vue_type_style_index_0_lang-DXQ9l1XF.mjs";
40
- import { _ as Ro } from "./index.vue_vue_type_script_lang-Bk0kLg5l.mjs";
41
- import { _ as zo } from "./index.vue_vue_type_script_lang-BaIOvoQn.mjs";
42
- import { _ as Fo } from "./index.vue_vue_type_script_lang-DRvk4-_O.mjs";
43
- import { _ as Do } from "./index.vue_vue_type_script_lang-ChS-3_vl.mjs";
44
- import { _ as Oo } from "./index.vue_vue_type_script_lang-CWnNQBPN.mjs";
45
- import { _ as Po } from "./index.vue_vue_type_script_lang-D7b9ABei.mjs";
46
- import { _ as Mo } from "./index.vue_vue_type_script_lang-chBiq2cG.mjs";
47
- import { _ as Lo } from "./index.vue_vue_type_style_index_0_lang-DWiolYb3.mjs";
48
- import { _ as _o } from "./index.vue_vue_type_script_setup_true_lang-Bdz9oDDW.mjs";
49
- import { _ as Uo } from "./index.vue_vue_type_script_setup_true_lang-BXnZt9UT.mjs";
50
- import { _ as Ko } from "./index.vue_vue_type_script_setup_true_lang-B4JrNUDc.mjs";
51
- import { _ as Eo } from "./index.vue_vue_type_script_lang-D7nzeBUR.mjs";
52
- import { _ as jo } from "./index.vue_vue_type_script_lang-C9X0V5AK.mjs";
53
- import { _ as No } from "./index.vue_vue_type_script_lang-C4JHCuXz.mjs";
54
- import { _ as Ho } from "./index.vue_vue_type_style_index_0_lang-CUqnwExG.mjs";
55
- import { _ as Zo } from "./index.vue_vue_type_style_index_0_lang-B-FeHatv.mjs";
56
- import { _ as Wo } from "./index.vue_vue_type_script_lang-BGAdXWIL.mjs";
57
- import { _ as Go } from "./index.vue_vue_type_script_lang-BnmY1ndj.mjs";
58
- import { _ as Jo } from "./index.vue_vue_type_script_lang-DOOT2grg.mjs";
59
- import { _ as Xo } from "./index.vue_vue_type_style_index_0_lang-DzfGx6ce.mjs";
60
- import { w as S } from "./install-CxBnxbuN.mjs";
61
- import { v as Yo, Q as kt } from "./index-B1zDCCqy.mjs";
62
- import { _ as el } from "./index.vue_vue_type_script_setup_true_lang-BLF3RNlY.mjs";
63
- import { o as tl } from "./utils-DUntDntI.mjs";
64
- import { openQyLoading as al } from "@qynpm/hooks";
1
+ import { ElUpload as La, ElIcon as ut, ElPopover as Ua, ElInput as Ka, ElImageViewer as Ea, ElDialog as ct, ElLoadingDirective as ja } from "element-plus/es";
2
+ import { ref as B, onMounted as Xe, computed as z, watch as fe, nextTick as _e, onBeforeUnmount as dt, openBlock as v, createElementBlock as A, normalizeStyle as Me, normalizeClass as ke, createVNode as _, withCtx as S, withModifiers as ce, unref as q, Fragment as Oe, createElementVNode as R, toDisplayString as ve, createCommentVNode as D, createBlock as de, createTextVNode as Se, useAttrs as Fe, mergeProps as Ie, defineComponent as Ae, useSlots as ft, watchEffect as Na, h as lt, onUnmounted as mt, createSlots as Ke, renderSlot as F, withDirectives as Ye, vShow as yt, renderList as et, withKeys as je, normalizeProps as pt, guardReactiveProps as gt, getCurrentInstance as Ha, reactive as We } from "vue";
3
+ import { Plus as Wa, InfoFilled as Za, Close as Ga } from "@element-plus/icons-vue";
4
+ import { ElMessage as we, ElLoading as Ja, ElButton as Be, ElSelect as vt, ElOption as ht, ElInput as Ue, ElPopover as Xa, ElUpload as Ya, ElAutocomplete as eo, ElForm as bt, ElFormItem as ze, ElTable as to, ElTableColumn as ao, ElPagination as oo, ElTreeSelect as no } from "element-plus";
5
+ import { _ as Pe } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
6
+ import { I as lo } from "./index-BuUtJrIy.mjs";
7
+ import { _ as ro } from "./index.vue_vue_type_script_setup_true_lang-IyZesuKm.mjs";
8
+ import io from "clsx";
9
+ import { useBreakpoints as so, useDraggable as uo } from "@vueuse/core";
10
+ import { B as co } from "./index-Od6HC8Un.mjs";
11
+ import { D as fo } from "./index-D5S48q1B.mjs";
12
+ import { _ as mo } from "./index-JjHutKmT.mjs";
13
+ import { _ as yo } from "./index.vue_vue_type_style_index_0_lang-B0CXLnL1.mjs";
14
+ import { _ as po } from "./index.vue_vue_type_style_index_0_lang-CcVf5MXE.mjs";
15
+ import { C as go } from "./index-B1b3BksF.mjs";
16
+ import { _ as vo } from "./index.vue_vue_type_script_setup_true_lang-C6-hVGUO.mjs";
17
+ import { R as ho } from "./index-DK0hjfWr.mjs";
18
+ import { _ as bo } from "./index.vue_vue_type_script_setup_true_lang-EiHoQBXt.mjs";
19
+ import { M as wo } from "./index-CdnHMuo3.mjs";
20
+ import { T as So } from "./index-Dwf-JfXM.mjs";
21
+ import { _ as ko } from "./index.vue_vue_type_script_setup_true_lang-S-rQ0p3E.mjs";
22
+ import { S as tt } from "./index-DZRFSGxO.mjs";
23
+ import { T as wt } from "./index-4SkLDBra.mjs";
24
+ import { T as Ze } from "./index-D8E_xu0N.mjs";
25
+ import { F as Qo } from "./index-C_1KP3l9.mjs";
26
+ import { S as xo } from "./index-DcohgM8A.mjs";
27
+ import { _ as $o } from "./index.vue_vue_type_script_lang-DIKHRo0o.mjs";
28
+ import { _ as Co } from "./index.vue_vue_type_style_index_0_lang-CPxbKjvY.mjs";
29
+ import { _ as Vo } from "./index.vue_vue_type_style_index_0_lang-DSur831A.mjs";
30
+ import { _ as Bo } from "./index.vue_vue_type_style_index_0_lang-DsOg_Rum.mjs";
31
+ import { _ as qo } from "./index.vue_vue_type_style_index_0_lang-b0y8p1p1.mjs";
32
+ import { _ as Io } from "./index.vue_vue_type_script_setup_true_lang-BJe7Uo6S.mjs";
33
+ import { _ as Ao } from "./index.vue_vue_type_script_setup_true_lang-Dd_nKJvH.mjs";
34
+ import { _ as To } from "./index.vue_vue_type_style_index_0_lang-gs0YJI91.mjs";
35
+ import { _ as Ro } from "./index.vue_vue_type_script_lang-Dfq7D3mJ.mjs";
36
+ import { _ as zo } from "./index.vue_vue_type_script_lang-CZK0hDYa.mjs";
37
+ import { _ as Fo } from "./index.vue_vue_type_script_lang-69zSOotQ.mjs";
38
+ import { F as Po } from "./index-S8HW36Mc.mjs";
39
+ import { Q as St } from "./index-DY-CA7Vr.mjs";
40
+ import { _ as Do } from "./index.vue_vue_type_style_index_0_lang-CIcZet5j.mjs";
41
+ import { _ as Oo } from "./index.vue_vue_type_style_index_0_lang-C4Yk-UdJ.mjs";
42
+ import { _ as Mo } from "./index.vue_vue_type_script_lang-Bk0kLg5l.mjs";
43
+ import { _ as _o } from "./index.vue_vue_type_script_lang-BaIOvoQn.mjs";
44
+ import { _ as Lo } from "./index.vue_vue_type_script_lang-DRvk4-_O.mjs";
45
+ import { _ as Uo } from "./index.vue_vue_type_script_lang-ChS-3_vl.mjs";
46
+ import { _ as Ko } from "./index.vue_vue_type_script_lang-CWnNQBPN.mjs";
47
+ import { _ as Eo } from "./index.vue_vue_type_script_lang-D7b9ABei.mjs";
48
+ import { _ as jo } from "./index.vue_vue_type_script_lang-chBiq2cG.mjs";
49
+ import { _ as No } from "./index.vue_vue_type_style_index_0_lang-C1n-zAZh.mjs";
50
+ import { _ as Ho } from "./index.vue_vue_type_script_setup_true_lang-Bdz9oDDW.mjs";
51
+ import { _ as Wo } from "./index.vue_vue_type_script_setup_true_lang-BXnZt9UT.mjs";
52
+ import { I as Zo } from "./index-Dr-Q5krU.mjs";
53
+ import { _ as Go } from "./index.vue_vue_type_script_setup_true_lang-B4JrNUDc.mjs";
54
+ import { _ as Jo } from "./index.vue_vue_type_script_lang-D7nzeBUR.mjs";
55
+ import { _ as Xo } from "./index.vue_vue_type_script_lang-C9X0V5AK.mjs";
56
+ import { _ as Yo } from "./index.vue_vue_type_script_lang-C4JHCuXz.mjs";
57
+ import { _ as en } from "./index.vue_vue_type_style_index_0_lang-Tzo8o6M8.mjs";
58
+ import { _ as tn } from "./index.vue_vue_type_script_setup_true_lang-COAUEujY.mjs";
59
+ import { _ as an } from "./index.vue_vue_type_style_index_0_lang-CVdFZeHK.mjs";
60
+ import { _ as on } from "./index.vue_vue_type_script_lang-BGAdXWIL.mjs";
61
+ import { _ as nn } from "./index.vue_vue_type_script_lang-BnmY1ndj.mjs";
62
+ import { _ as ln } from "./index.vue_vue_type_script_lang-DOOT2grg.mjs";
63
+ import { _ as rn } from "./index.vue_vue_type_style_index_0_lang-KHk9wRYT.mjs";
64
+ import { w as h } from "./install-CxBnxbuN.mjs";
65
+ import { v as sn, Q as kt } from "./index-B1zDCCqy.mjs";
66
+ import { _ as un } from "./index.vue_vue_type_script_setup_true_lang-q37rBg6Z.mjs";
67
+ import { o as cn } from "./utils-DoyI5oM8.mjs";
68
+ import { openQyLoading as dn } from "@qynpm/hooks";
65
69
  /*! js-cookie v3.0.8 | MIT */
66
70
  function Ee(t) {
67
- for (var P = 1; P < arguments.length; P++) {
68
- var Y = arguments[P];
71
+ for (var O = 1; O < arguments.length; O++) {
72
+ var Y = arguments[O];
69
73
  for (var e in Y)
70
74
  e !== "__proto__" && (t[e] = Y[e]);
71
75
  }
72
76
  return t;
73
77
  }
74
- var ol = {
78
+ var fn = {
75
79
  read: function(t) {
76
80
  return t[0] === '"' && (t = t.slice(1, -1)), t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
77
81
  },
@@ -82,65 +86,65 @@ var ol = {
82
86
  );
83
87
  }
84
88
  };
85
- function Ge(t, P) {
86
- function Y(l, W, f) {
89
+ function Ge(t, O) {
90
+ function Y(n, Z, f) {
87
91
  if (!(typeof document > "u")) {
88
- f = Ee({}, P, f), typeof f.expires == "number" && (f.expires = new Date(Date.now() + f.expires * 864e5)), f.expires && (f.expires = f.expires.toUTCString()), l = encodeURIComponent(l).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
92
+ f = Ee({}, O, f), typeof f.expires == "number" && (f.expires = new Date(Date.now() + f.expires * 864e5)), f.expires && (f.expires = f.expires.toUTCString()), n = encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
89
93
  var y = "";
90
94
  for (var m in f)
91
95
  f[m] && (y += "; " + m, f[m] !== !0 && (y += "=" + f[m].split(";")[0]));
92
- return document.cookie = l + "=" + t.write(W, l) + y;
96
+ return document.cookie = n + "=" + t.write(Z, n) + y;
93
97
  }
94
98
  }
95
- function e(l) {
96
- if (!(typeof document > "u" || arguments.length && !l)) {
97
- for (var W = document.cookie ? document.cookie.split("; ") : [], f = {}, y = 0; y < W.length; y++) {
98
- var m = W[y].split("="), I = m.slice(1).join("=");
99
+ function e(n) {
100
+ if (!(typeof document > "u" || arguments.length && !n)) {
101
+ for (var Z = document.cookie ? document.cookie.split("; ") : [], f = {}, y = 0; y < Z.length; y++) {
102
+ var m = Z[y].split("="), I = m.slice(1).join("=");
99
103
  try {
100
104
  var $ = decodeURIComponent(m[0]);
101
- if ($ in f || (f[$] = t.read(I, $)), l === $)
105
+ if ($ in f || (f[$] = t.read(I, $)), n === $)
102
106
  break;
103
107
  } catch {
104
108
  }
105
109
  }
106
- return l ? f[l] : f;
110
+ return n ? f[n] : f;
107
111
  }
108
112
  }
109
113
  return Object.create(
110
114
  {
111
115
  set: Y,
112
116
  get: e,
113
- remove: function(l, W) {
117
+ remove: function(n, Z) {
114
118
  Y(
115
- l,
119
+ n,
116
120
  "",
117
- Ee({}, W, {
121
+ Ee({}, Z, {
118
122
  expires: -1
119
123
  })
120
124
  );
121
125
  },
122
- withAttributes: function(l) {
123
- return Ge(this.converter, Ee({}, this.attributes, l));
126
+ withAttributes: function(n) {
127
+ return Ge(this.converter, Ee({}, this.attributes, n));
124
128
  },
125
- withConverter: function(l) {
126
- return Ge(Ee({}, this.converter, l), this.attributes);
129
+ withConverter: function(n) {
130
+ return Ge(Ee({}, this.converter, n), this.attributes);
127
131
  }
128
132
  },
129
133
  {
130
- attributes: { value: Object.freeze(P) },
134
+ attributes: { value: Object.freeze(O) },
131
135
  converter: { value: Object.freeze(t) }
132
136
  }
133
137
  );
134
138
  }
135
- var xt = Ge(ol, { path: "/" });
136
- const ll = "Admin-Token";
137
- function nl(t = ll) {
138
- return xt.get(t);
139
+ var Qt = Ge(fn, { path: "/" });
140
+ const mn = "Admin-Token";
141
+ function yn(t = mn) {
142
+ return Qt.get(t);
139
143
  }
140
- const rl = { class: "qy-upload__hint" }, il = ["placeholder", "disabled"], sl = ["src"], ul = {
144
+ const pn = { class: "qy-upload__hint" }, gn = ["placeholder", "disabled"], vn = ["src"], hn = {
141
145
  key: 1,
142
146
  class: "qy-upload__tip"
143
- }, cl = { class: "error" }, dl = { class: "error" }, fl = /* @__PURE__ */ Object.assign({
147
+ }, bn = { class: "error" }, wn = { class: "error" }, Sn = /* @__PURE__ */ Object.assign({
144
148
  name: "QyUpload"
145
149
  }, {
146
150
  __name: "index",
@@ -205,8 +209,8 @@ const rl = { class: "qy-upload__hint" }, il = ["placeholder", "disabled"], sl =
205
209
  "error",
206
210
  "remove"
207
211
  ],
208
- setup(t, { expose: P, emit: Y }) {
209
- const e = t, l = Y, W = B(null), f = B([]), y = B(null), m = B(null), I = [];
212
+ setup(t, { expose: O, emit: Y }) {
213
+ const e = t, n = Y, Z = B(null), f = B([]), y = B(null), m = B(null), I = [];
210
214
  let $ = !1;
211
215
  const N = B(!1), E = B([]), M = B(0), G = B(!1), J = B(""), T = B(""), U = /* @__PURE__ */ new Set(), ee = B(!1), te = B(""), H = B(!1);
212
216
  Xe(() => {
@@ -220,13 +224,13 @@ const rl = { class: "qy-upload__hint" }, il = ["placeholder", "disabled"], sl =
220
224
  ), j = z(() => {
221
225
  var o;
222
226
  return (o = e.fileType) != null && o.length ? e.fileType.map((r) => r.toLowerCase()) : e.supportVideo ? ["mp4", "mov", "avi"] : ["jpg", "jpeg", "png", "gif", "webp"];
223
- }), b = z(() => {
227
+ }), w = z(() => {
224
228
  const o = e.supportVideo ? 1 : e.limit;
225
229
  return f.value.length >= o;
226
230
  }), C = z(
227
231
  () => j.value.map((o) => `.${o}`).join(",")
228
232
  ), a = z(() => ({
229
- "qy-upload--reached-limit": b.value,
233
+ "qy-upload--reached-limit": w.value,
230
234
  "qy-upload--disabled": e.disabled,
231
235
  "qy-upload--video": e.supportVideo,
232
236
  "qy-upload--without-text": !e.showText && !e.showPasteInput
@@ -243,36 +247,36 @@ const rl = { class: "qy-upload__hint" }, il = ["placeholder", "disabled"], sl =
243
247
  function i(o) {
244
248
  return Array.isArray(o) ? o.filter(Boolean) : o ? String(o).split(",").filter(Boolean) : [];
245
249
  }
246
- function _(o) {
250
+ function L(o) {
247
251
  return Array.isArray(o) ? { files: o, text: "" } : typeof o == "string" ? { files: i(o), text: "" } : o && typeof o == "object" ? {
248
252
  files: i(o.files),
249
253
  text: o.text ?? ""
250
254
  } : { files: [], text: "" };
251
255
  }
252
256
  function oe(o = []) {
253
- return o.map((r, x) => ({
254
- name: String(r).split("/").pop() || `file-${x}`,
257
+ return o.map((r, Q) => ({
258
+ name: String(r).split("/").pop() || `file-${Q}`,
255
259
  url: r,
256
260
  status: "success",
257
- uid: Date.now() + x
261
+ uid: Date.now() + Q
258
262
  }));
259
263
  }
260
264
  function s(o) {
261
- const r = new Set(o.map((Q) => Q.url)), x = f.value.filter(
262
- (Q) => Q.status === "uploading" && !r.has(Q.url)
265
+ const r = new Set(o.map((x) => x.url)), Q = f.value.filter(
266
+ (x) => x.status === "uploading" && !r.has(x.url)
263
267
  );
264
- return [...o, ...x];
268
+ return [...o, ...Q];
265
269
  }
266
270
  function g(o) {
267
- const r = _(o);
268
- $ = !0, te.value = r.text, f.value = s(oe(r.files)), Le(() => {
271
+ const r = L(o);
272
+ $ = !0, te.value = r.text, f.value = s(oe(r.files)), _e(() => {
269
273
  $ = !1;
270
274
  });
271
275
  }
272
276
  function V(o) {
273
277
  return e.valueFormat === "array" ? o.files : e.valueFormat === "string" ? o.files.join(",") : o;
274
278
  }
275
- function D() {
279
+ function P() {
276
280
  var o;
277
281
  (o = y.value) == null || o.focus();
278
282
  }
@@ -280,20 +284,20 @@ const rl = { class: "qy-upload__hint" }, il = ["placeholder", "disabled"], sl =
280
284
  o.target.value = "";
281
285
  }
282
286
  function pe(o) {
283
- const Q = { files: (o ?? f.value).filter((K) => K.status === "success" && K.url).map((K) => K.url), text: te.value };
284
- l("update:modelValue", V(Q)), l("change", Q), e.callBack && e.callBack(Q);
287
+ const x = { files: (o ?? f.value).filter((K) => K.status === "success" && K.url).map((K) => K.url), text: te.value };
288
+ n("update:modelValue", V(x)), n("change", x), e.callBack && e.callBack(x);
285
289
  }
286
- function xe(o, r) {
287
- pe(r), l("remove", o, r);
290
+ function Qe(o, r) {
291
+ pe(r), n("remove", o, r);
288
292
  }
289
- function Qe(o) {
290
- var x;
293
+ function xe(o) {
294
+ var Q;
291
295
  const r = (o == null ? void 0 : o.name) || "";
292
- return r.includes(".") && ((x = r.split(".").pop()) == null ? void 0 : x.toLowerCase()) || "";
296
+ return r.includes(".") && ((Q = r.split(".").pop()) == null ? void 0 : Q.toLowerCase()) || "";
293
297
  }
294
298
  function qe(o) {
295
- var K, ne, ue;
296
- const r = ((ne = (K = o == null ? void 0 : o.type) == null ? void 0 : K.toLowerCase) == null ? void 0 : ne.call(K)) || "", x = {
299
+ var K, le, ue;
300
+ const r = ((le = (K = o == null ? void 0 : o.type) == null ? void 0 : K.toLowerCase) == null ? void 0 : le.call(K)) || "", Q = {
297
301
  "image/jpeg": ["jpg", "jpeg"],
298
302
  "image/png": ["png"],
299
303
  "image/gif": ["gif"],
@@ -304,14 +308,14 @@ const rl = { class: "qy-upload__hint" }, il = ["placeholder", "disabled"], sl =
304
308
  "video/x-msvideo": ["avi"],
305
309
  "video/webm": ["webm"]
306
310
  };
307
- if (x[r]) return x[r];
308
- const Q = (ue = r.split("/")[1]) == null ? void 0 : ue.split("+")[0];
309
- return Q ? [Q] : [];
311
+ if (Q[r]) return Q[r];
312
+ const x = (ue = r.split("/")[1]) == null ? void 0 : ue.split("+")[0];
313
+ return x ? [x] : [];
310
314
  }
311
315
  function p(o) {
312
- const r = Qe(o), x = qe(o);
313
- return [r, ...x].some(
314
- (Q) => j.value.includes(Q)
316
+ const r = xe(o), Q = qe(o);
317
+ return [r, ...Q].some(
318
+ (x) => j.value.includes(x)
315
319
  );
316
320
  }
317
321
  function ae(o) {
@@ -319,178 +323,178 @@ const rl = { class: "qy-upload__hint" }, il = ["placeholder", "disabled"], sl =
319
323
  `格式不支持,仅允许: ${j.value.join("/")}`
320
324
  ), !1) : (we.warning(`文件大小不能超过${e.fileSize}M`), !1);
321
325
  }
322
- async function n(o, r, x, Q) {
323
- const K = h(o);
326
+ async function l(o, r, Q, x) {
327
+ const K = b(o);
324
328
  try {
325
- const ne = await e.uploadRequest({
329
+ const le = await e.uploadRequest({
326
330
  file: o,
327
331
  formData: K,
328
332
  api: e.api,
329
333
  name: e.name,
330
334
  tokenKey: e.tokenKey,
331
335
  extraData: e.extraData
332
- }), ue = d(ne);
336
+ }), ue = d(le);
333
337
  if (!ue) {
334
338
  const he = new Error("上传失败,未返回文件地址");
335
- we.error(he.message), l("error", he), x == null || x(he);
339
+ we.error(he.message), n("error", he), Q == null || Q(he);
336
340
  return;
337
341
  }
338
- we.success("上传成功"), r == null || r({ ...typeof ne == "object" && ne ? ne : {}, url: ue });
339
- } catch (ne) {
340
- we.error("上传失败"), l("error", ne), x == null || x(ne);
342
+ we.success("上传成功"), r == null || r({ ...typeof le == "object" && le ? le : {}, url: ue });
343
+ } catch (le) {
344
+ we.error("上传失败"), n("error", le), Q == null || Q(le);
341
345
  } finally {
342
- Q.close();
346
+ x.close();
343
347
  }
344
348
  }
345
- function h(o) {
349
+ function b(o) {
346
350
  const r = new FormData();
347
- return r.append(e.name, o), e.extraData && Object.entries(e.extraData).forEach(([x, Q]) => r.append(x, Q)), r;
351
+ return r.append(e.name, o), e.extraData && Object.entries(e.extraData).forEach(([Q, x]) => r.append(Q, x)), r;
348
352
  }
349
353
  function d(o) {
350
- var Q, K;
354
+ var x, K;
351
355
  if (typeof o == "string") return o;
352
- const r = o || {}, x = r.urls ?? r.url ?? ((Q = r.data) == null ? void 0 : Q.urls) ?? ((K = r.data) == null ? void 0 : K.url) ?? "";
353
- return Array.isArray(x) ? x[0] || "" : x || "";
356
+ const r = o || {}, Q = r.urls ?? r.url ?? ((x = r.data) == null ? void 0 : x.urls) ?? ((K = r.data) == null ? void 0 : K.url) ?? "";
357
+ return Array.isArray(Q) ? Q[0] || "" : Q || "";
354
358
  }
355
- function k(o, r, x, Q) {
356
- var ot, lt;
357
- const K = ((ot = W.value) == null ? void 0 : ot.$el.querySelector(".el-upload--picture-card")) || ((lt = W.value) == null ? void 0 : lt.$el), ne = Ha.service({
359
+ function k(o, r, Q, x) {
360
+ var ot, nt;
361
+ const K = ((ot = Z.value) == null ? void 0 : ot.$el.querySelector(".el-upload--picture-card")) || ((nt = Z.value) == null ? void 0 : nt.$el), le = Ja.service({
358
362
  target: K,
359
363
  text: "上传中",
360
364
  background: "rgba(255,255,255,0.7)"
361
365
  });
362
366
  if (e.uploadRequest) {
363
- n(o, x, Q, ne);
367
+ l(o, Q, x, le);
364
368
  return;
365
369
  }
366
- const ue = e.api.startsWith("http") ? e.api : window.location.origin + e.api.replace(/^([^/])/, "/$1"), he = h(o), be = new XMLHttpRequest();
370
+ const ue = e.api.startsWith("http") ? e.api : window.location.origin + e.api.replace(/^([^/])/, "/$1"), he = b(o), be = new XMLHttpRequest();
367
371
  I.push(be);
368
372
  const Ve = () => {
369
373
  const ye = I.indexOf(be);
370
- ye !== -1 && I.splice(ye, 1), ne.close();
374
+ ye !== -1 && I.splice(ye, 1), le.close();
371
375
  };
372
376
  be.open("POST", ue);
373
- const at = nl(e.tokenKey);
377
+ const at = yn(e.tokenKey);
374
378
  at && be.setRequestHeader("Authorization", `Bearer ${at}`), be.upload.onprogress = (ye) => {
375
379
  ye.total > 0 && (r == null || r({ percent: ye.loaded / ye.total * 100 }));
376
380
  }, be.onload = () => {
377
381
  if (Ve(), be.status < 200 || be.status >= 300) {
378
382
  const ye = `上传失败 (HTTP ${be.status})`;
379
- we.error(ye), l("error", { msg: ye, status: be.status }), Q == null || Q(new Error(ye));
383
+ we.error(ye), n("error", { msg: ye, status: be.status }), x == null || x(new Error(ye));
380
384
  return;
381
385
  }
382
386
  try {
383
387
  const ye = JSON.parse(be.responseText);
384
- ye.code === 200 && ye.urls ? (we.success("上传成功"), x == null || x({ ...ye, url: ye.urls })) : (we.error(ye.msg || "上传失败"), l("error", ye), Q == null || Q(ye));
388
+ ye.code === 200 && ye.urls ? (we.success("上传成功"), Q == null || Q({ ...ye, url: ye.urls })) : (we.error(ye.msg || "上传失败"), n("error", ye), x == null || x(ye));
385
389
  } catch {
386
- we.error("上传失败,响应格式错误"), l("error", new Error("Response parse error")), Q == null || Q(new Error("Response parse error"));
390
+ we.error("上传失败,响应格式错误"), n("error", new Error("Response parse error")), x == null || x(new Error("Response parse error"));
387
391
  }
388
392
  }, be.onerror = () => {
389
- Ve(), we.error("上传失败,网络异常"), l("error", new Error("Network error")), Q == null || Q(new Error("Network error"));
393
+ Ve(), we.error("上传失败,网络异常"), n("error", new Error("Network error")), x == null || x(new Error("Network error"));
390
394
  }, be.send(he);
391
395
  }
392
396
  function se(o) {
393
397
  return e.disabled ? !1 : ae(o);
394
398
  }
395
- function le(o, r) {
396
- const x = f.value.find(
397
- (Q) => {
399
+ function ne(o, r) {
400
+ const Q = f.value.find(
401
+ (x) => {
398
402
  var K;
399
- return Q.uid === (o == null ? void 0 : o.uid) || ((K = Q.raw) == null ? void 0 : K.uid) === (o == null ? void 0 : o.uid);
403
+ return x.uid === (o == null ? void 0 : o.uid) || ((K = x.raw) == null ? void 0 : K.uid) === (o == null ? void 0 : o.uid);
400
404
  }
401
405
  );
402
- x && (x.url = r, x.status = "success");
406
+ Q && (Q.url = r, Q.status = "success");
403
407
  }
404
408
  function $e(o) {
405
409
  k(
406
410
  o.file,
407
411
  o.onProgress,
408
412
  (r) => {
409
- le(o.file, r.url), o.onSuccess(r), pe(), l("success", r);
413
+ ne(o.file, r.url), o.onSuccess(r), pe(), n("success", r);
410
414
  },
411
415
  (r) => o.onError(r)
412
416
  );
413
417
  }
414
418
  function ge(o) {
415
- var Q;
419
+ var x;
416
420
  if (!o.url) return;
417
- const r = ((Q = o.url.split(".").pop()) == null ? void 0 : Q.toLowerCase()) || "";
421
+ const r = ((x = o.url.split(".").pop()) == null ? void 0 : x.toLowerCase()) || "";
418
422
  if (["mp4", "mov", "avi", "webm"].includes(r)) {
419
423
  J.value = o.url, T.value = o.name || "视频预览", G.value = !0;
420
424
  return;
421
425
  }
422
- const x = f.value.filter(
426
+ const Q = f.value.filter(
423
427
  (K) => {
424
- var ne;
428
+ var le;
425
429
  return K.status === "success" && K.url && !["mp4", "mov", "avi", "webm"].includes(
426
- (ne = K.url.split(".").pop()) == null ? void 0 : ne.toLowerCase()
430
+ (le = K.url.split(".").pop()) == null ? void 0 : le.toLowerCase()
427
431
  );
428
432
  }
429
433
  );
430
- E.value = x.map((K) => K.url), M.value = x.findIndex((K) => K.uid === o.uid) || 0, N.value = !0;
434
+ E.value = Q.map((K) => K.url), M.value = Q.findIndex((K) => K.uid === o.uid) || 0, N.value = !0;
431
435
  }
432
436
  function Ce() {
433
437
  N.value = !1, E.value = [];
434
438
  }
435
439
  function Te(o, r) {
436
- if (o.name && Qe(o)) return o;
437
- const x = qe(o).find(
438
- (Q) => j.value.includes(Q)
440
+ if (o.name && xe(o)) return o;
441
+ const Q = qe(o).find(
442
+ (x) => j.value.includes(x)
439
443
  );
440
- return x ? new File([o], `paste-${Date.now() + r}.${x}`, {
444
+ return Q ? new File([o], `paste-${Date.now() + r}.${Q}`, {
441
445
  type: o.type,
442
446
  lastModified: o.lastModified
443
447
  }) : o;
444
448
  }
445
- function _e(o) {
449
+ function Le(o) {
446
450
  for (let r = 0; r < o.length; r++) {
447
- const x = Te(o[r], r);
448
- if (!se(x)) continue;
449
- const Q = Date.now() + r, K = URL.createObjectURL(x);
451
+ const Q = Te(o[r], r);
452
+ if (!se(Q)) continue;
453
+ const x = Date.now() + r, K = URL.createObjectURL(Q);
450
454
  U.add(K), f.value.push({
451
- uid: Q,
452
- name: x.name || `file-${Q}`,
455
+ uid: x,
456
+ name: Q.name || `file-${x}`,
453
457
  status: "uploading",
454
458
  percentage: 0,
455
459
  url: K
456
460
  }), k(
457
- x,
458
- (ne) => {
459
- const ue = f.value.find((he) => he.uid === Q);
460
- ue && (ue.percentage = ne.percent);
461
+ Q,
462
+ (le) => {
463
+ const ue = f.value.find((he) => he.uid === x);
464
+ ue && (ue.percentage = le.percent);
461
465
  },
462
- (ne) => {
463
- const ue = f.value.find((he) => he.uid === Q);
464
- ue && (ue.status = "success", ue.url = ne.url, pe(), l("success", ne));
466
+ (le) => {
467
+ const ue = f.value.find((he) => he.uid === x);
468
+ ue && (ue.status = "success", ue.url = le.url, pe(), n("success", le));
465
469
  },
466
- () => Z(Q)
470
+ () => W(x)
467
471
  );
468
472
  }
469
473
  }
470
474
  function Ne(o) {
471
475
  const r = Array.from((o == null ? void 0 : o.files) || []).filter(
472
- (ne) => {
476
+ (le) => {
473
477
  var ue;
474
- return (ue = ne.type) == null ? void 0 : ue.startsWith("image/");
478
+ return (ue = le.type) == null ? void 0 : ue.startsWith("image/");
475
479
  }
476
480
  );
477
481
  if (r.length) return r;
478
- const x = o == null ? void 0 : o.items;
479
- if (!x) return [];
480
- const Q = [], K = /* @__PURE__ */ new Set();
481
- for (let ne = 0; ne < x.length; ne++) {
482
- const ue = x[ne];
482
+ const Q = o == null ? void 0 : o.items;
483
+ if (!Q) return [];
484
+ const x = [], K = /* @__PURE__ */ new Set();
485
+ for (let le = 0; le < Q.length; le++) {
486
+ const ue = Q[le];
483
487
  if (ue.kind === "file" && ue.type.startsWith("image/")) {
484
488
  const he = ue.getAsFile();
485
- he && !K.has(he) && (K.add(he), Q.push(he));
489
+ he && !K.has(he) && (K.add(he), x.push(he));
486
490
  }
487
491
  }
488
- return Q;
492
+ return x;
489
493
  }
490
- function Oe(o) {
494
+ function De(o) {
491
495
  if (e.disabled) return;
492
496
  const r = Ne(o.clipboardData);
493
- r.length && (o.preventDefault(), _e(r));
497
+ r.length && (o.preventDefault(), Le(r));
494
498
  }
495
499
  function Re() {
496
500
  e.disabled || e.disableDrag || (ee.value = !0);
@@ -499,28 +503,28 @@ const rl = { class: "qy-upload__hint" }, il = ["placeholder", "disabled"], sl =
499
503
  ee.value = !1;
500
504
  }
501
505
  function c(o) {
502
- var x;
503
- if (ee.value = !1, e.disabled || e.disableDrag || b.value) return;
504
- const r = Array.from(((x = o.dataTransfer) == null ? void 0 : x.files) || []).filter(
505
- (Q) => {
506
+ var Q;
507
+ if (ee.value = !1, e.disabled || e.disableDrag || w.value) return;
508
+ const r = Array.from(((Q = o.dataTransfer) == null ? void 0 : Q.files) || []).filter(
509
+ (x) => {
506
510
  var K;
507
- return j.value.includes((K = Q.name.split(".").pop()) == null ? void 0 : K.toLowerCase());
511
+ return j.value.includes((K = x.name.split(".").pop()) == null ? void 0 : K.toLowerCase());
508
512
  }
509
513
  );
510
- r.length && _e(r);
514
+ r.length && Le(r);
511
515
  }
512
- function Z(o) {
513
- var x;
514
- const r = f.value.findIndex((Q) => Q.uid === o);
515
- r !== -1 && ((x = f.value[r].url) != null && x.startsWith("blob:") && (URL.revokeObjectURL(f.value[r].url), U.delete(f.value[r].url)), f.value.splice(r, 1));
516
+ function W(o) {
517
+ var Q;
518
+ const r = f.value.findIndex((x) => x.uid === o);
519
+ r !== -1 && ((Q = f.value[r].url) != null && Q.startsWith("blob:") && (URL.revokeObjectURL(f.value[r].url), U.delete(f.value[r].url)), f.value.splice(r, 1));
516
520
  }
517
521
  return dt(() => {
518
522
  I.forEach((o) => o.abort()), I.length = 0, U.forEach((o) => URL.revokeObjectURL(o)), U.clear();
519
- }), P({
523
+ }), O({
520
524
  /** 主动打开文件选择框,供表单或快捷操作调用 */
521
525
  openFileDialog: () => {
522
526
  var o, r;
523
- e.disabled || b.value || (r = (o = W.value) == null ? void 0 : o.$el.querySelector('input[type="file"]')) == null || r.click();
527
+ e.disabled || w.value || (r = (o = Z.value) == null ? void 0 : o.$el.querySelector('input[type="file"]')) == null || r.click();
524
528
  },
525
529
  /** 获取已上传成功的文件 URL 列表 */
526
530
  getPathList: () => f.value.filter((o) => o.status === "success").map((o) => o.url),
@@ -540,14 +544,14 @@ const rl = { class: "qy-upload__hint" }, il = ["placeholder", "disabled"], sl =
540
544
  })
541
545
  }), (o, r) => {
542
546
  var be;
543
- const x = ut, Q = Ma, K = Pa, ne = Oa, ue = La, he = ct;
547
+ const Q = ut, x = Ka, K = Ua, le = La, ue = Ea, he = ct;
544
548
  return v(), A("div", {
545
549
  class: ke(["qy-upload", a.value]),
546
550
  style: Me({ "--qy-upload-size": ie.value })
547
551
  }, [
548
- L(ne, {
552
+ _(le, {
549
553
  ref_key: "uploadRef",
550
- ref: W,
554
+ ref: Z,
551
555
  "file-list": f.value,
552
556
  "onUpdate:fileList": r[6] || (r[6] = (Ve) => f.value = Ve),
553
557
  action: "#",
@@ -559,50 +563,50 @@ const rl = { class: "qy-upload__hint" }, il = ["placeholder", "disabled"], sl =
559
563
  "http-request": $e,
560
564
  "before-upload": se,
561
565
  "on-preview": ge,
562
- "on-remove": xe
566
+ "on-remove": Qe
563
567
  }, {
564
- default: w(() => [
565
- b.value ? O("", !0) : (v(), A("div", {
568
+ default: S(() => [
569
+ w.value ? D("", !0) : (v(), A("div", {
566
570
  key: 0,
567
571
  class: ke(["qy-upload__trigger", { "is-dragover": ee.value }]),
568
- onPaste: Oe,
572
+ onPaste: De,
569
573
  onDragover: ce(Re, ["prevent"]),
570
574
  onDragleave: ce(u, ["prevent"]),
571
575
  onDrop: ce(c, ["prevent"])
572
576
  }, [
573
- L(x, { class: "qy-upload__icon" }, {
574
- default: w(() => [
575
- L(q(Ea))
577
+ _(Q, { class: "qy-upload__icon" }, {
578
+ default: S(() => [
579
+ _(q(Wa))
576
580
  ]),
577
581
  _: 1
578
582
  }),
579
- t.supportVideo ? (v(), A(Pe, { key: 0 }, [
583
+ t.supportVideo ? (v(), A(Oe, { key: 0 }, [
580
584
  r[9] || (r[9] = R("span", { class: "qy-upload__label" }, "点击上传视频", -1)),
581
- R("span", rl, "支持 " + ve(j.value.join(" / ")) + ",不超过 " + ve(t.fileSize) + "MB", 1)
582
- ], 64)) : O("", !0),
585
+ R("span", pn, "支持 " + ve(j.value.join(" / ")) + ",不超过 " + ve(t.fileSize) + "MB", 1)
586
+ ], 64)) : D("", !0),
583
587
  t.showText ? (v(), A("div", {
584
588
  key: 1,
585
589
  class: "qy-upload__text",
586
590
  onClick: r[3] || (r[3] = ce(() => {
587
591
  }, ["stop"])),
588
- onPaste: ce(Oe, ["stop"])
592
+ onPaste: ce(De, ["stop"])
589
593
  }, [
590
- L(K, {
594
+ _(K, {
591
595
  visible: H.value,
592
596
  "onUpdate:visible": r[2] || (r[2] = (Ve) => H.value = Ve),
593
597
  placement: "bottom-start",
594
598
  width: 220,
595
599
  trigger: "click",
596
600
  "popper-class": "qy-upload__text-popover",
597
- onAfterEnter: D
601
+ onAfterEnter: P
598
602
  }, {
599
- reference: w(() => [
603
+ reference: S(() => [
600
604
  R("div", {
601
605
  class: ke(["qy-upload__text-preview", { "is-placeholder": !te.value }])
602
606
  }, ve(te.value || t.pastePlaceholder), 3)
603
607
  ]),
604
- default: w(() => [
605
- L(Q, {
608
+ default: S(() => [
609
+ _(x, {
606
610
  ref_key: "inputRef",
607
611
  ref: y,
608
612
  modelValue: te.value,
@@ -612,7 +616,7 @@ const rl = { class: "qy-upload__hint" }, il = ["placeholder", "disabled"], sl =
612
616
  placeholder: t.pastePlaceholder,
613
617
  disabled: t.disabled,
614
618
  onBlur: r[1] || (r[1] = (Ve) => H.value = !1),
615
- onPaste: ce(Oe, ["stop"])
619
+ onPaste: ce(De, ["stop"])
616
620
  }, null, 8, ["modelValue", "placeholder", "disabled"])
617
621
  ]),
618
622
  _: 1
@@ -622,7 +626,7 @@ const rl = { class: "qy-upload__hint" }, il = ["placeholder", "disabled"], sl =
622
626
  class: "qy-upload__text",
623
627
  onClick: r[5] || (r[5] = ce(() => {
624
628
  }, ["stop"])),
625
- onPaste: ce(Oe, ["stop"])
629
+ onPaste: ce(De, ["stop"])
626
630
  }, [
627
631
  R("input", {
628
632
  ref_key: "pasteInputRef",
@@ -630,12 +634,12 @@ const rl = { class: "qy-upload__hint" }, il = ["placeholder", "disabled"], sl =
630
634
  class: "qy-upload__paste-input",
631
635
  placeholder: t.pastePlaceholder,
632
636
  disabled: t.disabled,
633
- onPaste: ce(Oe, ["stop"]),
637
+ onPaste: ce(De, ["stop"]),
634
638
  onInput: me,
635
639
  onClick: r[4] || (r[4] = ce(() => {
636
640
  }, ["stop"]))
637
- }, null, 40, il)
638
- ], 32)) : O("", !0)
641
+ }, null, 40, gn)
642
+ ], 32)) : D("", !0)
639
643
  ], 34))
640
644
  ]),
641
645
  _: 1
@@ -645,8 +649,8 @@ const rl = { class: "qy-upload__hint" }, il = ["placeholder", "disabled"], sl =
645
649
  "url-list": E.value,
646
650
  "initial-index": M.value,
647
651
  onClose: Ce
648
- }, null, 8, ["url-list", "initial-index"])) : O("", !0),
649
- L(he, {
652
+ }, null, 8, ["url-list", "initial-index"])) : D("", !0),
653
+ _(he, {
650
654
  modelValue: G.value,
651
655
  "onUpdate:modelValue": r[7] || (r[7] = (Ve) => G.value = Ve),
652
656
  title: T.value,
@@ -655,41 +659,41 @@ const rl = { class: "qy-upload__hint" }, il = ["placeholder", "disabled"], sl =
655
659
  "destroy-on-close": "",
656
660
  onClose: r[8] || (r[8] = (Ve) => G.value = !1)
657
661
  }, {
658
- default: w(() => [
662
+ default: S(() => [
659
663
  G.value ? (v(), A("video", {
660
664
  key: 0,
661
665
  src: J.value,
662
666
  controls: "",
663
667
  autoplay: "",
664
668
  style: { width: "100%", "max-height": "400px", "border-radius": "4px" }
665
- }, null, 8, sl)) : O("", !0)
669
+ }, null, 8, vn)) : D("", !0)
666
670
  ]),
667
671
  _: 1
668
672
  }, 8, ["modelValue", "title"]),
669
- re.value ? (v(), A("div", ul, [
670
- L(x, null, {
671
- default: w(() => [
672
- L(q(ja))
673
+ re.value ? (v(), A("div", hn, [
674
+ _(Q, null, {
675
+ default: S(() => [
676
+ _(q(Za))
673
677
  ]),
674
678
  _: 1
675
679
  }),
676
680
  R("span", null, [
677
681
  r[12] || (r[12] = Se(" 请上传 ", -1)),
678
- t.fileSize ? (v(), A(Pe, { key: 0 }, [
682
+ t.fileSize ? (v(), A(Oe, { key: 0 }, [
679
683
  r[10] || (r[10] = Se("大小不超过 ", -1)),
680
- R("b", cl, ve(t.fileSize) + "MB", 1)
681
- ], 64)) : O("", !0),
682
- (be = j.value) != null && be.length ? (v(), A(Pe, { key: 1 }, [
684
+ R("b", bn, ve(t.fileSize) + "MB", 1)
685
+ ], 64)) : D("", !0),
686
+ (be = j.value) != null && be.length ? (v(), A(Oe, { key: 1 }, [
683
687
  r[11] || (r[11] = Se(",格式为 ", -1)),
684
- R("b", dl, ve(j.value.join("/")), 1)
685
- ], 64)) : O("", !0),
688
+ R("b", wn, ve(j.value.join("/")), 1)
689
+ ], 64)) : D("", !0),
686
690
  r[13] || (r[13] = Se(" 的文件。 ", -1))
687
691
  ])
688
- ])) : O("", !0)
692
+ ])) : D("", !0)
689
693
  ], 6);
690
694
  };
691
695
  }
692
- }), Qt = /* @__PURE__ */ De(fl, [["__scopeId", "data-v-1e380be1"]]), ml = /* @__PURE__ */ Object.assign({
696
+ }), xt = /* @__PURE__ */ Pe(Sn, [["__scopeId", "data-v-1e380be1"]]), kn = /* @__PURE__ */ Object.assign({
693
697
  name: "QyImageUpload",
694
698
  inheritAttrs: !1
695
699
  }, {
@@ -744,8 +748,8 @@ const rl = { class: "qy-upload__hint" }, il = ["placeholder", "disabled"], sl =
744
748
  "remove",
745
749
  "updateImg"
746
750
  ],
747
- setup(t, { expose: P, emit: Y }) {
748
- const e = t, l = Y, W = Fe(), f = B(null), y = ["jpg", "jpeg", "png", "gif", "bmp", "webp"], m = z(
751
+ setup(t, { expose: O, emit: Y }) {
752
+ const e = t, n = Y, Z = Fe(), f = B(null), y = ["jpg", "jpeg", "png", "gif", "bmp", "webp"], m = z(
749
753
  () => e.voucher || e.mode === "voucher"
750
754
  ), I = z(() => Array.isArray(e.modelValue) ? e.modelValue.filter(Boolean) : e.modelValue ? String(e.modelValue).split(",").filter(Boolean) : []), $ = z(() => e.supportVideo ? 1 : m.value ? e.limit ?? 30 : e.limit ?? (e.multiple ? 9 : 1)), N = z(() => {
751
755
  var a;
@@ -759,26 +763,26 @@ const rl = { class: "qy-upload__hint" }, il = ["placeholder", "disabled"], sl =
759
763
  return e.multiple ? i : i[0] || "";
760
764
  }
761
765
  function G(a) {
762
- l("update:modelValue", M(a));
766
+ n("update:modelValue", M(a));
763
767
  }
764
768
  function J(a) {
765
- l("change", M(a == null ? void 0 : a.files));
769
+ n("change", M(a == null ? void 0 : a.files));
766
770
  }
767
771
  function T(a) {
768
772
  var oe, s;
769
773
  if (typeof a == "string") return a;
770
- const i = a || {}, _ = i.url ?? i.urls ?? ((oe = i.data) == null ? void 0 : oe.url) ?? ((s = i.data) == null ? void 0 : s.urls) ?? "";
771
- return Array.isArray(_) ? _[0] || "" : _ || "";
774
+ const i = a || {}, L = i.url ?? i.urls ?? ((oe = i.data) == null ? void 0 : oe.url) ?? ((s = i.data) == null ? void 0 : s.urls) ?? "";
775
+ return Array.isArray(L) ? L[0] || "" : L || "";
772
776
  }
773
777
  function U(a) {
774
778
  const i = T(a);
775
- i && l("updateImg", i), l("success", C(), a);
779
+ i && n("updateImg", i), n("success", C(), a);
776
780
  }
777
781
  function ee(a) {
778
- l("error", a);
782
+ n("error", a);
779
783
  }
780
784
  function te(a, i) {
781
- l("remove", a, i);
785
+ n("remove", a, i);
782
786
  }
783
787
  function H() {
784
788
  var a, i;
@@ -793,25 +797,25 @@ const rl = { class: "qy-upload__hint" }, il = ["placeholder", "disabled"], sl =
793
797
  return ((i = (a = f.value) == null ? void 0 : a.getPathList) == null ? void 0 : i.call(a)) || [];
794
798
  }
795
799
  const re = z(() => X()), j = z(() => X());
796
- function b() {
800
+ function w() {
797
801
  return X();
798
802
  }
799
803
  function C() {
800
804
  const a = X();
801
805
  return e.multiple ? a : a[0] || "";
802
806
  }
803
- return P({
807
+ return O({
804
808
  openFileDialog: H,
805
809
  clearFiles: ie,
806
810
  getPathList: X,
807
- getFullPathList: b,
811
+ getFullPathList: w,
808
812
  fullPathList: re,
809
813
  pathList: j,
810
814
  getValue: C
811
- }), (a, i) => (v(), de(Qt, Ie({
815
+ }), (a, i) => (v(), de(xt, Ie({
812
816
  ref_key: "uploadRef",
813
817
  ref: f
814
- }, q(W), {
818
+ }, q(Z), {
815
819
  "model-value": I.value,
816
820
  "value-format": "array",
817
821
  api: t.api,
@@ -839,20 +843,20 @@ const rl = { class: "qy-upload__hint" }, il = ["placeholder", "disabled"], sl =
839
843
  onRemove: te
840
844
  }), 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"]));
841
845
  }
842
- }), yl = { class: "text-lg flex items-center pt-2 pl-[var(--content-padding)]" }, pl = { key: 0 }, gl = { key: 1 }, vl = {
846
+ }), Qn = { class: "text-lg flex items-center pt-2 pl-[var(--content-padding)]" }, xn = { key: 0 }, $n = { key: 1 }, Cn = {
843
847
  key: 0,
844
848
  class: "icon-[material-symbols--square-outline-rounded]",
845
849
  role: "img",
846
850
  "aria-hidden": "true"
847
- }, hl = {
851
+ }, Vn = {
848
852
  key: 1,
849
853
  class: "icon-[tdesign--fullscreen-exit-1]",
850
854
  role: "img",
851
855
  "aria-hidden": "true"
852
- }, bl = {
856
+ }, Bn = {
853
857
  key: 0,
854
858
  class: "fixed -right-12 top-2 h-9 w-9 hover:bg-gray-600/80 transition-all"
855
- }, wl = { class: "flex justify-between h-[var(--footer-height)] px-[var(--content-padding)] items-center" }, Sl = { class: "flex items-center justify-between w-full pl-1 pr-4 h-full ml-2" }, kl = { class: "flex items-center gap-2" }, xl = { class: "text-sm text-gray-700 truncate max-w-[200px]" }, Ql = { class: "flex items-center gap-2" }, rt = 5, He = 2e3, Je = /* @__PURE__ */ Ae({
859
+ }, qn = { class: "flex justify-between h-[var(--footer-height)] px-[var(--content-padding)] items-center" }, In = { class: "flex items-center justify-between w-full pl-1 pr-4 h-full ml-2" }, An = { class: "flex items-center gap-2" }, Tn = { class: "text-sm text-gray-700 truncate max-w-[200px]" }, Rn = { class: "flex items-center gap-2" }, rt = 5, He = 2e3, Je = /* @__PURE__ */ Ae({
856
860
  inheritAttrs: !1,
857
861
  __name: "index",
858
862
  props: {
@@ -880,28 +884,28 @@ const rl = { class: "qy-upload__hint" }, il = ["placeholder", "disabled"], sl =
880
884
  zIndex: { default: 2e3 }
881
885
  },
882
886
  emits: ["update:open", "open-change", "confirm", "cancel", "close", "opened", "closed"],
883
- setup(t, { expose: P, emit: Y }) {
887
+ setup(t, { expose: O, emit: Y }) {
884
888
  let e = 0;
885
- const l = t, W = ft(), f = B(!0), y = B(!1), m = B(He), I = B(null), N = lo({
889
+ const n = t, Z = ft(), f = B(!0), y = B(!1), m = B(He), I = B(null), N = so({
886
890
  mobile: 0,
887
891
  tablet: 640,
888
892
  laptop: 1024,
889
893
  desktop: 1280
890
894
  }).isSmaller("tablet"), E = z(() => {
891
895
  const d = [];
892
- return l.showCancel && d.push("cancel"), l.showConfirm && d.push("confirm"), d;
896
+ return n.showCancel && d.push("cancel"), n.showConfirm && d.push("confirm"), d;
893
897
  }), M = z(() => ({
894
- CancelButton: L(xe),
895
- ConfirmButton: L(me)
896
- })), G = z(() => !!(W.footer || l.showFooter)), J = B(!1), T = B(!1);
898
+ CancelButton: _(Qe),
899
+ ConfirmButton: _(me)
900
+ })), G = z(() => !!(Z.footer || n.showFooter)), J = B(!1), T = B(!1);
897
901
  let U = !1, ee = document.activeElement instanceof HTMLElement ? document.activeElement : null;
898
902
  const te = B(
899
- l.showFullscreen && N ? !0 : l.fullscreen
900
- ), H = Y, ie = z(() => l.open);
901
- Ua(() => {
903
+ n.showFullscreen && N ? !0 : n.fullscreen
904
+ ), H = Y, ie = z(() => n.open);
905
+ Na(() => {
902
906
  ie.value && (J.value = !1);
903
907
  }), fe(
904
- () => l.open,
908
+ () => n.open,
905
909
  (d, k) => {
906
910
  if (d) {
907
911
  J.value = !1, T.value = !1, ee = document.activeElement instanceof HTMLElement ? document.activeElement : ee, k === !1 && H("open-change", !0);
@@ -910,23 +914,23 @@ const rl = { class: "qy-upload__hint" }, il = ["placeholder", "disabled"], sl =
910
914
  k && !J.value && (J.value = !0, H("open-change", !1), H("close", "external"));
911
915
  }
912
916
  ), fe(
913
- () => l.confirmLoading,
917
+ () => n.confirmLoading,
914
918
  (d) => {
915
919
  d ? U = !0 : U && (U = !1, T.value = !1);
916
920
  }
917
- ), P({
918
- handleMinimize: h
921
+ ), O({
922
+ handleMinimize: b
919
923
  });
920
924
  const X = `qy-dialog-${Math.random().toString(36).slice(2, 11)}`, re = B(!1);
921
925
  let j = !1;
922
- const b = B(null), { x: C, y: a } = no(b, {
926
+ const w = B(null), { x: C, y: a } = uo(w, {
923
927
  initialValue: {
924
928
  x: 5,
925
929
  y: window.innerHeight - 100 - e * 60
926
930
  },
927
931
  onMove(d) {
928
932
  var k;
929
- (k = b.value) == null || k.classList.add("dragging"), document.body.classList.add("qy-dialog--dragging"), C.value = Math.max(
933
+ (k = w.value) == null || k.classList.add("dragging"), document.body.classList.add("qy-dialog--dragging"), C.value = Math.max(
930
934
  0,
931
935
  Math.min(window.innerWidth - 300, d.x)
932
936
  ), a.value = Math.max(
@@ -936,63 +940,63 @@ const rl = { class: "qy-upload__hint" }, il = ["placeholder", "disabled"], sl =
936
940
  },
937
941
  onEnd() {
938
942
  var d;
939
- (d = b.value) == null || d.classList.remove("dragging"), document.body.classList.remove("qy-dialog--dragging");
943
+ (d = w.value) == null || d.classList.remove("dragging"), document.body.classList.remove("qy-dialog--dragging");
940
944
  }
941
945
  }), i = z(() => ({
942
946
  transform: `translate(${C.value}px, ${a.value}px)`,
943
947
  willChange: "transform"
944
948
  }));
945
- function _(d) {
946
- const k = d.target, { scrollTop: se, scrollHeight: le, clientHeight: $e } = k;
947
- f.value = se <= rt, y.value = le - (se + $e) <= rt;
949
+ function L(d) {
950
+ const k = d.target, { scrollTop: se, scrollHeight: ne, clientHeight: $e } = k;
951
+ f.value = se <= rt, y.value = ne - (se + $e) <= rt;
948
952
  }
949
953
  function oe() {
950
954
  const d = document.querySelector(`.${X}.el-dialog`);
951
- d && (I.value = d, d.addEventListener("scroll", _)), ae(), H("opened");
955
+ d && (I.value = d, d.addEventListener("scroll", L)), ae(), H("opened");
952
956
  }
953
957
  function s() {
954
958
  te.value = !te.value, ae();
955
959
  }
956
960
  function g(d) {
957
- l.confirmLoading && d !== "external" || J.value || (J.value = !0, n(), H("update:open", !1), H("open-change", !1), (d === "cancel" || d === "header") && H("cancel"), H("close", d));
961
+ n.confirmLoading && d !== "external" || J.value || (J.value = !0, l(), H("update:open", !1), H("open-change", !1), (d === "cancel" || d === "header") && H("cancel"), H("close", d));
958
962
  }
959
963
  function V() {
960
- H("closed"), Le(() => {
964
+ H("closed"), _e(() => {
961
965
  ee != null && ee.isConnected && ee.focus();
962
966
  });
963
967
  }
964
- function D(d) {
965
- l.showFullscreen && d.detail >= 2 && s();
968
+ function P(d) {
969
+ n.showFullscreen && d.detail >= 2 && s();
966
970
  }
967
971
  function me() {
968
- return nt(
972
+ return lt(
969
973
  Be,
970
974
  {
971
975
  type: "primary",
972
976
  class: "dialog__footerBtn",
973
- loading: l.confirmLoading,
974
- disabled: l.confirmDisabled || l.confirmLoading || T.value,
977
+ loading: n.confirmLoading,
978
+ disabled: n.confirmDisabled || n.confirmLoading || T.value,
975
979
  onClick: pe
976
980
  },
977
- () => l.confirmText
981
+ () => n.confirmText
978
982
  );
979
983
  }
980
984
  function pe() {
981
- T.value || l.confirmLoading || l.confirmDisabled || (T.value = !0, H("confirm"), l.closeOnConfirm && g("confirm"));
985
+ T.value || n.confirmLoading || n.confirmDisabled || (T.value = !0, H("confirm"), n.closeOnConfirm && g("confirm"));
982
986
  }
983
- function xe() {
984
- return nt(
987
+ function Qe() {
988
+ return lt(
985
989
  Be,
986
990
  { class: "dialog__footerBtn", onClick: () => g("cancel") },
987
- () => l.cancelText
991
+ () => n.cancelText
988
992
  );
989
993
  }
990
994
  Xe(() => {
991
995
  typeof window.qyDialogMaxZIndex > "u" && (window.qyDialogMaxZIndex = He), ae(), document.addEventListener("keydown", qe), document.addEventListener("mousedown", p);
992
996
  });
993
- function Qe() {
994
- var le, $e;
995
- const d = (le = document.querySelector(`.${X}`)) == null ? void 0 : le.closest(".el-overlay");
997
+ function xe() {
998
+ var ne, $e;
999
+ const d = (ne = document.querySelector(`.${X}`)) == null ? void 0 : ne.closest(".el-overlay");
996
1000
  if (!d) return !1;
997
1001
  const se = Array.from(
998
1002
  document.querySelectorAll(".el-overlay")
@@ -1009,10 +1013,10 @@ const rl = { class: "qy-upload__hint" }, il = ["placeholder", "disabled"], sl =
1009
1013
  ), (($e = se.at(-1)) == null ? void 0 : $e.overlay) === d;
1010
1014
  }
1011
1015
  function qe(d) {
1012
- d.key !== "Escape" || !l.open || !l.closeOnEscape || l.confirmLoading || !Qe() || (d.preventDefault(), g("escape"));
1016
+ d.key !== "Escape" || !n.open || !n.closeOnEscape || n.confirmLoading || !xe() || (d.preventDefault(), g("escape"));
1013
1017
  }
1014
1018
  function p(d) {
1015
- if (!l.open || !l.closeOnOverlay || l.confirmLoading || !Qe() || !(d.target instanceof Node))
1019
+ if (!n.open || !n.closeOnOverlay || n.confirmLoading || !xe() || !(d.target instanceof Node))
1016
1020
  return;
1017
1021
  const k = document.querySelector(`.${X}.el-dialog`), se = k == null ? void 0 : k.closest(".el-overlay");
1018
1022
  !k || !se || !se.contains(d.target) || k.contains(d.target) || g("overlay");
@@ -1025,51 +1029,51 @@ const rl = { class: "qy-upload__hint" }, il = ["placeholder", "disabled"], sl =
1025
1029
  `.${X}.el-dialog`
1026
1030
  );
1027
1031
  if (!k || !se) return;
1028
- const le = He;
1029
- window.qyDialogMaxZIndex = window.qyDialogMaxZIndex || le;
1032
+ const ne = He;
1033
+ window.qyDialogMaxZIndex = window.qyDialogMaxZIndex || ne;
1030
1034
  const ge = Math.max(
1031
1035
  window.qyDialogMaxZIndex,
1032
1036
  ...d.map(
1033
- (Te) => parseInt(window.getComputedStyle(Te).zIndex || le.toString())
1037
+ (Te) => parseInt(window.getComputedStyle(Te).zIndex || ne.toString())
1034
1038
  )
1035
1039
  ) + 2;
1036
- window.qyDialogMaxZIndex = ge, Le(() => {
1040
+ window.qyDialogMaxZIndex = ge, _e(() => {
1037
1041
  k.style.zIndex = ge.toString(), se.style.zIndex = (ge + 1).toString(), m.value = ge + 1;
1038
1042
  });
1039
1043
  }
1040
1044
  mt(() => {
1041
1045
  var d;
1042
- document.removeEventListener("keydown", qe), document.removeEventListener("mousedown", p), (d = I.value) == null || d.removeEventListener("scroll", _), n();
1046
+ document.removeEventListener("keydown", qe), document.removeEventListener("mousedown", p), (d = I.value) == null || d.removeEventListener("scroll", L), l();
1043
1047
  });
1044
- function n() {
1048
+ function l() {
1045
1049
  if (!j) {
1046
1050
  re.value = !1;
1047
1051
  return;
1048
1052
  }
1049
1053
  j = !1, e = Math.max(0, e - 1), re.value = !1;
1050
1054
  }
1051
- function h() {
1055
+ function b() {
1052
1056
  var k;
1053
1057
  const d = (k = document.querySelector(`.${X}`)) == null ? void 0 : k.closest(".el-overlay");
1054
- !d || !l.open || (re.value ? (re.value = !1, d.style.display = "block", j && (j = !1, e = Math.max(0, e - 1)), ae()) : (re.value = !0, d.style.display = "none", j = !0, e += 1, a.value = window.innerHeight - 50 - e * 60));
1058
+ !d || !n.open || (re.value ? (re.value = !1, d.style.display = "block", j && (j = !1, e = Math.max(0, e - 1)), ae()) : (re.value = !0, d.style.display = "none", j = !0, e += 1, a.value = window.innerHeight - 50 - e * 60));
1055
1059
  }
1056
1060
  return (d, k) => {
1057
- const se = ut, le = ct;
1061
+ const se = ut, ne = ct;
1058
1062
  return v(), A("div", null, [
1059
- L(le, {
1063
+ _(ne, {
1060
1064
  ref: "dialogRef",
1061
1065
  class: ke(["qy-dialog", [
1062
- l.size === "small" && "[&_.el-dialog__header]:!hidden",
1066
+ n.size === "small" && "[&_.el-dialog__header]:!hidden",
1063
1067
  X
1064
1068
  ]]),
1065
1069
  "model-value": ie.value,
1066
- title: l.title,
1067
- width: l.width,
1068
- top: l.top,
1070
+ title: n.title,
1071
+ width: n.width,
1072
+ top: n.top,
1069
1073
  "align-center": "",
1070
1074
  "append-to-body": "",
1071
- "destroy-on-close": l.destroyOnClose,
1072
- "lock-scroll": l.lockScroll,
1075
+ "destroy-on-close": n.destroyOnClose,
1076
+ "lock-scroll": n.lockScroll,
1073
1077
  style: {
1074
1078
  "--el-dialog-padding-primary": 0
1075
1079
  },
@@ -1079,10 +1083,10 @@ const rl = { class: "qy-upload__hint" }, il = ["placeholder", "disabled"], sl =
1079
1083
  "z-index": m.value,
1080
1084
  onClosed: V,
1081
1085
  onOpened: oe,
1082
- draggable: l.draggable
1086
+ draggable: n.draggable
1083
1087
  }, Ke({
1084
- header: w(() => [
1085
- l.size === "default" ? (v(), A("div", {
1088
+ header: S(() => [
1089
+ n.size === "default" ? (v(), A("div", {
1086
1090
  key: 0,
1087
1091
  style: Me({
1088
1092
  borderBottom: "1px solid",
@@ -1090,22 +1094,22 @@ const rl = { class: "qy-upload__hint" }, il = ["placeholder", "disabled"], sl =
1090
1094
  transition: "border-color .2s linear"
1091
1095
  }),
1092
1096
  class: "flex justify-between h-[var(--header-height)]",
1093
- onDblclick: D
1097
+ onDblclick: P
1094
1098
  }, [
1095
- R("div", yl, [
1096
- q(W).header ? q(W).header ? (v(), A("div", gl, [
1099
+ R("div", Qn, [
1100
+ q(Z).header ? q(Z).header ? (v(), A("div", $n, [
1097
1101
  F(d.$slots, "header")
1098
- ])) : O("", !0) : (v(), A("span", pl, ve(l.title), 1))
1102
+ ])) : D("", !0) : (v(), A("span", xn, ve(n.title), 1))
1099
1103
  ]),
1100
1104
  R("div", {
1101
1105
  class: "flex",
1102
1106
  onMousedown: k[4] || (k[4] = ce(() => {
1103
1107
  }, ["stop"]))
1104
1108
  }, [
1105
- l.size === "default" && l.minimizable ? (v(), A("div", {
1109
+ n.size === "default" && n.minimizable ? (v(), A("div", {
1106
1110
  key: 0,
1107
1111
  class: "qy-dialog__btn qy-dialog__btn--default",
1108
- onClick: ce(h, ["stop"]),
1112
+ onClick: ce(b, ["stop"]),
1109
1113
  onMousedown: k[0] || (k[0] = ce(() => {
1110
1114
  }, ["stop"]))
1111
1115
  }, [...k[7] || (k[7] = [
@@ -1114,16 +1118,16 @@ const rl = { class: "qy-upload__hint" }, il = ["placeholder", "disabled"], sl =
1114
1118
  role: "img",
1115
1119
  "aria-hidden": "true"
1116
1120
  }, null, -1)
1117
- ])], 32)) : O("", !0),
1118
- l.showFullscreen ? (v(), A("div", {
1121
+ ])], 32)) : D("", !0),
1122
+ n.showFullscreen ? (v(), A("div", {
1119
1123
  key: 1,
1120
1124
  class: "qy-dialog__btn qy-dialog__btn--default",
1121
1125
  onClick: ce(s, ["stop"]),
1122
1126
  onMousedown: k[1] || (k[1] = ce(() => {
1123
1127
  }, ["stop"]))
1124
1128
  }, [
1125
- te.value ? (v(), A("span", hl)) : (v(), A("span", vl))
1126
- ], 32)) : O("", !0),
1129
+ te.value ? (v(), A("span", Vn)) : (v(), A("span", Cn))
1130
+ ], 32)) : D("", !0),
1127
1131
  R("div", {
1128
1132
  class: "qy-dialog__btn qy-dialog__btn--danger",
1129
1133
  onClick: k[2] || (k[2] = ce(($e) => g("header"), ["stop"])),
@@ -1137,37 +1141,37 @@ const rl = { class: "qy-upload__hint" }, il = ["placeholder", "disabled"], sl =
1137
1141
  }, null, -1)
1138
1142
  ])], 32)
1139
1143
  ], 32)
1140
- ], 36)) : O("", !0)
1144
+ ], 36)) : D("", !0)
1141
1145
  ]),
1142
- default: w(() => [
1146
+ default: S(() => [
1143
1147
  R("div", {
1144
- class: ke(["qy-dialog__wrapper", q(oo)(te.value && "qy-dialog__wrapper--fullscreen")]),
1148
+ class: ke(["qy-dialog__wrapper", q(io)(te.value && "qy-dialog__wrapper--fullscreen")]),
1145
1149
  style: Me({
1146
1150
  maxHeight: G.value ? "calc(100vh - var(--header-height) - var(--footer-height) - var(--sides-gap))" : "calc(100vh - var(--header-height) - var(--sides-gap))",
1147
- padding: l.size === "small" ? "var(--small-content-padding)" : "var(--content-padding)"
1151
+ padding: n.size === "small" ? "var(--small-content-padding)" : "var(--content-padding)"
1148
1152
  })
1149
1153
  }, [
1150
- l.size === "small" ? (v(), A("div", bl, [
1151
- L(se, {
1154
+ n.size === "small" ? (v(), A("div", Bn, [
1155
+ _(se, {
1152
1156
  size: 36,
1153
1157
  class: "cursor-pointer text-gray-100 active:scale-75 rounded-sm transition-all",
1154
1158
  onClick: k[5] || (k[5] = ($e) => g("header"))
1155
1159
  }, {
1156
- default: w(() => [
1157
- L(q(Na))
1160
+ default: S(() => [
1161
+ _(q(Ga))
1158
1162
  ]),
1159
1163
  _: 1
1160
1164
  })
1161
- ])) : O("", !0),
1165
+ ])) : D("", !0),
1162
1166
  F(d.$slots, "default")
1163
1167
  ], 6)
1164
1168
  ]),
1165
1169
  _: 2
1166
1170
  }, [
1167
- l.showFooter && !d.$slots.footer && Array.isArray(E.value) ? {
1171
+ n.showFooter && !d.$slots.footer && Array.isArray(E.value) ? {
1168
1172
  name: "footer",
1169
- fn: w(() => [
1170
- R("div", wl, [
1173
+ fn: S(() => [
1174
+ R("div", qn, [
1171
1175
  R("div", null, [
1172
1176
  F(d.$slots, "footer-left")
1173
1177
  ]),
@@ -1176,8 +1180,8 @@ const rl = { class: "qy-upload__hint" }, il = ["placeholder", "disabled"], sl =
1176
1180
  "qy-dialog__footer--outline": y.value
1177
1181
  }, "qy-dialog__footer flex items-center justify-end"])
1178
1182
  }, [
1179
- E.value.includes("cancel") ? (v(), de(xe, { key: 0 })) : O("", !0),
1180
- E.value.includes("confirm") ? (v(), de(me, { key: 1 })) : O("", !0),
1183
+ E.value.includes("cancel") ? (v(), de(Qe, { key: 0 })) : D("", !0),
1184
+ E.value.includes("confirm") ? (v(), de(me, { key: 1 })) : D("", !0),
1181
1185
  F(d.$slots, "footer-append")
1182
1186
  ], 2)
1183
1187
  ])
@@ -1185,7 +1189,7 @@ const rl = { class: "qy-upload__hint" }, il = ["placeholder", "disabled"], sl =
1185
1189
  key: "0"
1186
1190
  } : G.value ? {
1187
1191
  name: "footer",
1188
- fn: w(() => [
1192
+ fn: S(() => [
1189
1193
  R("div", {
1190
1194
  class: ke([{
1191
1195
  "qy-dialog__footer--outline": y.value
@@ -1202,19 +1206,19 @@ const rl = { class: "qy-upload__hint" }, il = ["placeholder", "disabled"], sl =
1202
1206
  ]), 1032, ["class", "model-value", "title", "width", "top", "destroy-on-close", "lock-scroll", "fullscreen", "z-index", "draggable"]),
1203
1207
  Ye(R("div", {
1204
1208
  ref_key: "minimizedRef",
1205
- ref: b,
1209
+ ref: w,
1206
1210
  class: "fixed left-0 top-0 bg-white rounded shadow-lg cursor-pointer z-[9999] hover:bg-gray-50",
1207
1211
  style: Me([i.value, { width: "300px", height: "50px", "will-change": "transform" }])
1208
1212
  }, [
1209
- R("div", Sl, [
1210
- R("div", kl, [
1213
+ R("div", In, [
1214
+ R("div", An, [
1211
1215
  k[9] || (k[9] = R("div", { class: "icon-[mdi--window-restore] text-gray-600" }, null, -1)),
1212
- R("span", xl, ve(l.title), 1)
1216
+ R("span", Tn, ve(n.title), 1)
1213
1217
  ]),
1214
- R("div", Ql, [
1218
+ R("div", Rn, [
1215
1219
  R("div", {
1216
1220
  class: "p-1 hover:bg-gray-200 rounded",
1217
- onClick: ce(h, ["stop"])
1221
+ onClick: ce(b, ["stop"])
1218
1222
  }, [...k[10] || (k[10] = [
1219
1223
  R("div", { class: "icon-[mdi--window-maximize] text-gray-600" }, null, -1)
1220
1224
  ])]),
@@ -1234,41 +1238,41 @@ const rl = { class: "qy-upload__hint" }, il = ["placeholder", "disabled"], sl =
1234
1238
  }
1235
1239
  });
1236
1240
  function it(t) {
1237
- const P = t == null ? void 0 : t.match(/(\[url\:(.*?)\])(.*)/);
1238
- return P ? {
1239
- imageUrl: P[2],
1240
- text: P[3]
1241
+ const O = t == null ? void 0 : t.match(/(\[url\:(.*?)\])(.*)/);
1242
+ return O ? {
1243
+ imageUrl: O[2],
1244
+ text: O[3]
1241
1245
  } : {
1242
1246
  imageUrl: "",
1243
1247
  text: t || ""
1244
1248
  };
1245
1249
  }
1246
- function $l(t) {
1247
- const P = String(t || "").match(/(\[url\:.*?\])([\s\S]*)/);
1248
- return P ? P[2] : t;
1250
+ function zn(t) {
1251
+ const O = String(t || "").match(/(\[url\:.*?\])([\s\S]*)/);
1252
+ return O ? O[2] : t;
1249
1253
  }
1250
- function st(t, P) {
1251
- return P ? `[url:${P}]${t}` : t;
1254
+ function st(t, O) {
1255
+ return O ? `[url:${O}]${t}` : t;
1252
1256
  }
1253
- const Cl = { class: "qy-remark-image__field" }, Vl = {
1257
+ const Fn = { class: "qy-remark-image__field" }, Pn = {
1254
1258
  key: 1,
1255
1259
  class: "qy-remark-image__divider"
1256
- }, Bl = { class: "qy-remark-image__upload-anchor" }, ql = {
1260
+ }, Dn = { class: "qy-remark-image__upload-anchor" }, On = {
1257
1261
  key: 0,
1258
1262
  class: "icon-[line-md--loading-twotone-loop]",
1259
1263
  role: "img",
1260
1264
  "aria-hidden": "true"
1261
- }, Il = {
1265
+ }, Mn = {
1262
1266
  key: 1,
1263
1267
  class: "icon-[ion--cloud-upload-outline]",
1264
1268
  role: "img",
1265
1269
  "aria-hidden": "true"
1266
- }, Al = {
1270
+ }, _n = {
1267
1271
  key: 2,
1268
1272
  class: "icon-[ph--images-thin]",
1269
1273
  role: "img",
1270
1274
  "aria-hidden": "true"
1271
- }, Tl = { class: "qy-remark-image__popover" }, Rl = ["src"], zl = { class: "qy-remark-image__popover-footer" }, Fl = /* @__PURE__ */ Ae({
1275
+ }, Ln = { class: "qy-remark-image__popover" }, Un = ["src"], Kn = { class: "qy-remark-image__popover-footer" }, En = /* @__PURE__ */ Ae({
1272
1276
  __name: "index",
1273
1277
  props: {
1274
1278
  defaultValue: { default: "" },
@@ -1289,8 +1293,8 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
1289
1293
  uploadRequest: {}
1290
1294
  },
1291
1295
  emits: ["change", "update:selectValue", "select-change"],
1292
- setup(t, { expose: P, emit: Y }) {
1293
- const e = t, l = Y, W = Fe(), f = B(null), y = B(""), m = B(""), I = B(!1), $ = z(
1296
+ setup(t, { expose: O, emit: Y }) {
1297
+ const e = t, n = Y, Z = Fe(), f = B(null), y = B(""), m = B(""), I = B(!1), $ = z(
1294
1298
  () => e.layout === "select-prefix"
1295
1299
  ), N = z(() => ({
1296
1300
  "qy-remark-image--select-prefix": $.value
@@ -1304,36 +1308,36 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
1304
1308
  });
1305
1309
  fe(
1306
1310
  () => e.defaultValue,
1307
- (b) => {
1308
- const C = it(b || "");
1311
+ (w) => {
1312
+ const C = it(w || "");
1309
1313
  y.value = C.text, m.value = C.imageUrl || e.defaultImage || "";
1310
1314
  },
1311
1315
  { immediate: !0 }
1312
1316
  ), fe(
1313
1317
  () => e.defaultImage,
1314
- (b) => {
1315
- b !== void 0 && !it(e.defaultValue || "").imageUrl && (m.value = b || "");
1318
+ (w) => {
1319
+ w !== void 0 && !it(e.defaultValue || "").imageUrl && (m.value = w || "");
1316
1320
  },
1317
1321
  { immediate: !0 }
1318
1322
  ), Xe(() => {
1319
- Le(J);
1323
+ _e(J);
1320
1324
  }), mt(() => {
1321
- const b = G();
1322
- b && b.removeEventListener("paste", H);
1325
+ const w = G();
1326
+ w && w.removeEventListener("paste", H);
1323
1327
  });
1324
1328
  function G() {
1325
- var b, C;
1326
- return ((b = f.value) == null ? void 0 : b.textarea) || ((C = f.value) == null ? void 0 : C.input) || null;
1329
+ var w, C;
1330
+ return ((w = f.value) == null ? void 0 : w.textarea) || ((C = f.value) == null ? void 0 : C.input) || null;
1327
1331
  }
1328
1332
  function J() {
1329
- const b = G();
1330
- b && (b.removeEventListener("paste", H), b.addEventListener("paste", H));
1333
+ const w = G();
1334
+ w && (w.removeEventListener("paste", H), w.addEventListener("paste", H));
1331
1335
  }
1332
- function T(b) {
1333
- y.value = $l(b || "");
1336
+ function T(w) {
1337
+ y.value = zn(w || "");
1334
1338
  }
1335
- function U(b) {
1336
- l("update:selectValue", b), l("select-change", b);
1339
+ function U(w) {
1340
+ n("update:selectValue", w), n("select-change", w);
1337
1341
  }
1338
1342
  function ee() {
1339
1343
  m.value = "", j();
@@ -1341,10 +1345,10 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
1341
1345
  function te() {
1342
1346
  y.value = "", m.value = "", j();
1343
1347
  }
1344
- async function H(b) {
1348
+ async function H(w) {
1345
1349
  var i;
1346
- const a = Array.from(((i = b.clipboardData) == null ? void 0 : i.files) || []).find((_) => _.type.startsWith("image/"));
1347
- a && (b.preventDefault(), await ie({
1350
+ const a = Array.from(((i = w.clipboardData) == null ? void 0 : i.files) || []).find((L) => L.type.startsWith("image/"));
1351
+ a && (w.preventDefault(), await ie({
1348
1352
  file: a,
1349
1353
  onError: () => {
1350
1354
  },
@@ -1354,31 +1358,31 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
1354
1358
  }
1355
1359
  }));
1356
1360
  }
1357
- async function ie(b) {
1361
+ async function ie(w) {
1358
1362
  var C, a;
1359
- if (b.file.size > 51200 * 1e3)
1363
+ if (w.file.size > 51200 * 1e3)
1360
1364
  return we.error("图片过大"), !1;
1361
1365
  I.value = !0;
1362
1366
  try {
1363
- const i = await X(b);
1364
- return m.value = re(i), j(), we.success("上传图片成功"), (C = b.onSuccess) == null || C.call(b, i), !0;
1367
+ const i = await X(w);
1368
+ return m.value = re(i), j(), we.success("上传图片成功"), (C = w.onSuccess) == null || C.call(w, i), !0;
1365
1369
  } catch (i) {
1366
- return (a = b.onError) == null || a.call(b, i), we.error("上传失败"), !1;
1370
+ return (a = w.onError) == null || a.call(w, i), we.error("上传失败"), !1;
1367
1371
  } finally {
1368
1372
  I.value = !1;
1369
1373
  }
1370
1374
  }
1371
- async function X(b) {
1375
+ async function X(w) {
1372
1376
  const C = new FormData();
1373
- if (C.append(e.uploadName, b.file), e.uploadRequest)
1377
+ if (C.append(e.uploadName, w.file), e.uploadRequest)
1374
1378
  return e.uploadRequest({
1375
- file: b.file,
1379
+ file: w.file,
1376
1380
  formData: C,
1377
- options: b,
1381
+ options: w,
1378
1382
  api: e.api,
1379
1383
  tokenKey: e.tokenKey
1380
1384
  });
1381
- const a = xt.get(e.tokenKey);
1385
+ const a = Qt.get(e.tokenKey);
1382
1386
  return (await fetch(e.api, {
1383
1387
  method: "POST",
1384
1388
  body: C,
@@ -1386,20 +1390,20 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
1386
1390
  headers: a ? { Authorization: `Bearer ${a}` } : void 0
1387
1391
  })).json();
1388
1392
  }
1389
- function re(b) {
1390
- var i, _;
1391
- if (typeof b == "string") return b;
1392
- const C = b, a = (C == null ? void 0 : C.urls) ?? ((i = C == null ? void 0 : C.data) == null ? void 0 : i.urls) ?? ((_ = C == null ? void 0 : C.data) == null ? void 0 : _.url) ?? (C == null ? void 0 : C.url) ?? "";
1393
+ function re(w) {
1394
+ var i, L;
1395
+ if (typeof w == "string") return w;
1396
+ const C = w, a = (C == null ? void 0 : C.urls) ?? ((i = C == null ? void 0 : C.data) == null ? void 0 : i.urls) ?? ((L = C == null ? void 0 : C.data) == null ? void 0 : L.url) ?? (C == null ? void 0 : C.url) ?? "";
1393
1397
  return Array.isArray(a) ? a[0] || "" : a || "";
1394
1398
  }
1395
1399
  function j() {
1396
- l(
1400
+ n(
1397
1401
  "change",
1398
1402
  st(y.value || "", m.value || ""),
1399
1403
  m.value || ""
1400
1404
  );
1401
1405
  }
1402
- return P({
1406
+ return O({
1403
1407
  deleteImage: ee,
1404
1408
  // 兼容旧 remarkImage,在表单 reset/clearFrom 时清空文字和图片。
1405
1409
  clearContent: te,
@@ -1409,11 +1413,11 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
1409
1413
  imageUrl: m.value || "",
1410
1414
  value: st(y.value || "", m.value || "")
1411
1415
  })
1412
- }), (b, C) => (v(), A("div", {
1416
+ }), (w, C) => (v(), A("div", {
1413
1417
  class: ke(["qy-remark-image", N.value]),
1414
1418
  style: Me(M.value)
1415
1419
  }, [
1416
- R("div", Cl, [
1420
+ R("div", Fn, [
1417
1421
  $.value ? (v(), de(q(vt), {
1418
1422
  key: 0,
1419
1423
  class: "qy-remark-image__prefix-select",
@@ -1423,8 +1427,8 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
1423
1427
  size: "small",
1424
1428
  "onUpdate:modelValue": U
1425
1429
  }, {
1426
- default: w(() => [
1427
- (v(!0), A(Pe, null, et(t.selectOptions, (a) => (v(), de(q(ht), {
1430
+ default: S(() => [
1431
+ (v(!0), A(Oe, null, et(t.selectOptions, (a) => (v(), de(q(ht), {
1428
1432
  key: String(a.value),
1429
1433
  label: a.label,
1430
1434
  value: a.value,
@@ -1432,9 +1436,9 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
1432
1436
  }, null, 8, ["label", "value", "disabled"]))), 128))
1433
1437
  ]),
1434
1438
  _: 1
1435
- }, 8, ["model-value", "options", "disabled"])) : O("", !0),
1436
- $.value ? (v(), A("span", Vl)) : O("", !0),
1437
- L(q(Ue), Ie({
1439
+ }, 8, ["model-value", "options", "disabled"])) : D("", !0),
1440
+ $.value ? (v(), A("span", Pn)) : D("", !0),
1441
+ _(q(Ue), Ie({
1438
1442
  ref_key: "inputRef",
1439
1443
  ref: f,
1440
1444
  "model-value": y.value,
@@ -1443,47 +1447,47 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
1443
1447
  autosize: t.autosize,
1444
1448
  disabled: t.disabled,
1445
1449
  placeholder: t.placeholder
1446
- }, q(W), {
1450
+ }, q(Z), {
1447
1451
  "onUpdate:modelValue": T,
1448
1452
  onBlur: j
1449
1453
  }), null, 16, ["model-value", "type", "rows", "autosize", "disabled", "placeholder"]),
1450
- L(q(Za), {
1454
+ _(q(Xa), {
1451
1455
  placement: "top-start",
1452
1456
  width: 400,
1453
1457
  trigger: "hover",
1454
1458
  disabled: !m.value
1455
1459
  }, {
1456
- reference: w(() => [
1457
- R("div", Bl, [
1458
- L(q(Wa), {
1460
+ reference: S(() => [
1461
+ R("div", Dn, [
1462
+ _(q(Ya), {
1459
1463
  disabled: I.value || t.disabled,
1460
1464
  class: "qy-remark-image__upload",
1461
1465
  "show-file-list": !1,
1462
1466
  "http-request": ie
1463
1467
  }, {
1464
- default: w(() => [
1465
- I.value ? (v(), A("span", ql)) : m.value ? (v(), A("span", Al)) : (v(), A("span", Il))
1468
+ default: S(() => [
1469
+ I.value ? (v(), A("span", On)) : m.value ? (v(), A("span", _n)) : (v(), A("span", Mn))
1466
1470
  ]),
1467
1471
  _: 1
1468
1472
  }, 8, ["disabled"])
1469
1473
  ])
1470
1474
  ]),
1471
- default: w(() => [
1472
- R("div", Tl, [
1475
+ default: S(() => [
1476
+ R("div", Ln, [
1473
1477
  R("img", {
1474
1478
  src: m.value,
1475
1479
  class: "qy-remark-image__preview-img"
1476
- }, null, 8, Rl),
1477
- R("div", zl, [
1480
+ }, null, 8, Un),
1481
+ R("div", Kn, [
1478
1482
  C[1] || (C[1] = R("span", { class: "qy-remark-image__popover-tip" }, "再次点击按钮可更换图片", -1)),
1479
- L(q(Be), {
1483
+ _(q(Be), {
1480
1484
  link: "",
1481
1485
  size: "small",
1482
1486
  type: "danger",
1483
1487
  disabled: t.disabled,
1484
1488
  onClick: ee
1485
1489
  }, {
1486
- default: w(() => [...C[0] || (C[0] = [
1490
+ default: S(() => [...C[0] || (C[0] = [
1487
1491
  Se(" 删除图片 ", -1)
1488
1492
  ])]),
1489
1493
  _: 1
@@ -1496,7 +1500,7 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
1496
1500
  ])
1497
1501
  ], 6));
1498
1502
  }
1499
- }), Dl = /* @__PURE__ */ De(Fl, [["__scopeId", "data-v-47f20c2b"]]), Ol = /* @__PURE__ */ Ae({
1503
+ }), jn = /* @__PURE__ */ Pe(En, [["__scopeId", "data-v-3158c066"]]), Nn = /* @__PURE__ */ Ae({
1500
1504
  name: "QyMoneyInput",
1501
1505
  inheritAttrs: !1,
1502
1506
  __name: "index",
@@ -1510,8 +1514,8 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
1510
1514
  emptyValue: { default: "" }
1511
1515
  },
1512
1516
  emits: ["update:modelValue", "input", "change", "focus", "blur", "clear", "enter"],
1513
- setup(t, { expose: P, emit: Y }) {
1514
- const e = t, l = Y, W = Fe(), f = B(null), y = B(I(e.modelValue)), m = z(() => I(e.modelValue));
1517
+ setup(t, { expose: O, emit: Y }) {
1518
+ const e = t, n = Y, Z = Fe(), f = B(null), y = B(I(e.modelValue)), m = z(() => I(e.modelValue));
1515
1519
  fe(
1516
1520
  () => e.modelValue,
1517
1521
  (a) => {
@@ -1526,25 +1530,25 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
1526
1530
  }
1527
1531
  function N(a) {
1528
1532
  const i = I(a);
1529
- let _ = "", oe = !1, s = !1;
1533
+ let L = "", oe = !1, s = !1;
1530
1534
  const g = $(e.precision);
1531
1535
  for (let V = 0; V < i.length; V += 1) {
1532
- const D = i[V];
1533
- if (D >= "0" && D <= "9") {
1534
- _ += D;
1536
+ const P = i[V];
1537
+ if (P >= "0" && P <= "9") {
1538
+ L += P;
1535
1539
  continue;
1536
1540
  }
1537
- if (D === "." && g > 0 && !oe) {
1538
- _ += D, oe = !0;
1541
+ if (P === "." && g > 0 && !oe) {
1542
+ L += P, oe = !0;
1539
1543
  continue;
1540
1544
  }
1541
- D === "-" && e.allowNegative && V === 0 && !s && (_ += D, s = !0);
1545
+ P === "-" && e.allowNegative && V === 0 && !s && (L += P, s = !0);
1542
1546
  }
1543
1547
  if (g > 0 && oe) {
1544
- const [V, D = ""] = _.split(".");
1545
- return `${V}.${D.slice(0, g)}`;
1548
+ const [V, P = ""] = L.split(".");
1549
+ return `${V}.${P.slice(0, g)}`;
1546
1550
  }
1547
- return _;
1551
+ return L;
1548
1552
  }
1549
1553
  function E(a) {
1550
1554
  let i = a;
@@ -1554,13 +1558,13 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
1554
1558
  const i = N(a);
1555
1559
  if (!i || i === "-" || i === ".")
1556
1560
  return I(e.emptyValue);
1557
- const _ = Number(i);
1558
- if (Number.isNaN(_)) return I(e.emptyValue);
1561
+ const L = Number(i);
1562
+ if (Number.isNaN(L)) return I(e.emptyValue);
1559
1563
  const oe = $(e.precision);
1560
- return E(_).toFixed(oe);
1564
+ return E(L).toFixed(oe);
1561
1565
  }
1562
1566
  function G(a) {
1563
- y.value = a, l("update:modelValue", a);
1567
+ y.value = a, n("update:modelValue", a);
1564
1568
  }
1565
1569
  function J(a) {
1566
1570
  const i = N(a);
@@ -1568,28 +1572,28 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
1568
1572
  }
1569
1573
  function T(a) {
1570
1574
  const i = N(a);
1571
- y.value = i, l("input", i);
1575
+ y.value = i, n("input", i);
1572
1576
  }
1573
1577
  function U(a) {
1574
1578
  const i = e.formatTrigger === "change" ? M(a) : N(a);
1575
- i !== I(e.modelValue) && G(i), l("change", i);
1579
+ i !== I(e.modelValue) && G(i), n("change", i);
1576
1580
  }
1577
1581
  function ee(a) {
1578
- l("focus", a);
1582
+ n("focus", a);
1579
1583
  }
1580
1584
  function te(a) {
1581
1585
  if (e.formatTrigger === "blur") {
1582
1586
  const i = M(y.value);
1583
1587
  i !== I(e.modelValue) && G(i);
1584
1588
  }
1585
- l("blur", a);
1589
+ n("blur", a);
1586
1590
  }
1587
1591
  function H() {
1588
1592
  const a = I(e.emptyValue);
1589
- y.value = a, l("update:modelValue", a), l("clear");
1593
+ y.value = a, n("update:modelValue", a), n("clear");
1590
1594
  }
1591
1595
  function ie(a) {
1592
- l("enter", a);
1596
+ n("enter", a);
1593
1597
  }
1594
1598
  function X() {
1595
1599
  var a, i;
@@ -1603,7 +1607,7 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
1603
1607
  var a, i;
1604
1608
  (i = (a = f.value) == null ? void 0 : a.select) == null || i.call(a);
1605
1609
  }
1606
- function b() {
1610
+ function w() {
1607
1611
  var a, i;
1608
1612
  (i = (a = f.value) == null ? void 0 : a.clear) == null || i.call(a);
1609
1613
  }
@@ -1611,16 +1615,16 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
1611
1615
  var a;
1612
1616
  return ((a = f.value) == null ? void 0 : a.input) || null;
1613
1617
  }
1614
- return P({
1618
+ return O({
1615
1619
  focus: X,
1616
1620
  blur: re,
1617
1621
  select: j,
1618
- clear: b,
1622
+ clear: w,
1619
1623
  getNativeInput: C
1620
1624
  }), (a, i) => (v(), de(q(Ue), Ie({
1621
1625
  ref_key: "inputRef",
1622
1626
  ref: f
1623
- }, q(W), {
1627
+ }, q(Z), {
1624
1628
  "model-value": m.value,
1625
1629
  inputmode: "decimal",
1626
1630
  "onUpdate:modelValue": J,
@@ -1633,35 +1637,35 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
1633
1637
  }), Ke({ _: 2 }, [
1634
1638
  a.$slots.prefix ? {
1635
1639
  name: "prefix",
1636
- fn: w(() => [
1640
+ fn: S(() => [
1637
1641
  F(a.$slots, "prefix")
1638
1642
  ]),
1639
1643
  key: "0"
1640
1644
  } : void 0,
1641
1645
  a.$slots.suffix ? {
1642
1646
  name: "suffix",
1643
- fn: w(() => [
1647
+ fn: S(() => [
1644
1648
  F(a.$slots, "suffix")
1645
1649
  ]),
1646
1650
  key: "1"
1647
1651
  } : void 0,
1648
1652
  a.$slots.prepend ? {
1649
1653
  name: "prepend",
1650
- fn: w(() => [
1654
+ fn: S(() => [
1651
1655
  F(a.$slots, "prepend")
1652
1656
  ]),
1653
1657
  key: "2"
1654
1658
  } : void 0,
1655
1659
  a.$slots.append ? {
1656
1660
  name: "append",
1657
- fn: w(() => [
1661
+ fn: S(() => [
1658
1662
  F(a.$slots, "append")
1659
1663
  ]),
1660
1664
  key: "3"
1661
1665
  } : void 0
1662
1666
  ]), 1040, ["model-value"]));
1663
1667
  }
1664
- }), Pl = /* @__PURE__ */ Ae({
1668
+ }), Hn = /* @__PURE__ */ Ae({
1665
1669
  name: "QyRemoteSelect",
1666
1670
  inheritAttrs: !1,
1667
1671
  __name: "index",
@@ -1694,15 +1698,15 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
1694
1698
  commitOnBlur: { type: Boolean, default: !1 }
1695
1699
  },
1696
1700
  emits: ["update:modelValue", "change", "clear", "visible-change", "focus", "blur", "options-change", "loading-change", "error"],
1697
- setup(t, { expose: P, emit: Y }) {
1698
- const e = t, l = Y, W = Fe(), f = B(null), y = B([]), m = B(/* @__PURE__ */ new Map()), I = B(!1), $ = B(""), N = B("");
1701
+ setup(t, { expose: O, emit: Y }) {
1702
+ const e = t, n = Y, Z = Fe(), f = B(null), y = B([]), m = B(/* @__PURE__ */ new Map()), I = B(!1), $ = B(""), N = B("");
1699
1703
  let E = 0, M = null;
1700
1704
  const G = z(() => e.loading || I.value), J = B(!1), T = z(() => $.value !== ""), U = z(() => {
1701
1705
  if (T.value) return y.value;
1702
- const p = /* @__PURE__ */ new Map(), ae = (n) => {
1703
- p.set(ee(n), n);
1706
+ const p = /* @__PURE__ */ new Map(), ae = (l) => {
1707
+ p.set(ee(l), l);
1704
1708
  };
1705
- return e.defaultOptions.forEach(ae), e.reserveSelectedOption && m.value.forEach((n) => ae(n)), y.value.forEach(ae), Array.from(p.values());
1709
+ return e.defaultOptions.forEach(ae), e.reserveSelectedOption && m.value.forEach((l) => ae(l)), y.value.forEach(ae), Array.from(p.values());
1706
1710
  });
1707
1711
  fe(
1708
1712
  () => e.defaultOptions,
@@ -1732,30 +1736,30 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
1732
1736
  return e.disabled ? !1 : p ? p.length >= e.minLength : e.remoteOnFocus;
1733
1737
  }
1734
1738
  function X(p) {
1735
- I.value !== p && (I.value = p, l("loading-change", p));
1739
+ I.value !== p && (I.value = p, n("loading-change", p));
1736
1740
  }
1737
1741
  async function re(p) {
1738
- const ae = me(p), n = ++E;
1742
+ const ae = me(p), l = ++E;
1739
1743
  if (pe(ae), !ie(ae)) {
1740
- y.value = [], X(!1), l("options-change", U.value);
1744
+ y.value = [], X(!1), n("options-change", U.value);
1741
1745
  return;
1742
1746
  }
1743
1747
  X(!0);
1744
1748
  try {
1745
- const h = await e.fetchMethod(ae);
1746
- if (n !== E) return;
1747
- y.value = Array.isArray(h) ? h : [], y.value.forEach(H), l("options-change", U.value);
1748
- } catch (h) {
1749
- if (n !== E) return;
1750
- y.value = [], l("error", h), l("options-change", U.value);
1749
+ const b = await e.fetchMethod(ae);
1750
+ if (l !== E) return;
1751
+ y.value = Array.isArray(b) ? b : [], y.value.forEach(H), n("options-change", U.value);
1752
+ } catch (b) {
1753
+ if (l !== E) return;
1754
+ y.value = [], n("error", b), n("options-change", U.value);
1751
1755
  } finally {
1752
- n === E && X(!1);
1756
+ l === E && X(!1);
1753
1757
  }
1754
1758
  }
1755
1759
  function j() {
1756
1760
  J.value || (J.value = !0, re(""));
1757
1761
  }
1758
- function b(p) {
1762
+ function w(p) {
1759
1763
  const ae = me(p);
1760
1764
  N.value = ae, E += 1, pe(ae), M && (clearTimeout(M), M = null), M = setTimeout(() => {
1761
1765
  re(ae);
@@ -1768,58 +1772,58 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
1768
1772
  re($.value);
1769
1773
  }
1770
1774
  function i(p) {
1771
- N.value = "", l("update:modelValue", p);
1775
+ N.value = "", n("update:modelValue", p);
1772
1776
  }
1773
- function _(p) {
1774
- N.value = "", U.value.forEach(H), l("change", p);
1777
+ function L(p) {
1778
+ N.value = "", U.value.forEach(H), n("change", p);
1775
1779
  }
1776
1780
  function oe() {
1777
- N.value = "", l("clear");
1781
+ N.value = "", n("clear");
1778
1782
  }
1779
1783
  function s(p) {
1780
- p && e.remoteOnFocus && !$.value && j(), l("visible-change", p);
1784
+ p && e.remoteOnFocus && !$.value && j(), n("visible-change", p);
1781
1785
  }
1782
1786
  function g(p) {
1783
- e.remoteOnFocus && !$.value && j(), l("focus", p);
1787
+ e.remoteOnFocus && !$.value && j(), n("focus", p);
1784
1788
  }
1785
1789
  function V(p) {
1786
- D(), l("blur", p);
1790
+ P(), n("blur", p);
1787
1791
  }
1788
- function D() {
1792
+ function P() {
1789
1793
  if (!e.allowCreate || !e.commitOnBlur || e.disabled) return;
1790
1794
  const p = N.value;
1791
- p.trim() && (N.value = "", l("update:modelValue", p), l("change", p));
1795
+ p.trim() && (N.value = "", n("update:modelValue", p), n("change", p));
1792
1796
  }
1793
1797
  function me(p) {
1794
1798
  return String(p ?? "");
1795
1799
  }
1796
1800
  function pe(p) {
1797
- $.value = p, y.value = [], l("options-change", U.value);
1801
+ $.value = p, y.value = [], n("options-change", U.value);
1798
1802
  }
1799
- function xe() {
1803
+ function Qe() {
1800
1804
  var p, ae;
1801
1805
  (ae = (p = f.value) == null ? void 0 : p.focus) == null || ae.call(p);
1802
1806
  }
1803
- function Qe() {
1807
+ function xe() {
1804
1808
  var p, ae;
1805
1809
  (ae = (p = f.value) == null ? void 0 : p.blur) == null || ae.call(p);
1806
1810
  }
1807
1811
  function qe() {
1808
- l("update:modelValue", e.multiple ? [] : ""), l("clear");
1812
+ n("update:modelValue", e.multiple ? [] : ""), n("clear");
1809
1813
  }
1810
1814
  return dt(() => {
1811
1815
  M && clearTimeout(M);
1812
- }), P({
1816
+ }), O({
1813
1817
  // 暴露远程选择常用控制方法,供弹窗打开后聚焦或请求失败后重试。
1814
- focus: xe,
1815
- blur: Qe,
1818
+ focus: Qe,
1819
+ blur: xe,
1816
1820
  clear: qe,
1817
1821
  retryFetch: a,
1818
1822
  fetchDefaultOptions: C
1819
1823
  }), (p, ae) => (v(), de(tt, Ie({
1820
1824
  ref_key: "selectRef",
1821
1825
  ref: f
1822
- }, q(W), {
1826
+ }, q(Z), {
1823
1827
  "model-value": t.modelValue,
1824
1828
  options: U.value,
1825
1829
  "label-key": t.labelKey,
@@ -1841,54 +1845,54 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
1841
1845
  remote: "",
1842
1846
  debounce: 0,
1843
1847
  "remote-show-suffix": t.remoteShowSuffix,
1844
- "remote-method": b,
1848
+ "remote-method": w,
1845
1849
  loading: G.value,
1846
1850
  "onUpdate:modelValue": i,
1847
- onChange: _,
1851
+ onChange: L,
1848
1852
  onClear: oe,
1849
1853
  onVisibleChange: s,
1850
1854
  onFocus: g,
1851
1855
  onBlur: V
1852
1856
  }), Ke({
1853
- default: w(() => [
1854
- p.$slots.default ? F(p.$slots, "default", {}, void 0, void 0, 0) : O("", !0)
1857
+ default: S(() => [
1858
+ p.$slots.default ? F(p.$slots, "default", {}, void 0, void 0, 0) : D("", !0)
1855
1859
  ]),
1856
1860
  _: 2
1857
1861
  }, [
1858
1862
  p.$slots.prefix ? {
1859
1863
  name: "prefix",
1860
- fn: w(() => [
1864
+ fn: S(() => [
1861
1865
  F(p.$slots, "prefix")
1862
1866
  ]),
1863
1867
  key: "0"
1864
1868
  } : void 0,
1865
1869
  p.$slots.empty ? {
1866
1870
  name: "empty",
1867
- fn: w(() => [
1871
+ fn: S(() => [
1868
1872
  F(p.$slots, "empty")
1869
1873
  ]),
1870
1874
  key: "1"
1871
1875
  } : void 0,
1872
1876
  p.$slots.loading ? {
1873
1877
  name: "loading",
1874
- fn: w(() => [
1878
+ fn: S(() => [
1875
1879
  F(p.$slots, "loading")
1876
1880
  ]),
1877
1881
  key: "2"
1878
1882
  } : void 0,
1879
1883
  p.$slots.tag ? {
1880
1884
  name: "tag",
1881
- fn: w((n) => [
1882
- F(p.$slots, "tag", pt(gt(n)))
1885
+ fn: S((l) => [
1886
+ F(p.$slots, "tag", pt(gt(l)))
1883
1887
  ]),
1884
1888
  key: "3"
1885
1889
  } : void 0
1886
1890
  ]), 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"]));
1887
1891
  }
1888
- }), Ml = { class: "qy-search-input__item" }, Ll = ["innerHTML"], _l = {
1892
+ }), Wn = { class: "qy-search-input__item" }, Zn = ["innerHTML"], Gn = {
1889
1893
  key: 0,
1890
1894
  class: "qy-search-input__item-description"
1891
- }, Ul = /* @__PURE__ */ Ae({
1895
+ }, Jn = /* @__PURE__ */ Ae({
1892
1896
  name: "QySearchInput",
1893
1897
  inheritAttrs: !1,
1894
1898
  __name: "index",
@@ -1918,171 +1922,171 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
1918
1922
  fitInputWidth: { type: Boolean, default: !0 }
1919
1923
  },
1920
1924
  emits: ["update:modelValue", "search", "clear", "input", "change", "focus", "blur", "enter", "select", "visible-change", "suggestions-change", "error"],
1921
- setup(t, { expose: P, emit: Y }) {
1922
- const e = t, l = Y, W = Fe(), f = B(null), y = B(E(e.modelValue)), m = z(() => E(e.modelValue)), I = z(
1925
+ setup(t, { expose: O, emit: Y }) {
1926
+ const e = t, n = Y, Z = Fe(), f = B(null), y = B(E(e.modelValue)), m = z(() => E(e.modelValue)), I = z(
1923
1927
  () => ["qy-search-input__popper", e.popperClass].filter(Boolean).join(" ")
1924
1928
  ), $ = z(() => E(e.modelValue)), N = B("");
1925
1929
  fe(
1926
1930
  () => e.modelValue,
1927
- (n) => {
1928
- y.value = E(n);
1931
+ (l) => {
1932
+ y.value = E(l);
1929
1933
  }
1930
1934
  );
1931
- function E(n) {
1932
- return n == null ? "" : String(n);
1935
+ function E(l) {
1936
+ return l == null ? "" : String(l);
1933
1937
  }
1934
- function M(n) {
1935
- return e.removeSpace ? n.replace(/\s+/g, "") : n;
1938
+ function M(l) {
1939
+ return e.removeSpace ? l.replace(/\s+/g, "") : l;
1936
1940
  }
1937
- function G(n, h) {
1938
- return e.trimMode !== h ? n : n.trim();
1941
+ function G(l, b) {
1942
+ return e.trimMode !== b ? l : l.trim();
1939
1943
  }
1940
- function J(n) {
1941
- return M(E(n));
1944
+ function J(l) {
1945
+ return M(E(l));
1942
1946
  }
1943
- function T(n) {
1944
- y.value = n, l("update:modelValue", n);
1947
+ function T(l) {
1948
+ y.value = l, n("update:modelValue", l);
1945
1949
  }
1946
- function U(n, h = "") {
1950
+ function U(l, b = "") {
1947
1951
  return {
1948
- ...n,
1949
- label: n.label || n.value,
1950
- value: n.value || n.label,
1951
- description: n.description || h
1952
+ ...l,
1953
+ label: l.label || l.value,
1954
+ value: l.value || l.label,
1955
+ description: l.description || b
1952
1956
  };
1953
1957
  }
1954
- function ee(n = []) {
1955
- return n.flatMap((h) => {
1956
- if (Array.isArray(h.items)) {
1957
- const d = h;
1958
+ function ee(l = []) {
1959
+ return l.flatMap((b) => {
1960
+ if (Array.isArray(b.items)) {
1961
+ const d = b;
1958
1962
  return d.items.map((k) => U(k, d.groupLabel));
1959
1963
  }
1960
- return U(h);
1964
+ return U(b);
1961
1965
  });
1962
1966
  }
1963
- function te(n) {
1964
- const h = n.toLowerCase();
1965
- return (d) => [d.label, d.value, d.description].filter(Boolean).some((k) => String(k).toLowerCase().includes(h));
1967
+ function te(l) {
1968
+ const b = l.toLowerCase();
1969
+ return (d) => [d.label, d.value, d.description].filter(Boolean).some((k) => String(k).toLowerCase().includes(b));
1966
1970
  }
1967
- function H(n) {
1968
- return n ? n.length >= e.minLength : e.triggerOnFocus;
1971
+ function H(l) {
1972
+ return l ? l.length >= e.minLength : e.triggerOnFocus;
1969
1973
  }
1970
- function ie(n) {
1971
- l("suggestions-change", n), l("visible-change", n.length > 0);
1974
+ function ie(l) {
1975
+ n("suggestions-change", l), n("visible-change", l.length > 0);
1972
1976
  }
1973
- async function X(n) {
1974
- if (!H(n))
1977
+ async function X(l) {
1978
+ if (!H(l))
1975
1979
  return ie([]), [];
1976
1980
  if (e.fetchSuggestionsMethod) {
1977
1981
  const k = await new Promise((se) => {
1978
- var le;
1979
- (le = e.fetchSuggestionsMethod) == null || le.call(e, n, ($e) => {
1982
+ var ne;
1983
+ (ne = e.fetchSuggestionsMethod) == null || ne.call(e, l, ($e) => {
1980
1984
  se(ee($e));
1981
1985
  });
1982
1986
  });
1983
1987
  return ie(k), k;
1984
1988
  }
1985
1989
  if (e.fetchSuggestions) {
1986
- const k = await e.fetchSuggestions(n), se = ee(Array.isArray(k) ? k : []);
1990
+ const k = await e.fetchSuggestions(l), se = ee(Array.isArray(k) ? k : []);
1987
1991
  return ie(se), se;
1988
1992
  }
1989
- const h = ee(e.suggestions), d = n ? h.filter(te(n)) : h;
1993
+ const b = ee(e.suggestions), d = l ? b.filter(te(l)) : b;
1990
1994
  return ie(d), d;
1991
1995
  }
1992
- async function re(n, h) {
1993
- N.value = n;
1996
+ async function re(l, b) {
1997
+ N.value = l;
1994
1998
  try {
1995
- const d = await X(n);
1996
- h(d);
1999
+ const d = await X(l);
2000
+ b(d);
1997
2001
  } catch (d) {
1998
- l("error", d), ie([]), h([]);
2002
+ n("error", d), ie([]), b([]);
1999
2003
  }
2000
2004
  }
2001
2005
  function j() {
2002
- var n, h;
2003
- N.value && ((h = (n = f.value) == null ? void 0 : n.getData) == null || h.call(n, N.value));
2006
+ var l, b;
2007
+ N.value && ((b = (l = f.value) == null ? void 0 : l.getData) == null || b.call(l, N.value));
2004
2008
  }
2005
- function b(n) {
2006
- const h = J(n);
2007
- T(h);
2009
+ function w(l) {
2010
+ const b = J(l);
2011
+ T(b);
2008
2012
  }
2009
- function C(n) {
2010
- const h = J(n);
2011
- y.value = h, l("input", h);
2013
+ function C(l) {
2014
+ const b = J(l);
2015
+ y.value = b, n("input", b);
2012
2016
  }
2013
- function a(n) {
2014
- const h = G(J(n), "change");
2015
- h !== E(e.modelValue) && T(h), l("change", h);
2017
+ function a(l) {
2018
+ const b = G(J(l), "change");
2019
+ b !== E(e.modelValue) && T(b), n("change", b);
2016
2020
  }
2017
- function i(n) {
2018
- l("focus", n);
2021
+ function i(l) {
2022
+ n("focus", l);
2019
2023
  }
2020
- function _(n) {
2021
- const h = G(y.value, "blur");
2022
- h !== E(e.modelValue) && T(h), l("blur", n), l("visible-change", !1);
2024
+ function L(l) {
2025
+ const b = G(y.value, "blur");
2026
+ b !== E(e.modelValue) && T(b), n("blur", l), n("visible-change", !1);
2023
2027
  }
2024
2028
  function oe() {
2025
- y.value = "", l("update:modelValue", ""), l("clear"), ie([]);
2029
+ y.value = "", n("update:modelValue", ""), n("clear"), ie([]);
2026
2030
  }
2027
- function s(n) {
2028
- l("enter", n), e.searchOnEnter && g();
2031
+ function s(l) {
2032
+ n("enter", l), e.searchOnEnter && g();
2029
2033
  }
2030
2034
  function g() {
2031
- l("search", E(e.modelValue));
2035
+ n("search", E(e.modelValue));
2032
2036
  }
2033
- function V(n) {
2034
- l("select", n), e.searchOnSelect && l("search", n.value);
2037
+ function V(l) {
2038
+ n("select", l), e.searchOnSelect && n("search", l.value);
2035
2039
  }
2036
- function D(n) {
2037
- return n.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
2040
+ function P(l) {
2041
+ return l.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
2038
2042
  }
2039
- function me(n) {
2040
- return n.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
2043
+ function me(l) {
2044
+ return l.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
2041
2045
  }
2042
- function pe(n) {
2043
- const h = D(n || "");
2044
- if (!e.highlightKeyword || !m.value) return h;
2045
- const d = me(D(m.value));
2046
- return d ? h.replace(
2046
+ function pe(l) {
2047
+ const b = P(l || "");
2048
+ if (!e.highlightKeyword || !m.value) return b;
2049
+ const d = me(P(m.value));
2050
+ return d ? b.replace(
2047
2051
  new RegExp(`(${d})`, "ig"),
2048
2052
  '<mark class="qy-search-input__mark">$1</mark>'
2049
- ) : h;
2050
- }
2051
- function xe() {
2052
- var n, h;
2053
- (h = (n = f.value) == null ? void 0 : n.focus) == null || h.call(n);
2053
+ ) : b;
2054
2054
  }
2055
2055
  function Qe() {
2056
- var n, h;
2057
- (h = (n = f.value) == null ? void 0 : n.blur) == null || h.call(n);
2056
+ var l, b;
2057
+ (b = (l = f.value) == null ? void 0 : l.focus) == null || b.call(l);
2058
+ }
2059
+ function xe() {
2060
+ var l, b;
2061
+ (b = (l = f.value) == null ? void 0 : l.blur) == null || b.call(l);
2058
2062
  }
2059
2063
  function qe() {
2060
- var n, h, d;
2061
- (d = (h = (n = f.value) == null ? void 0 : n.inputRef) == null ? void 0 : h.select) == null || d.call(h);
2064
+ var l, b, d;
2065
+ (d = (b = (l = f.value) == null ? void 0 : l.inputRef) == null ? void 0 : b.select) == null || d.call(b);
2062
2066
  }
2063
2067
  function p() {
2064
- var n, h;
2065
- (h = (n = f.value) == null ? void 0 : n.clear) == null || h.call(n);
2068
+ var l, b;
2069
+ (b = (l = f.value) == null ? void 0 : l.clear) == null || b.call(l);
2066
2070
  }
2067
2071
  function ae() {
2068
- var n, h;
2069
- (h = (n = f.value) == null ? void 0 : n.close) == null || h.call(n);
2072
+ var l, b;
2073
+ (b = (l = f.value) == null ? void 0 : l.close) == null || b.call(l);
2070
2074
  }
2071
- return P({
2075
+ return O({
2072
2076
  // 暴露搜索框常用控制方法,供弹窗打开后聚焦或失败后重试建议项。
2073
- focus: xe,
2074
- blur: Qe,
2077
+ focus: Qe,
2078
+ blur: xe,
2075
2079
  select: qe,
2076
2080
  clear: p,
2077
2081
  closePanel: ae,
2078
2082
  retryFetch: j
2079
- }), (n, h) => (v(), A("div", {
2083
+ }), (l, b) => (v(), A("div", {
2080
2084
  class: ke(["qy-search-input", { "is-disabled": t.disabled }])
2081
2085
  }, [
2082
- L(q(Ga), Ie({
2086
+ _(q(eo), Ie({
2083
2087
  ref_key: "autocompleteRef",
2084
2088
  ref: f
2085
- }, q(W), {
2089
+ }, q(Z), {
2086
2090
  "model-value": $.value,
2087
2091
  disabled: t.disabled,
2088
2092
  placeholder: t.placeholder,
@@ -2095,61 +2099,61 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
2095
2099
  "popper-class": I.value,
2096
2100
  "append-to": t.appendTo,
2097
2101
  "value-key": "value",
2098
- "onUpdate:modelValue": b,
2102
+ "onUpdate:modelValue": w,
2099
2103
  onInput: C,
2100
2104
  onChange: a,
2101
2105
  onFocus: i,
2102
- onBlur: _,
2106
+ onBlur: L,
2103
2107
  onClear: oe,
2104
2108
  onSelect: V,
2105
2109
  onKeydown: je(s, ["enter"])
2106
2110
  }), Ke({
2107
- default: w(({ item: d }) => [
2108
- F(n.$slots, "item", {
2111
+ default: S(({ item: d }) => [
2112
+ F(l.$slots, "item", {
2109
2113
  item: d,
2110
2114
  keyword: m.value
2111
2115
  }, () => [
2112
- R("div", Ml, [
2116
+ R("div", Wn, [
2113
2117
  R("div", {
2114
2118
  class: "qy-search-input__item-label",
2115
2119
  innerHTML: pe(d.label || d.value || "")
2116
- }, null, 8, Ll),
2117
- d.description ? (v(), A("div", _l, ve(d.description), 1)) : O("", !0)
2120
+ }, null, 8, Zn),
2121
+ d.description ? (v(), A("div", Gn, ve(d.description), 1)) : D("", !0)
2118
2122
  ])
2119
2123
  ], !0)
2120
2124
  ]),
2121
2125
  _: 2
2122
2126
  }, [
2123
- n.$slots.prefix ? {
2127
+ l.$slots.prefix ? {
2124
2128
  name: "prefix",
2125
- fn: w(() => [
2126
- F(n.$slots, "prefix", {}, void 0, !0)
2129
+ fn: S(() => [
2130
+ F(l.$slots, "prefix", {}, void 0, !0)
2127
2131
  ]),
2128
2132
  key: "0"
2129
2133
  } : void 0,
2130
- n.$slots.suffix ? {
2134
+ l.$slots.suffix ? {
2131
2135
  name: "suffix",
2132
- fn: w(() => [
2133
- F(n.$slots, "suffix", {}, void 0, !0)
2136
+ fn: S(() => [
2137
+ F(l.$slots, "suffix", {}, void 0, !0)
2134
2138
  ]),
2135
2139
  key: "1"
2136
2140
  } : void 0,
2137
- n.$slots.prepend ? {
2141
+ l.$slots.prepend ? {
2138
2142
  name: "prepend",
2139
- fn: w(() => [
2140
- F(n.$slots, "prepend", {}, void 0, !0)
2143
+ fn: S(() => [
2144
+ F(l.$slots, "prepend", {}, void 0, !0)
2141
2145
  ]),
2142
2146
  key: "2"
2143
2147
  } : void 0,
2144
- n.$slots.append || t.showButton ? {
2148
+ l.$slots.append || t.showButton ? {
2145
2149
  name: "append",
2146
- fn: w(() => [
2147
- n.$slots.append ? F(n.$slots, "append", {}, void 0, !0, 0) : (v(), de(q(Be), Ie({ key: 1 }, t.buttonProps, {
2150
+ fn: S(() => [
2151
+ l.$slots.append ? F(l.$slots, "append", {}, void 0, !0, 0) : (v(), de(q(Be), Ie({ key: 1 }, t.buttonProps, {
2148
2152
  loading: t.loading,
2149
2153
  disabled: t.disabled,
2150
2154
  onClick: g
2151
2155
  }), {
2152
- default: w(() => [
2156
+ default: S(() => [
2153
2157
  Se(ve(t.buttonText), 1)
2154
2158
  ]),
2155
2159
  _: 1
@@ -2160,16 +2164,16 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
2160
2164
  ]), 1040, ["model-value", "disabled", "placeholder", "clearable", "debounce", "trigger-on-focus", "teleported", "fit-input-width", "popper-class", "append-to"])
2161
2165
  ], 2));
2162
2166
  }
2163
- }), $t = /* @__PURE__ */ De(Ul, [["__scopeId", "data-v-33980cea"]]), Kl = { class: "qy-record-quote-search" }, El = {
2167
+ }), $t = /* @__PURE__ */ Pe(Jn, [["__scopeId", "data-v-cd7f5dfc"]]), Xn = { class: "qy-record-quote-search" }, Yn = {
2164
2168
  key: 0,
2165
2169
  class: "qy-record-quote-search__header"
2166
- }, jl = {
2170
+ }, el = {
2167
2171
  key: 0,
2168
2172
  class: "qy-record-quote-search__label"
2169
- }, Nl = {
2173
+ }, tl = {
2170
2174
  key: 1,
2171
2175
  class: "qy-record-quote-search__description"
2172
- }, Hl = /* @__PURE__ */ Ae({
2176
+ }, al = /* @__PURE__ */ Ae({
2173
2177
  name: "QyRecordQuoteSearch",
2174
2178
  inheritAttrs: !1,
2175
2179
  __name: "index",
@@ -2197,14 +2201,14 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
2197
2201
  trimMode: { default: "blur" }
2198
2202
  },
2199
2203
  emits: ["update:modelValue", "search", "clear", "normalize", "enter", "select", "error", "success"],
2200
- setup(t, { expose: P, emit: Y }) {
2201
- const e = t, l = Y, W = Fe(), f = B(null), y = B(!1), m = z(() => e.statusText || ""), I = z(() => e.loading || y.value);
2204
+ setup(t, { expose: O, emit: Y }) {
2205
+ const e = t, n = Y, Z = Fe(), f = B(null), y = B(!1), m = z(() => e.statusText || ""), I = z(() => e.loading || y.value);
2202
2206
  function $(a) {
2203
2207
  return a == null ? "" : String(a);
2204
2208
  }
2205
2209
  function N(a) {
2206
- const i = $(a).trim(), _ = E(i), oe = _.match(/BJ\d{8}[A-Z0-9]{4}/i);
2207
- return oe ? oe[0] : _;
2210
+ const i = $(a).trim(), L = E(i), oe = L.match(/BJ\d{8}[A-Z0-9]{4}/i);
2211
+ return oe ? oe[0] : L;
2208
2212
  }
2209
2213
  function E(a) {
2210
2214
  return $(a).replace(/\s+/g, "").trim().toUpperCase();
@@ -2216,24 +2220,24 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
2216
2220
  return e.normalizeMethod ? e.normalizeMethod(a) : E(a);
2217
2221
  }
2218
2222
  function J(a, i) {
2219
- const _ = $(a), oe = M(_), s = e.autoNormalize ? G(oe) : oe;
2220
- return l("normalize", { rawValue: _, code: s }), {
2221
- rawValue: _,
2223
+ const L = $(a), oe = M(L), s = e.autoNormalize ? G(oe) : oe;
2224
+ return n("normalize", { rawValue: L, code: s }), {
2225
+ rawValue: L,
2222
2226
  code: s,
2223
2227
  item: i
2224
2228
  };
2225
2229
  }
2226
2230
  function T(a) {
2227
- l("update:modelValue", a);
2231
+ n("update:modelValue", a);
2228
2232
  }
2229
2233
  async function U(a) {
2230
- if (l("search", a), !!e.searchMethod) {
2234
+ if (n("search", a), !!e.searchMethod) {
2231
2235
  y.value = !0;
2232
2236
  try {
2233
2237
  const i = await e.searchMethod(a);
2234
- l("success", i);
2238
+ n("success", i);
2235
2239
  } catch (i) {
2236
- l("error", i);
2240
+ n("error", i);
2237
2241
  } finally {
2238
2242
  y.value = !1;
2239
2243
  }
@@ -2241,21 +2245,21 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
2241
2245
  }
2242
2246
  function ee(a) {
2243
2247
  const i = J(a);
2244
- i.code !== $(e.modelValue) && l("update:modelValue", i.code), U(i);
2248
+ i.code !== $(e.modelValue) && n("update:modelValue", i.code), U(i);
2245
2249
  }
2246
2250
  function te() {
2247
- l("clear");
2251
+ n("clear");
2248
2252
  }
2249
2253
  function H(a) {
2250
- l("enter", a);
2254
+ n("enter", a);
2251
2255
  }
2252
2256
  function ie(a) {
2253
- if (l("select", a), !e.searchOnSelect) return;
2257
+ if (n("select", a), !e.searchOnSelect) return;
2254
2258
  const i = J(a.value, a);
2255
- i.code !== $(e.modelValue) && l("update:modelValue", i.code), U(i);
2259
+ i.code !== $(e.modelValue) && n("update:modelValue", i.code), U(i);
2256
2260
  }
2257
2261
  function X(a) {
2258
- l("error", a);
2262
+ n("error", a);
2259
2263
  }
2260
2264
  function re() {
2261
2265
  var a, i;
@@ -2265,7 +2269,7 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
2265
2269
  var a, i;
2266
2270
  (i = (a = f.value) == null ? void 0 : a.blur) == null || i.call(a);
2267
2271
  }
2268
- function b() {
2272
+ function w() {
2269
2273
  var a, i;
2270
2274
  (i = (a = f.value) == null ? void 0 : a.select) == null || i.call(a);
2271
2275
  }
@@ -2273,24 +2277,24 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
2273
2277
  var a, i;
2274
2278
  (i = (a = f.value) == null ? void 0 : a.clear) == null || i.call(a);
2275
2279
  }
2276
- return P({
2280
+ return O({
2277
2281
  focus: re,
2278
2282
  blur: j,
2279
- select: b,
2283
+ select: w,
2280
2284
  clear: C,
2281
2285
  extractQuoteOrderCode: M,
2282
2286
  normalizeQuoteOrderCode: G
2283
- }), (a, i) => (v(), A("div", Kl, [
2287
+ }), (a, i) => (v(), A("div", Xn, [
2284
2288
  F(a.$slots, "label", {}, () => [
2285
- t.label || t.description ? (v(), A("div", El, [
2286
- t.label ? (v(), A("div", jl, ve(t.label), 1)) : O("", !0),
2287
- t.description ? (v(), A("div", Nl, ve(t.description), 1)) : O("", !0)
2288
- ])) : O("", !0)
2289
+ t.label || t.description ? (v(), A("div", Yn, [
2290
+ t.label ? (v(), A("div", el, ve(t.label), 1)) : D("", !0),
2291
+ t.description ? (v(), A("div", tl, ve(t.description), 1)) : D("", !0)
2292
+ ])) : D("", !0)
2289
2293
  ], !0),
2290
- L($t, Ie({
2294
+ _($t, Ie({
2291
2295
  ref_key: "searchRef",
2292
2296
  ref: f
2293
- }, q(W), {
2297
+ }, q(Z), {
2294
2298
  "model-value": t.modelValue,
2295
2299
  loading: I.value,
2296
2300
  disabled: t.disabled,
@@ -2313,35 +2317,35 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
2313
2317
  }), Ke({ _: 2 }, [
2314
2318
  a.$slots.prefix ? {
2315
2319
  name: "prefix",
2316
- fn: w(() => [
2320
+ fn: S(() => [
2317
2321
  F(a.$slots, "prefix", {}, void 0, !0)
2318
2322
  ]),
2319
2323
  key: "0"
2320
2324
  } : void 0,
2321
2325
  a.$slots.suffix ? {
2322
2326
  name: "suffix",
2323
- fn: w(() => [
2327
+ fn: S(() => [
2324
2328
  F(a.$slots, "suffix", {}, void 0, !0)
2325
2329
  ]),
2326
2330
  key: "1"
2327
2331
  } : void 0,
2328
2332
  a.$slots.item ? {
2329
2333
  name: "item",
2330
- fn: w((_) => [
2331
- F(a.$slots, "item", pt(gt(_)), void 0, !0)
2334
+ fn: S((L) => [
2335
+ F(a.$slots, "item", pt(gt(L)), void 0, !0)
2332
2336
  ]),
2333
2337
  key: "2"
2334
2338
  } : void 0,
2335
2339
  a.$slots.empty ? {
2336
2340
  name: "empty",
2337
- fn: w(() => [
2341
+ fn: S(() => [
2338
2342
  F(a.$slots, "empty", {}, void 0, !0)
2339
2343
  ]),
2340
2344
  key: "3"
2341
2345
  } : void 0,
2342
2346
  a.$slots.loading ? {
2343
2347
  name: "loading",
2344
- fn: w(() => [
2348
+ fn: S(() => [
2345
2349
  F(a.$slots, "loading", {}, void 0, !0)
2346
2350
  ]),
2347
2351
  key: "4"
@@ -2354,25 +2358,25 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
2354
2358
  R("div", {
2355
2359
  class: ke(["qy-record-quote-search__status", `is-${t.status}`])
2356
2360
  }, ve(m.value), 3)
2357
- ], !0, 0) : O("", !0)
2361
+ ], !0, 0) : D("", !0)
2358
2362
  ]));
2359
2363
  }
2360
- }), Zl = /* @__PURE__ */ De(Hl, [["__scopeId", "data-v-3a314f64"]]), Wl = { class: "qy-selection-dialog" }, Gl = { class: "qy-selection-dialog__main" }, Jl = {
2364
+ }), ol = /* @__PURE__ */ Pe(al, [["__scopeId", "data-v-3a314f64"]]), nl = { class: "qy-selection-dialog" }, ll = { class: "qy-selection-dialog__main" }, rl = {
2361
2365
  key: 0,
2362
2366
  class: "qy-selection-dialog__selected"
2363
- }, Xl = { class: "qy-selection-dialog__selected-tags" }, Yl = {
2367
+ }, il = { class: "qy-selection-dialog__selected-tags" }, sl = {
2364
2368
  key: 0,
2365
2369
  class: "qy-selection-dialog__selected-actions"
2366
- }, en = {
2370
+ }, ul = {
2367
2371
  key: 1,
2368
2372
  class: "qy-selection-dialog__search-row"
2369
- }, tn = {
2373
+ }, cl = {
2370
2374
  key: 0,
2371
2375
  class: "qy-selection-dialog__toolbar"
2372
- }, an = {
2376
+ }, dl = {
2373
2377
  key: 2,
2374
2378
  class: "qy-selection-dialog__pagination"
2375
- }, on = { class: "qy-selection-dialog__paste-actions" }, ln = /* @__PURE__ */ Ae({
2379
+ }, fl = { class: "qy-selection-dialog__paste-actions" }, ml = /* @__PURE__ */ Ae({
2376
2380
  name: "QySelectionDialog",
2377
2381
  inheritAttrs: !1,
2378
2382
  __name: "index",
@@ -2411,8 +2415,8 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
2411
2415
  pageSizes: { default: () => [10, 20, 50, 100] }
2412
2416
  },
2413
2417
  emits: ["update:modelValue", "selection-change", "confirm", "submit", "cancel", "close", "append", "loaded"],
2414
- setup(t, { expose: P, emit: Y }) {
2415
- const e = t, l = Y, W = Fe(), f = ft(), y = Ka(), m = B(null), I = B([]), $ = B([]), N = B([]), E = B(!1), M = B(0), G = B(!1), J = B(""), T = Ze({
2418
+ setup(t, { expose: O, emit: Y }) {
2419
+ const e = t, n = Y, Z = Fe(), f = ft(), y = Ha(), m = B(null), I = B([]), $ = B([]), N = B([]), E = B(!1), M = B(0), G = B(!1), J = B(""), T = We({
2416
2420
  category: [],
2417
2421
  type: "",
2418
2422
  page: 1,
@@ -2423,8 +2427,8 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
2423
2427
  ...e.typeSelectionProps,
2424
2428
  ...e.typeSelectProps
2425
2429
  })), X = z(() => e.tableProps || {}), re = z(
2426
- () => e.showSearch || !!W["search-visible"]
2427
- ), j = z(() => e.showAppend || e.append), b = z(
2430
+ () => e.showSearch || !!Z["search-visible"]
2431
+ ), j = z(() => e.showAppend || e.append), w = z(
2428
2432
  () => j.value || !!f.toolbar || !!f.bar
2429
2433
  ), C = z(() => e.fetchMethod || e.query), a = z(() => i() ? e.modelValue : e.selected);
2430
2434
  function i() {
@@ -2450,21 +2454,21 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
2450
2454
  ), fe(G, (u) => {
2451
2455
  u || (J.value = "");
2452
2456
  });
2453
- async function _() {
2457
+ async function L() {
2454
2458
  $.value = Re(a.value), await oe(), await s(), d();
2455
2459
  }
2456
2460
  async function oe() {
2457
2461
  const u = e.categoryFetchMethod || (typeof e.category == "function" ? e.category : null);
2458
2462
  if (!u) return;
2459
2463
  const c = await u();
2460
- N.value = xe(c);
2464
+ N.value = Qe(c);
2461
2465
  }
2462
2466
  async function s() {
2463
2467
  if (C.value) {
2464
2468
  E.value = !0;
2465
2469
  try {
2466
- const u = await C.value(qe()), c = e.responseFormatter ? await e.responseFormatter(u) : u, { rows: Z, total: o } = pe(c);
2467
- return I.value = Z, M.value = o, l("loaded", Z), d(), c;
2470
+ const u = await C.value(qe()), c = e.responseFormatter ? await e.responseFormatter(u) : u, { rows: W, total: o } = pe(c);
2471
+ return I.value = W, M.value = o, n("loaded", W), d(), c;
2468
2472
  } finally {
2469
2473
  E.value = !1;
2470
2474
  }
@@ -2476,7 +2480,7 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
2476
2480
  function V() {
2477
2481
  return T.page = 1, s();
2478
2482
  }
2479
- function D() {
2483
+ function P() {
2480
2484
  return Object.assign(T, {
2481
2485
  category: [],
2482
2486
  type: "",
@@ -2487,7 +2491,7 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
2487
2491
  }), s();
2488
2492
  }
2489
2493
  function me() {
2490
- l("append");
2494
+ n("append");
2491
2495
  }
2492
2496
  function pe(u) {
2493
2497
  if (Array.isArray(u))
@@ -2495,31 +2499,31 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
2495
2499
  const c = u == null ? void 0 : u.data;
2496
2500
  if (Array.isArray(c))
2497
2501
  return { rows: c, total: (u == null ? void 0 : u.total) ?? c.length };
2498
- const Z = (u == null ? void 0 : u.records) || (u == null ? void 0 : u.rows) || (c == null ? void 0 : c.records) || [], o = (u == null ? void 0 : u.total) ?? (c == null ? void 0 : c.total) ?? Z.length;
2499
- return { rows: Z, total: o };
2502
+ const W = (u == null ? void 0 : u.records) || (u == null ? void 0 : u.rows) || (c == null ? void 0 : c.records) || [], o = (u == null ? void 0 : u.total) ?? (c == null ? void 0 : c.total) ?? W.length;
2503
+ return { rows: W, total: o };
2500
2504
  }
2501
- function xe(u) {
2505
+ function Qe(u) {
2502
2506
  const c = (u == null ? void 0 : u.data) ?? u;
2503
2507
  if (!Array.isArray(c)) return [];
2504
2508
  if (typeof e.categoryFormatter == "function")
2505
2509
  return e.categoryFormatter(c);
2506
2510
  if (Array.isArray(e.categoryFormatter)) {
2507
- const [Z, o] = e.categoryFormatter;
2511
+ const [W, o] = e.categoryFormatter;
2508
2512
  return c.map((r) => ({
2509
2513
  ...r,
2510
- label: r[Z],
2514
+ label: r[W],
2511
2515
  value: r[o],
2512
- children: Array.isArray(r.children) ? Qe(r.children, Z, o) : r.children
2516
+ children: Array.isArray(r.children) ? xe(r.children, W, o) : r.children
2513
2517
  }));
2514
2518
  }
2515
2519
  return c;
2516
2520
  }
2517
- function Qe(u, c, Z) {
2521
+ function xe(u, c, W) {
2518
2522
  return u.map((o) => ({
2519
2523
  ...o,
2520
2524
  label: o[c],
2521
- value: o[Z],
2522
- children: Array.isArray(o.children) ? Qe(o.children, c, Z) : o.children
2525
+ value: o[W],
2526
+ children: Array.isArray(o.children) ? xe(o.children, c, W) : o.children
2523
2527
  }));
2524
2528
  }
2525
2529
  function qe() {
@@ -2533,85 +2537,85 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
2533
2537
  return Array.isArray(u) ? u : u ? [u] : [];
2534
2538
  }
2535
2539
  function ae(u) {
2536
- var c, Z;
2540
+ var c, W;
2537
2541
  if (U.value !== "none") {
2538
2542
  if (U.value === "single") {
2539
2543
  $.value = [u], (c = m.value) == null || c.setCurrentRow(u), Ce();
2540
2544
  return;
2541
2545
  }
2542
- k(u) && ((Z = m.value) == null || Z.toggleRowSelection(u, !se(u)));
2546
+ k(u) && ((W = m.value) == null || W.toggleRowSelection(u, !se(u)));
2543
2547
  }
2544
2548
  }
2545
- function n(u) {
2549
+ function l(u) {
2546
2550
  if (U.value !== "multiple") return;
2547
- const c = new Set(I.value.map(le)), Z = new Set(u.map(le));
2551
+ const c = new Set(I.value.map(ne)), W = new Set(u.map(ne));
2548
2552
  $.value = $.value.filter(
2549
- (o) => !c.has(le(o)) || Z.has(le(o))
2553
+ (o) => !c.has(ne(o)) || W.has(ne(o))
2550
2554
  ), u.forEach((o) => {
2551
2555
  se(o) || $.value.push(o);
2552
2556
  }), Ce();
2553
2557
  }
2554
- function h(u) {
2555
- var Z, o;
2558
+ function b(u) {
2559
+ var W, o;
2556
2560
  $.value = $.value.filter(
2557
- (r) => le(r) !== le(u)
2561
+ (r) => ne(r) !== ne(u)
2558
2562
  );
2559
- const c = I.value.find((r) => le(r) === le(u));
2560
- c && (U.value === "multiple" ? (Z = m.value) == null || Z.toggleRowSelection(c, !1) : (o = m.value) == null || o.setCurrentRow()), Ce();
2563
+ const c = I.value.find((r) => ne(r) === ne(u));
2564
+ c && (U.value === "multiple" ? (W = m.value) == null || W.toggleRowSelection(c, !1) : (o = m.value) == null || o.setCurrentRow()), Ce();
2561
2565
  }
2562
2566
  function d() {
2563
- Le(() => {
2567
+ _e(() => {
2564
2568
  var u;
2565
2569
  if (m.value) {
2566
2570
  if (U.value === "single") {
2567
- const [c] = $.value, Z = I.value.find(
2568
- (o) => c && le(o) === le(c)
2571
+ const [c] = $.value, W = I.value.find(
2572
+ (o) => c && ne(o) === ne(c)
2569
2573
  );
2570
- (u = m.value) == null || u.setCurrentRow(Z);
2574
+ (u = m.value) == null || u.setCurrentRow(W);
2571
2575
  return;
2572
2576
  }
2573
2577
  U.value === "multiple" && I.value.forEach((c) => {
2574
- var Z;
2575
- (Z = m.value) == null || Z.toggleRowSelection(c, se(c));
2578
+ var W;
2579
+ (W = m.value) == null || W.toggleRowSelection(c, se(c));
2576
2580
  });
2577
2581
  }
2578
2582
  });
2579
2583
  }
2580
2584
  function k(u) {
2581
- var Z;
2582
- const c = (Z = X.value) == null ? void 0 : Z.selectable;
2585
+ var W;
2586
+ const c = (W = X.value) == null ? void 0 : W.selectable;
2583
2587
  return typeof c == "function" ? c(u) !== !1 : !0;
2584
2588
  }
2585
2589
  function se(u) {
2586
- return $.value.some((c) => le(c) === le(u));
2590
+ return $.value.some((c) => ne(c) === ne(u));
2587
2591
  }
2588
- function le(u) {
2592
+ function ne(u) {
2589
2593
  return ge(u, ee.value);
2590
2594
  }
2591
2595
  function $e(u) {
2592
- return ge(u, te.value) ?? le(u);
2596
+ return ge(u, te.value) ?? ne(u);
2593
2597
  }
2594
2598
  function ge(u, c) {
2595
2599
  if (!(!u || !c))
2596
- return c.split(".").reduce((Z, o) => Z == null ? void 0 : Z[o], u);
2600
+ return c.split(".").reduce((W, o) => W == null ? void 0 : W[o], u);
2597
2601
  }
2598
2602
  function Ce() {
2599
2603
  const u = Re($.value);
2600
- l("selection-change", u);
2604
+ n("selection-change", u);
2601
2605
  }
2602
2606
  function Te() {
2603
2607
  const u = Re($.value);
2604
- l("update:modelValue", u), l("confirm", u), l("submit", { selection: u, rows: u, query: { ...T } });
2608
+ n("update:modelValue", u), n("confirm", u), n("submit", { selection: u, rows: u, query: { ...T } });
2605
2609
  }
2606
- function _e() {
2607
- $.value = Re(a.value), l("cancel"), l("close");
2610
+ function Le() {
2611
+ $.value = Re(a.value), n("cancel"), n("close");
2608
2612
  }
2609
2613
  async function Ne() {
2610
2614
  var c;
2611
2615
  const u = JSON.stringify($.value);
2612
2616
  await ((c = navigator.clipboard) == null ? void 0 : c.writeText(u)), we.success("复制成功");
2613
2617
  }
2614
- function Oe() {
2618
+ function De() {
2615
2619
  try {
2616
2620
  const u = JSON.parse(J.value);
2617
2621
  if (!Array.isArray(u)) {
@@ -2628,91 +2632,91 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
2628
2632
  function Re(u = []) {
2629
2633
  return u.map((c) => ({ ...c }));
2630
2634
  }
2631
- return P({
2635
+ return O({
2632
2636
  search: g,
2633
2637
  handleSearch: s,
2634
2638
  handleQuerySearch: g,
2635
- resetSearch: D,
2639
+ resetSearch: P,
2636
2640
  getTableRef: () => m.value,
2637
2641
  getTableData: () => I.value,
2638
2642
  getSelection: () => Re($.value)
2639
2643
  }), (u, c) => {
2640
- const Z = _a;
2644
+ const W = ja;
2641
2645
  return v(), de(Je, {
2642
2646
  open: t.open,
2643
2647
  title: t.title,
2644
2648
  width: t.width,
2645
- onOpened: _,
2649
+ onOpened: L,
2646
2650
  onConfirm: Te,
2647
- onCancel: _e
2651
+ onCancel: Le
2648
2652
  }, {
2649
- default: w(() => [
2650
- R("div", Wl, [
2653
+ default: S(() => [
2654
+ R("div", nl, [
2651
2655
  F(u.$slots, "side", {}, void 0, !0),
2652
- R("div", Gl, [
2653
- t.showSelected ? (v(), A("div", Jl, [
2656
+ R("div", ll, [
2657
+ t.showSelected ? (v(), A("div", rl, [
2654
2658
  c[12] || (c[12] = R("span", { class: "qy-selection-dialog__selected-label" }, "已选项", -1)),
2655
- R("div", Xl, [
2656
- (v(!0), A(Pe, null, et($.value, (o) => (v(), de(We, {
2657
- key: le(o),
2659
+ R("div", il, [
2660
+ (v(!0), A(Oe, null, et($.value, (o) => (v(), de(Ze, {
2661
+ key: ne(o),
2658
2662
  closable: "",
2659
2663
  class: "qy-selection-dialog__selected-tag",
2660
- onClose: (r) => h(o)
2664
+ onClose: (r) => b(o)
2661
2665
  }, {
2662
- default: w(() => [
2666
+ default: S(() => [
2663
2667
  Se(ve($e(o)), 1)
2664
2668
  ]),
2665
2669
  _: 2
2666
2670
  }, 1032, ["onClose"]))), 128)),
2667
- $.value.length ? O("", !0) : (v(), de(We, {
2671
+ $.value.length ? D("", !0) : (v(), de(Ze, {
2668
2672
  key: 0,
2669
2673
  tone: "info"
2670
2674
  }, {
2671
- default: w(() => [...c[9] || (c[9] = [
2675
+ default: S(() => [...c[9] || (c[9] = [
2672
2676
  Se("无", -1)
2673
2677
  ])]),
2674
2678
  _: 1
2675
2679
  }))
2676
2680
  ]),
2677
- t.showCopyPaste ? (v(), A("div", Yl, [
2678
- L(q(Be), {
2681
+ t.showCopyPaste ? (v(), A("div", sl, [
2682
+ _(q(Be), {
2679
2683
  size: "small",
2680
2684
  onClick: Ne
2681
2685
  }, {
2682
- default: w(() => [...c[10] || (c[10] = [
2686
+ default: S(() => [...c[10] || (c[10] = [
2683
2687
  Se("复制", -1)
2684
2688
  ])]),
2685
2689
  _: 1
2686
2690
  }),
2687
- L(q(Be), {
2691
+ _(q(Be), {
2688
2692
  size: "small",
2689
2693
  onClick: c[0] || (c[0] = (o) => G.value = !0)
2690
2694
  }, {
2691
- default: w(() => [...c[11] || (c[11] = [
2695
+ default: S(() => [...c[11] || (c[11] = [
2692
2696
  Se("粘贴", -1)
2693
2697
  ])]),
2694
2698
  _: 1
2695
2699
  })
2696
- ])) : O("", !0)
2697
- ])) : O("", !0),
2698
- re.value ? (v(), A("div", en, [
2699
- L(q(bt), {
2700
+ ])) : D("", !0)
2701
+ ])) : D("", !0),
2702
+ re.value ? (v(), A("div", ul, [
2703
+ _(q(bt), {
2700
2704
  class: "qy-selection-dialog__search",
2701
2705
  inline: "",
2702
2706
  model: T
2703
2707
  }, {
2704
- default: w(() => [
2708
+ default: S(() => [
2705
2709
  F(u.$slots, "search", {
2706
2710
  query: T,
2707
2711
  search: g,
2708
- reset: D
2712
+ reset: P
2709
2713
  }, () => [
2710
2714
  N.value.length ? (v(), de(q(ze), {
2711
2715
  key: 0,
2712
2716
  label: "分类"
2713
2717
  }, {
2714
- default: w(() => [
2715
- L(wt, {
2718
+ default: S(() => [
2719
+ _(wt, {
2716
2720
  modelValue: T.category,
2717
2721
  "onUpdate:modelValue": c[1] || (c[1] = (o) => T.category = o),
2718
2722
  class: "qy-selection-dialog__category",
@@ -2725,13 +2729,13 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
2725
2729
  }, null, 8, ["modelValue", "options"])
2726
2730
  ]),
2727
2731
  _: 1
2728
- })) : O("", !0),
2732
+ })) : D("", !0),
2729
2733
  H.value.length ? (v(), de(q(ze), {
2730
2734
  key: 1,
2731
2735
  label: "类型"
2732
2736
  }, {
2733
- default: w(() => [
2734
- L(tt, Ie({
2737
+ default: S(() => [
2738
+ _(tt, Ie({
2735
2739
  modelValue: T.type,
2736
2740
  "onUpdate:modelValue": c[2] || (c[2] = (o) => T.type = o),
2737
2741
  class: "qy-selection-dialog__type",
@@ -2741,13 +2745,13 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
2741
2745
  }, ie.value, { onChange: g }), null, 16, ["modelValue", "options"])
2742
2746
  ]),
2743
2747
  _: 1
2744
- })) : O("", !0),
2748
+ })) : D("", !0),
2745
2749
  t.searchKey ? (v(), de(q(ze), {
2746
2750
  key: 2,
2747
2751
  label: "搜索"
2748
2752
  }, {
2749
- default: w(() => [
2750
- L(q(Ue), {
2753
+ default: S(() => [
2754
+ _(q(Ue), {
2751
2755
  modelValue: T[t.searchKey],
2752
2756
  "onUpdate:modelValue": c[3] || (c[3] = (o) => T[t.searchKey] = o),
2753
2757
  clearable: "",
@@ -2757,20 +2761,20 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
2757
2761
  }, null, 8, ["modelValue", "onKeydown"])
2758
2762
  ]),
2759
2763
  _: 1
2760
- })) : O("", !0),
2761
- L(q(ze), null, {
2762
- default: w(() => [
2763
- L(q(Be), {
2764
+ })) : D("", !0),
2765
+ _(q(ze), null, {
2766
+ default: S(() => [
2767
+ _(q(Be), {
2764
2768
  type: "primary",
2765
2769
  onClick: g
2766
2770
  }, {
2767
- default: w(() => [...c[13] || (c[13] = [
2771
+ default: S(() => [...c[13] || (c[13] = [
2768
2772
  Se("查询", -1)
2769
2773
  ])]),
2770
2774
  _: 1
2771
2775
  }),
2772
- L(q(Be), { onClick: D }, {
2773
- default: w(() => [...c[14] || (c[14] = [
2776
+ _(q(Be), { onClick: P }, {
2777
+ default: S(() => [...c[14] || (c[14] = [
2774
2778
  Se("重置", -1)
2775
2779
  ])]),
2776
2780
  _: 1
@@ -2782,17 +2786,17 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
2782
2786
  ]),
2783
2787
  _: 3
2784
2788
  }, 8, ["model"]),
2785
- b.value ? (v(), A("div", tn, [
2789
+ w.value ? (v(), A("div", cl, [
2786
2790
  j.value ? (v(), de(q(Be), {
2787
2791
  key: 0,
2788
2792
  type: "primary",
2789
2793
  onClick: me
2790
2794
  }, {
2791
- default: w(() => [...c[15] || (c[15] = [
2795
+ default: S(() => [...c[15] || (c[15] = [
2792
2796
  Se(" 新增 ", -1)
2793
2797
  ])]),
2794
2798
  _: 1
2795
- })) : O("", !0),
2799
+ })) : D("", !0),
2796
2800
  F(u.$slots, "toolbar", {
2797
2801
  query: T,
2798
2802
  search: g
@@ -2801,9 +2805,9 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
2801
2805
  query: T,
2802
2806
  search: g
2803
2807
  }, void 0, !0)
2804
- ])) : O("", !0)
2805
- ])) : O("", !0),
2806
- Ye((v(), de(q(Ja), Ie({
2808
+ ])) : D("", !0)
2809
+ ])) : D("", !0),
2810
+ Ye((v(), de(q(to), Ie({
2807
2811
  ref_key: "tableRef",
2808
2812
  ref: m,
2809
2813
  data: I.value,
@@ -2812,29 +2816,29 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
2812
2816
  "highlight-current-row": "",
2813
2817
  "max-height": "550px"
2814
2818
  }, X.value, {
2815
- onSelectionChange: n,
2819
+ onSelectionChange: l,
2816
2820
  onRowClick: ae
2817
2821
  }), {
2818
- default: w(() => {
2822
+ default: S(() => {
2819
2823
  var o;
2820
2824
  return [
2821
- U.value === "multiple" ? (v(), de(q(Xa), {
2825
+ U.value === "multiple" ? (v(), de(q(ao), {
2822
2826
  key: 0,
2823
2827
  type: "selection",
2824
2828
  "reserve-selection": "",
2825
2829
  width: "42",
2826
2830
  selectable: (o = X.value) == null ? void 0 : o.selectable
2827
- }, null, 8, ["selectable"])) : O("", !0),
2831
+ }, null, 8, ["selectable"])) : D("", !0),
2828
2832
  F(u.$slots, "columns", {}, void 0, !0),
2829
2833
  F(u.$slots, "cols", {}, void 0, !0)
2830
2834
  ];
2831
2835
  }),
2832
2836
  _: 3
2833
2837
  }, 16, ["data", "row-key"])), [
2834
- [Z, E.value]
2838
+ [W, E.value]
2835
2839
  ]),
2836
- t.showPagination && M.value > 0 ? (v(), A("div", an, [
2837
- L(q(Ya), {
2840
+ t.showPagination && M.value > 0 ? (v(), A("div", dl, [
2841
+ _(q(oo), {
2838
2842
  "current-page": T.page,
2839
2843
  "onUpdate:currentPage": c[4] || (c[4] = (o) => T.page = o),
2840
2844
  "page-size": T.pageSize,
@@ -2845,37 +2849,37 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
2845
2849
  onSizeChange: V,
2846
2850
  onCurrentChange: s
2847
2851
  }, null, 8, ["current-page", "page-size", "total", "page-sizes"])
2848
- ])) : O("", !0)
2852
+ ])) : D("", !0)
2849
2853
  ])
2850
2854
  ]),
2851
- L(Je, {
2855
+ _(Je, {
2852
2856
  open: G.value,
2853
2857
  title: "粘贴数据",
2854
2858
  "show-footer": !1,
2855
2859
  width: "560px",
2856
2860
  "onUpdate:open": c[8] || (c[8] = (o) => G.value = o)
2857
2861
  }, {
2858
- default: w(() => [
2859
- L(q(Ue), {
2862
+ default: S(() => [
2863
+ _(q(Ue), {
2860
2864
  modelValue: J.value,
2861
2865
  "onUpdate:modelValue": c[6] || (c[6] = (o) => J.value = o),
2862
2866
  type: "textarea",
2863
2867
  rows: 8
2864
2868
  }, null, 8, ["modelValue"]),
2865
- R("div", on, [
2866
- L(q(Be), {
2869
+ R("div", fl, [
2870
+ _(q(Be), {
2867
2871
  onClick: c[7] || (c[7] = (o) => G.value = !1)
2868
2872
  }, {
2869
- default: w(() => [...c[16] || (c[16] = [
2873
+ default: S(() => [...c[16] || (c[16] = [
2870
2874
  Se("取消", -1)
2871
2875
  ])]),
2872
2876
  _: 1
2873
2877
  }),
2874
- L(q(Be), {
2878
+ _(q(Be), {
2875
2879
  type: "primary",
2876
- onClick: Oe
2880
+ onClick: De
2877
2881
  }, {
2878
- default: w(() => [...c[17] || (c[17] = [
2882
+ default: S(() => [...c[17] || (c[17] = [
2879
2883
  Se("确认", -1)
2880
2884
  ])]),
2881
2885
  _: 1
@@ -2889,7 +2893,7 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
2889
2893
  }, 8, ["open", "title", "width"]);
2890
2894
  };
2891
2895
  }
2892
- }), Ct = /* @__PURE__ */ De(ln, [["__scopeId", "data-v-6348c54b"]]), nn = /* @__PURE__ */ Ae({
2896
+ }), Ct = /* @__PURE__ */ Pe(ml, [["__scopeId", "data-v-cf39627e"]]), yl = /* @__PURE__ */ Ae({
2893
2897
  name: "QyLegacySelectionDialog",
2894
2898
  inheritAttrs: !1,
2895
2899
  __name: "index",
@@ -2915,8 +2919,8 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
2915
2919
  select: { default: null }
2916
2920
  },
2917
2921
  emits: ["close", "submit", "openDialog", "changeIndexShow"],
2918
- setup(t, { expose: P, emit: Y }) {
2919
- const e = t, l = Y, W = Fe(), f = B(null), y = Ze({
2922
+ setup(t, { expose: O, emit: Y }) {
2923
+ const e = t, n = Y, Z = Fe(), f = B(null), y = We({
2920
2924
  category: [],
2921
2925
  code: "",
2922
2926
  ...e.searchKey ? { [e.searchKey]: "" } : {},
@@ -2924,7 +2928,7 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
2924
2928
  pageSize: 10,
2925
2929
  type: "",
2926
2930
  ...e.queryParams
2927
- }), m = Ze({
2931
+ }), m = We({
2928
2932
  total: 0,
2929
2933
  tableData: [],
2930
2934
  open: !1,
@@ -2939,7 +2943,7 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
2939
2943
  }), I = z(() => e.type || []), $ = z(() => m.categories), N = async (s) => {
2940
2944
  if (!e.query) return { data: { records: [], total: 0 } };
2941
2945
  const g = await e.query(ie(s)), V = e.responseFormatter ? await e.responseFormatter(g) : g;
2942
- return m.total = _(V), V;
2946
+ return m.total = L(V), V;
2943
2947
  };
2944
2948
  fe(
2945
2949
  () => e.open,
@@ -2989,11 +2993,11 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
2989
2993
  return;
2990
2994
  }
2991
2995
  const s = typeof e.category == "function" ? await e.category() : e.category;
2992
- m.categories = b(s);
2996
+ m.categories = w(s);
2993
2997
  }
2994
2998
  async function M() {
2995
2999
  var s;
2996
- return await Le(), (s = f.value) == null ? void 0 : s.handleQuerySearch();
3000
+ return await _e(), (s = f.value) == null ? void 0 : s.handleQuerySearch();
2997
3001
  }
2998
3002
  function G(s) {
2999
3003
  m.selection = oe(s);
@@ -3003,16 +3007,16 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
3003
3007
  m.tableData = s, m.tableRef = (g = f.value) == null ? void 0 : g.getTableRef();
3004
3008
  }
3005
3009
  function T(s) {
3006
- m.selection = oe(s), l("submit", m);
3010
+ m.selection = oe(s), n("submit", m);
3007
3011
  }
3008
3012
  function U() {
3009
- l("close");
3013
+ n("close");
3010
3014
  }
3011
3015
  function ee() {
3012
- m.dialogOpen = !0, l("openDialog");
3016
+ m.dialogOpen = !0, n("openDialog");
3013
3017
  }
3014
3018
  function te(s) {
3015
- l("changeIndexShow", s);
3019
+ n("changeIndexShow", s);
3016
3020
  }
3017
3021
  async function H(s) {
3018
3022
  if (!e.query || !e.searchKey || !e.mainKey) return;
@@ -3020,10 +3024,10 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
3020
3024
  ...y,
3021
3025
  [e.searchKey]: s[e.mainKey],
3022
3026
  category: []
3023
- }), V = e.responseFormatter ? await e.responseFormatter(g) : g, [D] = i(V);
3024
- D && (e.selection === "multi" ? (m.selection = m.selection.filter(
3025
- (me) => me[e.mainKey] !== D[e.mainKey]
3026
- ), m.selection.push(D)) : m.selection = [D]);
3027
+ }), V = e.responseFormatter ? await e.responseFormatter(g) : g, [P] = i(V);
3028
+ P && (e.selection === "multi" ? (m.selection = m.selection.filter(
3029
+ (me) => me[e.mainKey] !== P[e.mainKey]
3030
+ ), m.selection.push(P)) : m.selection = [P]);
3027
3031
  }
3028
3032
  function ie(s = {}) {
3029
3033
  y.page = s.page ?? y.page, y.pageSize = s.pageSize ?? y.pageSize;
@@ -3045,42 +3049,42 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
3045
3049
  function re(s, g) {
3046
3050
  for (const V of s || []) {
3047
3051
  if (V.value === g) return V;
3048
- const D = re(V.children || [], g);
3049
- if (D) return D;
3052
+ const P = re(V.children || [], g);
3053
+ if (P) return P;
3050
3054
  }
3051
3055
  }
3052
3056
  function j(s) {
3053
3057
  return [s.value, ...(s.children || []).flatMap(j)];
3054
3058
  }
3055
- function b(s) {
3059
+ function w(s) {
3056
3060
  const g = (s == null ? void 0 : s.data) ?? s;
3057
3061
  if (!Array.isArray(g)) return [];
3058
3062
  if (typeof e.categoryFormatter == "function")
3059
3063
  return e.categoryFormatter(g);
3060
3064
  if (Array.isArray(e.categoryFormatter)) {
3061
- const [V, D] = e.categoryFormatter;
3062
- return a(C(g, D), V, D);
3065
+ const [V, P] = e.categoryFormatter;
3066
+ return a(C(g, P), V, P);
3063
3067
  }
3064
3068
  return g;
3065
3069
  }
3066
3070
  function C(s, g) {
3067
- const V = s.map((me) => ({ ...me })), D = [];
3071
+ const V = s.map((me) => ({ ...me })), P = [];
3068
3072
  return V.forEach((me) => {
3069
3073
  const pe = me.parentCateCode;
3070
3074
  if (!pe) {
3071
- D.push(me);
3075
+ P.push(me);
3072
3076
  return;
3073
3077
  }
3074
- const xe = V.find((Qe) => Qe[g] === pe);
3075
- xe ? (xe.children || (xe.children = [])).push(me) : D.push(me);
3076
- }), D;
3078
+ const Qe = V.find((xe) => xe[g] === pe);
3079
+ Qe ? (Qe.children || (Qe.children = [])).push(me) : P.push(me);
3080
+ }), P;
3077
3081
  }
3078
3082
  function a(s, g, V) {
3079
- return s.map((D) => ({
3080
- ...D,
3081
- label: D[g],
3082
- value: D[V],
3083
- children: Array.isArray(D.children) ? a(D.children, g, V) : D.children
3083
+ return s.map((P) => ({
3084
+ ...P,
3085
+ label: P[g],
3086
+ value: P[V],
3087
+ children: Array.isArray(P.children) ? a(P.children, g, V) : P.children
3084
3088
  }));
3085
3089
  }
3086
3090
  function i(s) {
@@ -3088,7 +3092,7 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
3088
3092
  const g = s == null ? void 0 : s.data;
3089
3093
  return Array.isArray(g) ? g : (s == null ? void 0 : s.records) || (s == null ? void 0 : s.rows) || (g == null ? void 0 : g.records) || [];
3090
3094
  }
3091
- function _(s) {
3095
+ function L(s) {
3092
3096
  if (Array.isArray(s)) return s.length;
3093
3097
  const g = i(s), V = s == null ? void 0 : s.data;
3094
3098
  return (s == null ? void 0 : s.total) ?? (Array.isArray(V) ? V.length : V == null ? void 0 : V.total) ?? g.length;
@@ -3096,18 +3100,18 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
3096
3100
  function oe(s = []) {
3097
3101
  return s.map((g) => ({ ...g }));
3098
3102
  }
3099
- return P({
3103
+ return O({
3100
3104
  search: M,
3101
3105
  handleSearch: M,
3102
3106
  handleConditionChange: M,
3103
3107
  getTableRef: () => m.tableRef,
3104
3108
  getTableData: () => m.tableData,
3105
3109
  getSelection: () => oe(m.selection)
3106
- }), (s, g) => (v(), A(Pe, null, [
3107
- L(Ct, Ie({
3110
+ }), (s, g) => (v(), A(Oe, null, [
3111
+ _(Ct, Ie({
3108
3112
  ref_key: "selectionDialogRef",
3109
3113
  ref: f
3110
- }, q(W), {
3114
+ }, q(Z), {
3111
3115
  modelValue: m.selection,
3112
3116
  "onUpdate:modelValue": g[3] || (g[3] = (V) => m.selection = V),
3113
3117
  open: t.open,
@@ -3132,7 +3136,7 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
3132
3136
  onAppend: ee,
3133
3137
  onLoaded: J
3134
3138
  }), {
3135
- side: w(() => [
3139
+ side: S(() => [
3136
3140
  F(s.$slots, "side", {
3137
3141
  state: m,
3138
3142
  cate: m.categories,
@@ -3143,18 +3147,18 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
3143
3147
  changeIndexShow: te
3144
3148
  }, void 0, !0)
3145
3149
  ]),
3146
- search: w(() => [
3147
- L(q(bt), {
3150
+ search: S(() => [
3151
+ _(q(bt), {
3148
3152
  inline: "",
3149
3153
  model: y
3150
3154
  }, {
3151
- default: w(() => [
3155
+ default: S(() => [
3152
3156
  m.categories.length ? (v(), de(q(ze), {
3153
3157
  key: 0,
3154
3158
  label: "分类"
3155
3159
  }, {
3156
- default: w(() => [
3157
- L(q(eo), {
3160
+ default: S(() => [
3161
+ _(q(no), {
3158
3162
  modelValue: y.category,
3159
3163
  "onUpdate:modelValue": g[0] || (g[0] = (V) => y.category = V),
3160
3164
  class: "qy-legacy-selection-dialog__category",
@@ -3167,19 +3171,19 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
3167
3171
  }, null, 8, ["modelValue", "data"])
3168
3172
  ]),
3169
3173
  _: 1
3170
- })) : O("", !0),
3174
+ })) : D("", !0),
3171
3175
  I.value.length ? (v(), de(q(ze), {
3172
3176
  key: 1,
3173
3177
  label: "类型"
3174
3178
  }, {
3175
- default: w(() => [
3176
- L(q(vt), Ie({
3179
+ default: S(() => [
3180
+ _(q(vt), Ie({
3177
3181
  modelValue: y.type,
3178
3182
  "onUpdate:modelValue": g[1] || (g[1] = (V) => y.type = V),
3179
3183
  clearable: ""
3180
3184
  }, t.typeSelectionProps, { onChange: M }), {
3181
- default: w(() => [
3182
- (v(!0), A(Pe, null, et(I.value, (V) => (v(), de(q(ht), {
3185
+ default: S(() => [
3186
+ (v(!0), A(Oe, null, et(I.value, (V) => (v(), de(q(ht), {
3183
3187
  key: V.value,
3184
3188
  label: V.label,
3185
3189
  value: V.value
@@ -3189,13 +3193,13 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
3189
3193
  }, 16, ["modelValue"])
3190
3194
  ]),
3191
3195
  _: 1
3192
- })) : O("", !0),
3196
+ })) : D("", !0),
3193
3197
  t.searchKey ? (v(), de(q(ze), {
3194
3198
  key: 2,
3195
3199
  label: "搜索"
3196
3200
  }, {
3197
- default: w(() => [
3198
- L(q(Ue), {
3201
+ default: S(() => [
3202
+ _(q(Ue), {
3199
3203
  modelValue: y[t.searchKey],
3200
3204
  "onUpdate:modelValue": g[2] || (g[2] = (V) => y[t.searchKey] = V),
3201
3205
  clearable: "",
@@ -3204,14 +3208,14 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
3204
3208
  }, null, 8, ["modelValue", "onKeydown"])
3205
3209
  ]),
3206
3210
  _: 1
3207
- })) : O("", !0),
3208
- L(q(ze), null, {
3209
- default: w(() => [
3210
- L(q(Be), {
3211
+ })) : D("", !0),
3212
+ _(q(ze), null, {
3213
+ default: S(() => [
3214
+ _(q(Be), {
3211
3215
  type: "primary",
3212
3216
  onClick: M
3213
3217
  }, {
3214
- default: w(() => [...g[4] || (g[4] = [
3218
+ default: S(() => [...g[4] || (g[4] = [
3215
3219
  Se("查询", -1)
3216
3220
  ])]),
3217
3221
  _: 1
@@ -3223,13 +3227,13 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
3223
3227
  _: 1
3224
3228
  }, 8, ["model"])
3225
3229
  ]),
3226
- toolbar: w(() => [
3230
+ toolbar: S(() => [
3227
3231
  F(s.$slots, "bar", {
3228
3232
  query: y,
3229
3233
  search: M
3230
3234
  }, void 0, !0)
3231
3235
  ]),
3232
- columns: w(() => [
3236
+ columns: S(() => [
3233
3237
  F(s.$slots, "cols", {}, void 0, !0),
3234
3238
  F(s.$slots, "columns", {}, void 0, !0)
3235
3239
  ]),
@@ -3242,13 +3246,13 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
3242
3246
  }, void 0, !0)
3243
3247
  ], 64));
3244
3248
  }
3245
- }), rn = /* @__PURE__ */ De(nn, [["__scopeId", "data-v-b54ca11b"]]), sn = { class: "qy-form-section__heading" }, un = {
3249
+ }), pl = /* @__PURE__ */ Pe(yl, [["__scopeId", "data-v-b54ca11b"]]), gl = { class: "qy-form-section__heading" }, vl = {
3246
3250
  key: 0,
3247
3251
  class: "qy-form-section__title"
3248
- }, cn = {
3252
+ }, hl = {
3249
3253
  key: 0,
3250
3254
  class: "qy-form-section__description"
3251
- }, dn = { class: "qy-form-section__actions" }, fn = /* @__PURE__ */ Ae({
3255
+ }, bl = { class: "qy-form-section__actions" }, wl = /* @__PURE__ */ Ae({
3252
3256
  name: "QyFormSection",
3253
3257
  __name: "index",
3254
3258
  props: {
@@ -3264,19 +3268,19 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
3264
3268
  headerClass: { default: "" }
3265
3269
  },
3266
3270
  emits: ["toggle"],
3267
- setup(t, { emit: P }) {
3268
- const Y = t, e = P, l = B(Y.defaultExpanded);
3271
+ setup(t, { emit: O }) {
3272
+ const Y = t, e = O, n = B(Y.defaultExpanded);
3269
3273
  fe(
3270
3274
  () => Y.defaultExpanded,
3271
3275
  (y) => {
3272
- l.value = y;
3276
+ n.value = y;
3273
3277
  }
3274
3278
  );
3275
- function W() {
3276
- Y.collapsible && (l.value = !l.value, e("toggle", l.value));
3279
+ function Z() {
3280
+ Y.collapsible && (n.value = !n.value, e("toggle", n.value));
3277
3281
  }
3278
3282
  function f() {
3279
- Y.collapsible && W();
3283
+ Y.collapsible && Z();
3280
3284
  }
3281
3285
  return (y, m) => (v(), A("section", {
3282
3286
  class: ke(["qy-form-section", [
@@ -3291,22 +3295,22 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
3291
3295
  class: ke(["qy-form-section__header", t.headerClass]),
3292
3296
  onClick: f
3293
3297
  }, [
3294
- R("div", sn, [
3298
+ R("div", gl, [
3295
3299
  F(y.$slots, "title", {}, () => [
3296
- t.title ? (v(), A("div", un, ve(t.title), 1)) : O("", !0)
3300
+ t.title ? (v(), A("div", vl, ve(t.title), 1)) : D("", !0)
3297
3301
  ], !0),
3298
3302
  F(y.$slots, "description", {}, () => [
3299
- t.description ? (v(), A("div", cn, ve(t.description), 1)) : O("", !0)
3303
+ t.description ? (v(), A("div", hl, ve(t.description), 1)) : D("", !0)
3300
3304
  ], !0)
3301
3305
  ]),
3302
- R("div", dn, [
3306
+ R("div", bl, [
3303
3307
  F(y.$slots, "actions", {}, void 0, !0),
3304
3308
  t.collapsible ? (v(), A("button", {
3305
3309
  key: 0,
3306
3310
  type: "button",
3307
3311
  class: "qy-form-section__toggle",
3308
- onClick: ce(W, ["stop"])
3309
- }, ve(l.value ? "收起" : "展开"), 1)) : O("", !0)
3312
+ onClick: ce(Z, ["stop"])
3313
+ }, ve(n.value ? "收起" : "展开"), 1)) : D("", !0)
3310
3314
  ])
3311
3315
  ], 2),
3312
3316
  Ye(R("div", {
@@ -3316,24 +3320,24 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
3316
3320
  t.tip ? (v(), A("div", {
3317
3321
  key: 0,
3318
3322
  class: ke(["qy-form-section__tip", `is-${t.tipType}`])
3319
- }, ve(t.tip), 3)) : O("", !0)
3323
+ }, ve(t.tip), 3)) : D("", !0)
3320
3324
  ], !0),
3321
3325
  F(y.$slots, "default", {}, void 0, !0)
3322
3326
  ], 2), [
3323
- [yt, l.value]
3327
+ [yt, n.value]
3324
3328
  ])
3325
3329
  ], 2));
3326
3330
  }
3327
- }), mn = /* @__PURE__ */ De(fn, [["__scopeId", "data-v-8149aa01"]]), yn = {
3331
+ }), Sl = /* @__PURE__ */ Pe(wl, [["__scopeId", "data-v-8149aa01"]]), kl = {
3328
3332
  key: 0,
3329
3333
  class: "qy-action-bar__left"
3330
- }, pn = {
3334
+ }, Ql = {
3331
3335
  key: 1,
3332
3336
  class: "qy-action-bar__center"
3333
- }, gn = {
3337
+ }, xl = {
3334
3338
  key: 2,
3335
3339
  class: "qy-action-bar__right"
3336
- }, vn = /* @__PURE__ */ Ae({
3340
+ }, $l = /* @__PURE__ */ Ae({
3337
3341
  name: "QyActionBar",
3338
3342
  __name: "index",
3339
3343
  props: {
@@ -3346,12 +3350,12 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
3346
3350
  background: { default: "#fff" }
3347
3351
  },
3348
3352
  setup(t) {
3349
- const P = t, Y = z(() => ({
3353
+ const O = t, Y = z(() => ({
3350
3354
  // offsetBottom 只负责业务偏移,安全区补偿由 CSS padding 处理。
3351
- bottom: `${P.offsetBottom}px`,
3352
- background: P.background
3355
+ bottom: `${O.offsetBottom}px`,
3356
+ background: O.background
3353
3357
  }));
3354
- return (e, l) => (v(), A("div", {
3358
+ return (e, n) => (v(), A("div", {
3355
3359
  class: ke(["qy-action-bar", [
3356
3360
  `is-justify-${t.justify}`,
3357
3361
  {
@@ -3363,53 +3367,53 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
3363
3367
  ]]),
3364
3368
  style: Me(Y.value)
3365
3369
  }, [
3366
- e.$slots.left ? (v(), A("div", yn, [
3370
+ e.$slots.left ? (v(), A("div", kl, [
3367
3371
  F(e.$slots, "left", {}, void 0, !0)
3368
- ])) : O("", !0),
3369
- e.$slots.default ? (v(), A("div", pn, [
3372
+ ])) : D("", !0),
3373
+ e.$slots.default ? (v(), A("div", Ql, [
3370
3374
  F(e.$slots, "default", {}, void 0, !0)
3371
- ])) : O("", !0),
3372
- e.$slots.right ? (v(), A("div", gn, [
3375
+ ])) : D("", !0),
3376
+ e.$slots.right ? (v(), A("div", xl, [
3373
3377
  F(e.$slots, "right", {}, void 0, !0)
3374
- ])) : O("", !0)
3378
+ ])) : D("", !0)
3375
3379
  ], 6));
3376
3380
  }
3377
- }), hn = /* @__PURE__ */ De(vn, [["__scopeId", "data-v-ecba8f49"]]), Vt = S(Qt, "QyUpload"), Bt = S(to, "QyImage"), qt = S(ao, "QyImagePreview"), It = S(ml, "QyImageUpload"), At = S(Je, "QyDialog"), Tt = S(Dl, "QyRemarkImage"), Rt = S(ro, "QyButton"), zt = S(io, "QyDropdown"), Ft = S(so, "QyInput"), Dt = S(uo, "QyInputNumber"), Ot = S(Ol, "QyMoneyInput"), Pt = S(co, "QyDatePicker"), Mt = S(fo, "QyCheckbox"), Lt = S(mo, "QyCheckboxGroup"), _t = S(yo, "QyRadio"), Ut = S(po, "QyAutocomplete"), Kt = S(go, "QyMenuActions"), Et = S(
3378
- vo,
3381
+ }), Cl = /* @__PURE__ */ Pe($l, [["__scopeId", "data-v-ecba8f49"]]), Vt = h(xt, "QyUpload"), Bt = h(lo, "QyImage"), qt = h(ro, "QyImagePreview"), It = h(kn, "QyImageUpload"), At = h(Je, "QyDialog"), Tt = h(jn, "QyRemarkImage"), Rt = h(co, "QyButton"), zt = h(fo, "QyDropdown"), Ft = h(mo, "QyInput"), Pt = h(yo, "QyInputNumber"), Dt = h(Nn, "QyMoneyInput"), Ot = h(po, "QyDatePicker"), Mt = h(go, "QyCheckbox"), _t = h(vo, "QyCheckboxGroup"), Lt = h(ho, "QyRadio"), Ut = h(bo, "QyAutocomplete"), Kt = h(wo, "QyMenuActions"), Et = h(
3382
+ So,
3379
3383
  "QyTableColumnSettings"
3380
- ), jt = S(ho, "QyRadioGroup"), Nt = S(Pl, "QyRemoteSelect"), Ht = S($t, "QySearchInput"), Zt = S(
3381
- Zl,
3384
+ ), jt = h(ko, "QyRadioGroup"), Nt = h(Hn, "QyRemoteSelect"), Ht = h($t, "QySearchInput"), Wt = h(
3385
+ ol,
3382
3386
  "QyRecordQuoteSearch"
3383
- ), Wt = S(tt, "QySelect"), Gt = S(wt, "QyTreeSelect"), Jt = S(Ct, "QySelectionDialog"), Xt = S(
3384
- rn,
3387
+ ), Zt = h(tt, "QySelect"), Gt = h(wt, "QyTreeSelect"), Jt = h(Ct, "QySelectionDialog"), Xt = h(
3388
+ pl,
3385
3389
  "QyLegacySelectionDialog"
3386
- ), Yt = S(mn, "QyFormSection"), ea = S(hn, "QyActionBar"), ta = S(bo, "QyFilePicker"), aa = S(wo, "QySwitch"), oa = S(We, "QyTag"), la = S(So, "QyBadge"), na = S(ko, "QyCascader"), ra = S(xo, "QyTooltip"), ia = S(Qo, "QyPopover"), sa = S($o, "QySkeleton"), ua = S(Co, "QySkeletonItem"), ca = S(Vo, "QyTabs"), da = S(Bo, "QyTabPane"), fa = S(qo, "QySteps"), ma = S(Io, "QyStep"), ya = S(Ao, "QyFullscreen"), pa = S(Ro, "QyRow"), ga = S(zo, "QyCol"), va = S(Fo, "QyContainer"), ha = S(Do, "QyAside"), ba = S(Oo, "QyMain"), wa = S(Po, "QyDescriptions"), Sa = S(Mo, "QyDescriptionsItem"), ka = S(Lo, "QyCollapse"), xa = S(_o, "QyCollapseItem"), Qa = S(Uo, "QyLink"), $a = S(Ko, "QyDivider"), Ca = S(Eo, "QyEmpty"), Va = S(jo, "QyAlert"), Ba = S(No, "QyCard"), qa = S(Ho, "QyResult"), Ia = S(Zo, "QyScrollbar"), Aa = S(Wo, "QyProgress"), Ta = S(Go, "QyStatistic"), Ra = S(Jo, "QyAvatar"), za = S(Xo, "QyTree"), Fa = S(To, "QyIconPicker"), Da = S(el, "QyDrawer"), bn = (t) => {
3387
- kt.install(t), t.component("QyDialog", At), t.component("QyDrawer", Da), t.component("QyUpload", Vt), t.component("QyImage", Bt), t.component("QyImagePreview", qt), t.component("QyImageUpload", It), t.component("QyRemarkImage", Tt), t.component("QyButton", Rt), t.component("QyDropdown", zt), t.component("QyInput", Ft), t.component("QyInputNumber", Dt), t.component("QyMoneyInput", Ot), t.component("QyDatePicker", Pt), t.component("QyCheckbox", Mt), t.component("QyCheckboxGroup", Lt), t.component("QyRadio", _t), t.component("QyAutocomplete", Ut), t.component("QyMenuActions", Kt), t.component("QyTableColumnSettings", Et), t.component("QyRadioGroup", jt), t.component("QyRemoteSelect", Nt), t.component("QySearchInput", Ht), t.component("QyRecordQuoteSearch", Zt), t.component("QySelect", Wt), t.component("QyTreeSelect", Gt), t.component("QySelectionDialog", Jt), t.component("QyLegacySelectionDialog", Xt), t.component("QyFormSection", Yt), t.component("QyActionBar", ea), t.component("QyFilePicker", ta), t.component("QySwitch", aa), t.component("QyTag", oa), t.component("QyBadge", la), t.component("QyCascader", na), t.component("QyTooltip", ra), t.component("QyPopover", ia), t.component("QySkeleton", sa), t.component("QySkeletonItem", ua), t.component("QyTabs", ca), t.component("QyTabPane", da), t.component("QySteps", fa), t.component("QyStep", ma), t.component("QyFullscreen", ya), t.component("QyIcon", St), t.component("QyIconPicker", Fa), t.component("QyRow", pa), t.component("QyCol", ga), t.component("QyContainer", va), t.component("QyAside", ha), t.component("QyMain", ba), t.component("QyDescriptions", wa), t.component("QyDescriptionsItem", Sa), t.component("QyCollapse", ka), t.component("QyCollapseItem", xa), t.component("QyLink", Qa), t.component("QyDivider", $a), t.component("QyEmpty", Ca), t.component("QyAlert", Va), t.component("QyCard", Ba), t.component("QyResult", qa), t.component("QyScrollbar", Ia), t.component("QyProgress", Aa), t.component("QyStatistic", Ta), t.component("QyAvatar", Ra), t.component("QyTree", za);
3388
- }, Ir = {
3389
- install: bn,
3390
+ ), Yt = h(Sl, "QyFormSection"), ea = h(Cl, "QyActionBar"), ta = h(Qo, "QyFilePicker"), aa = h(xo, "QySwitch"), oa = h(Ze, "QyTag"), na = h($o, "QyBadge"), la = h(Co, "QyCascader"), ra = h(Vo, "QyTooltip"), ia = h(Bo, "QyPopover"), sa = h(qo, "QyPopconfirm"), ua = h(Io, "QySkeleton"), ca = h(Ao, "QySkeletonItem"), da = h(To, "QyTabs"), fa = h(Ro, "QyTabPane"), ma = h(zo, "QySteps"), ya = h(Fo, "QyStep"), pa = h(Po, "QyFullscreen"), ga = h(Mo, "QyRow"), va = h(_o, "QyCol"), ha = h(Lo, "QyContainer"), ba = h(Uo, "QyAside"), wa = h(Ko, "QyMain"), Sa = h(Eo, "QyDescriptions"), ka = h(jo, "QyDescriptionsItem"), Qa = h(No, "QyCollapse"), xa = h(Ho, "QyCollapseItem"), $a = h(Wo, "QyLink"), Ca = h(Zo, "QyIframe"), Va = h(Go, "QyDivider"), Ba = h(Jo, "QyEmpty"), qa = h(Xo, "QyAlert"), Ia = h(Yo, "QyCard"), Aa = h(en, "QyResult"), Ta = h(tn, "QyWatermark"), Ra = h(an, "QyScrollbar"), za = h(on, "QyProgress"), Fa = h(nn, "QyStatistic"), Pa = h(ln, "QyAvatar"), Da = h(rn, "QyTree"), Oa = h(Do, "QyIconPicker"), Ma = h(Oo, "QyColorPicker"), _a = h(un, "QyDrawer"), Vl = (t) => {
3391
+ kt.install(t), t.component("QyDialog", At), t.component("QyDrawer", _a), t.component("QyUpload", Vt), t.component("QyImage", Bt), t.component("QyImagePreview", qt), t.component("QyImageUpload", It), t.component("QyRemarkImage", Tt), t.component("QyButton", Rt), t.component("QyDropdown", zt), t.component("QyInput", Ft), t.component("QyInputNumber", Pt), t.component("QyMoneyInput", Dt), t.component("QyDatePicker", Ot), t.component("QyCheckbox", Mt), t.component("QyCheckboxGroup", _t), t.component("QyRadio", Lt), t.component("QyAutocomplete", Ut), t.component("QyMenuActions", Kt), t.component("QyTableColumnSettings", Et), t.component("QyRadioGroup", jt), t.component("QyRemoteSelect", Nt), t.component("QySearchInput", Ht), t.component("QyRecordQuoteSearch", Wt), t.component("QySelect", Zt), t.component("QyTreeSelect", Gt), t.component("QySelectionDialog", Jt), t.component("QyLegacySelectionDialog", Xt), t.component("QyFormSection", Yt), t.component("QyActionBar", ea), t.component("QyFilePicker", ta), t.component("QySwitch", aa), t.component("QyTag", oa), t.component("QyBadge", na), t.component("QyCascader", la), t.component("QyTooltip", ra), t.component("QyPopover", ia), t.component("QyPopconfirm", sa), t.component("QySkeleton", ua), t.component("QySkeletonItem", ca), t.component("QyTabs", da), t.component("QyTabPane", fa), t.component("QySteps", ma), t.component("QyStep", ya), t.component("QyFullscreen", pa), t.component("QyIcon", St), t.component("QyIconPicker", Oa), t.component("QyColorPicker", Ma), t.component("QyRow", ga), t.component("QyCol", va), t.component("QyContainer", ha), t.component("QyAside", ba), t.component("QyMain", wa), t.component("QyDescriptions", Sa), t.component("QyDescriptionsItem", ka), t.component("QyCollapse", Qa), t.component("QyCollapseItem", xa), t.component("QyLink", $a), t.component("QyIframe", Ca), t.component("QyDivider", Va), t.component("QyEmpty", Ba), t.component("QyAlert", qa), t.component("QyCard", Ia), t.component("QyResult", Aa), t.component("QyWatermark", Ta), t.component("QyScrollbar", Ra), t.component("QyProgress", za), t.component("QyStatistic", Fa), t.component("QyAvatar", Pa), t.component("QyTree", Da);
3392
+ }, Ur = {
3393
+ install: Vl,
3390
3394
  QyUpload: Vt,
3391
3395
  QyImage: Bt,
3392
3396
  QyImagePreview: qt,
3393
- openQyImagePreview: tl,
3397
+ openQyImagePreview: cn,
3394
3398
  QyImageUpload: It,
3395
3399
  QyDialog: At,
3396
3400
  QyButton: Rt,
3397
3401
  QyDropdown: zt,
3398
3402
  QyInput: Ft,
3399
- QyInputNumber: Dt,
3400
- QyMoneyInput: Ot,
3401
- QyDatePicker: Pt,
3403
+ QyInputNumber: Pt,
3404
+ QyMoneyInput: Dt,
3405
+ QyDatePicker: Ot,
3402
3406
  QyCheckbox: Mt,
3403
- QyCheckboxGroup: Lt,
3404
- QyRadio: _t,
3407
+ QyCheckboxGroup: _t,
3408
+ QyRadio: Lt,
3405
3409
  QyAutocomplete: Ut,
3406
3410
  QyMenuActions: Kt,
3407
3411
  QyTableColumnSettings: Et,
3408
3412
  QyRadioGroup: jt,
3409
3413
  QyRemoteSelect: Nt,
3410
3414
  QySearchInput: Ht,
3411
- QyRecordQuoteSearch: Zt,
3412
- QySelect: Wt,
3415
+ QyRecordQuoteSearch: Wt,
3416
+ QySelect: Zt,
3413
3417
  QyTreeSelect: Gt,
3414
3418
  QySelectionDialog: Jt,
3415
3419
  QyLegacySelectionDialog: Xt,
@@ -3418,112 +3422,120 @@ const Cl = { class: "qy-remark-image__field" }, Vl = {
3418
3422
  QyFilePicker: ta,
3419
3423
  QySwitch: aa,
3420
3424
  QyTag: oa,
3421
- QyBadge: la,
3422
- QyCascader: na,
3425
+ QyBadge: na,
3426
+ QyCascader: la,
3423
3427
  QyTooltip: ra,
3424
3428
  QyPopover: ia,
3425
- QySkeleton: sa,
3426
- QySkeletonItem: ua,
3427
- QyTabs: ca,
3428
- QyTabPane: da,
3429
- QySteps: fa,
3430
- QyStep: ma,
3431
- QyFullscreen: ya,
3432
- QyDrawer: Da,
3429
+ QyPopconfirm: sa,
3430
+ QySkeleton: ua,
3431
+ QySkeletonItem: ca,
3432
+ QyTabs: da,
3433
+ QyTabPane: fa,
3434
+ QySteps: ma,
3435
+ QyStep: ya,
3436
+ QyFullscreen: pa,
3437
+ QyDrawer: _a,
3433
3438
  QyIcon: St,
3434
- QyIconPicker: Fa,
3435
- QyRow: pa,
3436
- QyCol: ga,
3437
- QyContainer: va,
3438
- QyAside: ha,
3439
- QyMain: ba,
3440
- QyDescriptions: wa,
3441
- QyDescriptionsItem: Sa,
3442
- QyCollapse: ka,
3439
+ QyIconPicker: Oa,
3440
+ QyColorPicker: Ma,
3441
+ QyRow: ga,
3442
+ QyCol: va,
3443
+ QyContainer: ha,
3444
+ QyAside: ba,
3445
+ QyMain: wa,
3446
+ QyDescriptions: Sa,
3447
+ QyDescriptionsItem: ka,
3448
+ QyCollapse: Qa,
3443
3449
  QyCollapseItem: xa,
3444
- QyLink: Qa,
3445
- QyDivider: $a,
3446
- QyEmpty: Ca,
3447
- QyAlert: Va,
3448
- QyCard: Ba,
3449
- QyResult: qa,
3450
- QyScrollbar: Ia,
3451
- QyProgress: Aa,
3452
- QyStatistic: Ta,
3453
- QyAvatar: Ra,
3454
- QyTree: za,
3450
+ QyLink: $a,
3451
+ QyIframe: Ca,
3452
+ QyDivider: Va,
3453
+ QyEmpty: Ba,
3454
+ QyAlert: qa,
3455
+ QyCard: Ia,
3456
+ QyResult: Aa,
3457
+ QyWatermark: Ta,
3458
+ QyScrollbar: Ra,
3459
+ QyProgress: za,
3460
+ QyStatistic: Fa,
3461
+ QyAvatar: Pa,
3462
+ QyTree: Da,
3455
3463
  QyRemarkImage: Tt,
3456
3464
  QyLoading: kt,
3457
- vQyLoading: Yo,
3458
- openQyLoading: al
3465
+ vQyLoading: sn,
3466
+ openQyLoading: dn
3459
3467
  };
3460
3468
  export {
3461
- ma as $,
3462
- Bt as A,
3463
- qt as B,
3464
- It as C,
3465
- Ft as D,
3466
- Dt as E,
3467
- Xt as F,
3468
- Qa as G,
3469
- ba as H,
3470
- Kt as I,
3471
- Ot as J,
3472
- ia as K,
3473
- Aa as L,
3474
- _t as M,
3475
- jt as N,
3476
- Zt as O,
3477
- Tt as P,
3469
+ ua as $,
3470
+ Oa as A,
3471
+ Ca as B,
3472
+ Bt as C,
3473
+ qt as D,
3474
+ It as E,
3475
+ Ft as F,
3476
+ Pt as G,
3477
+ Xt as H,
3478
+ $a as I,
3479
+ wa as J,
3480
+ Kt as K,
3481
+ Dt as L,
3482
+ sa as M,
3483
+ ia as N,
3484
+ za as O,
3485
+ Lt as P,
3478
3486
  ea as Q,
3479
- Nt as R,
3480
- qa as S,
3481
- pa as T,
3482
- Ia as U,
3483
- Ht as V,
3484
- Wt as W,
3485
- Jt as X,
3486
- sa as Y,
3487
- ua as Z,
3488
- Ta as _,
3489
- Va as a,
3490
- fa as a0,
3491
- aa as a1,
3492
- da as a2,
3493
- Et as a3,
3494
- ca as a4,
3495
- oa as a5,
3496
- ra as a6,
3497
- za as a7,
3498
- Gt as a8,
3499
- Vt as a9,
3500
- Ir as aa,
3501
- $l as ab,
3502
- it as ac,
3503
- st as ad,
3504
- ha as b,
3487
+ jt as R,
3488
+ Wt as S,
3489
+ Tt as T,
3490
+ Nt as U,
3491
+ Aa as V,
3492
+ ga as W,
3493
+ Ra as X,
3494
+ Ht as Y,
3495
+ Zt as Z,
3496
+ Jt as _,
3497
+ qa as a,
3498
+ ca as a0,
3499
+ Fa as a1,
3500
+ ya as a2,
3501
+ ma as a3,
3502
+ aa as a4,
3503
+ fa as a5,
3504
+ Et as a6,
3505
+ da as a7,
3506
+ oa as a8,
3507
+ ra as a9,
3508
+ Da as aa,
3509
+ Gt as ab,
3510
+ Vt as ac,
3511
+ Ta as ad,
3512
+ Ur as ae,
3513
+ zn as af,
3514
+ it as ag,
3515
+ st as ah,
3516
+ ba as b,
3505
3517
  Ut as c,
3506
- Ra as d,
3507
- la as e,
3518
+ Pa as d,
3519
+ na as e,
3508
3520
  Rt as f,
3509
- Ba as g,
3510
- na as h,
3521
+ Ia as g,
3522
+ la as h,
3511
3523
  Mt as i,
3512
- Lt as j,
3513
- ga as k,
3514
- ka as l,
3524
+ _t as j,
3525
+ va as k,
3526
+ Qa as l,
3515
3527
  xa as m,
3516
- va as n,
3517
- Pt as o,
3518
- wa as p,
3528
+ Ma as n,
3529
+ ha as o,
3530
+ Ot as p,
3519
3531
  Sa as q,
3520
- At as r,
3521
- $a as s,
3522
- Da as t,
3523
- zt as u,
3524
- Ca as v,
3525
- ta as w,
3526
- Yt as x,
3527
- ya as y,
3528
- Fa as z
3532
+ ka as r,
3533
+ At as s,
3534
+ Va as t,
3535
+ _a as u,
3536
+ zt as v,
3537
+ Ba as w,
3538
+ ta as x,
3539
+ Yt as y,
3540
+ pa as z
3529
3541
  };