@qynpm/ui 1.0.46 → 1.1.0

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 (417) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +3 -1
  3. package/dist/index.cjs +26 -26
  4. package/dist/index.mjs +241 -241
  5. package/dist/qy-action-bar/index.cjs +2 -2
  6. package/dist/qy-action-bar/index.mjs +2 -2
  7. package/dist/qy-alert/index.cjs +1 -1
  8. package/dist/qy-alert/index.mjs +4 -4
  9. package/dist/qy-aside/index.cjs +1 -1
  10. package/dist/qy-aside/index.mjs +4 -4
  11. package/dist/qy-autocomplete/index.cjs +1 -1
  12. package/dist/qy-autocomplete/index.mjs +3 -3
  13. package/dist/qy-avatar/index.cjs +1 -1
  14. package/dist/qy-avatar/index.mjs +1 -1
  15. package/dist/qy-badge/index.cjs +1 -1
  16. package/dist/qy-badge/index.mjs +4 -4
  17. package/dist/qy-button/index.cjs +2 -2
  18. package/dist/qy-button/index.mjs +2 -2
  19. package/dist/qy-card/index.cjs +1 -1
  20. package/dist/qy-card/index.mjs +1 -1
  21. package/dist/qy-cascader/index.cjs +1 -1
  22. package/dist/qy-cascader/index.mjs +3 -3
  23. package/dist/qy-checkbox/index.cjs +1 -1
  24. package/dist/qy-checkbox/index.mjs +1 -1
  25. package/dist/qy-checkbox-group/index.cjs +1 -1
  26. package/dist/qy-checkbox-group/index.mjs +4 -4
  27. package/dist/qy-col/index.cjs +1 -1
  28. package/dist/qy-col/index.mjs +4 -4
  29. package/dist/qy-collapse/index.cjs +1 -1
  30. package/dist/qy-collapse/index.mjs +2 -2
  31. package/dist/qy-collapse-item/index.cjs +1 -1
  32. package/dist/qy-collapse-item/index.mjs +5 -5
  33. package/dist/qy-color-picker/index.cjs +1 -1
  34. package/dist/qy-color-picker/index.mjs +4 -4
  35. package/dist/qy-container/index.cjs +1 -1
  36. package/dist/qy-container/index.mjs +3 -3
  37. package/dist/qy-date-picker/index.cjs +1 -1
  38. package/dist/qy-date-picker/index.mjs +1 -1
  39. package/dist/qy-descriptions/index.cjs +1 -1
  40. package/dist/qy-descriptions/index.mjs +1 -1
  41. package/dist/qy-descriptions-item/index.cjs +1 -1
  42. package/dist/qy-descriptions-item/index.mjs +4 -4
  43. package/dist/qy-dialog/index.cjs +2 -2
  44. package/dist/qy-dialog/index.mjs +4 -4
  45. package/dist/qy-divider/index.cjs +1 -1
  46. package/dist/qy-divider/index.mjs +4 -4
  47. package/dist/qy-drawer/index.cjs +1 -1
  48. package/dist/qy-drawer/index.mjs +2 -2
  49. package/dist/qy-dropdown/index.cjs +2 -2
  50. package/dist/qy-dropdown/index.mjs +2 -2
  51. package/dist/qy-empty/index.cjs +1 -1
  52. package/dist/qy-empty/index.mjs +4 -4
  53. package/dist/qy-file-picker/index.cjs +1 -1
  54. package/dist/qy-file-picker/index.mjs +1 -1
  55. package/dist/qy-form-section/index.cjs +2 -2
  56. package/dist/qy-form-section/index.mjs +2 -2
  57. package/dist/qy-fullscreen/index.cjs +1 -1
  58. package/dist/qy-fullscreen/index.mjs +1 -1
  59. package/dist/qy-icon/index.cjs +1 -1
  60. package/dist/qy-icon/index.mjs +2 -2
  61. package/dist/qy-icon-picker/index.cjs +2 -2
  62. package/dist/qy-icon-picker/index.mjs +5 -5
  63. package/dist/qy-iframe/index.cjs +1 -1
  64. package/dist/qy-iframe/index.mjs +1 -1
  65. package/dist/qy-image/index.cjs +1 -1
  66. package/dist/qy-image/index.mjs +1 -1
  67. package/dist/qy-image-preview/index.cjs +1 -1
  68. package/dist/qy-image-preview/index.mjs +1 -1
  69. package/dist/qy-image-upload/index.cjs +2 -2
  70. package/dist/qy-image-upload/index.mjs +4 -4
  71. package/dist/qy-input/index.cjs +1 -1
  72. package/dist/qy-input/index.mjs +1 -1
  73. package/dist/qy-input-number/index.cjs +1 -1
  74. package/dist/qy-input-number/index.mjs +2 -2
  75. package/dist/qy-input-tag/index.cjs +1 -1
  76. package/dist/qy-input-tag/index.mjs +134 -123
  77. package/dist/qy-legacy-selection-dialog/index.cjs +7 -7
  78. package/dist/qy-legacy-selection-dialog/index.mjs +7 -7
  79. package/dist/qy-link/index.cjs +1 -1
  80. package/dist/qy-link/index.mjs +5 -5
  81. package/dist/qy-main/index.cjs +1 -1
  82. package/dist/qy-main/index.mjs +4 -4
  83. package/dist/qy-menu-actions/index.cjs +1 -1
  84. package/dist/qy-menu-actions/index.mjs +1 -1
  85. package/dist/qy-money-input/index.cjs +1 -1
  86. package/dist/qy-money-input/index.mjs +4 -4
  87. package/dist/qy-pagination/index.cjs +1 -1
  88. package/dist/qy-pagination/index.mjs +1 -1
  89. package/dist/qy-popconfirm/index.cjs +1 -1
  90. package/dist/qy-popconfirm/index.mjs +5 -5
  91. package/dist/qy-popover/index.cjs +1 -1
  92. package/dist/qy-popover/index.mjs +4 -4
  93. package/dist/qy-progress/index.cjs +1 -1
  94. package/dist/qy-progress/index.mjs +3 -3
  95. package/dist/qy-radio/index.cjs +1 -1
  96. package/dist/qy-radio/index.mjs +1 -1
  97. package/dist/qy-radio-group/index.cjs +1 -1
  98. package/dist/qy-radio-group/index.mjs +1 -1
  99. package/dist/qy-record-quote-search/index.cjs +3 -3
  100. package/dist/qy-record-quote-search/index.mjs +3 -3
  101. package/dist/qy-remark-image/index.cjs +2 -2
  102. package/dist/qy-remark-image/index.mjs +3 -3
  103. package/dist/qy-remote-select/index.cjs +2 -2
  104. package/dist/qy-remote-select/index.mjs +4 -4
  105. package/dist/qy-result/index.cjs +1 -1
  106. package/dist/qy-result/index.mjs +4 -4
  107. package/dist/qy-row/index.cjs +1 -1
  108. package/dist/qy-row/index.mjs +4 -4
  109. package/dist/qy-scrollbar/index.cjs +1 -1
  110. package/dist/qy-scrollbar/index.mjs +3 -3
  111. package/dist/qy-search-input/index.cjs +2 -2
  112. package/dist/qy-search-input/index.mjs +2 -2
  113. package/dist/qy-select/index.cjs +1 -1
  114. package/dist/qy-select/index.mjs +1 -1
  115. package/dist/qy-selection-dialog/index.cjs +6 -6
  116. package/dist/qy-selection-dialog/index.mjs +6 -6
  117. package/dist/qy-skeleton/index.cjs +1 -1
  118. package/dist/qy-skeleton/index.mjs +4 -4
  119. package/dist/qy-skeleton-item/index.cjs +1 -1
  120. package/dist/qy-skeleton-item/index.mjs +4 -4
  121. package/dist/qy-statistic/index.cjs +1 -1
  122. package/dist/qy-statistic/index.mjs +3 -3
  123. package/dist/qy-step/index.cjs +1 -1
  124. package/dist/qy-step/index.mjs +5 -5
  125. package/dist/qy-steps/index.cjs +1 -1
  126. package/dist/qy-steps/index.mjs +4 -4
  127. package/dist/qy-switch/index.cjs +1 -1
  128. package/dist/qy-switch/index.mjs +1 -1
  129. package/dist/qy-tab-pane/index.cjs +1 -1
  130. package/dist/qy-tab-pane/index.mjs +4 -4
  131. package/dist/qy-table-column-settings/index.cjs +1 -1
  132. package/dist/qy-table-column-settings/index.mjs +1 -1
  133. package/dist/qy-tabs/index.cjs +1 -1
  134. package/dist/qy-tabs/index.mjs +4 -4
  135. package/dist/qy-tag/index.cjs +1 -1
  136. package/dist/qy-tag/index.mjs +1 -1
  137. package/dist/qy-tooltip/index.cjs +1 -1
  138. package/dist/qy-tooltip/index.mjs +4 -4
  139. package/dist/qy-tree/index.cjs +1 -1
  140. package/dist/qy-tree/index.mjs +5 -5
  141. package/dist/qy-tree-select/index.cjs +1 -1
  142. package/dist/qy-tree-select/index.mjs +1 -1
  143. package/dist/qy-upload/index.cjs +1 -1
  144. package/dist/qy-upload/index.mjs +1 -1
  145. package/dist/qy-watermark/index.cjs +1 -1
  146. package/dist/qy-watermark/index.mjs +1 -1
  147. package/dist/shared/index-0PQfX5FF.cjs +1 -0
  148. package/dist/shared/index-0rmLB9X5.mjs +153 -0
  149. package/dist/shared/index-2Mjm9QSY.cjs +1 -0
  150. package/dist/shared/index-4Yl91Bw1.cjs +1 -0
  151. package/dist/shared/{index-DNMRIYkm.mjs → index-4f74z6ej.mjs} +1 -1
  152. package/dist/shared/index-5gzkbh5i.mjs +155 -0
  153. package/dist/shared/index-8hd7J6aU.mjs +387 -0
  154. package/dist/shared/index-8yOtcFvL.cjs +1 -0
  155. package/dist/shared/{index.vue_vue_type_script_lang-DOOT2grg.mjs → index-9ONwSw5w.mjs} +13 -12
  156. package/dist/shared/index-9uvmS4AG.mjs +269 -0
  157. package/dist/shared/index-AanbrbHj.mjs +341 -0
  158. package/dist/shared/index-AlGD5i9H.mjs +69 -0
  159. package/dist/shared/index-B5QHWuu6.mjs +77 -0
  160. package/dist/shared/index-B61qMsVc.cjs +1 -0
  161. package/dist/shared/index-B7uUS7TF.cjs +1 -0
  162. package/dist/shared/index-BD_xspQz.mjs +48 -0
  163. package/dist/shared/index-BE5027ro.mjs +93 -0
  164. package/dist/shared/index-BEBpuiBd.mjs +88 -0
  165. package/dist/shared/index-BEkygL14.mjs +53 -0
  166. package/dist/shared/index-BEtTFM5x.cjs +1 -0
  167. package/dist/shared/index-BHwo-QWj.cjs +1 -0
  168. package/dist/shared/index-BNFOINBq.cjs +1 -0
  169. package/dist/shared/index-BO98Eu6o.mjs +177 -0
  170. package/dist/shared/index-BQhmieVL.cjs +1 -0
  171. package/dist/shared/{index.vue_vue_type_script_lang-BnmY1ndj.mjs → index-BQsEFX28.mjs} +24 -23
  172. package/dist/shared/{index.vue_vue_type_style_index_0_lang-BvBAR8A1.mjs → index-BToXN_2w.mjs} +18 -17
  173. package/dist/shared/{index.vue_vue_type_script_lang-BGAdXWIL.mjs → index-BVb2RMjG.mjs} +12 -11
  174. package/dist/shared/index-BZWCuG8R.cjs +1 -0
  175. package/dist/shared/index-BZ_NcHA_.mjs +53 -0
  176. package/dist/shared/{index.vue_vue_type_script_lang-DIKHRo0o.mjs → index-BZqyVU0P.mjs} +22 -21
  177. package/dist/shared/index-B_SR7dGJ.cjs +1 -0
  178. package/dist/shared/index-BerXbfTu.mjs +253 -0
  179. package/dist/shared/index-BflaWNs2.cjs +1 -0
  180. package/dist/shared/index-BhgJxAHO.cjs +1 -0
  181. package/dist/shared/index-BiKe-5ke.cjs +1 -0
  182. package/dist/shared/index-BikJ___N.cjs +1 -0
  183. package/dist/shared/index-BjZlBHhd.mjs +129 -0
  184. package/dist/shared/index-Bk0SVo_S.cjs +1 -0
  185. package/dist/shared/index-BlC4k76M.cjs +1 -0
  186. package/dist/shared/index-BlRFiIMi.cjs +1 -0
  187. package/dist/shared/index-BlkrT9Gw.cjs +1 -0
  188. package/dist/shared/index-BmK0RFXS.cjs +1 -0
  189. package/dist/shared/index-BwHeigcB.cjs +1 -0
  190. package/dist/shared/index-BzVbwomQ.mjs +365 -0
  191. package/dist/shared/index-C0vnuFhn.cjs +1 -0
  192. package/dist/shared/index-C1__R9-C.mjs +371 -0
  193. package/dist/shared/index-C1fkmo0S.cjs +1 -0
  194. package/dist/shared/index-C9AEjhcH.mjs +160 -0
  195. package/dist/shared/index-C9Lf2bX3.mjs +295 -0
  196. package/dist/shared/{index.vue_vue_type_script_lang-Dfq7D3mJ.mjs → index-C9n9zVss.mjs} +4 -3
  197. package/dist/shared/{index.vue_vue_type_script_lang-BaIOvoQn.mjs → index-CBbKlfPG.mjs} +10 -9
  198. package/dist/shared/index-CC5n_6uk.mjs +205 -0
  199. package/dist/shared/index-CDczgvbL.cjs +1 -0
  200. package/dist/shared/index-CESgJwIg.mjs +328 -0
  201. package/dist/shared/index-CEt5qI00.mjs +857 -0
  202. package/dist/shared/index-CFBWO7n0.mjs +78 -0
  203. package/dist/shared/index-CFJz6vrN.mjs +47 -0
  204. package/dist/shared/{index-CXnL-0Kp.cjs → index-CGFTY4Fp.cjs} +1 -1
  205. package/dist/shared/index-CHkcP5-q.cjs +1 -0
  206. package/dist/shared/index-CIUWz2Hp.cjs +1 -0
  207. package/dist/shared/index-COAR6xjP.mjs +402 -0
  208. package/dist/shared/index-CP3-7cLC.mjs +105 -0
  209. package/dist/shared/index-CP7N-9VV.cjs +1 -0
  210. package/dist/shared/{index.vue_vue_type_script_lang-D7b9ABei.mjs → index-CQRVbO-K.mjs} +20 -19
  211. package/dist/shared/{index.vue_vue_type_script_lang-D7nzeBUR.mjs → index-CTGLKLFg.mjs} +6 -5
  212. package/dist/shared/index-CWkXHOq7.cjs +1 -0
  213. package/dist/shared/index-CX-7EN8r.mjs +79 -0
  214. package/dist/shared/index-CXOF1C3t.mjs +84 -0
  215. package/dist/shared/index-CXeVLEcE.cjs +1 -0
  216. package/dist/shared/index-CXzBoO6N.cjs +1 -0
  217. package/dist/shared/index-C_vMHW_7.cjs +1 -0
  218. package/dist/shared/index-CcGYgKVf.mjs +446 -0
  219. package/dist/shared/index-CdqAvLtW.cjs +1 -0
  220. package/dist/shared/index-CfKXtmed.cjs +1 -0
  221. package/dist/shared/index-CfxDI3TR.mjs +284 -0
  222. package/dist/shared/index-Cgt_jiO8.cjs +1 -0
  223. package/dist/shared/index-CialZcU3.mjs +74 -0
  224. package/dist/shared/index-CjoH6lLx.cjs +1 -0
  225. package/dist/shared/index-CkXEXmTX.cjs +1 -0
  226. package/dist/shared/index-Cq0QWpNp.cjs +1 -0
  227. package/dist/shared/index-CtQ7TLzl.mjs +138 -0
  228. package/dist/shared/index-Ctcu-6T-.mjs +104 -0
  229. package/dist/shared/index-CvFL8RVZ.cjs +1 -0
  230. package/dist/shared/index-D-KJitUI.mjs +234 -0
  231. package/dist/shared/index-D-Se1DH6.cjs +1 -0
  232. package/dist/shared/index-D1SCfWlF.cjs +1 -0
  233. package/dist/shared/index-D2djzg5O.mjs +170 -0
  234. package/dist/shared/index-D6lq2cXm.cjs +1 -0
  235. package/dist/shared/index-DGGBR9IQ.cjs +1 -0
  236. package/dist/shared/index-DI5Xx4zU.mjs +740 -0
  237. package/dist/shared/index-DMfiLqWm.cjs +1 -0
  238. package/dist/shared/index-DN3FSxUk.cjs +1 -0
  239. package/dist/shared/index-DN5Y8eHV.mjs +197 -0
  240. package/dist/shared/index-DNkrf-d7.cjs +1 -0
  241. package/dist/shared/index-DREOpf4w.cjs +1 -0
  242. package/dist/shared/index-DWxTBo0t.cjs +1 -0
  243. package/dist/shared/index-DYRxgeIB.mjs +311 -0
  244. package/dist/shared/index-DYhS_2hH.cjs +1 -0
  245. package/dist/shared/index-DZ9ixuhw.cjs +1 -0
  246. package/dist/shared/index-DZfZB8LS.mjs +146 -0
  247. package/dist/shared/index-DalbvZMR.mjs +132 -0
  248. package/dist/shared/index-DbpA63pp.mjs +51 -0
  249. package/dist/shared/index-Dd3rOEzY.mjs +136 -0
  250. package/dist/shared/index-DdOHKkWW.mjs +52 -0
  251. package/dist/shared/index-DhN2XKVc.cjs +1 -0
  252. package/dist/shared/index-DiZtu6-f.mjs +239 -0
  253. package/dist/shared/index-DkObuzo1.cjs +1 -0
  254. package/dist/shared/index-DkXIyXp3.mjs +27 -0
  255. package/dist/shared/index-DmlIk2mW.cjs +1 -0
  256. package/dist/shared/index-Dv56njXo.cjs +1 -0
  257. package/dist/shared/index-DvLP2-p4.mjs +53 -0
  258. package/dist/shared/{index.vue_vue_type_script_lang-Bk0kLg5l.mjs → index-DxJnYlq4.mjs} +12 -11
  259. package/dist/shared/index-FSg27SoE.cjs +1 -0
  260. package/dist/shared/index-H0zceO6D.cjs +1 -0
  261. package/dist/shared/index-KFGhsuz_.mjs +63 -0
  262. package/dist/shared/index-KRMhlM-i.mjs +73 -0
  263. package/dist/shared/index-KvPH1usv.cjs +1 -0
  264. package/dist/shared/index-MaJdwWFj.cjs +1 -0
  265. package/dist/shared/index-NVs2UMip.cjs +1 -0
  266. package/dist/shared/index-OtL-aoXO.cjs +1 -0
  267. package/dist/shared/index-QHgVgpQU.mjs +67 -0
  268. package/dist/shared/index-R_lpFv9P.cjs +1 -0
  269. package/dist/shared/index-UyFdOJwl.mjs +157 -0
  270. package/dist/shared/{index.vue_vue_type_script_lang-C9X0V5AK.mjs → index-ZaBOgUd8.mjs} +17 -16
  271. package/dist/shared/index-_aPlj867.cjs +1 -0
  272. package/dist/shared/{index.vue_vue_type_script_lang-chBiq2cG.mjs → index-_llXjfm8.mjs} +4 -3
  273. package/dist/shared/index-aIBPfUAm.mjs +213 -0
  274. package/dist/shared/index-bR6Q3uaD.mjs +407 -0
  275. package/dist/shared/index-dM8FfZ_X.cjs +1 -0
  276. package/dist/shared/index-eIplwAX7.cjs +1 -0
  277. package/dist/shared/index-fEmIlZsO.cjs +1 -0
  278. package/dist/shared/index-frOfvcCH.mjs +307 -0
  279. package/dist/shared/index-iDsQyjN1.mjs +548 -0
  280. package/dist/shared/index-iGKTM26-.mjs +63 -0
  281. package/dist/shared/{index.vue_vue_type_style_index_0_lang-CN3dJjUV.mjs → index-iqem06ey.mjs} +12 -11
  282. package/dist/shared/index-mO9UiIQW.cjs +1 -0
  283. package/dist/shared/index-nYilZJM6.cjs +1 -0
  284. package/dist/shared/index-oZEfxmBH.cjs +1 -0
  285. package/dist/shared/index-oeKD9ezb.mjs +208 -0
  286. package/dist/shared/index-rPOiDeUU.cjs +1 -0
  287. package/dist/shared/{index.vue_vue_type_script_lang-C4JHCuXz.mjs → index-tQgB7Kvd.mjs} +16 -15
  288. package/dist/shared/index-xCLpvAQ0.cjs +1 -0
  289. package/index.d.ts +1 -0
  290. package/package.json +3 -2
  291. package/qy-dialog/index.d.ts +6 -3
  292. package/dist/shared/index-5UAiwqdT.cjs +0 -1
  293. package/dist/shared/index-AvNvmJe5.cjs +0 -1
  294. package/dist/shared/index-B0CTzdRW.mjs +0 -149
  295. package/dist/shared/index-B1J7PQMl.mjs +0 -79
  296. package/dist/shared/index-B1gnVI8Y.mjs +0 -161
  297. package/dist/shared/index-B7j9BtSm.mjs +0 -233
  298. package/dist/shared/index-BAOV5iYx.mjs +0 -385
  299. package/dist/shared/index-BKdw4jD_.mjs +0 -142
  300. package/dist/shared/index-BN4A-O6P.mjs +0 -727
  301. package/dist/shared/index-BR7tIt2k.mjs +0 -211
  302. package/dist/shared/index-BVaIvVMi.mjs +0 -71
  303. package/dist/shared/index-BaRw7pWi.mjs +0 -156
  304. package/dist/shared/index-Bdlzmh8A.cjs +0 -1
  305. package/dist/shared/index-BgAP_K2E.cjs +0 -1
  306. package/dist/shared/index-Blgz8PJc.cjs +0 -1
  307. package/dist/shared/index-BqzKToOL.cjs +0 -1
  308. package/dist/shared/index-BsNtvE6i.cjs +0 -1
  309. package/dist/shared/index-BuVrLl5B.mjs +0 -90
  310. package/dist/shared/index-Bv1DrJ32.mjs +0 -71
  311. package/dist/shared/index-Bz9WjKdL.cjs +0 -1
  312. package/dist/shared/index-Bzr2RHi5.mjs +0 -293
  313. package/dist/shared/index-C50jpQ11.mjs +0 -295
  314. package/dist/shared/index-C6G9eVku.cjs +0 -1
  315. package/dist/shared/index-CB0v25oB.cjs +0 -1
  316. package/dist/shared/index-CGH2ROZV.mjs +0 -54
  317. package/dist/shared/index-CIXJwYI-.cjs +0 -1
  318. package/dist/shared/index-CKkanVur.cjs +0 -1
  319. package/dist/shared/index-CLvL8LAM.cjs +0 -1
  320. package/dist/shared/index-CN2mgT5V.cjs +0 -1
  321. package/dist/shared/index-CW4s627w.mjs +0 -107
  322. package/dist/shared/index-CXOCZlps.mjs +0 -222
  323. package/dist/shared/index-CZs0V4ze.cjs +0 -1
  324. package/dist/shared/index-Cqr-L0yd.mjs +0 -285
  325. package/dist/shared/index-Cu6yAwdj.mjs +0 -124
  326. package/dist/shared/index-CxTyKMEH.cjs +0 -1
  327. package/dist/shared/index-D5HS8M1P.cjs +0 -1
  328. package/dist/shared/index-D6QwZtYV.mjs +0 -56
  329. package/dist/shared/index-DCsun70c.cjs +0 -1
  330. package/dist/shared/index-DEzFHeJL.cjs +0 -1
  331. package/dist/shared/index-DY2IXvwl.cjs +0 -1
  332. package/dist/shared/index-DdGlwebp.mjs +0 -347
  333. package/dist/shared/index-DiN5vXXD.cjs +0 -1
  334. package/dist/shared/index-Duq5XZ5w.cjs +0 -1
  335. package/dist/shared/index-DvXzDAmi.mjs +0 -285
  336. package/dist/shared/index-DwHM9eYc.cjs +0 -1
  337. package/dist/shared/index-FZ5gl2au.cjs +0 -1
  338. package/dist/shared/index-O6K0DO_k.cjs +0 -1
  339. package/dist/shared/index-PM5yNugz.mjs +0 -573
  340. package/dist/shared/index-QN7-6GpS.mjs +0 -127
  341. package/dist/shared/index-VtM0GmfU.mjs +0 -361
  342. package/dist/shared/index-_Bagw0Pj.cjs +0 -1
  343. package/dist/shared/index-ykI9hKtc.mjs +0 -88
  344. package/dist/shared/index.vue_vue_type_script_lang-69zSOotQ.mjs +0 -47
  345. package/dist/shared/index.vue_vue_type_script_lang-8AT3-xU-.cjs +0 -1
  346. package/dist/shared/index.vue_vue_type_script_lang-BO9Ju_i0.cjs +0 -1
  347. package/dist/shared/index.vue_vue_type_script_lang-Bc3tktk9.cjs +0 -1
  348. package/dist/shared/index.vue_vue_type_script_lang-BgapsQjI.cjs +0 -1
  349. package/dist/shared/index.vue_vue_type_script_lang-BkoqbceR.cjs +0 -1
  350. package/dist/shared/index.vue_vue_type_script_lang-By3jd4gw.cjs +0 -1
  351. package/dist/shared/index.vue_vue_type_script_lang-CCL57H5c.cjs +0 -1
  352. package/dist/shared/index.vue_vue_type_script_lang-CIOi2ahp.cjs +0 -1
  353. package/dist/shared/index.vue_vue_type_script_lang-CKZUcaZ5.cjs +0 -1
  354. package/dist/shared/index.vue_vue_type_script_lang-CWnNQBPN.mjs +0 -31
  355. package/dist/shared/index.vue_vue_type_script_lang-CZK0hDYa.mjs +0 -77
  356. package/dist/shared/index.vue_vue_type_script_lang-CfjfZCT3.cjs +0 -1
  357. package/dist/shared/index.vue_vue_type_script_lang-ChS-3_vl.mjs +0 -43
  358. package/dist/shared/index.vue_vue_type_script_lang-Cv4Pf58E.cjs +0 -1
  359. package/dist/shared/index.vue_vue_type_script_lang-CwrbII5c.cjs +0 -1
  360. package/dist/shared/index.vue_vue_type_script_lang-D42aRlO2.cjs +0 -1
  361. package/dist/shared/index.vue_vue_type_script_lang-DLmUPDR5.cjs +0 -1
  362. package/dist/shared/index.vue_vue_type_script_lang-DMrpLmWN.cjs +0 -1
  363. package/dist/shared/index.vue_vue_type_script_lang-DRvk4-_O.mjs +0 -43
  364. package/dist/shared/index.vue_vue_type_script_lang-DpSaB5eg.cjs +0 -1
  365. package/dist/shared/index.vue_vue_type_script_lang-WJ63_A7F.cjs +0 -1
  366. package/dist/shared/index.vue_vue_type_script_setup_true_lang-2ZOn9XPM.cjs +0 -1
  367. package/dist/shared/index.vue_vue_type_script_setup_true_lang-4CNzVpgF.mjs +0 -40
  368. package/dist/shared/index.vue_vue_type_script_setup_true_lang-4KZSABSM.cjs +0 -1
  369. package/dist/shared/index.vue_vue_type_script_setup_true_lang-B38X3tvf.cjs +0 -1
  370. package/dist/shared/index.vue_vue_type_script_setup_true_lang-B4JrNUDc.mjs +0 -43
  371. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BJe7Uo6S.mjs +0 -42
  372. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BWi3g3mb.cjs +0 -1
  373. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BXnZt9UT.mjs +0 -63
  374. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Bdz9oDDW.mjs +0 -62
  375. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BtMkNw_I.mjs +0 -199
  376. package/dist/shared/index.vue_vue_type_script_setup_true_lang-C96ZaggL.cjs +0 -1
  377. package/dist/shared/index.vue_vue_type_script_setup_true_lang-COAUEujY.mjs +0 -48
  378. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CeVvm5Ph.cjs +0 -1
  379. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Cn0JqB5r.cjs +0 -1
  380. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Cr9PdvyR.cjs +0 -1
  381. package/dist/shared/index.vue_vue_type_script_setup_true_lang-D3MxDFk1.cjs +0 -1
  382. package/dist/shared/index.vue_vue_type_script_setup_true_lang-D7BlbHN5.cjs +0 -1
  383. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DECgTYqI.mjs +0 -108
  384. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DM0MGPZh.mjs +0 -331
  385. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DMHhx9lY.mjs +0 -133
  386. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DUEhuwGQ.cjs +0 -1
  387. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DW2JKXjA.cjs +0 -1
  388. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Dd_nKJvH.mjs +0 -19
  389. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DeFEEJk8.cjs +0 -1
  390. package/dist/shared/index.vue_vue_type_script_setup_true_lang-GUuWAB0o.mjs +0 -238
  391. package/dist/shared/index.vue_vue_type_script_setup_true_lang-mWNAIcqc.mjs +0 -63
  392. package/dist/shared/index.vue_vue_type_style_index_0_lang-90f2jQr7.mjs +0 -98
  393. package/dist/shared/index.vue_vue_type_style_index_0_lang-B4fDeQox.cjs +0 -1
  394. package/dist/shared/index.vue_vue_type_style_index_0_lang-BLRxKB-e.mjs +0 -413
  395. package/dist/shared/index.vue_vue_type_style_index_0_lang-BNL5vyrU.cjs +0 -1
  396. package/dist/shared/index.vue_vue_type_style_index_0_lang-Ba6d5zw4.mjs +0 -142
  397. package/dist/shared/index.vue_vue_type_style_index_0_lang-BzJsAWKD.cjs +0 -1
  398. package/dist/shared/index.vue_vue_type_style_index_0_lang-C4yXFBV_.cjs +0 -1
  399. package/dist/shared/index.vue_vue_type_style_index_0_lang-C7L66EnO.mjs +0 -67
  400. package/dist/shared/index.vue_vue_type_style_index_0_lang-CFp5MK6j.cjs +0 -1
  401. package/dist/shared/index.vue_vue_type_style_index_0_lang-CNdV3Mnk.mjs +0 -286
  402. package/dist/shared/index.vue_vue_type_style_index_0_lang-CVAm3ApY.cjs +0 -1
  403. package/dist/shared/index.vue_vue_type_style_index_0_lang-CgScSrRJ.mjs +0 -148
  404. package/dist/shared/index.vue_vue_type_style_index_0_lang-Clt7QDAK.cjs +0 -1
  405. package/dist/shared/index.vue_vue_type_style_index_0_lang-CuTyK1Ey.mjs +0 -317
  406. package/dist/shared/index.vue_vue_type_style_index_0_lang-CvVl_Y56.mjs +0 -219
  407. package/dist/shared/index.vue_vue_type_style_index_0_lang-CvlRVqcl.cjs +0 -1
  408. package/dist/shared/index.vue_vue_type_style_index_0_lang-D-p1u8y8.cjs +0 -1
  409. package/dist/shared/index.vue_vue_type_style_index_0_lang-D9T_xdbu.mjs +0 -176
  410. package/dist/shared/index.vue_vue_type_style_index_0_lang-DGV7FQlw.cjs +0 -1
  411. package/dist/shared/index.vue_vue_type_style_index_0_lang-DGt78p3G.mjs +0 -298
  412. package/dist/shared/index.vue_vue_type_style_index_0_lang-DZOPXZov.mjs +0 -168
  413. package/dist/shared/index.vue_vue_type_style_index_0_lang-J7wvS2CR.cjs +0 -1
  414. package/dist/shared/index.vue_vue_type_style_index_0_lang-KXiTSh4t.mjs +0 -74
  415. package/dist/shared/index.vue_vue_type_style_index_0_lang-YEjVWWsy.cjs +0 -1
  416. package/dist/shared/index.vue_vue_type_style_index_0_lang-nS-EDK4t.cjs +0 -1
  417. package/dist/shared/index.vue_vue_type_style_index_0_lang-yci929so.cjs +0 -1
@@ -1,285 +0,0 @@
1
- import { defineComponent as H, useAttrs as J, ref as x, computed as w, watch as D, onMounted as Q, nextTick as X, onBeforeUnmount as Y, openBlock as m, createElementBlock as v, normalizeStyle as Z, normalizeClass as ee, createElementVNode as g, createBlock as I, unref as u, withCtx as _, Fragment as ae, renderList as te, createCommentVNode as R, createVNode as q, mergeProps as le, createTextVNode as re } from "vue";
2
- import { useFormDisabled as se, ElMessage as S, ElSelect as ne, ElOption as ie, ElInput as ue, ElPopover as oe, ElButton as de, ElUpload as ce } from "element-plus";
3
- import { a as fe } from "./js.cookie-BA-dL3zT.mjs";
4
- import { _ as me } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
5
- function A(l) {
6
- const n = l == null ? void 0 : l.match(/(\[url\:(.*?)\])(.*)/);
7
- return n ? {
8
- imageUrl: n[2],
9
- text: n[3]
10
- } : {
11
- imageUrl: "",
12
- text: l || ""
13
- };
14
- }
15
- function pe(l) {
16
- const n = String(l || "").match(/(\[url\:.*?\])([\s\S]*)/);
17
- return n ? n[2] : l;
18
- }
19
- function N(l, n) {
20
- return n ? `[url:${n}]${l}` : l;
21
- }
22
- const ve = { class: "qy-remark-image__field" }, ge = {
23
- key: 1,
24
- class: "qy-remark-image__divider"
25
- }, ye = { class: "qy-remark-image__upload-anchor" }, he = {
26
- key: 0,
27
- class: "icon-[line-md--loading-twotone-loop]",
28
- role: "img",
29
- "aria-hidden": "true"
30
- }, _e = {
31
- key: 1,
32
- class: "icon-[ion--cloud-upload-outline]",
33
- role: "img",
34
- "aria-hidden": "true"
35
- }, be = {
36
- key: 2,
37
- class: "icon-[ph--images-thin]",
38
- role: "img",
39
- "aria-hidden": "true"
40
- }, ke = { class: "qy-remark-image__popover" }, xe = ["src"], we = { class: "qy-remark-image__popover-footer" }, qe = /* @__PURE__ */ H({
41
- __name: "index",
42
- props: {
43
- defaultValue: { default: "" },
44
- defaultImage: { default: "" },
45
- rows: { default: 6 },
46
- width: { default: "" },
47
- autosize: { type: [Boolean, Object], default: !1 },
48
- disabled: { type: Boolean, default: void 0 },
49
- placeholder: { default: "粘贴图片上传" },
50
- type: { default: "textarea" },
51
- layout: { default: "default" },
52
- selectValue: { type: [String, Number, Boolean], default: "" },
53
- selectOptions: { default: () => [] },
54
- selectDisabled: { type: Boolean, default: !1 },
55
- api: { default: "/permission-api/common/uploads" },
56
- tokenKey: { default: "Admin-Token" },
57
- uploadName: { default: "files" },
58
- uploadRequest: {}
59
- },
60
- emits: ["change", "update:selectValue", "select-change"],
61
- setup(l, { expose: n, emit: P }) {
62
- const r = l, V = P, L = J(), d = se(), E = x(null), f = x(""), s = x(""), p = x(!1);
63
- let y = 0, c;
64
- function h() {
65
- y++, c == null || c.abort(), c = void 0, p.value = !1;
66
- }
67
- const b = w(
68
- () => r.layout === "select-prefix"
69
- ), O = w(() => ({
70
- "qy-remark-image--select-prefix": b.value
71
- })), T = w(
72
- () => b.value || r.type === "text" ? "text" : "textarea"
73
- ), F = w(() => {
74
- if (r.width)
75
- return {
76
- width: typeof r.width == "number" ? `${r.width}px` : r.width
77
- };
78
- });
79
- D(
80
- () => r.defaultValue,
81
- (e) => {
82
- const a = A(e || ""), t = a.imageUrl || r.defaultImage || "";
83
- (a.text !== f.value || t !== s.value) && h(), f.value = a.text, s.value = t;
84
- },
85
- { immediate: !0 }
86
- ), D(
87
- () => r.defaultImage,
88
- (e) => {
89
- e !== void 0 && !A(r.defaultValue || "").imageUrl && ((e || "") !== s.value && h(), s.value = e || "");
90
- },
91
- { immediate: !0 }
92
- ), Q(() => {
93
- X(K);
94
- }), Y(() => {
95
- h();
96
- const e = B();
97
- e && e.removeEventListener("paste", U);
98
- });
99
- function B() {
100
- var e, a;
101
- return ((e = E.value) == null ? void 0 : e.textarea) || ((a = E.value) == null ? void 0 : a.input) || null;
102
- }
103
- function K() {
104
- const e = B();
105
- e && (e.removeEventListener("paste", U), e.addEventListener("paste", U));
106
- }
107
- function $(e) {
108
- d.value || (f.value = pe(e || ""));
109
- }
110
- function j(e) {
111
- d.value || r.selectDisabled || (V("update:selectValue", e), V("select-change", e));
112
- }
113
- function z() {
114
- d.value || (h(), s.value = "", k());
115
- }
116
- function M() {
117
- h(), f.value = "", s.value = "", k();
118
- }
119
- async function U(e) {
120
- var i;
121
- if (d.value || p.value) return;
122
- const t = Array.from(((i = e.clipboardData) == null ? void 0 : i.files) || []).find((o) => o.type.startsWith("image/"));
123
- t && (e.preventDefault(), await C({
124
- file: t,
125
- onError: () => {
126
- },
127
- onProgress: () => {
128
- },
129
- onSuccess: () => {
130
- }
131
- }));
132
- }
133
- async function C(e) {
134
- var t, i;
135
- if (d.value || p.value) return !1;
136
- if (e.file.size > 51200 * 1e3)
137
- return S.error("图片过大"), !1;
138
- p.value = !0;
139
- const a = ++y;
140
- c = r.uploadRequest ? void 0 : new AbortController();
141
- try {
142
- const o = await W(e, c == null ? void 0 : c.signal);
143
- return a !== y ? !1 : (s.value = G(o), k(), S.success("上传图片成功"), (t = e.onSuccess) == null || t.call(e, o), !0);
144
- } catch (o) {
145
- return a !== y || ((i = e.onError) == null || i.call(e, o), S.error("上传失败")), !1;
146
- } finally {
147
- a === y && (p.value = !1, c = void 0);
148
- }
149
- }
150
- async function W(e, a) {
151
- const t = new FormData();
152
- if (t.append(r.uploadName, e.file), r.uploadRequest)
153
- return r.uploadRequest({
154
- file: e.file,
155
- formData: t,
156
- options: e,
157
- api: r.api,
158
- tokenKey: r.tokenKey
159
- });
160
- const i = fe.get(r.tokenKey);
161
- return (await fetch(r.api, {
162
- method: "POST",
163
- signal: a,
164
- body: t,
165
- credentials: "include",
166
- headers: i ? { Authorization: `Bearer ${i}` } : void 0
167
- })).json();
168
- }
169
- function G(e) {
170
- var i, o;
171
- if (typeof e == "string") return e;
172
- const a = e, t = (a == null ? void 0 : a.urls) ?? ((i = a == null ? void 0 : a.data) == null ? void 0 : i.urls) ?? ((o = a == null ? void 0 : a.data) == null ? void 0 : o.url) ?? (a == null ? void 0 : a.url) ?? "";
173
- return Array.isArray(t) ? t[0] || "" : t || "";
174
- }
175
- function k() {
176
- V(
177
- "change",
178
- N(f.value || "", s.value || ""),
179
- s.value || ""
180
- );
181
- }
182
- return n({
183
- deleteImage: z,
184
- // 兼容旧 remarkImage,在表单 reset/clearFrom 时清空文字和图片。
185
- clearContent: M,
186
- // 给表单保存或外部调试读取当前拆分值。
187
- getValue: () => ({
188
- text: f.value || "",
189
- imageUrl: s.value || "",
190
- value: N(f.value || "", s.value || "")
191
- })
192
- }), (e, a) => (m(), v("div", {
193
- class: ee(["qy-remark-image", O.value]),
194
- style: Z(F.value)
195
- }, [
196
- g("div", ve, [
197
- b.value ? (m(), I(u(ne), {
198
- key: 0,
199
- class: "qy-remark-image__prefix-select",
200
- "model-value": l.selectValue,
201
- options: l.selectOptions,
202
- disabled: u(d) || l.selectDisabled,
203
- size: "small",
204
- "onUpdate:modelValue": j
205
- }, {
206
- default: _(() => [
207
- (m(!0), v(ae, null, te(l.selectOptions, (t) => (m(), I(u(ie), {
208
- key: String(t.value),
209
- label: t.label,
210
- value: t.value,
211
- disabled: t.disabled
212
- }, null, 8, ["label", "value", "disabled"]))), 128))
213
- ]),
214
- _: 1
215
- }, 8, ["model-value", "options", "disabled"])) : R("", !0),
216
- b.value ? (m(), v("span", ge)) : R("", !0),
217
- q(u(ue), le({
218
- ref_key: "inputRef",
219
- ref: E,
220
- "model-value": f.value,
221
- type: T.value,
222
- rows: l.rows,
223
- autosize: l.autosize,
224
- disabled: u(d),
225
- placeholder: l.placeholder
226
- }, u(L), {
227
- "onUpdate:modelValue": $,
228
- onBlur: k
229
- }), null, 16, ["model-value", "type", "rows", "autosize", "disabled", "placeholder"]),
230
- q(u(oe), {
231
- placement: "top-start",
232
- width: 400,
233
- trigger: "hover",
234
- disabled: !s.value
235
- }, {
236
- reference: _(() => [
237
- g("div", ye, [
238
- q(u(ce), {
239
- disabled: p.value || u(d),
240
- class: "qy-remark-image__upload",
241
- "show-file-list": !1,
242
- "http-request": C
243
- }, {
244
- default: _(() => [
245
- p.value ? (m(), v("span", he)) : s.value ? (m(), v("span", be)) : (m(), v("span", _e))
246
- ]),
247
- _: 1
248
- }, 8, ["disabled"])
249
- ])
250
- ]),
251
- default: _(() => [
252
- g("div", ke, [
253
- g("img", {
254
- src: s.value,
255
- class: "qy-remark-image__preview-img"
256
- }, null, 8, xe),
257
- g("div", we, [
258
- a[1] || (a[1] = g("span", { class: "qy-remark-image__popover-tip" }, "再次点击按钮可更换图片", -1)),
259
- q(u(de), {
260
- link: "",
261
- size: "small",
262
- type: "danger",
263
- disabled: u(d),
264
- onClick: z
265
- }, {
266
- default: _(() => [...a[0] || (a[0] = [
267
- re(" 删除图片 ", -1)
268
- ])]),
269
- _: 1
270
- }, 8, ["disabled"])
271
- ])
272
- ])
273
- ]),
274
- _: 1
275
- }, 8, ["disabled"])
276
- ])
277
- ], 6));
278
- }
279
- }), Be = /* @__PURE__ */ me(qe, [["__scopeId", "data-v-50037758"]]);
280
- export {
281
- Be as C,
282
- N as a,
283
- pe as f,
284
- A as p
285
- };
@@ -1,124 +0,0 @@
1
- import { defineComponent as $, ref as g, onBeforeUnmount as x, computed as l, watch as P, openBlock as w, createElementBlock as N, normalizeStyle as Q, normalizeClass as V, createBlock as U, unref as i, withCtx as u, renderSlot as d, createElementVNode as m, createVNode as f, createCommentVNode as j } from "vue";
2
- import { ElImage as D, ElIcon as _ } from "element-plus";
3
- import { PictureFilled as z } from "@element-plus/icons-vue";
4
- import { n as I, r as F, o as O } from "./utils-DpZkMLkb.mjs";
5
- import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
6
- const A = { class: "qy-image__state qy-image__state--error" }, G = { class: "qy-image__state qy-image__state--empty" }, H = /* @__PURE__ */ $({
7
- name: "QyImage",
8
- __name: "index",
9
- props: {
10
- src: { default: "" },
11
- alt: { default: "" },
12
- width: {},
13
- height: {},
14
- size: { default: 64 },
15
- fit: { default: "cover" },
16
- placeholder: { type: Boolean, default: !0 },
17
- lazy: { type: Boolean, default: !0 },
18
- compressor: { type: [Boolean, Object], default: !0 },
19
- preview: { type: Boolean, default: !1 },
20
- previewList: { default: () => [] },
21
- initialIndex: { default: 0 }
22
- },
23
- emits: ["load", "error", "fallback", "preview"],
24
- setup(s, { emit: q }) {
25
- const t = s, n = q, a = g(!1), o = g("");
26
- let c = 0;
27
- x(() => {
28
- c += 1;
29
- });
30
- const p = l(() => I(t.src)), v = l(() => ({
31
- width: t.width ?? t.size,
32
- height: t.height ?? t.size
33
- })), B = l(() => ({
34
- width: h(v.value.width),
35
- height: h(v.value.height)
36
- })), S = l(() => t.placeholder || a.value), y = l(() => t.preview && !!p.value), k = l(() => (t.previewList.length ? t.previewList : [t.src]).map((r) => I(r)).filter(Boolean));
37
- P(
38
- () => [t.src, t.compressor],
39
- E,
40
- {
41
- immediate: !0,
42
- deep: !0
43
- }
44
- );
45
- async function E() {
46
- const e = ++c;
47
- if (o.value = "", a.value = !1, !!t.src)
48
- try {
49
- const r = await F(t.src, {
50
- compressor: t.compressor
51
- });
52
- if (e !== c) return;
53
- o.value = r.src, r.source === "fallback" && n("fallback", r.src);
54
- } catch {
55
- if (e !== c) return;
56
- a.value = !1, o.value = p.value;
57
- }
58
- }
59
- function b(e) {
60
- n("load", e);
61
- }
62
- function C(e) {
63
- a.value = !0, n("error", e);
64
- }
65
- function L() {
66
- y.value && (O({
67
- urlList: k.value,
68
- initialIndex: t.initialIndex
69
- }), n("preview", p.value));
70
- }
71
- function h(e) {
72
- return typeof e == "number" ? `${e}px` : e;
73
- }
74
- return (e, r) => (w(), N("div", {
75
- class: V(["qy-image", { "qy-image--previewable": y.value }]),
76
- style: Q(B.value),
77
- onClick: L
78
- }, [
79
- o.value && !a.value ? (w(), U(i(D), {
80
- key: 0,
81
- class: "qy-image__inner",
82
- src: o.value,
83
- alt: s.alt,
84
- fit: s.fit,
85
- lazy: s.lazy,
86
- onLoad: b,
87
- onError: C
88
- }, {
89
- placeholder: u(() => [
90
- d(e.$slots, "placeholder", {}, () => [
91
- r[0] || (r[0] = m("div", { class: "qy-image__state" }, [
92
- m("span", { class: "qy-image__loading" })
93
- ], -1))
94
- ], !0)
95
- ]),
96
- error: u(() => [
97
- d(e.$slots, "error", {}, () => [
98
- m("div", A, [
99
- f(i(_), { size: 20 }, {
100
- default: u(() => [
101
- f(i(z))
102
- ]),
103
- _: 1
104
- })
105
- ])
106
- ], !0)
107
- ]),
108
- _: 3
109
- }, 8, ["src", "alt", "fit", "lazy"])) : a.value && e.$slots.error ? d(e.$slots, "error", {}, void 0, !0, 1) : S.value ? d(e.$slots, "empty", {}, () => [
110
- m("div", G, [
111
- f(i(_), { size: 20 }, {
112
- default: u(() => [
113
- f(i(z))
114
- ]),
115
- _: 1
116
- })
117
- ])
118
- ], !0, 2) : j("", !0)
119
- ], 6));
120
- }
121
- }), X = /* @__PURE__ */ R(H, [["__scopeId", "data-v-7efa59d9"]]);
122
- export {
123
- X as I
124
- };
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),y=require("element-plus"),_=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");var x={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值",alphaDescription:"透明度 {alpha}, 当前颜色 {color}",hueLabel:"选择色相值",hueDescription:"色相 {hue}, 当前颜色 {color}",svLabel:"选择饱和度与明度的值",svDescription:"饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}",predefineDescription:"选择 {value} 作为颜色"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",quarterTablePrompt:"使用方向键与 Enter 键可选择季度",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},input:{characters:"{count} / {max} 个字符"},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},mention:{loading:"加载中"},dropdown:{toggleDropdown:"切换下拉选项"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 Delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计",selectAllLabel:"选择所有行",selectRowLabel:"选择当前行",expandRowLabel:"展开当前行",collapseRowLabel:"收起当前行",sortLabel:"按 {column} 排序",filterLabel:"按 {column} 过滤"},tag:{close:"关闭此标签"},tour:{next:"下一步",previous:"上一步",finish:"结束导览",close:"关闭此对话框"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"},inputOTP:{groupLabel:"一次性密码输入框",defaultLabel:"请输入第 {index} 位 OTP 字符"}}};const S=e.defineComponent({__name:"ElementPaginationRenderer",props:{total:{},currentPage:{},pageSize:{},pageSizes:{},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},layout:{},pagerCount:{}},emits:["page-change","page-size-change"],setup(r,{emit:v}){const t=r,m=v,c=e.computed(()=>t.disabled||t.loading),u=e.computed(()=>t.layout!==void 0?t.layout.join(", "):t.pageSizes.length>1?"sizes, prev, pager, next":"prev, pager, next"),d=e.computed(()=>{const n=t.pagerCount??7;return Number.isInteger(n)&&n>=5&&n<=21&&n%2===1?n:7}),p=e.ref(null),i=e.ref(null);let g=0;function h(){var n,s;(s=(n=i.value)==null?void 0:n.querySelector('.el-pagination__sizes [role="combobox"]'))==null||s.setAttribute("aria-label","每页条数")}e.onMounted(h),e.onUpdated(h);function b(n){if(!c.value){if(p.value!==null){p.value=null;return}n!==t.currentPage&&m("page-change",n)}}function f(n){if(c.value)return;p.value=n;const s=++g;Promise.resolve().then(()=>{g===s&&(p.value=null)}),m("page-size-change",n)}return(n,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"rendererRef",ref:i,class:"qy-pagination-element-renderer","data-testid":"qy-pagination-element-renderer"},[e.createVNode(e.unref(y.ElConfigProvider),{locale:e.unref(x)},{default:e.withCtx(()=>[e.createVNode(e.unref(y.ElPagination),{layout:u.value,total:r.total,"current-page":r.currentPage,"page-size":r.pageSize,"page-sizes":[...r.pageSizes],"pager-count":d.value,disabled:c.value,teleported:!1,"onUpdate:currentPage":b,"onUpdate:pageSize":f},null,8,["layout","total","current-page","page-size","page-sizes","pager-count","disabled"])]),_:1},8,["locale"])],512))}}),C=_._export_sfc(S,[["__scopeId","data-v-4815a52b"]]),N=["aria-busy"],D={class:"qy-pagination__info"},T={class:"qy-pagination__total"},w={class:"qy-pagination__summary"},E={class:"qy-pagination__controls"},L=e.defineComponent({__name:"index",props:{layout:{},pagerCount:{},total:{},page:{},pageSize:{},pageSizeOptions:{default:()=>[10,20,50]},hideOnSinglePage:{type:Boolean,default:!1},disabled:{type:Boolean},loading:{type:Boolean},binding:{}},emits:["page-change","page-size-change"],setup(r,{emit:v}){const t=r,m=v;function c(a,o){const l=Number(a);return Number.isInteger(l)&&l>0?l:o}const u=e.computed(()=>{var o;const a=Number(t.total??((o=t.binding)==null?void 0:o.total)??0);return Number.isFinite(a)&&a>=0?a:0}),d=e.computed(()=>{var a;return c(t.pageSize??((a=t.binding)==null?void 0:a.pageSize),10)}),p=e.computed(()=>{const o=(Array.isArray(t.pageSizeOptions)?t.pageSizeOptions:[]).map(l=>Number(l)).filter(l=>Number.isInteger(l)&&l>0);return[...new Set([...o,d.value])].sort((l,P)=>l-P)}),i=e.computed(()=>Math.max(1,Math.ceil(u.value/d.value))),g=e.computed(()=>{var a;return Math.min(Math.max(1,c(t.page??((a=t.binding)==null?void 0:a.page),1)),i.value)}),h=e.computed(()=>{var a;return!!(t.disabled??((a=t.binding)==null?void 0:a.disabled))}),b=e.computed(()=>{var a;return!!(t.loading??((a=t.binding)==null?void 0:a.loading))}),f=e.computed(()=>h.value||b.value),n=e.computed(()=>u.value>0&&(!t.hideOnSinglePage||i.value>1));function s(a){var o;f.value||!Number.isInteger(a)||a<1||a>i.value||a===g.value||((o=t.binding)==null||o.setPage(a),m("page-change",a))}function z(a){var o;f.value||!Number.isInteger(a)||a<=0||a===d.value||((o=t.binding)==null||o.setPageSize(a),m("page-size-change",a))}return(a,o)=>n.value?(e.openBlock(),e.createElementBlock("nav",{key:0,class:"qy-pagination","data-testid":"qy-pagination","aria-label":"分页","aria-busy":b.value?"true":void 0},[e.createElementVNode("div",D,[e.createElementVNode("span",T,"共 "+e.toDisplayString(u.value)+" 条",1),e.createElementVNode("span",w," 第 "+e.toDisplayString(g.value)+" / "+e.toDisplayString(i.value)+" 页 ",1)]),e.createElementVNode("div",E,[e.createVNode(C,{total:u.value,"current-page":g.value,"page-size":d.value,"page-sizes":p.value,disabled:h.value,loading:b.value,layout:t.layout,"pager-count":t.pagerCount,onPageChange:s,onPageSizeChange:z},null,8,["total","current-page","page-size","page-sizes","disabled","loading","layout","pager-count"])])],8,N)):e.createCommentVNode("",!0)}}),k=_._export_sfc(L,[["__scopeId","data-v-0a5f9304"]]);exports.Pagination=k;
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),r=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),d={class:"qy-form-section__heading"},u={key:0,class:"qy-form-section__title"},m={key:0,class:"qy-form-section__description"},f={class:"qy-form-section__actions"},y=e.defineComponent({name:"QyFormSection",__name:"index",props:{title:{default:""},description:{default:""},tip:{default:""},tipType:{default:"info"},collapsible:{type:Boolean,default:!1},defaultExpanded:{type:Boolean,default:!0},bordered:{type:Boolean,default:!0},background:{default:"white"},bodyClass:{default:""},headerClass:{default:""}},emits:["toggle"],setup(t,{emit:a}){const n=t,s=a,l=e.ref(n.defaultExpanded);e.watch(()=>n.defaultExpanded,o=>{l.value=o});function i(){n.collapsible&&(l.value=!l.value,s("toggle",l.value))}function c(){n.collapsible&&i()}return(o,k)=>(e.openBlock(),e.createElementBlock("section",{class:e.normalizeClass(["qy-form-section",[`is-bg-${t.background}`,{"is-bordered":t.bordered,"is-collapsible":t.collapsible}]])},[e.createElementVNode("header",{class:e.normalizeClass(["qy-form-section__header",t.headerClass]),onClick:c},[e.createElementVNode("div",d,[e.renderSlot(o.$slots,"title",{},()=>[t.title?(e.openBlock(),e.createElementBlock("div",u,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0)],!0),e.renderSlot(o.$slots,"description",{},()=>[t.description?(e.openBlock(),e.createElementBlock("div",m,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)],!0)]),e.createElementVNode("div",f,[e.renderSlot(o.$slots,"actions",{},void 0,!0),t.collapsible?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"qy-form-section__toggle",onClick:e.withModifiers(i,["stop"])},e.toDisplayString(l.value?"收起":"展开"),1)):e.createCommentVNode("",!0)])],2),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["qy-form-section__body",t.bodyClass])},[e.renderSlot(o.$slots,"tip",{},()=>[t.tip?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["qy-form-section__tip",`is-${t.tipType}`])},e.toDisplayString(t.tip),3)):e.createCommentVNode("",!0)],!0),e.renderSlot(o.$slots,"default",{},void 0,!0)],2),[[e.vShow,l.value]])],2))}}),p=r._export_sfc(y,[["__scopeId","data-v-3b271926"]]);exports.Component=p;
@@ -1,56 +0,0 @@
1
- import { defineComponent as n, computed as i, openBlock as o, createElementBlock as s, normalizeStyle as c, normalizeClass as f, renderSlot as a, createCommentVNode as r } from "vue";
2
- import { _ as u } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
3
- const y = {
4
- key: 0,
5
- class: "qy-action-bar__left"
6
- }, m = {
7
- key: 1,
8
- class: "qy-action-bar__center"
9
- }, b = {
10
- key: 2,
11
- class: "qy-action-bar__right"
12
- }, p = /* @__PURE__ */ n({
13
- name: "QyActionBar",
14
- __name: "index",
15
- props: {
16
- sticky: { type: Boolean, default: !0 },
17
- offsetBottom: { default: 0 },
18
- bordered: { type: Boolean, default: !0 },
19
- shadow: { type: Boolean, default: !1 },
20
- wrap: { type: Boolean, default: !0 },
21
- justify: { default: "between" },
22
- background: { default: "#fff" }
23
- },
24
- setup(e) {
25
- const d = e, l = i(() => ({
26
- // offsetBottom 只负责业务偏移,安全区补偿由 CSS padding 处理。
27
- bottom: `${d.offsetBottom}px`,
28
- background: d.background
29
- }));
30
- return (t, k) => (o(), s("div", {
31
- class: f(["qy-action-bar", [
32
- `is-justify-${e.justify}`,
33
- {
34
- "is-sticky": e.sticky,
35
- "is-bordered": e.bordered,
36
- "is-shadow": e.shadow,
37
- "is-wrap": e.wrap
38
- }
39
- ]]),
40
- style: c(l.value)
41
- }, [
42
- t.$slots.left ? (o(), s("div", y, [
43
- a(t.$slots, "left", {}, void 0, !0)
44
- ])) : r("", !0),
45
- t.$slots.default ? (o(), s("div", m, [
46
- a(t.$slots, "default", {}, void 0, !0)
47
- ])) : r("", !0),
48
- t.$slots.right ? (o(), s("div", b, [
49
- a(t.$slots, "right", {}, void 0, !0)
50
- ])) : r("", !0)
51
- ], 6));
52
- }
53
- }), B = /* @__PURE__ */ u(p, [["__scopeId", "data-v-d1ffc43c"]]);
54
- export {
55
- B as C
56
- };
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),c=require("element-plus"),L=require("./js.cookie-BmJmHEx1.cjs"),O=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");function x(r){const u=r==null?void 0:r.match(/(\[url\:(.*?)\])(.*)/);return u?{imageUrl:u[2],text:u[3]}:{imageUrl:"",text:r||""}}function q(r){const u=String(r||"").match(/(\[url\:.*?\])([\s\S]*)/);return u?u[2]:r}function w(r,u){return u?`[url:${u}]${r}`:r}const F={class:"qy-remark-image__field"},K={key:1,class:"qy-remark-image__divider"},M={class:"qy-remark-image__upload-anchor"},$={key:0,class:"icon-[line-md--loading-twotone-loop]",role:"img","aria-hidden":"true"},j={key:1,class:"icon-[ion--cloud-upload-outline]",role:"img","aria-hidden":"true"},W={key:2,class:"icon-[ph--images-thin]",role:"img","aria-hidden":"true"},H={class:"qy-remark-image__popover"},G=["src"],J={class:"qy-remark-image__popover-footer"},Q=e.defineComponent({__name:"index",props:{defaultValue:{default:""},defaultImage:{default:""},rows:{default:6},width:{default:""},autosize:{type:[Boolean,Object],default:!1},disabled:{type:Boolean,default:void 0},placeholder:{default:"粘贴图片上传"},type:{default:"textarea"},layout:{default:"default"},selectValue:{type:[String,Number,Boolean],default:""},selectOptions:{default:()=>[]},selectDisabled:{type:Boolean,default:!1},api:{default:"/permission-api/common/uploads"},tokenKey:{default:"Admin-Token"},uploadName:{default:"files"},uploadRequest:{}},emits:["change","update:selectValue","select-change"],setup(r,{expose:u,emit:N}){const n=r,k=N,C=e.useAttrs(),d=c.useFormDisabled(),_=e.ref(null),m=e.ref(""),o=e.ref(""),p=e.ref(!1);let v=0,f;function g(){v++,f==null||f.abort(),f=void 0,p.value=!1}const h=e.computed(()=>n.layout==="select-prefix"),U=e.computed(()=>({"qy-remark-image--select-prefix":h.value})),R=e.computed(()=>h.value||n.type==="text"?"text":"textarea"),S=e.computed(()=>{if(n.width)return{width:typeof n.width=="number"?`${n.width}px`:n.width}});e.watch(()=>n.defaultValue,t=>{const a=x(t||""),l=a.imageUrl||n.defaultImage||"";(a.text!==m.value||l!==o.value)&&g(),m.value=a.text,o.value=l},{immediate:!0}),e.watch(()=>n.defaultImage,t=>{t!==void 0&&!x(n.defaultValue||"").imageUrl&&((t||"")!==o.value&&g(),o.value=t||"")},{immediate:!0}),e.onMounted(()=>{e.nextTick(z)}),e.onBeforeUnmount(()=>{g();const t=E();t&&t.removeEventListener("paste",b)});function E(){var t,a;return((t=_.value)==null?void 0:t.textarea)||((a=_.value)==null?void 0:a.input)||null}function z(){const t=E();t&&(t.removeEventListener("paste",b),t.addEventListener("paste",b))}function I(t){d.value||(m.value=q(t||""))}function D(t){d.value||n.selectDisabled||(k("update:selectValue",t),k("select-change",t))}function V(){d.value||(g(),o.value="",y())}function P(){g(),m.value="",o.value="",y()}async function b(t){var s;if(d.value||p.value)return;const l=Array.from(((s=t.clipboardData)==null?void 0:s.files)||[]).find(i=>i.type.startsWith("image/"));l&&(t.preventDefault(),await B({file:l,onError:()=>{},onProgress:()=>{},onSuccess:()=>{}}))}async function B(t){var l,s;if(d.value||p.value)return!1;if(t.file.size>51200*1e3)return c.ElMessage.error("图片过大"),!1;p.value=!0;const a=++v;f=n.uploadRequest?void 0:new AbortController;try{const i=await A(t,f==null?void 0:f.signal);return a!==v?!1:(o.value=T(i),y(),c.ElMessage.success("上传图片成功"),(l=t.onSuccess)==null||l.call(t,i),!0)}catch(i){return a!==v||((s=t.onError)==null||s.call(t,i),c.ElMessage.error("上传失败")),!1}finally{a===v&&(p.value=!1,f=void 0)}}async function A(t,a){const l=new FormData;if(l.append(n.uploadName,t.file),n.uploadRequest)return n.uploadRequest({file:t.file,formData:l,options:t,api:n.api,tokenKey:n.tokenKey});const s=L.api.get(n.tokenKey);return(await fetch(n.api,{method:"POST",signal:a,body:l,credentials:"include",headers:s?{Authorization:`Bearer ${s}`}:void 0})).json()}function T(t){var s,i;if(typeof t=="string")return t;const a=t,l=(a==null?void 0:a.urls)??((s=a==null?void 0:a.data)==null?void 0:s.urls)??((i=a==null?void 0:a.data)==null?void 0:i.url)??(a==null?void 0:a.url)??"";return Array.isArray(l)?l[0]||"":l||""}function y(){k("change",w(m.value||"",o.value||""),o.value||"")}return u({deleteImage:V,clearContent:P,getValue:()=>({text:m.value||"",imageUrl:o.value||"",value:w(m.value||"",o.value||"")})}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["qy-remark-image",U.value]),style:e.normalizeStyle(S.value)},[e.createElementVNode("div",F,[h.value?(e.openBlock(),e.createBlock(e.unref(c.ElSelect),{key:0,class:"qy-remark-image__prefix-select","model-value":r.selectValue,options:r.selectOptions,disabled:e.unref(d)||r.selectDisabled,size:"small","onUpdate:modelValue":D},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.selectOptions,l=>(e.openBlock(),e.createBlock(e.unref(c.ElOption),{key:String(l.value),label:l.label,value:l.value,disabled:l.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","options","disabled"])):e.createCommentVNode("",!0),h.value?(e.openBlock(),e.createElementBlock("span",K)):e.createCommentVNode("",!0),e.createVNode(e.unref(c.ElInput),e.mergeProps({ref_key:"inputRef",ref:_,"model-value":m.value,type:R.value,rows:r.rows,autosize:r.autosize,disabled:e.unref(d),placeholder:r.placeholder},e.unref(C),{"onUpdate:modelValue":I,onBlur:y}),null,16,["model-value","type","rows","autosize","disabled","placeholder"]),e.createVNode(e.unref(c.ElPopover),{placement:"top-start",width:400,trigger:"hover",disabled:!o.value},{reference:e.withCtx(()=>[e.createElementVNode("div",M,[e.createVNode(e.unref(c.ElUpload),{disabled:p.value||e.unref(d),class:"qy-remark-image__upload","show-file-list":!1,"http-request":B},{default:e.withCtx(()=>[p.value?(e.openBlock(),e.createElementBlock("span",$)):o.value?(e.openBlock(),e.createElementBlock("span",W)):(e.openBlock(),e.createElementBlock("span",j))]),_:1},8,["disabled"])])]),default:e.withCtx(()=>[e.createElementVNode("div",H,[e.createElementVNode("img",{src:o.value,class:"qy-remark-image__preview-img"},null,8,G),e.createElementVNode("div",J,[a[1]||(a[1]=e.createElementVNode("span",{class:"qy-remark-image__popover-tip"},"再次点击按钮可更换图片",-1)),e.createVNode(e.unref(c.ElButton),{link:"",size:"small",type:"danger",disabled:e.unref(d),onClick:V},{default:e.withCtx(()=>[...a[0]||(a[0]=[e.createTextVNode(" 删除图片 ",-1)])]),_:1},8,["disabled"])])])]),_:1},8,["disabled"])])],6))}}),X=O._export_sfc(Q,[["__scopeId","data-v-50037758"]]);exports.Component=X;exports.formatRemarkText=q;exports.parseRemarkText=x;exports.parseRemarkWithImage=w;
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),x=require("./index-BqzKToOL.cjs"),V=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),w=["tabindex","aria-disabled","onClick","onKeydown"],C={class:"qy-file-picker__label"},D={key:0,class:"qy-file-picker__hint"},F=["disabled"],q=e.defineComponent({name:"QyFilePicker",__name:"index",props:{modelValue:{default:null},extensions:{default:()=>[]},maxSizeMb:{default:20},disabled:{type:Boolean,default:!1},drag:{type:Boolean,default:!0},placeholder:{default:"请选择文件"}},emits:["update:modelValue","change","clear","invalid"],setup(l,{expose:b,emit:h}){const a=l,t=h,n=e.ref(null),d=e.ref(!1),v=e.computed(()=>a.modelValue?[a.modelValue]:[]);let o=!1;function p(){var i;a.disabled||(i=n.value)==null||i.openFileDialog()}function c(){var i;o=!0,(i=n.value)==null||i.clearFiles(),o=!1,t("update:modelValue",null),t("change",null),t("clear")}function g(){a.disabled||c()}function u(){!a.disabled&&a.drag&&(d.value=!0)}function f(){d.value=!1}function k(i){if(o)return;const s=i[0]??null;t("update:modelValue",s),t("change",s)}function y(i){t("invalid",i)}return b({openFileDialog:p,clear:c}),(i,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["qy-file-picker",{"is-disabled":l.disabled,"is-dragover":d.value}])},[e.createVNode(x.Upload,{ref_key:"uploadRef",ref:n,variant:"file-list","auto-upload":!1,"selected-files":v.value,"file-type":l.extensions,"file-size":l.maxSizeMb,disabled:l.disabled,"disable-drag":!l.drag,multiple:!1,limit:1,"show-text":!1,"show-paste-input":!1,"onUpdate:selectedFiles":k,onInvalid:y},{trigger:e.withCtx(({open:r})=>{var m;return[e.createElementVNode("div",{class:e.normalizeClass(["qy-file-picker__dropzone",{"is-click-only":!l.drag}]),role:"button",tabindex:l.disabled?-1:0,"aria-disabled":l.disabled?"true":void 0,onClick:r,onKeydown:[e.withKeys(e.withModifiers(r,["prevent"]),["enter"]),e.withKeys(e.withModifiers(r,["prevent"]),["space"])],onDragenter:e.withModifiers(u,["prevent"]),onDragover:e.withModifiers(u,["prevent"]),onDragleave:e.withModifiers(f,["prevent"]),onDrop:f},[e.createElementVNode("span",C,e.toDisplayString(((m=l.modelValue)==null?void 0:m.name)||l.placeholder),1),l.drag?(e.openBlock(),e.createElementBlock("span",D," 点击选择或拖拽单个文件到此处 ")):e.createCommentVNode("",!0)],42,w)]}),_:1},8,["selected-files","file-type","file-size","disabled","disable-drag"]),l.modelValue?(e.openBlock(),e.createElementBlock("button",{key:0,class:"qy-file-picker__clear",type:"button",disabled:l.disabled,onClick:e.withModifiers(g,["stop"])}," 清空 ",8,F)):e.createCommentVNode("",!0)],2))}}),B=V._export_sfc(q,[["__scopeId","data-v-5dba995b"]]);exports.FilePicker=B;
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),d=require("element-plus"),v=require("@element-plus/icons-vue"),c=require("./utils-DpkN3Zat.cjs"),S=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),E={class:"qy-image__state qy-image__state--error"},V={class:"qy-image__state qy-image__state--empty"},B=e.defineComponent({name:"QyImage",__name:"index",props:{src:{default:""},alt:{default:""},width:{},height:{},size:{default:64},fit:{default:"cover"},placeholder:{type:Boolean,default:!0},lazy:{type:Boolean,default:!0},compressor:{type:[Boolean,Object],default:!0},preview:{type:Boolean,default:!1},previewList:{default:()=>[]},initialIndex:{default:0}},emits:["load","error","fallback","preview"],setup(i,{emit:h}){const r=i,s=h,l=e.ref(!1),o=e.ref("");let n=0;e.onBeforeUnmount(()=>{n+=1});const u=e.computed(()=>c.normalizeImageSrc(r.src)),m=e.computed(()=>({width:r.width??r.size,height:r.height??r.size})),y=e.computed(()=>({width:p(m.value.width),height:p(m.value.height)})),g=e.computed(()=>r.placeholder||l.value),f=e.computed(()=>r.preview&&!!u.value),w=e.computed(()=>(r.previewList.length?r.previewList:[r.src]).map(a=>c.normalizeImageSrc(a)).filter(Boolean));e.watch(()=>[r.src,r.compressor],_,{immediate:!0,deep:!0});async function _(){const t=++n;if(o.value="",l.value=!1,!!r.src)try{const a=await c.resolveQyImageDisplaySrc(r.src,{compressor:r.compressor});if(t!==n)return;o.value=a.src,a.source==="fallback"&&s("fallback",a.src)}catch{if(t!==n)return;l.value=!1,o.value=u.value}}function z(t){s("load",t)}function I(t){l.value=!0,s("error",t)}function q(){f.value&&(c.openQyImagePreview({urlList:w.value,initialIndex:r.initialIndex}),s("preview",u.value))}function p(t){return typeof t=="number"?`${t}px`:t}return(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["qy-image",{"qy-image--previewable":f.value}]),style:e.normalizeStyle(y.value),onClick:q},[o.value&&!l.value?(e.openBlock(),e.createBlock(e.unref(d.ElImage),{key:0,class:"qy-image__inner",src:o.value,alt:i.alt,fit:i.fit,lazy:i.lazy,onLoad:z,onError:I},{placeholder:e.withCtx(()=>[e.renderSlot(t.$slots,"placeholder",{},()=>[a[0]||(a[0]=e.createElementVNode("div",{class:"qy-image__state"},[e.createElementVNode("span",{class:"qy-image__loading"})],-1))],!0)]),error:e.withCtx(()=>[e.renderSlot(t.$slots,"error",{},()=>[e.createElementVNode("div",E,[e.createVNode(e.unref(d.ElIcon),{size:20},{default:e.withCtx(()=>[e.createVNode(e.unref(v.PictureFilled))]),_:1})])],!0)]),_:3},8,["src","alt","fit","lazy"])):l.value&&t.$slots.error?e.renderSlot(t.$slots,"error",{},void 0,!0,1):g.value?e.renderSlot(t.$slots,"empty",{},()=>[e.createElementVNode("div",V,[e.createVNode(e.unref(d.ElIcon),{size:20},{default:e.withCtx(()=>[e.createVNode(e.unref(v.PictureFilled))]),_:1})])],!0,2):e.createCommentVNode("",!0)],6))}}),k=S._export_sfc(B,[["__scopeId","data-v-7efa59d9"]]);exports.Image=k;