@qynpm/ui 1.0.47 → 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 +20 -1
  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 +2 -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-BJZjXeoT.cjs +0 -1
  300. package/dist/shared/index-BKdw4jD_.mjs +0 -142
  301. package/dist/shared/index-BN4A-O6P.mjs +0 -727
  302. package/dist/shared/index-BR7tIt2k.mjs +0 -211
  303. package/dist/shared/index-BVaIvVMi.mjs +0 -71
  304. package/dist/shared/index-BaRw7pWi.mjs +0 -156
  305. package/dist/shared/index-Bdlzmh8A.cjs +0 -1
  306. package/dist/shared/index-BgAP_K2E.cjs +0 -1
  307. package/dist/shared/index-Blgz8PJc.cjs +0 -1
  308. package/dist/shared/index-BqzKToOL.cjs +0 -1
  309. package/dist/shared/index-BsNtvE6i.cjs +0 -1
  310. package/dist/shared/index-BuVrLl5B.mjs +0 -90
  311. package/dist/shared/index-Bv1DrJ32.mjs +0 -71
  312. package/dist/shared/index-BxGP8OkE.cjs +0 -1
  313. package/dist/shared/index-Bz9WjKdL.cjs +0 -1
  314. package/dist/shared/index-Bzr2RHi5.mjs +0 -293
  315. package/dist/shared/index-C50jpQ11.mjs +0 -295
  316. package/dist/shared/index-C6G9eVku.cjs +0 -1
  317. package/dist/shared/index-CB0v25oB.cjs +0 -1
  318. package/dist/shared/index-CGH2ROZV.mjs +0 -54
  319. package/dist/shared/index-CIXJwYI-.cjs +0 -1
  320. package/dist/shared/index-CKkanVur.cjs +0 -1
  321. package/dist/shared/index-CLvL8LAM.cjs +0 -1
  322. package/dist/shared/index-CN2mgT5V.cjs +0 -1
  323. package/dist/shared/index-CW4s627w.mjs +0 -107
  324. package/dist/shared/index-CXOCZlps.mjs +0 -222
  325. package/dist/shared/index-CbSGTE1S.mjs +0 -578
  326. package/dist/shared/index-Cqr-L0yd.mjs +0 -285
  327. package/dist/shared/index-Cu6yAwdj.mjs +0 -124
  328. package/dist/shared/index-CxTyKMEH.cjs +0 -1
  329. package/dist/shared/index-D5HS8M1P.cjs +0 -1
  330. package/dist/shared/index-D6QwZtYV.mjs +0 -56
  331. package/dist/shared/index-DAU1WtID.mjs +0 -361
  332. package/dist/shared/index-DCsun70c.cjs +0 -1
  333. package/dist/shared/index-DEzFHeJL.cjs +0 -1
  334. package/dist/shared/index-DY2IXvwl.cjs +0 -1
  335. package/dist/shared/index-DdGlwebp.mjs +0 -347
  336. package/dist/shared/index-DiN5vXXD.cjs +0 -1
  337. package/dist/shared/index-Duq5XZ5w.cjs +0 -1
  338. package/dist/shared/index-DvXzDAmi.mjs +0 -285
  339. package/dist/shared/index-FZ5gl2au.cjs +0 -1
  340. package/dist/shared/index-O6K0DO_k.cjs +0 -1
  341. package/dist/shared/index-QN7-6GpS.mjs +0 -127
  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,361 +0,0 @@
1
- import { defineComponent as _, useAttrs as ee, ref as te, reactive as V, computed as P, watch as y, openBlock as g, createElementBlock as T, Fragment as B, createVNode as f, mergeProps as R, unref as u, withCtx as s, renderSlot as m, createBlock as b, createCommentVNode as S, renderList as ae, withKeys as re, withModifiers as oe, createTextVNode as ne, nextTick as le } from "vue";
2
- import { ElForm as ie, ElFormItem as C, ElTreeSelect as ce, ElSelect as ue, ElOption as se, ElInput as de, ElButton as ye } from "element-plus";
3
- import { C as fe } from "./index-CbSGTE1S.mjs";
4
- import { _ as ge } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
5
- const me = /* @__PURE__ */ _({
6
- name: "QyLegacySelectionDialog",
7
- inheritAttrs: !1,
8
- __name: "index",
9
- props: {
10
- open: { type: Boolean, default: !0 },
11
- title: { default: "选择数据" },
12
- width: { default: "1200px" },
13
- query: { type: Function, default: void 0 },
14
- responseFormatter: { type: Function, default: void 0 },
15
- selection: { default: "single" },
16
- selected: { default: () => [] },
17
- mainKey: { default: "" },
18
- tagName: { default: "" },
19
- searchKey: { default: "conditions" },
20
- queryParams: { default: () => ({}) },
21
- category: { type: [Array, Function, Boolean], default: !1 },
22
- categoryFormatter: { type: [Function, Array], default: void 0 },
23
- type: { type: [Array, Boolean], default: !1 },
24
- typeSelectionProps: { default: () => ({}) },
25
- tableProps: { default: () => ({}) },
26
- append: { type: Boolean, default: !1 },
27
- delete: { type: Boolean, default: !1 },
28
- select: { default: null }
29
- },
30
- emits: ["close", "submit", "openDialog", "changeIndexShow"],
31
- setup(i, { expose: x, emit: E }) {
32
- const a = i, p = E, O = ee(), v = te(null), l = V({
33
- category: [],
34
- code: "",
35
- ...a.searchKey ? { [a.searchKey]: "" } : {},
36
- page: 1,
37
- pageSize: 10,
38
- type: "",
39
- ...a.queryParams
40
- }), o = V({
41
- total: 0,
42
- tableData: [],
43
- open: !1,
44
- selection: [],
45
- categories: [],
46
- types: [],
47
- tableRef: null,
48
- drag: !1,
49
- dialogOpen: !1,
50
- pasteData: "",
51
- pasteDataDialog: !1
52
- }), h = P(() => a.type || []), z = P(() => o.categories), I = async (e) => {
53
- if (!a.query) return { data: { records: [], total: 0 } };
54
- const t = await a.query(H(e)), r = a.responseFormatter ? await a.responseFormatter(t) : t;
55
- return o.total = Y(r), r;
56
- };
57
- y(
58
- () => a.open,
59
- (e) => {
60
- o.open = e;
61
- },
62
- { immediate: !0 }
63
- ), y(
64
- h,
65
- (e) => {
66
- o.types = [...e];
67
- },
68
- { immediate: !0, deep: !0 }
69
- ), y(
70
- [() => a.selected, () => a.open],
71
- () => {
72
- a.open && (o.selection = w(a.selected));
73
- },
74
- { immediate: !0, deep: !0 }
75
- ), y(
76
- () => a.queryParams,
77
- () => {
78
- Object.assign(l, a.queryParams);
79
- },
80
- { deep: !0 }
81
- ), y(
82
- () => o.pasteDataDialog,
83
- (e) => {
84
- e || (o.pasteData = "");
85
- }
86
- ), y(
87
- () => a.select,
88
- async () => {
89
- a.select && await G(a.select);
90
- },
91
- { deep: !0 }
92
- ), y(
93
- () => a.open,
94
- async (e) => {
95
- e && (o.dialogOpen = !1, await $());
96
- },
97
- { immediate: !0 }
98
- );
99
- async function $() {
100
- if (!a.category) {
101
- o.categories = [];
102
- return;
103
- }
104
- const e = typeof a.category == "function" ? await a.category() : a.category;
105
- o.categories = W(e);
106
- }
107
- async function c() {
108
- var e;
109
- return await le(), (e = v.value) == null ? void 0 : e.handleQuerySearch();
110
- }
111
- function L(e) {
112
- o.selection = w(e);
113
- }
114
- function N(e) {
115
- var t;
116
- o.tableData = e, o.tableRef = (t = v.value) == null ? void 0 : t.getTableRef();
117
- }
118
- function Q(e) {
119
- o.selection = w(e), p("submit", o);
120
- }
121
- function U() {
122
- p("close");
123
- }
124
- function M() {
125
- o.dialogOpen = !0, p("openDialog");
126
- }
127
- function j(e) {
128
- p("changeIndexShow", e);
129
- }
130
- async function G(e) {
131
- if (!a.query || !a.searchKey || !a.mainKey) return;
132
- const t = await a.query({
133
- ...l,
134
- [a.searchKey]: e[a.mainKey],
135
- category: []
136
- }), r = a.responseFormatter ? await a.responseFormatter(t) : t, [n] = D(r);
137
- n && (a.selection === "multi" ? (o.selection = o.selection.filter(
138
- (d) => d[a.mainKey] !== n[a.mainKey]
139
- ), o.selection.push(n)) : o.selection = [n]);
140
- }
141
- function H(e = {}) {
142
- l.page = e.page ?? l.page, l.pageSize = e.pageSize ?? l.pageSize;
143
- const t = {
144
- ...l,
145
- category: J()
146
- };
147
- return a.searchKey && (t[a.searchKey] = String(t[a.searchKey] || "").trim()), t;
148
- }
149
- function J() {
150
- if (a.queryParams.category)
151
- return a.queryParams.category;
152
- const e = l.category;
153
- if (Array.isArray(e)) return e;
154
- if (!e) return [];
155
- const t = K(o.categories, e);
156
- return t ? q(t) : [e];
157
- }
158
- function K(e, t) {
159
- for (const r of e || []) {
160
- if (r.value === t) return r;
161
- const n = K(r.children || [], t);
162
- if (n) return n;
163
- }
164
- }
165
- function q(e) {
166
- return [e.value, ...(e.children || []).flatMap(q)];
167
- }
168
- function W(e) {
169
- const t = (e == null ? void 0 : e.data) ?? e;
170
- if (!Array.isArray(t)) return [];
171
- if (typeof a.categoryFormatter == "function")
172
- return a.categoryFormatter(t);
173
- if (Array.isArray(a.categoryFormatter)) {
174
- const [r, n] = a.categoryFormatter;
175
- return F(X(t, n), r, n);
176
- }
177
- return t;
178
- }
179
- function X(e, t) {
180
- const r = e.map((d) => ({ ...d })), n = [];
181
- return r.forEach((d) => {
182
- const k = d.parentCateCode;
183
- if (!k) {
184
- n.push(d);
185
- return;
186
- }
187
- const A = r.find((Z) => Z[t] === k);
188
- A ? (A.children || (A.children = [])).push(d) : n.push(d);
189
- }), n;
190
- }
191
- function F(e, t, r) {
192
- return e.map((n) => ({
193
- ...n,
194
- label: n[t],
195
- value: n[r],
196
- children: Array.isArray(n.children) ? F(n.children, t, r) : n.children
197
- }));
198
- }
199
- function D(e) {
200
- if (Array.isArray(e)) return e;
201
- const t = e == null ? void 0 : e.data;
202
- return Array.isArray(t) ? t : (e == null ? void 0 : e.records) || (e == null ? void 0 : e.rows) || (t == null ? void 0 : t.records) || [];
203
- }
204
- function Y(e) {
205
- if (Array.isArray(e)) return e.length;
206
- const t = D(e), r = e == null ? void 0 : e.data;
207
- return (e == null ? void 0 : e.total) ?? (Array.isArray(r) ? r.length : r == null ? void 0 : r.total) ?? t.length;
208
- }
209
- function w(e = []) {
210
- return e.map((t) => ({ ...t }));
211
- }
212
- return x({
213
- search: c,
214
- handleSearch: c,
215
- handleConditionChange: c,
216
- getTableRef: () => o.tableRef,
217
- getTableData: () => o.tableData,
218
- getSelection: () => w(o.selection)
219
- }), (e, t) => (g(), T(B, null, [
220
- f(fe, R({
221
- ref_key: "selectionDialogRef",
222
- ref: v
223
- }, u(O), {
224
- modelValue: o.selection,
225
- "onUpdate:modelValue": t[3] || (t[3] = (r) => o.selection = r),
226
- open: i.open,
227
- title: i.title,
228
- width: i.width,
229
- query: I,
230
- "response-formatter": i.responseFormatter,
231
- selection: i.selection,
232
- "row-key": i.mainKey,
233
- "label-key": i.tagName,
234
- "search-key": i.searchKey,
235
- "query-params": {},
236
- "category-options": z.value,
237
- "type-options": h.value,
238
- "type-select-props": i.typeSelectionProps,
239
- "table-props": i.tableProps,
240
- "show-copy-paste": !0,
241
- "show-append": i.append,
242
- onSelectionChange: L,
243
- onConfirm: Q,
244
- onCancel: U,
245
- onAppend: M,
246
- onLoaded: N
247
- }), {
248
- side: s(() => [
249
- m(e.$slots, "side", {
250
- state: o,
251
- cate: o.categories,
252
- form: l,
253
- query: l,
254
- getData: c,
255
- search: c,
256
- changeIndexShow: j
257
- }, void 0, !0)
258
- ]),
259
- search: s(() => [
260
- f(u(ie), {
261
- inline: "",
262
- model: l
263
- }, {
264
- default: s(() => [
265
- o.categories.length ? (g(), b(u(C), {
266
- key: 0,
267
- label: "分类"
268
- }, {
269
- default: s(() => [
270
- f(u(ce), {
271
- modelValue: l.category,
272
- "onUpdate:modelValue": t[0] || (t[0] = (r) => l.category = r),
273
- class: "qy-legacy-selection-dialog__category",
274
- data: o.categories,
275
- clearable: "",
276
- filterable: "",
277
- "check-strictly": "",
278
- "render-after-expand": !1,
279
- onChange: c
280
- }, null, 8, ["modelValue", "data"])
281
- ]),
282
- _: 1
283
- })) : S("", !0),
284
- h.value.length ? (g(), b(u(C), {
285
- key: 1,
286
- label: "类型"
287
- }, {
288
- default: s(() => [
289
- f(u(ue), R({
290
- modelValue: l.type,
291
- "onUpdate:modelValue": t[1] || (t[1] = (r) => l.type = r),
292
- clearable: ""
293
- }, i.typeSelectionProps, { onChange: c }), {
294
- default: s(() => [
295
- (g(!0), T(B, null, ae(h.value, (r) => (g(), b(u(se), {
296
- key: r.value,
297
- label: r.label,
298
- value: r.value
299
- }, null, 8, ["label", "value"]))), 128))
300
- ]),
301
- _: 1
302
- }, 16, ["modelValue"])
303
- ]),
304
- _: 1
305
- })) : S("", !0),
306
- i.searchKey ? (g(), b(u(C), {
307
- key: 2,
308
- label: "搜索"
309
- }, {
310
- default: s(() => [
311
- f(u(de), {
312
- modelValue: l[i.searchKey],
313
- "onUpdate:modelValue": t[2] || (t[2] = (r) => l[i.searchKey] = r),
314
- clearable: "",
315
- class: "qy-legacy-selection-dialog__search-input",
316
- onKeydown: re(oe(c, ["prevent"]), ["enter"])
317
- }, null, 8, ["modelValue", "onKeydown"])
318
- ]),
319
- _: 1
320
- })) : S("", !0),
321
- f(u(C), null, {
322
- default: s(() => [
323
- f(u(ye), {
324
- type: "primary",
325
- onClick: c
326
- }, {
327
- default: s(() => [...t[4] || (t[4] = [
328
- ne("查询", -1)
329
- ])]),
330
- _: 1
331
- })
332
- ]),
333
- _: 1
334
- })
335
- ]),
336
- _: 1
337
- }, 8, ["model"])
338
- ]),
339
- toolbar: s(() => [
340
- m(e.$slots, "bar", {
341
- query: l,
342
- search: c
343
- }, void 0, !0)
344
- ]),
345
- columns: s(() => [
346
- m(e.$slots, "cols", {}, void 0, !0),
347
- m(e.$slots, "columns", {}, void 0, !0)
348
- ]),
349
- _: 3
350
- }, 16, ["modelValue", "open", "title", "width", "response-formatter", "selection", "row-key", "label-key", "search-key", "category-options", "type-options", "type-select-props", "table-props", "show-append"]),
351
- m(e.$slots, "dialog", {
352
- state: o,
353
- form: l,
354
- getData: c
355
- }, void 0, !0)
356
- ], 64));
357
- }
358
- }), Ce = /* @__PURE__ */ ge(me, [["__scopeId", "data-v-5c8cd0de"]]);
359
- export {
360
- Ce as C
361
- };
@@ -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;