@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,211 +0,0 @@
1
- import { defineComponent as D, useAttrs as I, ref as $, onBeforeUnmount as J, computed as z, openBlock as m, createElementBlock as h, renderSlot as r, toDisplayString as v, createCommentVNode as g, createVNode as Z, mergeProps as j, unref as G, createSlots as H, withCtx as c, normalizeProps as K, guardReactiveProps as W, createElementVNode as X, normalizeClass as Y } from "vue";
2
- import { C as _ } from "./index-C50jpQ11.mjs";
3
- import { _ as ee } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
4
- const te = { class: "qy-record-quote-search" }, oe = {
5
- key: 0,
6
- class: "qy-record-quote-search__header"
7
- }, ne = {
8
- key: 0,
9
- class: "qy-record-quote-search__label"
10
- }, ae = {
11
- key: 1,
12
- class: "qy-record-quote-search__description"
13
- }, le = /* @__PURE__ */ D({
14
- name: "QyRecordQuoteSearch",
15
- inheritAttrs: !1,
16
- __name: "index",
17
- props: {
18
- modelValue: { default: "" },
19
- loading: { type: Boolean, default: !1 },
20
- disabled: { type: Boolean, default: void 0 },
21
- placeholder: { default: "请输入报价单号" },
22
- buttonText: { default: "查询报价单" },
23
- autoNormalize: { type: Boolean, default: !0 },
24
- showStatus: { type: Boolean, default: !0 },
25
- status: { default: "default" },
26
- statusText: { default: "" },
27
- suggestions: { default: () => [] },
28
- fetchSuggestions: { type: [Function, null], default: null },
29
- fetchSuggestionsMethod: { type: [Function, null], default: null },
30
- debounce: { default: 300 },
31
- minLength: { default: 1 },
32
- searchOnSelect: { type: Boolean, default: !0 },
33
- searchMethod: { type: [Function, null], default: null },
34
- extractMethod: { type: [Function, null], default: null },
35
- normalizeMethod: { type: [Function, null], default: null },
36
- label: { default: "报价单号" },
37
- description: { default: "" },
38
- trimMode: { default: "blur" }
39
- },
40
- emits: ["update:modelValue", "search", "clear", "normalize", "enter", "select", "error", "success"],
41
- setup(o, { expose: k, emit: q }) {
42
- const n = o, l = q, B = I(), s = $(null), f = $(!1);
43
- let u = 0;
44
- function b() {
45
- u++, f.value = !1;
46
- }
47
- J(b);
48
- const y = z(() => n.statusText || ""), E = z(() => n.loading || f.value);
49
- function d(e) {
50
- return e == null ? "" : String(e);
51
- }
52
- function N(e) {
53
- const t = d(e).trim(), a = S(t), i = a.match(/BJ\d{8}[A-Z0-9]{4}/i);
54
- return i ? i[0] : a;
55
- }
56
- function S(e) {
57
- return d(e).replace(/\s+/g, "").trim().toUpperCase();
58
- }
59
- function p(e) {
60
- return n.extractMethod ? n.extractMethod(e) : N(e);
61
- }
62
- function V(e) {
63
- return n.normalizeMethod ? n.normalizeMethod(e) : S(e);
64
- }
65
- function C(e, t) {
66
- const a = d(e), i = p(a), M = n.autoNormalize ? V(i) : i;
67
- return l("normalize", { rawValue: a, code: M }), {
68
- rawValue: a,
69
- code: M,
70
- item: t
71
- };
72
- }
73
- function O(e) {
74
- l("update:modelValue", e);
75
- }
76
- async function x(e) {
77
- const t = ++u;
78
- if (l("search", e), !(!n.searchMethod || t !== u)) {
79
- f.value = !0;
80
- try {
81
- const a = await n.searchMethod(e);
82
- t === u && l("success", a);
83
- } catch (a) {
84
- t === u && l("error", a);
85
- } finally {
86
- t === u && (f.value = !1);
87
- }
88
- }
89
- }
90
- function Q(e) {
91
- const t = C(e);
92
- t.code !== d(n.modelValue) && l("update:modelValue", t.code), x(t);
93
- }
94
- function T() {
95
- b(), l("clear");
96
- }
97
- function w(e) {
98
- l("enter", e);
99
- }
100
- function F(e) {
101
- if (l("select", e), !n.searchOnSelect) return;
102
- const t = C(e.value, e);
103
- t.code !== d(n.modelValue) && l("update:modelValue", t.code), x(t);
104
- }
105
- function L(e) {
106
- l("error", e);
107
- }
108
- function P() {
109
- var e, t;
110
- (t = (e = s.value) == null ? void 0 : e.focus) == null || t.call(e);
111
- }
112
- function R() {
113
- var e, t;
114
- (t = (e = s.value) == null ? void 0 : e.blur) == null || t.call(e);
115
- }
116
- function U() {
117
- var e, t;
118
- (t = (e = s.value) == null ? void 0 : e.select) == null || t.call(e);
119
- }
120
- function A() {
121
- var e, t;
122
- (t = (e = s.value) == null ? void 0 : e.clear) == null || t.call(e);
123
- }
124
- return k({
125
- focus: P,
126
- blur: R,
127
- select: U,
128
- clear: A,
129
- extractQuoteOrderCode: p,
130
- normalizeQuoteOrderCode: V
131
- }), (e, t) => (m(), h("div", te, [
132
- r(e.$slots, "label", {}, () => [
133
- o.label || o.description ? (m(), h("div", oe, [
134
- o.label ? (m(), h("div", ne, v(o.label), 1)) : g("", !0),
135
- o.description ? (m(), h("div", ae, v(o.description), 1)) : g("", !0)
136
- ])) : g("", !0)
137
- ], !0),
138
- Z(_, j({
139
- ref_key: "searchRef",
140
- ref: s
141
- }, G(B), {
142
- "model-value": o.modelValue,
143
- loading: E.value,
144
- disabled: o.disabled,
145
- placeholder: o.placeholder,
146
- "remove-space": !0,
147
- "trim-mode": o.trimMode,
148
- "button-text": o.buttonText,
149
- suggestions: o.suggestions,
150
- "fetch-suggestions": o.fetchSuggestions,
151
- "fetch-suggestions-method": o.fetchSuggestionsMethod,
152
- debounce: o.debounce,
153
- "min-length": o.minLength,
154
- "search-on-select": !1,
155
- "onUpdate:modelValue": O,
156
- onSearch: Q,
157
- onClear: T,
158
- onEnter: w,
159
- onSelect: F,
160
- onError: L
161
- }), H({ _: 2 }, [
162
- e.$slots.prefix ? {
163
- name: "prefix",
164
- fn: c(() => [
165
- r(e.$slots, "prefix", {}, void 0, !0)
166
- ]),
167
- key: "0"
168
- } : void 0,
169
- e.$slots.suffix ? {
170
- name: "suffix",
171
- fn: c(() => [
172
- r(e.$slots, "suffix", {}, void 0, !0)
173
- ]),
174
- key: "1"
175
- } : void 0,
176
- e.$slots.item ? {
177
- name: "item",
178
- fn: c((a) => [
179
- r(e.$slots, "item", K(W(a)), void 0, !0)
180
- ]),
181
- key: "2"
182
- } : void 0,
183
- e.$slots.empty ? {
184
- name: "empty",
185
- fn: c(() => [
186
- r(e.$slots, "empty", {}, void 0, !0)
187
- ]),
188
- key: "3"
189
- } : void 0,
190
- e.$slots.loading ? {
191
- name: "loading",
192
- fn: c(() => [
193
- r(e.$slots, "loading", {}, void 0, !0)
194
- ]),
195
- key: "4"
196
- } : void 0
197
- ]), 1040, ["model-value", "loading", "disabled", "placeholder", "trim-mode", "button-text", "suggestions", "fetch-suggestions", "fetch-suggestions-method", "debounce", "min-length"]),
198
- o.showStatus && y.value ? r(e.$slots, "status", {
199
- status: o.status,
200
- statusText: y.value
201
- }, () => [
202
- X("div", {
203
- class: Y(["qy-record-quote-search__status", `is-${o.status}`])
204
- }, v(y.value), 3)
205
- ], !0, 0) : g("", !0)
206
- ]));
207
- }
208
- }), de = /* @__PURE__ */ ee(le, [["__scopeId", "data-v-9a711e68"]]);
209
- export {
210
- de as C
211
- };
@@ -1,71 +0,0 @@
1
- import { defineComponent as f, useAttrs as u, computed as o, openBlock as m, createElementBlock as g, mergeProps as y, createCommentVNode as h } from "vue";
2
- import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
3
- const x = ["src", "title", "loading", "sandbox", "allow", "referrerpolicy", "allowfullscreen"], w = /* @__PURE__ */ f({
4
- name: "QyIframe",
5
- inheritAttrs: !1,
6
- __name: "index",
7
- props: {
8
- src: {
9
- type: String,
10
- required: !0
11
- },
12
- title: {
13
- type: String,
14
- required: !0
15
- },
16
- reloadKey: {
17
- type: [String, Number],
18
- default: void 0
19
- },
20
- loading: {
21
- type: String,
22
- default: "eager"
23
- },
24
- sandbox: {
25
- type: String,
26
- default: void 0
27
- },
28
- allow: {
29
- type: String,
30
- default: void 0
31
- },
32
- referrerPolicy: {
33
- type: String,
34
- default: void 0
35
- },
36
- allowFullscreen: Boolean
37
- },
38
- emits: ["load", "error"],
39
- setup(e, { emit: a }) {
40
- const r = e, l = a, n = u(), i = o(
41
- () => r.src.trim().length > 0 && r.title.trim().length > 0
42
- ), s = o(
43
- () => Object.fromEntries(
44
- Object.entries(n).filter(
45
- ([t]) => t === "class" || t === "style" || t === "id" || t === "role" || t === "tabindex" || t.startsWith("data-") || t.startsWith("aria-")
46
- )
47
- )
48
- );
49
- function c() {
50
- l("load");
51
- }
52
- function d() {
53
- l("error");
54
- }
55
- return (t, p) => i.value ? (m(), g("iframe", y({ key: e.reloadKey }, s.value, {
56
- class: "qy-iframe",
57
- src: e.src,
58
- title: e.title,
59
- loading: e.loading,
60
- sandbox: e.sandbox,
61
- allow: e.allow,
62
- referrerpolicy: e.referrerPolicy,
63
- allowfullscreen: e.allowFullscreen,
64
- onLoad: c,
65
- onError: d
66
- }), null, 16, x)) : h("", !0);
67
- }
68
- }), E = /* @__PURE__ */ b(w, [["__scopeId", "data-v-4592cf2b"]]);
69
- export {
70
- E as I
71
- };
@@ -1,156 +0,0 @@
1
- import { useAttrs as I, ref as L, computed as o, openBlock as R, createBlock as j, mergeProps as q, unref as C } from "vue";
2
- import { U as E } from "./index-BN4A-O6P.mjs";
3
- const N = /* @__PURE__ */ Object.assign({
4
- name: "QyImageUpload",
5
- inheritAttrs: !1
6
- }, {
7
- __name: "index",
8
- props: {
9
- /** 单图/单文件 URL;multiple=true 时为 URL 数组。 */
10
- modelValue: { type: [String, Array], default: "" },
11
- /** 上传接口路径。 */
12
- api: { type: String, default: "/permission-api/common/uploads" },
13
- /** FormData 中文件字段名。 */
14
- name: { type: String, default: "files" },
15
- /** 是否禁用。 */
16
- disabled: { type: Boolean, default: void 0 },
17
- /** 是否多选;开启后 v-model 输出 string[]。 */
18
- multiple: { type: Boolean, default: !1 },
19
- /** 上传模式。voucher 用于承接旧 CopyImgUpload 的凭证图片场景。 */
20
- mode: { type: String, default: "default" },
21
- /** 是否启用凭证图片模式。 */
22
- voucher: { type: Boolean, default: !1 },
23
- /** 允许的文件类型后缀。 */
24
- fileType: { type: Array, default: () => [] },
25
- /** 单个文件大小限制(MB)。 */
26
- fileSize: { type: Number, default: 10 },
27
- /** 是否显示格式/大小提示。 */
28
- isShowTip: { type: Boolean, default: !1 },
29
- /** 文件数量限制;不传时单图为 1,多图为 9。 */
30
- limit: { type: Number, default: void 0 },
31
- /** token 读取 key。 */
32
- tokenKey: { type: String, default: "Admin-Token" },
33
- /** 是否为视频上传。 */
34
- supportVideo: { type: Boolean, default: !1 },
35
- /** 上传卡片尺寸。 */
36
- size: { type: String, default: "128px" },
37
- /** 禁用拖拽。 */
38
- disableDrag: { type: Boolean, default: !1 },
39
- /** 是否显示纯粘贴入口。 */
40
- showPasteInput: { type: Boolean, default: !0 },
41
- /** 粘贴入口提示文案。 */
42
- pastePlaceholder: { type: String, default: "粘贴图片上传" },
43
- /** 成功回调。 */
44
- callBack: { type: Function, default: null },
45
- /** 上传时附加的额外 FormData 字段。 */
46
- extraData: { type: Object, default: () => ({}) },
47
- /** 自定义上传请求,用于接入宿主项目 request / 鉴权 / baseURL。 */
48
- uploadRequest: { type: Function, default: null }
49
- },
50
- emits: [
51
- "update:modelValue",
52
- "change",
53
- "success",
54
- "error",
55
- "remove",
56
- "updateImg"
57
- ],
58
- setup(a, { expose: m, emit: y }) {
59
- const l = a, i = y, h = I(), n = L(null), g = ["jpg", "jpeg", "png", "gif", "bmp", "webp"], s = o(
60
- () => l.voucher || l.mode === "voucher"
61
- ), v = o(() => Array.isArray(l.modelValue) ? l.modelValue.filter(Boolean) : l.modelValue ? String(l.modelValue).split(",").filter(Boolean) : []), V = o(() => l.supportVideo ? 1 : s.value ? l.limit ?? 30 : l.limit ?? (l.multiple ? 9 : 1)), b = o(() => {
62
- var e;
63
- return (e = l.fileType) != null && e.length ? l.fileType : s.value && !l.supportVideo ? g : [];
64
- });
65
- function k(e) {
66
- return Array.isArray(e) ? e.filter(Boolean) : [];
67
- }
68
- function d(e) {
69
- const t = k(e);
70
- return l.multiple ? t : t[0] || "";
71
- }
72
- function B(e) {
73
- i("update:modelValue", d(e));
74
- }
75
- function S(e) {
76
- i("change", d(e == null ? void 0 : e.files));
77
- }
78
- function A(e) {
79
- var p, c;
80
- if (typeof e == "string") return e;
81
- const t = e || {}, r = t.url ?? t.urls ?? ((p = t.data) == null ? void 0 : p.url) ?? ((c = t.data) == null ? void 0 : c.urls) ?? "";
82
- return Array.isArray(r) ? r[0] || "" : r || "";
83
- }
84
- function w(e) {
85
- const t = A(e);
86
- t && i("updateImg", t), i("success", f(), e);
87
- }
88
- function x(e) {
89
- i("error", e);
90
- }
91
- function z(e, t) {
92
- i("remove", e, t);
93
- }
94
- function P() {
95
- var e, t;
96
- (t = (e = n.value) == null ? void 0 : e.openFileDialog) == null || t.call(e);
97
- }
98
- function F() {
99
- var e, t;
100
- (t = (e = n.value) == null ? void 0 : e.clearFiles) == null || t.call(e);
101
- }
102
- function u() {
103
- var e, t;
104
- return ((t = (e = n.value) == null ? void 0 : e.getPathList) == null ? void 0 : t.call(e)) || [];
105
- }
106
- const T = o(() => u()), U = o(() => u());
107
- function D() {
108
- return u();
109
- }
110
- function f() {
111
- const e = u();
112
- return l.multiple ? e : e[0] || "";
113
- }
114
- return m({
115
- openFileDialog: P,
116
- clearFiles: F,
117
- getPathList: u,
118
- getFullPathList: D,
119
- fullPathList: T,
120
- pathList: U,
121
- getValue: f
122
- }), (e, t) => (R(), j(E, q({
123
- ref_key: "uploadRef",
124
- ref: n
125
- }, C(h), {
126
- "model-value": v.value,
127
- "value-format": "array",
128
- api: a.api,
129
- name: a.name,
130
- multiple: a.multiple,
131
- disabled: a.disabled,
132
- "file-type": b.value,
133
- "file-size": a.fileSize,
134
- limit: V.value,
135
- "is-show-tip": a.isShowTip,
136
- "token-key": a.tokenKey,
137
- "support-video": a.supportVideo,
138
- size: a.size,
139
- "disable-drag": a.disableDrag,
140
- "call-back": a.callBack,
141
- "extra-data": a.extraData,
142
- "upload-request": a.uploadRequest,
143
- "show-text": !1,
144
- "show-paste-input": a.showPasteInput,
145
- "paste-placeholder": a.pastePlaceholder,
146
- "onUpdate:modelValue": B,
147
- onChange: S,
148
- onSuccess: w,
149
- onError: x,
150
- onRemove: z
151
- }), null, 16, ["model-value", "api", "name", "multiple", "disabled", "file-type", "file-size", "limit", "is-show-tip", "token-key", "support-video", "size", "disable-drag", "call-back", "extra-data", "upload-request", "show-paste-input", "paste-placeholder"]));
152
- }
153
- });
154
- export {
155
- N as _
156
- };
@@ -1 +0,0 @@
1
- "use strict";const Q=require("./install-c8il9DQv.cjs"),t=require("vue"),T=require("element-plus"),p=t.defineComponent({name:"QyInput",inheritAttrs:!1,__name:"index",props:{modelValue:{default:""},removeSpace:{type:Boolean,default:!1},trimMode:{default:"none"}},emits:["update:modelValue","input","change","focus","blur","clear","enter"],setup(m,{expose:v,emit:h}){const a=m,u=h,V=t.useAttrs(),o=t.ref(null),r=t.ref(i(a.modelValue)),s=t.ref(i(a.modelValue)),l=t.ref("none"),g=t.computed(()=>i(a.modelValue));t.watch(()=>a.modelValue,e=>{const n=i(e);r.value=n,s.value=n,l.value="none"});function i(e){return e==null?"":String(e)}function y(e){return a.removeSpace?e.replace(/\s+/g,""):e}function d(e,n){return a.trimMode!==n?e:e.trim()}function f(e){return y(i(e))}function c(e){r.value=e,s.value=e,u("update:modelValue",e)}function x(e){const n=f(e);c(n),l.value=n===""?"updated":"none"}function S(e){const n=f(e);r.value=n,u("input",n)}function C(e){const n=d(f(e),"change");if(r.value=n,n===""&&l.value==="updated"){l.value="changed",u("change",n);return}n!==s.value&&c(n),l.value=n===""?"changed":"none",u("change",n)}function I(e){u("focus",e)}function w(e){const n=d(r.value,"blur");r.value=n,n!==s.value&&c(n),u("blur",e)}function $(){l.value==="none"?(c(""),u("change","")):l.value==="updated"&&(l.value="changed",u("change","")),l.value="cleared",u("clear")}function k(e){u("enter",e)}function b(){var e,n;(n=(e=o.value)==null?void 0:e.focus)==null||n.call(e)}function q(){var e,n;(n=(e=o.value)==null?void 0:e.blur)==null||n.call(e)}function z(){var e,n;(n=(e=o.value)==null?void 0:e.select)==null||n.call(e)}function B(){var e,n;(n=(e=o.value)==null?void 0:e.clear)==null||n.call(e)}function M(){var e,n;(n=(e=o.value)==null?void 0:e.resizeTextarea)==null||n.call(e)}return v({focus:b,blur:q,select:z,clear:B,resizeTextarea:M}),(e,n)=>(t.openBlock(),t.createBlock(t.unref(T.ElInput),t.mergeProps({ref_key:"inputRef",ref:o,class:"qy-input"},t.unref(V),{"model-value":g.value,"onUpdate:modelValue":x,onInput:S,onChange:C,onFocus:I,onBlur:w,onClear:$,onKeydown:t.withKeys(k,["enter"])}),t.createSlots({_:2},[e.$slots.prefix?{name:"prefix",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.suffix?{name:"suffix",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"suffix")]),key:"1"}:void 0,e.$slots.prepend?{name:"prepend",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"prepend")]),key:"2"}:void 0,e.$slots.append?{name:"append",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"append")]),key:"3"}:void 0]),1040,["model-value"]))}}),A=Q.withInstall(p,"QyInput");exports.QyInput=A;exports._sfc_main=p;
@@ -1 +0,0 @@
1
- "use strict";const a=require("vue"),n=require("element-plus"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m=a.defineComponent({name:"QySwitch",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[String,Number,Boolean],default:!1},activeValue:{type:[String,Number,Boolean],default:!0},inactiveValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:()=>{}},validateEvent:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},size:{},activeText:{default:""},inactiveText:{default:""},inlinePrompt:{type:Boolean,default:!1},name:{default:""},id:{},tabindex:{},ariaLabel:{}},emits:["update:modelValue","change","focus","blur"],setup(e,{emit:u}){const i=u,l=n.useFormDisabled(),d=a.useAttrs(),c=a.computed(()=>Object.fromEntries(Object.entries(d).filter(([t])=>t==="class"||t==="style"||t==="role"||t==="title"||t.startsWith("data-")||t.startsWith("aria-"))));function o(t){i("focus",t)}function r(t){i("blur",t)}function s(t){l.value||e.loading||i("update:modelValue",t===!0?e.activeValue:e.inactiveValue)}function v(t){l.value||e.loading||i("change",t===!0?e.activeValue:e.inactiveValue)}return(t,h)=>(a.openBlock(),a.createBlock(a.unref(n.ElSwitch),a.mergeProps(c.value,{class:"qy-switch","model-value":e.modelValue===e.activeValue,"active-value":!0,"inactive-value":!1,disabled:a.unref(l),"validate-event":e.validateEvent,loading:e.loading,size:e.size,"active-text":e.activeText,"inactive-text":e.inactiveText,"inline-prompt":e.inlinePrompt,name:e.name,id:e.id,tabindex:e.tabindex,"aria-label":e.ariaLabel,"onUpdate:modelValue":s,onChange:v,onFocusin:o,onFocusout:r}),null,16,["model-value","disabled","validate-event","loading","size","active-text","inactive-text","inline-prompt","name","id","tabindex","aria-label"]))}}),b=f._export_sfc(m,[["__scopeId","data-v-3e42c7f5"]]);exports.Switch=b;
@@ -1 +0,0 @@
1
- "use strict";const a=require("vue"),d=require("element-plus"),V=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),C=a.defineComponent({name:"QyCheckbox",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[String,Number,Boolean],default:!1},value:{type:[String,Number,Boolean]},indeterminate:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},size:{default:void 0},trueValue:{type:[String,Number,Boolean],default:!0},falseValue:{type:[String,Number,Boolean],default:!1},name:{},id:{},tabindex:{},ariaLabel:{},ariaControls:{}},emits:["update:modelValue","change","focus","blur"],setup(s,{emit:c}){const e=s,l=c,f=a.useAttrs(),m=a.computed(()=>Object.fromEntries(Object.entries(f).filter(([t])=>t==="class"||t==="style"||t==="role"||t==="title"||t.startsWith("data-")||t.startsWith("aria-")))),o=a.inject(d.checkboxGroupContextKey,void 0),u=a.computed(()=>e.modelValue===e.trueValue),p=a.computed(()=>o?e.value!==void 0&&o.modelValue.value.includes(e.value):u.value);function i(t){return t?e.trueValue:e.falseValue}function b(t){e.disabled||l("update:modelValue",i(t===!0))}function v(t,n){if(e.disabled)return;l("change",i(t===!0));const r=n==null?void 0:n.target;r instanceof HTMLInputElement&&a.nextTick(()=>{r.checked=p.value})}function h(t){l("focus",t)}function x(t){l("blur",t)}return(t,n)=>(a.openBlock(),a.createBlock(a.unref(d.ElCheckbox),a.mergeProps(m.value,{class:"qy-checkbox","model-value":u.value,value:e.value,indeterminate:e.indeterminate,disabled:e.disabled||void 0,"validate-event":e.validateEvent,size:e.size,name:e.name,id:e.id,tabindex:e.tabindex,"aria-label":e.ariaLabel,"aria-controls":e.ariaControls,"onUpdate:modelValue":b,onChange:v,onFocusin:h,onFocusout:x}),{default:a.withCtx(()=>[a.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},16,["model-value","value","indeterminate","disabled","validate-event","size","name","id","tabindex","aria-label","aria-controls"]))}}),_=V._export_sfc(C,[["__scopeId","data-v-34dd31e3"]]);exports.Checkbox=_;
@@ -1 +0,0 @@
1
- "use strict";const V=require("element-plus"),l=require("vue"),me=require("@element-plus/icons-vue"),g=require("element-plus"),$e=require("./js.cookie-BmJmHEx1.cjs"),Ke=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),We="Admin-Token";function Xe(c=We){return $e.api.get(c)}const He=["accept","multiple","disabled"],Je=["disabled"],Qe={class:"qy-upload__hint"},Ge=["placeholder","disabled"],Ye=["src"],Ze={key:1,class:"qy-upload__tip"},et={class:"error"},tt={class:"error"},lt=Object.assign({name:"QyUpload"},{__name:"index",props:{modelValue:{type:[Object,Array,String],default:void 0},selectedFiles:{type:Array,default:()=>[]},autoUpload:{type:Boolean,default:!0},variant:{type:String,default:"media-card"},defaultValue:{type:Object,default:()=>({files:"",text:""})},valueFormat:{type:String,default:"object"},showText:{type:Boolean,default:!0},showPasteInput:{type:Boolean,default:!1},pastePlaceholder:{type:String,default:"输入文字"},multiple:{type:Boolean,default:!0},disabled:{type:Boolean,default:void 0},fileType:{type:Array,default:()=>[]},fileSize:{type:Number,default:10},limit:{type:Number,default:9},isShowTip:{type:Boolean,default:!1},api:{type:String,default:"/permission-api/common/uploads"},name:{type:String,default:"file"},tokenKey:{type:String,default:"Admin-Token"},supportVideo:{type:Boolean,default:!1},size:{type:String,default:"default"},disableDrag:{type:Boolean,default:!1},callBack:{type:Function,default:null},extraData:{type:Object,default:()=>({})},uploadRequest:{type:Function,default:null}},emits:["update:modelValue","update:selectedFiles","selectedFilesChange","change","success","error","remove","invalid"],setup(c,{expose:ve,emit:ge}){const o=c,p=ge,ye=l.ref(null),O=l.ref(null),$=l.ref(null),s=l.ref([]),K=l.ref(null),we=l.ref(null),F=new Map,W=new WeakMap;let D=Date.now(),j=!1;const z=l.ref(!1),L=l.ref([]),X=l.ref(0),k=l.ref(!1),H=l.ref(""),J=l.ref(""),M=new Set,b=new Map;function N(e){M.delete(e)&&URL.revokeObjectURL(e)}function Q(){for(const e of M)N(e)}function S(e){const t=b.get(e);t&&(b.delete(e),t.close())}function G(){for(const e of b.keys())S(e)}function Y(e){var t;(t=F.get(e))==null||t()}function Z(){for(const e of F.values())e()}const q=l.ref(!1),w=l.ref(""),E=l.ref(!1);l.onMounted(()=>{o.modelValue!==void 0||!o.autoUpload||ne(o.defaultValue)});const he=l.computed(()=>({large:"160px",default:"140px",small:"80px"})[o.size]??o.size),y=g.useFormDisabled(),xe=l.computed(()=>s.value.some(e=>e.status==="uploading")),Ve=l.computed(()=>o.variant==="file-list"||o.supportVideo?"text":"picture-card"),ee=l.computed(()=>o.supportVideo?1:!o.autoUpload&&!o.multiple?2:o.limit),ke=l.computed(()=>{var e;return o.isShowTip&&(o.fileSize||((e=h.value)==null?void 0:e.length))}),h=l.computed(()=>{var e;return(e=o.fileType)!=null&&e.length?o.fileType.map(t=>String(t).trim().replace(/^\./,"").toLowerCase()).filter(Boolean):o.variant==="file-list"?[]:o.supportVideo?["mp4","mov","avi"]:["jpg","jpeg","png","gif","webp"]}),R=l.computed(()=>{if(!o.autoUpload&&!o.multiple)return!1;const e=o.supportVideo?1:o.limit;return s.value.length>=e}),te=l.computed(()=>h.value.map(e=>`.${e}`).join(",")),be=l.computed(()=>({"qy-upload--reached-limit":R.value,"qy-upload--disabled":y.value,"qy-upload--video":o.supportVideo,"qy-upload--without-text":!o.showText&&!o.showPasteInput}));l.watch(w,()=>{j||B()}),l.watch(()=>o.modelValue,e=>{o.autoUpload&&e!==void 0&&ne(e)},{immediate:!0,deep:!0}),l.watch(()=>[o.autoUpload,o.selectedFiles],([e,t])=>{e||(s.value=U(t))},{immediate:!0,deep:!0});function le(e){return Array.isArray(e)?e.filter(Boolean):e?String(e).split(",").filter(Boolean):[]}function Ue(e){return Array.isArray(e)?{files:e,text:""}:typeof e=="string"?{files:le(e),text:""}:e&&typeof e=="object"?{files:le(e.files),text:e.text??""}:{files:[],text:""}}function Be(e=[]){return e.map((t,n)=>({name:String(t).split("/").pop()||`file-${n}`,url:t,status:"success",uid:g.genFileId()}))}function U(e=[]){return e.filter(Boolean).map((t,n)=>{const a=l.toRaw(t);return{name:a.name,raw:a,status:"ready",uid:Ce(a,n)}})}function Ce(e,t){if(e.uid!=null)return e.uid;const n=W.get(e);return n??(D+=t+1,W.set(e,D),D)}function P(e=s.value){return e.map(t=>{const n=t.raw??(t instanceof File?t:null);return n?l.toRaw(n):null}).filter(Boolean)}function T(e){p("update:selectedFiles",e),p("selectedFilesChange",e)}function Fe(e,t){if(o.autoUpload)return;const n=e==null?void 0:e.raw;if(n&&!_(n)){s.value=U(o.selectedFiles);return}const a=P(t);n&&!a.includes(n)&&a.push(n);const i=o.multiple?a:a.slice(-1);s.value=U(i),T(i)}function Me(e){const t=new Set(e.map(a=>a.url)),n=s.value.filter(a=>(a.status==="ready"||a.status==="uploading")&&!t.has(a.url));return[...e,...n]}function ne(e){const t=Ue(e);j=!0,w.value=t.text,s.value=Me(Be(t.files)),l.nextTick(()=>{j=!1})}function ae(e){return o.valueFormat==="array"?e.files:o.valueFormat==="string"?e.files.join(","):e}function Ne(){var e;(e=K.value)==null||e.focus()}function Se(e){e.target.value=""}function B(e){const a={files:(e??s.value).filter(i=>i.status==="success"&&i.url).map(i=>i.url),text:w.value};p("update:modelValue",ae(a)),p("change",a),o.callBack&&o.callBack(a)}function qe(e,t){if(S(e.uid),Y(e.uid),N(e.url),!o.autoUpload){const n=P(t);s.value=U(n),T(n),p("remove",e,t);return}B(t),p("remove",e,t)}function oe(e){var n;const t=(e==null?void 0:e.name)||"";return t.includes(".")&&((n=t.split(".").pop())==null?void 0:n.toLowerCase())||""}function ie(e){var i,u,r;const t=((u=(i=e==null?void 0:e.type)==null?void 0:i.toLowerCase)==null?void 0:u.call(i))||"",n={"image/jpeg":["jpg","jpeg"],"image/png":["png"],"image/gif":["gif"],"image/bmp":["bmp"],"image/webp":["webp"],"video/mp4":["mp4"],"video/quicktime":["mov"],"video/x-msvideo":["avi"],"video/webm":["webm"]};if(n[t])return n[t];const a=(r=t.split("/")[1])==null?void 0:r.split("+")[0];return a?[a]:[]}function Re(e){if(!h.value.length)return!0;const t=oe(e),n=ie(e);return[t,...n].some(a=>h.value.includes(a))}function _(e){if(o.fileSize>0&&e.size>o.fileSize*1024*1024){const n={code:"size",file:e,message:`文件大小不能超过${o.fileSize}M`};return g.ElMessage.warning(n.message),p("invalid",n),!1}if(!Re(e)){const n={code:"extension",file:e,message:`格式不支持,仅允许: ${h.value.join("/")}`};return g.ElMessage.warning(n.message),p("invalid",n),!1}return!0}async function Te(e,t,n,a,i){const u=se(e),r={close:()=>a.close()};b.set(i,r);const f=()=>b.get(i)===r;try{const d=await o.uploadRequest({file:e,formData:u,api:o.api,name:o.name,tokenKey:o.tokenKey,extraData:o.extraData});if(!f())return;const m=De(d);if(!m){const x=new Error("上传失败,未返回文件地址");g.ElMessage.error(x.message),p("error",x),n==null||n(x);return}g.ElMessage.success("上传成功"),t==null||t({...typeof d=="object"&&d?d:{},url:m})}catch(d){if(!f())return;g.ElMessage.error("上传失败"),p("error",d),n==null||n(d)}finally{f()&&S(i)}}function se(e){const t=new FormData;return t.append(o.name,e),o.extraData&&Object.entries(o.extraData).forEach(([n,a])=>t.append(n,a)),t}function De(e){var a,i;if(typeof e=="string")return e;const t=e||{},n=t.urls??t.url??((a=t.data)==null?void 0:a.urls)??((i=t.data)==null?void 0:i.url)??"";return Array.isArray(n)?n[0]||"":n||""}function re(e,t,n,a,i=e.uid){const u=g.ElLoading.service({target:O.value,text:"上传中",background:"rgba(255,255,255,0.7)"});if(o.uploadRequest){Te(e,n,a,u,i);return}const r=o.api.startsWith("http")?o.api:window.location.origin+o.api.replace(/^([^/])/,"/$1"),f=se(e),d=new XMLHttpRequest;let m=!1;const x=()=>m?!1:(m=!0,F.delete(i),u.close(),!0);F.set(i,()=>{x()&&d.abort()}),d.onabort=x,d.open("POST",r);const fe=Xe(o.tokenKey);fe&&d.setRequestHeader("Authorization",`Bearer ${fe}`),d.upload.onprogress=v=>{!m&&v.total>0&&(t==null||t({percent:v.loaded/v.total*100}))},d.onload=()=>{if(x()){if(d.status<200||d.status>=300){const v=`上传失败 (HTTP ${d.status})`;g.ElMessage.error(v),p("error",{msg:v,status:d.status}),a==null||a(new Error(v));return}try{const v=JSON.parse(d.responseText);v.code===200&&v.urls?(g.ElMessage.success("上传成功"),n==null||n({...v,url:v.urls})):(g.ElMessage.error(v.msg||"上传失败"),p("error",v),a==null||a(v))}catch{g.ElMessage.error("上传失败,响应格式错误"),p("error",new Error("Response parse error")),a==null||a(new Error("Response parse error"))}}},d.onerror=()=>{x()&&(g.ElMessage.error("上传失败,网络异常"),p("error",new Error("Network error")),a==null||a(new Error("Network error")))},d.send(f)}function ue(e){return y.value?!1:_(e)}function je(e,t){const n=s.value.find(a=>{var i;return a.uid===(e==null?void 0:e.uid)||((i=a.raw)==null?void 0:i.uid)===(e==null?void 0:e.uid)});n&&(n.url=t,n.status="success")}function ze(e){re(e.file,e.onProgress,t=>{je(e.file,t.url),e.onSuccess(t),B(),p("success",t)},t=>e.onError(t))}function Le(e){var a;if(!e.url)return;const t=((a=e.url.split(".").pop())==null?void 0:a.toLowerCase())||"";if(["mp4","mov","avi","webm"].includes(t)){H.value=e.url,J.value=e.name||"视频预览",k.value=!0;return}const n=s.value.filter(i=>{var u;return i.status==="success"&&i.url&&!["mp4","mov","avi","webm"].includes((u=i.url.split(".").pop())==null?void 0:u.toLowerCase())});L.value=n.map(i=>i.url),X.value=n.findIndex(i=>i.uid===e.uid)||0,z.value=!0}function Ee(){z.value=!1,L.value=[]}function Pe(e,t){if(e.name&&oe(e))return e;const n=ie(e).find(a=>h.value.includes(a));return n?new File([e],`paste-${Date.now()+t}.${n}`,{type:e.type,lastModified:e.lastModified}):e}function A(e){if(!o.autoUpload){const t=P(),n=e.filter(i=>_(i));if(!n.length)return;const a=o.multiple?[...t,...n].slice(0,o.limit):n.slice(-1);s.value=U(a),T(a);return}for(let t=0;t<e.length&&!(s.value.length>=ee.value);t++){const n=Pe(e[t],t);if(!ue(n))continue;const a=g.genFileId(),i=URL.createObjectURL(n);M.add(i),s.value.push({uid:a,name:n.name||`file-${a}`,status:"uploading",percentage:0,url:i}),re(n,u=>{const r=s.value.find(f=>f.uid===a);r&&(r.percentage=u.percent)},u=>{const r=s.value.find(f=>f.uid===a);r&&(r.url!==u.url&&N(r.url),r.status="success",r.url=u.url,B(),p("success",u))},()=>Ie(a),a)}}function _e(e){const t=e.target,n=Array.from(t.files||[]);if(t.value="",y.value||!n.length)return;const a=o.supportVideo||!o.multiple?n.slice(0,1):n;A(a)}function Ae(e){const t=Array.from((e==null?void 0:e.files)||[]).filter(u=>{var r;return(r=u.type)==null?void 0:r.startsWith("image/")});if(t.length)return t;const n=e==null?void 0:e.items;if(!n)return[];const a=[],i=new Set;for(let u=0;u<n.length;u++){const r=n[u];if(r.kind==="file"&&r.type.startsWith("image/")){const f=r.getAsFile();f&&!i.has(f)&&(i.add(f),a.push(f))}}return a}function C(e){if(y.value)return;const t=Ae(e.clipboardData);t.length&&(e.preventDefault(),A(t))}function de(){y.value||o.disableDrag||(q.value=!0)}function ce(){q.value=!1}function pe(e){var n;if(q.value=!1,y.value||o.disableDrag||R.value)return;const t=Array.from(((n=e.dataTransfer)==null?void 0:n.files)||[]);t.length&&A(t)}function Ie(e){S(e),Y(e);const t=s.value.findIndex(n=>n.uid===e);t!==-1&&(N(s.value[t].url),s.value.splice(t,1))}l.onBeforeUnmount(()=>{G(),Z(),Q()});function I(){var e;y.value||R.value||(e=$.value)==null||e.click()}function Oe(){var e;G(),Z();for(const t of s.value)(e=t.url)!=null&&e.startsWith("blob:")&&M.add(t.url);Q(),s.value=[],w.value="",T([]),o.autoUpload&&B()}return ve({openFileDialog:I,getPathList:()=>s.value.filter(e=>e.status==="success").map(e=>e.url),clearFiles:Oe,getValue:()=>({files:s.value.filter(e=>e.status==="success"&&e.url).map(e=>e.url),text:w.value}),getModelValue:()=>ae({files:s.value.filter(e=>e.status==="success"&&e.url).map(e=>e.url),text:w.value})}),(e,t)=>{var d;const n=V.ElIcon,a=V.ElInput,i=V.ElPopover,u=V.ElUpload,r=V.ElImageViewer,f=V.ElDialog;return l.openBlock(),l.createElementBlock("div",{ref_key:"rootRef",ref:O,class:l.normalizeClass(["qy-upload",be.value]),style:l.normalizeStyle({"--qy-upload-size":he.value})},[l.createElementVNode("input",{ref_key:"nativeInputRef",ref:$,class:"qy-upload__native-input",type:"file",accept:te.value,multiple:c.supportVideo?!1:c.multiple,disabled:l.unref(y),onChange:_e},null,40,He),l.createVNode(u,{ref_key:"uploadRef",ref:ye,"file-list":s.value,"onUpdate:fileList":t[7]||(t[7]=m=>s.value=m),action:"#",multiple:c.supportVideo?!1:c.multiple,limit:ee.value,"auto-upload":c.autoUpload,"list-type":Ve.value,accept:te.value,disabled:l.unref(y),"http-request":ze,"before-upload":ue,"on-change":Fe,"on-preview":Le,"on-remove":qe},l.createSlots({default:l.withCtx(()=>[c.variant!=="file-list"&&!R.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["qy-upload__trigger",{"is-dragover":q.value}]),onPaste:C,onDragover:l.withModifiers(de,["prevent"]),onDragleave:l.withModifiers(ce,["prevent"]),onDrop:l.withModifiers(pe,["prevent"])},[l.createVNode(n,{class:"qy-upload__icon"},{default:l.withCtx(()=>[l.createVNode(l.unref(me.Plus))]),_:1}),c.supportVideo?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[t[10]||(t[10]=l.createElementVNode("span",{class:"qy-upload__label"},"点击上传视频",-1)),l.createElementVNode("span",Qe,"支持 "+l.toDisplayString(h.value.join(" / "))+",不超过 "+l.toDisplayString(c.fileSize)+"MB",1)],64)):l.createCommentVNode("",!0),c.showText?(l.openBlock(),l.createElementBlock("div",{key:1,class:"qy-upload__text",onClick:t[4]||(t[4]=l.withModifiers(()=>{},["stop"])),onPaste:l.withModifiers(C,["stop"])},[l.createVNode(i,{visible:E.value,"onUpdate:visible":t[3]||(t[3]=m=>E.value=m),placement:"bottom-start",width:220,trigger:"click","popper-class":"qy-upload__text-popover",onAfterEnter:Ne},{reference:l.withCtx(()=>[l.createElementVNode("div",{class:l.normalizeClass(["qy-upload__text-preview",{"is-placeholder":!w.value}])},l.toDisplayString(w.value||c.pastePlaceholder),3)]),default:l.withCtx(()=>[l.createVNode(a,{ref_key:"inputRef",ref:K,modelValue:w.value,"onUpdate:modelValue":t[1]||(t[1]=m=>w.value=m),type:"textarea",autosize:{minRows:2,maxRows:5},placeholder:c.pastePlaceholder,disabled:l.unref(y),onBlur:t[2]||(t[2]=m=>E.value=!1),onPaste:l.withModifiers(C,["stop"])},null,8,["modelValue","placeholder","disabled"])]),_:1},8,["visible"])],32)):c.showPasteInput?(l.openBlock(),l.createElementBlock("div",{key:2,class:"qy-upload__text",onClick:t[6]||(t[6]=l.withModifiers(()=>{},["stop"])),onPaste:l.withModifiers(C,["stop"])},[l.createElementVNode("input",{ref_key:"pasteInputRef",ref:we,class:"qy-upload__paste-input",placeholder:c.pastePlaceholder,disabled:l.unref(y),onPaste:l.withModifiers(C,["stop"]),onInput:Se,onClick:t[5]||(t[5]=l.withModifiers(()=>{},["stop"]))},null,40,Ge)],32)):l.createCommentVNode("",!0)],34)):l.createCommentVNode("",!0)]),_:2},[c.variant==="file-list"?{name:"trigger",fn:l.withCtx(()=>[l.createElementVNode("div",{class:"qy-upload__file-trigger",onClick:t[0]||(t[0]=l.withModifiers(()=>{},["stop"])),onDragover:l.withModifiers(de,["prevent"]),onDragleave:l.withModifiers(ce,["prevent"]),onDrop:l.withModifiers(pe,["prevent"])},[l.renderSlot(e.$slots,"trigger",{open:I,disabled:l.unref(y),uploading:xe.value},()=>[l.createElementVNode("button",{class:"qy-upload__file-button",type:"button",disabled:l.unref(y),onClick:I}," 选择文件 ",8,Je)],!0)],32)]),key:"0"}:void 0]),1032,["file-list","multiple","limit","auto-upload","list-type","accept","disabled"]),z.value?(l.openBlock(),l.createBlock(r,{key:0,"url-list":L.value,"initial-index":X.value,onClose:Ee},null,8,["url-list","initial-index"])):l.createCommentVNode("",!0),l.createVNode(f,{modelValue:k.value,"onUpdate:modelValue":t[8]||(t[8]=m=>k.value=m),title:J.value,width:"640px","append-to-body":"","destroy-on-close":"",onClose:t[9]||(t[9]=m=>k.value=!1)},{default:l.withCtx(()=>[k.value?(l.openBlock(),l.createElementBlock("video",{key:0,src:H.value,controls:"",autoplay:"",style:{width:"100%","max-height":"400px","border-radius":"4px"}},null,8,Ye)):l.createCommentVNode("",!0)]),_:1},8,["modelValue","title"]),ke.value?(l.openBlock(),l.createElementBlock("div",Ze,[l.createVNode(n,null,{default:l.withCtx(()=>[l.createVNode(l.unref(me.InfoFilled))]),_:1}),l.createElementVNode("span",null,[t[13]||(t[13]=l.createTextVNode(" 请上传 ",-1)),c.fileSize?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[t[11]||(t[11]=l.createTextVNode("大小不超过 ",-1)),l.createElementVNode("b",et,l.toDisplayString(c.fileSize)+"MB",1)],64)):l.createCommentVNode("",!0),(d=h.value)!=null&&d.length?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[t[12]||(t[12]=l.createTextVNode(",格式为 ",-1)),l.createElementVNode("b",tt,l.toDisplayString(h.value.join("/")),1)],64)):l.createCommentVNode("",!0),t[14]||(t[14]=l.createTextVNode(" 的文件。 ",-1))])])):l.createCommentVNode("",!0)],6)}}}),nt=Ke._export_sfc(lt,[["__scopeId","data-v-b2517f27"]]);exports.Upload=nt;
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),I=["type","disabled","aria-busy","aria-disabled","aria-pressed"],E={key:0,class:"qy-button__icon qy-button__icon--loading","aria-hidden":"true"},S={key:1,class:"qy-button__icon qy-button__icon--prefix","aria-hidden":"true"},T={key:2,class:"qy-button__content"},z={key:3,class:"qy-button__icon qy-button__icon--suffix","aria-hidden":"true"},V={key:4,class:"qy-button__icon qy-button__icon--suffix","aria-hidden":"true"},$=e.defineComponent({name:"QyButton",inheritAttrs:!1,__name:"index",props:{type:{},variant:{},size:{default:"md"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},active:{type:Boolean,default:!1},block:{type:Boolean,default:!1},round:{type:Boolean,default:!1},nativeType:{default:"button"},prefixIcon:{},suffixIcon:{},iconOnly:{type:Boolean,default:!1}},emits:["click"],setup(o,{emit:y}){const m=["default","primary","success","warning","danger","text","ghost","link"],b=["sm","md","lg"],v=["button","submit","reset"],n=o,k=y,a=e.useAttrs(),c=e.useSlots(),B=e.computed(()=>{const t=n.variant||n.type||"default";return m.includes(t)?t:"default"}),_=e.computed(()=>b.includes(n.size)?n.size:"md"),g=e.computed(()=>v.includes(n.nativeType)?n.nativeType:"button"),l=e.computed(()=>n.disabled||n.loading),u=e.computed(()=>p(n.prefixIcon)),i=e.computed(()=>p(n.suffixIcon)),r=e.computed(()=>!!(u.value||c.prefix)),d=e.computed(()=>!!(i.value||c.suffix));e.computed(()=>{const t=a["aria-label"],s=a.title;return f(t)||f(s)});const x=e.computed(()=>{const t=a["aria-pressed"];return t??(n.active?"true":void 0)}),h=e.computed(()=>[`qy-button--${B.value}`,`qy-button--${_.value}`,{"is-disabled":n.disabled,"is-loading":n.loading,"is-active":n.active,"is-block":n.block,"is-round":n.round,"is-icon-only":n.iconOnly}]);e.watchEffect(()=>{});function f(t){return typeof t=="string"?t.trim().length>0:t!=null&&t!==!1}function p(t){if(!(!t||typeof t=="string"))return e.markRaw(e.toRaw(t))}function q(t){if(l.value){t.preventDefault();return}k("click",t)}return(t,s)=>(e.openBlock(),e.createElementBlock("button",e.mergeProps(e.unref(a),{class:["qy-button",h.value],type:g.value,disabled:l.value,"aria-busy":o.loading?"true":void 0,"aria-disabled":l.value?"true":void 0,"aria-pressed":x.value,onClick:q}),[o.loading?(e.openBlock(),e.createElementBlock("span",E,[...s[0]||(s[0]=[e.createElementVNode("span",{class:"qy-button__spinner"},null,-1)])])):r.value?(e.openBlock(),e.createElementBlock("span",S,[e.renderSlot(t.$slots,"prefix",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.value)))],!0)])):e.createCommentVNode("",!0),o.iconOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",T,[e.renderSlot(t.$slots,"default",{},void 0,!0)])),!o.loading&&!o.iconOnly&&d.value?(e.openBlock(),e.createElementBlock("span",z,[e.renderSlot(t.$slots,"suffix",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.value)))],!0)])):!o.loading&&o.iconOnly&&!r.value&&d.value?(e.openBlock(),e.createElementBlock("span",V,[e.renderSlot(t.$slots,"suffix",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.value)))],!0)])):e.createCommentVNode("",!0)],16,I))}}),D=C._export_sfc($,[["__scopeId","data-v-5d372e14"]]);exports.Button=D;
@@ -1,90 +0,0 @@
1
- import { defineComponent as g, useAttrs as y, computed as n, ref as V, onMounted as x, onBeforeUnmount as B, openBlock as C, createBlock as N, unref as S, mergeProps as R, withCtx as w, renderSlot as z, createTextVNode as E, toDisplayString as L } from "vue";
2
- import { ElRadio as U } from "element-plus";
3
- import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
4
- const q = /* @__PURE__ */ g({
5
- name: "QyRadio",
6
- inheritAttrs: !1,
7
- __name: "index",
8
- props: {
9
- modelValue: { type: [String, Number, Boolean] },
10
- value: { type: [String, Number, Boolean], default: !0 },
11
- label: {},
12
- disabled: { type: Boolean, default: void 0 },
13
- size: { default: void 0 },
14
- name: {},
15
- border: { type: Boolean, default: !1 },
16
- id: {},
17
- tabindex: {},
18
- ariaLabel: {},
19
- ariaControls: {}
20
- },
21
- emits: ["update:modelValue", "change", "focus", "blur"],
22
- setup(s, { emit: c }) {
23
- const a = s, o = c, f = y(), m = n(
24
- () => Object.fromEntries(
25
- Object.entries(f).filter(
26
- ([e]) => e === "class" || e === "style" || e === "role" || e === "title" || e.startsWith("data-") || e.startsWith("aria-")
27
- )
28
- )
29
- ), t = n(() => a.value), i = V(null);
30
- let l = null;
31
- const b = n(() => a.modelValue !== void 0 ? a.modelValue : t.value === !0 ? !1 : t.value === !1 ? !0 : typeof t.value == "string" ? `__qy-radio-unselected__${t.value}` : Number.NaN);
32
- x(() => {
33
- var e;
34
- l = ((e = i.value) == null ? void 0 : e.$el.querySelector("input.el-radio__original")) ?? null, l == null || l.addEventListener("keydown", d);
35
- }), B(() => {
36
- l == null || l.removeEventListener("keydown", d);
37
- });
38
- function u() {
39
- return !a.disabled && a.modelValue !== t.value;
40
- }
41
- function p() {
42
- u() && o("update:modelValue", t.value);
43
- }
44
- function v() {
45
- u() && o("change", t.value);
46
- }
47
- function d(e) {
48
- if (e.key !== " " && e.code !== "Space") return;
49
- const r = e.target;
50
- !r || r.tagName !== "INPUT" || r.type !== "radio" || r.disabled || r.checked || (e.preventDefault(), r.click());
51
- }
52
- function _(e) {
53
- o("focus", e);
54
- }
55
- function h(e) {
56
- o("blur", e);
57
- }
58
- return (e, r) => (C(), N(S(U), R({
59
- ref_key: "radioRef",
60
- ref: i
61
- }, m.value, {
62
- class: "qy-radio",
63
- "model-value": b.value,
64
- value: t.value,
65
- label: a.label,
66
- disabled: a.disabled,
67
- size: a.size,
68
- name: a.name,
69
- border: a.border,
70
- id: a.id,
71
- tabindex: a.tabindex,
72
- "aria-label": a.ariaLabel,
73
- "aria-controls": a.ariaControls,
74
- "onUpdate:modelValue": p,
75
- onChange: v,
76
- onFocusCapture: _,
77
- onBlurCapture: h
78
- }), {
79
- default: w(() => [
80
- z(e.$slots, "default", {}, () => [
81
- E(L(a.label), 1)
82
- ], !0)
83
- ]),
84
- _: 3
85
- }, 16, ["model-value", "value", "label", "disabled", "size", "name", "border", "id", "tabindex", "aria-label", "aria-controls"]));
86
- }
87
- }), j = /* @__PURE__ */ k(q, [["__scopeId", "data-v-66184801"]]);
88
- export {
89
- j as R
90
- };