@qynpm/ui 1.0.44 → 1.0.46

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 (264) hide show
  1. package/README.md +9 -2
  2. package/dist/index.cjs +20 -13
  3. package/dist/index.mjs +268 -102
  4. package/dist/qy-action-bar/index.cjs +3 -1
  5. package/dist/qy-action-bar/index.mjs +7 -2
  6. package/dist/qy-autocomplete/index.cjs +1 -1
  7. package/dist/qy-autocomplete/index.mjs +1 -1
  8. package/dist/qy-button/index.cjs +1 -1
  9. package/dist/qy-button/index.mjs +1 -1
  10. package/dist/qy-cascader/index.cjs +1 -1
  11. package/dist/qy-cascader/index.mjs +1 -1
  12. package/dist/qy-checkbox/index.cjs +1 -1
  13. package/dist/qy-checkbox/index.mjs +1 -1
  14. package/dist/qy-checkbox-group/index.cjs +1 -1
  15. package/dist/qy-checkbox-group/index.mjs +1 -1
  16. package/dist/qy-collapse/index.cjs +1 -1
  17. package/dist/qy-collapse/index.mjs +1 -1
  18. package/dist/qy-color-picker/index.cjs +1 -1
  19. package/dist/qy-color-picker/index.mjs +1 -1
  20. package/dist/qy-date-picker/index.cjs +1 -1
  21. package/dist/qy-date-picker/index.mjs +1 -1
  22. package/dist/qy-dialog/index.cjs +3 -2
  23. package/dist/qy-dialog/index.mjs +7 -5
  24. package/dist/qy-drawer/index.cjs +1 -1
  25. package/dist/qy-drawer/index.mjs +1 -1
  26. package/dist/qy-dropdown/index.cjs +2 -2
  27. package/dist/qy-dropdown/index.mjs +2 -2
  28. package/dist/qy-file-picker/index.cjs +1 -1
  29. package/dist/qy-file-picker/index.mjs +1 -1
  30. package/dist/qy-form-section/index.cjs +3 -1
  31. package/dist/qy-form-section/index.mjs +7 -2
  32. package/dist/qy-fullscreen/index.cjs +1 -1
  33. package/dist/qy-fullscreen/index.mjs +1 -1
  34. package/dist/qy-icon/index.cjs +1 -1
  35. package/dist/qy-icon/index.mjs +2 -2
  36. package/dist/qy-icon-picker/index.cjs +1 -1
  37. package/dist/qy-icon-picker/index.mjs +1 -1
  38. package/dist/qy-iframe/index.cjs +1 -1
  39. package/dist/qy-iframe/index.mjs +1 -1
  40. package/dist/qy-image/index.cjs +1 -1
  41. package/dist/qy-image/index.mjs +1 -1
  42. package/dist/qy-image-preview/index.cjs +1 -1
  43. package/dist/qy-image-preview/index.mjs +2 -2
  44. package/dist/qy-image-upload/index.cjs +3 -1
  45. package/dist/qy-image-upload/index.mjs +7 -2
  46. package/dist/qy-input/index.cjs +1 -1
  47. package/dist/qy-input/index.mjs +1 -1
  48. package/dist/qy-input-number/index.cjs +1 -1
  49. package/dist/qy-input-number/index.mjs +1 -1
  50. package/dist/qy-input-tag/index.cjs +1 -1
  51. package/dist/qy-input-tag/index.mjs +151 -5
  52. package/dist/qy-legacy-selection-dialog/index.cjs +8 -1
  53. package/dist/qy-legacy-selection-dialog/index.mjs +12 -2
  54. package/dist/qy-menu-actions/index.cjs +1 -1
  55. package/dist/qy-menu-actions/index.mjs +1 -1
  56. package/dist/qy-money-input/index.cjs +1 -1
  57. package/dist/qy-money-input/index.mjs +1 -1
  58. package/dist/qy-pagination/index.cjs +1 -1
  59. package/dist/qy-pagination/index.mjs +1 -1
  60. package/dist/qy-popconfirm/index.cjs +1 -1
  61. package/dist/qy-popconfirm/index.mjs +1 -1
  62. package/dist/qy-popover/index.cjs +1 -1
  63. package/dist/qy-popover/index.mjs +1 -1
  64. package/dist/qy-radio/index.cjs +1 -1
  65. package/dist/qy-radio/index.mjs +1 -1
  66. package/dist/qy-radio-group/index.cjs +1 -1
  67. package/dist/qy-radio-group/index.mjs +1 -1
  68. package/dist/qy-record-quote-search/index.cjs +4 -1
  69. package/dist/qy-record-quote-search/index.mjs +8 -2
  70. package/dist/qy-remark-image/index.cjs +3 -1
  71. package/dist/qy-remark-image/index.mjs +11 -2
  72. package/dist/qy-remote-select/index.cjs +3 -1
  73. package/dist/qy-remote-select/index.mjs +7 -2
  74. package/dist/qy-result/index.cjs +1 -1
  75. package/dist/qy-result/index.mjs +1 -1
  76. package/dist/qy-scrollbar/index.cjs +1 -1
  77. package/dist/qy-scrollbar/index.mjs +1 -1
  78. package/dist/qy-search-input/index.cjs +3 -1
  79. package/dist/qy-search-input/index.mjs +7 -2
  80. package/dist/qy-select/index.cjs +1 -1
  81. package/dist/qy-select/index.mjs +1 -1
  82. package/dist/qy-selection-dialog/index.cjs +7 -1
  83. package/dist/qy-selection-dialog/index.mjs +11 -2
  84. package/dist/qy-switch/index.cjs +1 -1
  85. package/dist/qy-switch/index.mjs +1 -1
  86. package/dist/qy-table-column-settings/index.cjs +1 -1
  87. package/dist/qy-table-column-settings/index.mjs +1 -1
  88. package/dist/qy-tabs/index.cjs +1 -1
  89. package/dist/qy-tabs/index.mjs +1 -1
  90. package/dist/qy-tag/index.cjs +1 -1
  91. package/dist/qy-tag/index.mjs +1 -1
  92. package/dist/qy-tooltip/index.cjs +1 -1
  93. package/dist/qy-tooltip/index.mjs +1 -1
  94. package/dist/qy-tree/index.cjs +1 -1
  95. package/dist/qy-tree/index.mjs +1 -1
  96. package/dist/qy-tree-select/index.cjs +1 -1
  97. package/dist/qy-tree-select/index.mjs +1 -1
  98. package/dist/qy-upload/index.cjs +1 -1
  99. package/dist/qy-upload/index.mjs +1 -1
  100. package/dist/shared/index-AvNvmJe5.cjs +1 -0
  101. package/dist/shared/{index-DvFMgAcu.mjs → index-B0CTzdRW.mjs} +1 -1
  102. package/dist/shared/index-B1J7PQMl.mjs +79 -0
  103. package/dist/shared/{index-DRIoLeFE.mjs → index-B1gnVI8Y.mjs} +44 -45
  104. package/dist/shared/{index-Co84fsS5.mjs → index-B7j9BtSm.mjs} +88 -80
  105. package/dist/shared/{index-CiE6qJCJ.mjs → index-BAOV5iYx.mjs} +151 -143
  106. package/dist/shared/index-BN4A-O6P.mjs +727 -0
  107. package/dist/shared/index-BR7tIt2k.mjs +211 -0
  108. package/dist/shared/index-BaRw7pWi.mjs +156 -0
  109. package/dist/shared/index-BgAP_K2E.cjs +1 -0
  110. package/dist/shared/index-Blgz8PJc.cjs +1 -0
  111. package/dist/shared/index-BqzKToOL.cjs +1 -0
  112. package/dist/shared/{index-BNssRW4d.mjs → index-BuVrLl5B.mjs} +13 -13
  113. package/dist/shared/index-Bv1DrJ32.mjs +71 -0
  114. package/dist/shared/index-Bz9WjKdL.cjs +1 -0
  115. package/dist/shared/{index-BjqJCq-6.mjs → index-Bzr2RHi5.mjs} +3 -3
  116. package/dist/shared/index-C50jpQ11.mjs +295 -0
  117. package/dist/shared/index-C6G9eVku.cjs +1 -0
  118. package/dist/shared/index-CB0v25oB.cjs +1 -0
  119. package/dist/shared/{index-gMrQlV5n.cjs → index-CIXJwYI-.cjs} +1 -1
  120. package/dist/shared/index-CKkanVur.cjs +1 -0
  121. package/dist/shared/index-CLvL8LAM.cjs +1 -0
  122. package/dist/shared/index-CN2mgT5V.cjs +1 -0
  123. package/dist/shared/{index-DNnWRAFl.mjs → index-CW4s627w.mjs} +1 -1
  124. package/dist/shared/{index-8Iwma3ls.mjs → index-CXOCZlps.mjs} +2 -2
  125. package/dist/shared/{index-CUlhX6fW.cjs → index-CXnL-0Kp.cjs} +1 -1
  126. package/dist/shared/index-CZs0V4ze.cjs +1 -0
  127. package/dist/shared/index-Cqr-L0yd.mjs +285 -0
  128. package/dist/shared/index-Cu6yAwdj.mjs +124 -0
  129. package/dist/shared/index-CxTyKMEH.cjs +1 -0
  130. package/dist/shared/index-D5HS8M1P.cjs +1 -0
  131. package/dist/shared/index-D6QwZtYV.mjs +56 -0
  132. package/dist/shared/index-DCsun70c.cjs +1 -0
  133. package/dist/shared/{index-BweLwi2_.cjs → index-DEzFHeJL.cjs} +1 -1
  134. package/dist/shared/{index-2D5AFexl.mjs → index-DNMRIYkm.mjs} +1 -1
  135. package/dist/shared/index-DY2IXvwl.cjs +1 -0
  136. package/dist/shared/{index-C4F8hXzQ.mjs → index-DdGlwebp.mjs} +90 -81
  137. package/dist/shared/index-DiN5vXXD.cjs +1 -0
  138. package/dist/shared/{index-Mj7JZt7y.cjs → index-Duq5XZ5w.cjs} +1 -1
  139. package/dist/shared/index-DwHM9eYc.cjs +1 -0
  140. package/dist/shared/index-FZ5gl2au.cjs +1 -0
  141. package/dist/shared/index-PM5yNugz.mjs +573 -0
  142. package/dist/shared/index-VtM0GmfU.mjs +361 -0
  143. package/dist/shared/index-ykI9hKtc.mjs +88 -0
  144. package/dist/shared/index.vue_vue_type_script_setup_true_lang-4CNzVpgF.mjs +40 -0
  145. package/dist/shared/index.vue_vue_type_script_setup_true_lang-B38X3tvf.cjs +1 -0
  146. package/dist/shared/{index.vue_vue_type_script_setup_true_lang-DIWWHODS.mjs → index.vue_vue_type_script_setup_true_lang-BtMkNw_I.mjs} +49 -47
  147. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CeVvm5Ph.cjs +1 -0
  148. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Cn0JqB5r.cjs +1 -0
  149. package/dist/shared/index.vue_vue_type_script_setup_true_lang-D3MxDFk1.cjs +1 -0
  150. package/dist/shared/{index.vue_vue_type_script_setup_true_lang-Dn29lZTs.mjs → index.vue_vue_type_script_setup_true_lang-DECgTYqI.mjs} +20 -18
  151. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DMHhx9lY.mjs +133 -0
  152. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DW2JKXjA.cjs +1 -0
  153. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DeFEEJk8.cjs +1 -0
  154. package/dist/shared/index.vue_vue_type_script_setup_true_lang-GUuWAB0o.mjs +238 -0
  155. package/dist/shared/index.vue_vue_type_script_setup_true_lang-mWNAIcqc.mjs +63 -0
  156. package/dist/shared/index.vue_vue_type_style_index_0_lang-B4fDeQox.cjs +1 -0
  157. package/dist/shared/index.vue_vue_type_style_index_0_lang-BLRxKB-e.mjs +413 -0
  158. package/dist/shared/index.vue_vue_type_style_index_0_lang-Ba6d5zw4.mjs +142 -0
  159. package/dist/shared/index.vue_vue_type_style_index_0_lang-BzJsAWKD.cjs +1 -0
  160. package/dist/shared/{index.vue_vue_type_style_index_0_lang-OHPkiKBo.cjs → index.vue_vue_type_style_index_0_lang-C4yXFBV_.cjs} +1 -1
  161. package/dist/shared/index.vue_vue_type_style_index_0_lang-CFp5MK6j.cjs +1 -0
  162. package/dist/shared/index.vue_vue_type_style_index_0_lang-CVAm3ApY.cjs +1 -0
  163. package/dist/shared/{index.vue_vue_type_style_index_0_lang-DbQkbvgb.mjs → index.vue_vue_type_style_index_0_lang-CuTyK1Ey.mjs} +3 -3
  164. package/dist/shared/index.vue_vue_type_style_index_0_lang-CvVl_Y56.mjs +219 -0
  165. package/dist/shared/index.vue_vue_type_style_index_0_lang-D-p1u8y8.cjs +1 -0
  166. package/dist/shared/index.vue_vue_type_style_index_0_lang-D9T_xdbu.mjs +176 -0
  167. package/dist/shared/index.vue_vue_type_style_index_0_lang-DGV7FQlw.cjs +1 -0
  168. package/dist/shared/{index.vue_vue_type_style_index_0_lang-CcVf5MXE.mjs → index.vue_vue_type_style_index_0_lang-DZOPXZov.mjs} +59 -57
  169. package/dist/shared/{index.vue_vue_type_style_index_0_lang-DSur831A.mjs → index.vue_vue_type_style_index_0_lang-KXiTSh4t.mjs} +24 -18
  170. package/dist/shared/js.cookie-BA-dL3zT.mjs +74 -0
  171. package/dist/shared/js.cookie-BmJmHEx1.cjs +1 -0
  172. package/dist/shared/overlay-stack-DeKq7jZu.cjs +1 -0
  173. package/dist/shared/overlay-stack-eI-yzYU6.mjs +34 -0
  174. package/dist/shared/{utils-DoyI5oM8.mjs → utils-DpZkMLkb.mjs} +63 -49
  175. package/dist/shared/utils-DpkN3Zat.cjs +1 -0
  176. package/index.d.ts +44 -15
  177. package/package.json +1 -1
  178. package/qy-action-bar/index.d.ts +16 -4
  179. package/qy-autocomplete/index.d.ts +43 -2
  180. package/qy-checkbox/index.d.ts +1 -0
  181. package/qy-checkbox-group/index.d.ts +1 -0
  182. package/qy-date-picker/index.d.ts +1 -0
  183. package/qy-dialog/index.d.ts +4 -0
  184. package/qy-form-section/index.d.ts +22 -4
  185. package/qy-image/index.d.ts +1 -0
  186. package/qy-image-preview/index.d.ts +8 -4
  187. package/qy-menu-actions/index.d.ts +21 -2
  188. package/qy-money-input/index.d.ts +1 -0
  189. package/qy-pagination/index.d.ts +4 -0
  190. package/qy-popover/index.d.ts +4 -0
  191. package/qy-radio-group/index.d.ts +1 -0
  192. package/qy-record-quote-search/index.d.ts +53 -4
  193. package/qy-remark-image/index.d.ts +48 -4
  194. package/qy-remote-select/index.d.ts +53 -2
  195. package/qy-search-input/index.d.ts +66 -4
  196. package/qy-select/index.d.ts +4 -0
  197. package/qy-selection-dialog/index.d.ts +63 -2
  198. package/qy-switch/index.d.ts +1 -0
  199. package/qy-table-column-settings/index.d.ts +19 -2
  200. package/qy-tooltip/index.d.ts +5 -0
  201. package/qy-tree-select/index.d.ts +1 -0
  202. package/dist/shared/index-5dxbpQb_.cjs +0 -1
  203. package/dist/shared/index-BEcS8y8g.mjs +0 -68
  204. package/dist/shared/index-BSTMCPDj.mjs +0 -72
  205. package/dist/shared/index-Bh9hxVFh.mjs +0 -766
  206. package/dist/shared/index-CGq7Q_hV.mjs +0 -119
  207. package/dist/shared/index-CVYNG8Fc.cjs +0 -1
  208. package/dist/shared/index-CmgTSaFS.cjs +0 -1
  209. package/dist/shared/index-CnVhquq5.cjs +0 -1
  210. package/dist/shared/index-D27mwR57.cjs +0 -1
  211. package/dist/shared/index-DKw-seoh.cjs +0 -1
  212. package/dist/shared/index-DRugp8x0.cjs +0 -1
  213. package/dist/shared/index-DTbGlDqr.cjs +0 -1
  214. package/dist/shared/index-MyDDX-zj.cjs +0 -1
  215. package/dist/shared/index-afOuq3YX.cjs +0 -1
  216. package/dist/shared/index-rSrDnOpu.cjs +0 -1
  217. package/dist/shared/index-rjciSHaR.mjs +0 -2362
  218. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BiIgNax-.cjs +0 -1
  219. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CKp87br2.cjs +0 -1
  220. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CqSJ_8hG.cjs +0 -1
  221. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DbLp1kvW.cjs +0 -1
  222. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DwFGEW4B.mjs +0 -143
  223. package/dist/shared/index.vue_vue_type_script_setup_true_lang-EiHoQBXt.mjs +0 -94
  224. package/dist/shared/index.vue_vue_type_script_setup_true_lang-IyZesuKm.mjs +0 -48
  225. package/dist/shared/index.vue_vue_type_script_setup_true_lang-UBQQ6Z03.cjs +0 -1
  226. package/dist/shared/index.vue_vue_type_script_setup_true_lang-ccFLNRry.cjs +0 -1
  227. package/dist/shared/index.vue_vue_type_script_setup_true_lang-r7iyZzDS.mjs +0 -61
  228. package/dist/shared/index.vue_vue_type_style_index_0_lang-1cTut9Ql.cjs +0 -1
  229. package/dist/shared/index.vue_vue_type_style_index_0_lang-B2thgQml.cjs +0 -1
  230. package/dist/shared/index.vue_vue_type_style_index_0_lang-BMZqMPZb.mjs +0 -215
  231. package/dist/shared/index.vue_vue_type_style_index_0_lang-Bb3L64L8.mjs +0 -406
  232. package/dist/shared/index.vue_vue_type_style_index_0_lang-BoaO6MKl.cjs +0 -1
  233. package/dist/shared/index.vue_vue_type_style_index_0_lang-C4Yk-UdJ.mjs +0 -172
  234. package/dist/shared/index.vue_vue_type_style_index_0_lang-D9-2GN18.cjs +0 -1
  235. package/dist/shared/index.vue_vue_type_style_index_0_lang-DHK86rdP.cjs +0 -1
  236. package/dist/shared/index.vue_vue_type_style_index_0_lang-DsOg_Rum.mjs +0 -128
  237. package/dist/shared/index.vue_vue_type_style_index_0_lang-RiwA2WPO.cjs +0 -1
  238. package/dist/shared/utils-BjEXwY3L.cjs +0 -1
  239. /package/dist/shared/{index-DiEag4sK.cjs → index-5UAiwqdT.cjs} +0 -0
  240. /package/dist/shared/{index-B3GsIwhf.mjs → index-BKdw4jD_.mjs} +0 -0
  241. /package/dist/shared/{index-B25yA5j-.mjs → index-BVaIvVMi.mjs} +0 -0
  242. /package/dist/shared/{index-HNFq7v-A.cjs → index-Bdlzmh8A.cjs} +0 -0
  243. /package/dist/shared/{index-Bq9quq2D.cjs → index-BsNtvE6i.cjs} +0 -0
  244. /package/dist/shared/{index-B3YHS3Aa.mjs → index-CGH2ROZV.mjs} +0 -0
  245. /package/dist/shared/{index-ByQyMTPg.mjs → index-DvXzDAmi.mjs} +0 -0
  246. /package/dist/shared/{index-EIFVul2W.cjs → index-O6K0DO_k.cjs} +0 -0
  247. /package/dist/shared/{index-B3XwO-Lc.mjs → index-QN7-6GpS.mjs} +0 -0
  248. /package/dist/shared/{index-CVWru9T3.cjs → index-_Bagw0Pj.cjs} +0 -0
  249. /package/dist/shared/{index.vue_vue_type_script_setup_true_lang-BnIolx5s.cjs → index.vue_vue_type_script_setup_true_lang-2ZOn9XPM.cjs} +0 -0
  250. /package/dist/shared/{index.vue_vue_type_script_setup_true_lang-wG7OTsWa.mjs → index.vue_vue_type_script_setup_true_lang-DM0MGPZh.mjs} +0 -0
  251. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-CVdFZeHK.mjs → index.vue_vue_type_style_index_0_lang-90f2jQr7.mjs} +0 -0
  252. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-hbNK_h45.cjs → index.vue_vue_type_style_index_0_lang-BNL5vyrU.cjs} +0 -0
  253. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-gs0YJI91.mjs → index.vue_vue_type_style_index_0_lang-BvBAR8A1.mjs} +0 -0
  254. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-C1n-zAZh.mjs → index.vue_vue_type_style_index_0_lang-C7L66EnO.mjs} +0 -0
  255. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-Tzo8o6M8.mjs → index.vue_vue_type_style_index_0_lang-CN3dJjUV.mjs} +0 -0
  256. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-CPxbKjvY.mjs → index.vue_vue_type_style_index_0_lang-CNdV3Mnk.mjs} +0 -0
  257. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-B1FgJZbw.mjs → index.vue_vue_type_style_index_0_lang-CgScSrRJ.mjs} +0 -0
  258. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-DFAaBzkW.cjs → index.vue_vue_type_style_index_0_lang-Clt7QDAK.cjs} +0 -0
  259. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-WGzoSatU.cjs → index.vue_vue_type_style_index_0_lang-CvlRVqcl.cjs} +0 -0
  260. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-KHk9wRYT.mjs → index.vue_vue_type_style_index_0_lang-DGt78p3G.mjs} +0 -0
  261. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-BXTkWo5P.cjs → index.vue_vue_type_style_index_0_lang-J7wvS2CR.cjs} +0 -0
  262. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-DVXf-yUs.cjs → index.vue_vue_type_style_index_0_lang-YEjVWWsy.cjs} +0 -0
  263. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-D9DraThL.cjs → index.vue_vue_type_style_index_0_lang-nS-EDK4t.cjs} +0 -0
  264. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-BnPRHCwR.cjs → index.vue_vue_type_style_index_0_lang-yci929so.cjs} +0 -0
@@ -1,11 +1,15 @@
1
- import { defineComponent as m, computed as n, ref as h, onBeforeUnmount as p, watch as y, openBlock as b, createBlock as w, unref as x, withCtx as f, renderSlot as i, createTextVNode as v, toDisplayString as D } from "vue";
2
- import { ElTooltip as W } from "element-plus";
3
- const C = /* @__PURE__ */ m({
1
+ import { defineComponent as m, computed as n, ref as p, onBeforeUnmount as h, watch as y, openBlock as b, createBlock as g, unref as w, withCtx as f, renderSlot as d, createTextVNode as x, toDisplayString as v } from "vue";
2
+ import { ElTooltip as B } from "element-plus";
3
+ const k = /* @__PURE__ */ m({
4
4
  name: "QyTooltip",
5
5
  inheritAttrs: !1,
6
6
  __name: "index",
7
7
  props: {
8
8
  content: { default: "" },
9
+ trigger: { default: () => ["hover", "focus"] },
10
+ enterable: { type: Boolean, default: !1 },
11
+ teleported: { type: Boolean, default: !0 },
12
+ appendTo: { default: "body" },
9
13
  placement: { default: "top" },
10
14
  effect: { default: "dark" },
11
15
  disabled: { type: Boolean, default: !1 },
@@ -15,18 +19,18 @@ const C = /* @__PURE__ */ m({
15
19
  maxWidth: { default: 320 }
16
20
  },
17
21
  emits: ["open", "close"],
18
- setup(e, { emit: d }) {
19
- const s = d, c = n(
22
+ setup(e, { emit: i }) {
23
+ const r = i, c = n(
20
24
  () => typeof e.maxWidth == "number" ? `${e.maxWidth}px` : e.maxWidth
21
- ), r = n(() => ({
25
+ ), s = n(() => ({
22
26
  "--qy-tooltip-max-width": c.value
23
- })), a = h(!1);
27
+ })), a = p(!1);
24
28
  let l = !1;
25
- p(() => {
29
+ h(() => {
26
30
  l = !0;
27
31
  });
28
32
  function o(t) {
29
- l || t === a.value || (a.value = t, s(t ? "open" : "close"));
33
+ l || t === a.value || (a.value = t, r(t ? "open" : "close"));
30
34
  }
31
35
  function u(t) {
32
36
  o(t);
@@ -36,7 +40,7 @@ const C = /* @__PURE__ */ m({
36
40
  (t) => {
37
41
  t && o(!1);
38
42
  }
39
- ), (t, g) => (b(), w(x(W), {
43
+ ), (t, D) => (b(), g(w(B), {
40
44
  content: e.content,
41
45
  placement: e.placement,
42
46
  effect: e.effect,
@@ -44,25 +48,27 @@ const C = /* @__PURE__ */ m({
44
48
  "show-after": e.showDelay,
45
49
  "hide-after": e.hideDelay,
46
50
  offset: e.offset,
47
- trigger: ["hover", "focus"],
48
- enterable: !1,
51
+ trigger: e.trigger,
52
+ enterable: e.enterable,
53
+ teleported: e.teleported,
54
+ "append-to": e.appendTo,
49
55
  "raw-content": !1,
50
56
  "popper-class": "qy-tooltip-popper",
51
- "popper-style": r.value,
57
+ "popper-style": s.value,
52
58
  "onUpdate:visible": u
53
59
  }, {
54
60
  content: f(() => [
55
- i(t.$slots, "content", {}, () => [
56
- v(D(e.content), 1)
61
+ d(t.$slots, "content", {}, () => [
62
+ x(v(e.content), 1)
57
63
  ])
58
64
  ]),
59
65
  default: f(() => [
60
- i(t.$slots, "default")
66
+ d(t.$slots, "default")
61
67
  ]),
62
68
  _: 3
63
- }, 8, ["content", "placement", "effect", "disabled", "show-after", "hide-after", "offset", "popper-style"]));
69
+ }, 8, ["content", "placement", "effect", "disabled", "show-after", "hide-after", "offset", "trigger", "enterable", "teleported", "append-to", "popper-style"]));
64
70
  }
65
71
  });
66
72
  export {
67
- C as _
73
+ k as _
68
74
  };
@@ -0,0 +1,74 @@
1
+ /*! js-cookie v3.0.8 | MIT */
2
+ function u(r) {
3
+ for (var t = 1; t < arguments.length; t++) {
4
+ var f = arguments[t];
5
+ for (var p in f)
6
+ p !== "__proto__" && (r[p] = f[p]);
7
+ }
8
+ return r;
9
+ }
10
+ var g = {
11
+ read: function(r) {
12
+ return r[0] === '"' && (r = r.slice(1, -1)), r.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
13
+ },
14
+ write: function(r) {
15
+ return encodeURIComponent(r).replace(
16
+ /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
17
+ decodeURIComponent
18
+ );
19
+ }
20
+ };
21
+ function s(r, t) {
22
+ function f(n, c, e) {
23
+ if (!(typeof document > "u")) {
24
+ e = u({}, t, e), typeof e.expires == "number" && (e.expires = new Date(Date.now() + e.expires * 864e5)), e.expires && (e.expires = e.expires.toUTCString()), n = encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
25
+ var o = "";
26
+ for (var i in e)
27
+ e[i] && (o += "; " + i, e[i] !== !0 && (o += "=" + e[i].split(";")[0]));
28
+ return document.cookie = n + "=" + r.write(c, n) + o;
29
+ }
30
+ }
31
+ function p(n) {
32
+ if (!(typeof document > "u" || arguments.length && !n)) {
33
+ for (var c = document.cookie ? document.cookie.split("; ") : [], e = {}, o = 0; o < c.length; o++) {
34
+ var i = c[o].split("="), v = i.slice(1).join("=");
35
+ try {
36
+ var d = decodeURIComponent(i[0]);
37
+ if (d in e || (e[d] = r.read(v, d)), n === d)
38
+ break;
39
+ } catch {
40
+ }
41
+ }
42
+ return n ? e[n] : e;
43
+ }
44
+ }
45
+ return Object.create(
46
+ {
47
+ set: f,
48
+ get: p,
49
+ remove: function(n, c) {
50
+ f(
51
+ n,
52
+ "",
53
+ u({}, c, {
54
+ expires: -1
55
+ })
56
+ );
57
+ },
58
+ withAttributes: function(n) {
59
+ return s(this.converter, u({}, this.attributes, n));
60
+ },
61
+ withConverter: function(n) {
62
+ return s(u({}, this.converter, n), this.attributes);
63
+ }
64
+ },
65
+ {
66
+ attributes: { value: Object.freeze(t) },
67
+ converter: { value: Object.freeze(r) }
68
+ }
69
+ );
70
+ }
71
+ var a = s(g, { path: "/" });
72
+ export {
73
+ a
74
+ };
@@ -0,0 +1 @@
1
+ "use strict";/*! js-cookie v3.0.8 | MIT */function u(r){for(var t=1;t<arguments.length;t++){var f=arguments[t];for(var p in f)p!=="__proto__"&&(r[p]=f[p])}return r}var g={read:function(r){return r[0]==='"'&&(r=r.slice(1,-1)),r.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(r){return encodeURIComponent(r).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function s(r,t){function f(n,c,e){if(!(typeof document>"u")){e=u({},t,e),typeof e.expires=="number"&&(e.expires=new Date(Date.now()+e.expires*864e5)),e.expires&&(e.expires=e.expires.toUTCString()),n=encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var i in e)e[i]&&(o+="; "+i,e[i]!==!0&&(o+="="+e[i].split(";")[0]));return document.cookie=n+"="+r.write(c,n)+o}}function p(n){if(!(typeof document>"u"||arguments.length&&!n)){for(var c=document.cookie?document.cookie.split("; "):[],e={},o=0;o<c.length;o++){var i=c[o].split("="),v=i.slice(1).join("=");try{var d=decodeURIComponent(i[0]);if(d in e||(e[d]=r.read(v,d)),n===d)break}catch{}}return n?e[n]:e}}return Object.create({set:f,get:p,remove:function(n,c){f(n,"",u({},c,{expires:-1}))},withAttributes:function(n){return s(this.converter,u({},this.attributes,n))},withConverter:function(n){return s(u({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(r)}})}var C=s(g,{path:"/"});exports.api=C;
@@ -0,0 +1 @@
1
+ "use strict";const l=new WeakSet;function n(t){l.add(t)}function s(t){return l.has(t)}function o(t){return Array.from(document.querySelectorAll(".el-overlay, .el-popper, .el-image-viewer__wrapper")).filter(r=>{const e=getComputedStyle(r);return e.display!=="none"&&e.visibility!=="hidden"&&r.getAttribute("aria-hidden")!=="true"}).sort((r,e)=>(Number.parseInt(getComputedStyle(r).zIndex,10)||0)-(Number.parseInt(getComputedStyle(e).zIndex,10)||0)).at(-1)===t}function p(t,i=0){const r=typeof document>"u"?[]:Array.from(document.querySelectorAll(".el-overlay, .el-image-viewer__wrapper, .el-popper")).filter(e=>{const a=getComputedStyle(e);return a.display!=="none"&&a.visibility!=="hidden"&&e.getAttribute("aria-hidden")!=="true"});return Math.max(t,Number.isFinite(i)?i:0,...r.map(e=>(Number.parseInt(getComputedStyle(e).zIndex,10)||0)+1))}exports.claimOverlayEscape=n;exports.isOverlayEscapeClaimed=s;exports.isTopmostVisibleLayer=o;exports.resolveOverlayZIndex=p;
@@ -0,0 +1,34 @@
1
+ const l = /* @__PURE__ */ new WeakSet();
2
+ function n(t) {
3
+ l.add(t);
4
+ }
5
+ function s(t) {
6
+ return l.has(t);
7
+ }
8
+ function o(t) {
9
+ return Array.from(document.querySelectorAll(".el-overlay, .el-popper, .el-image-viewer__wrapper")).filter((r) => {
10
+ const e = getComputedStyle(r);
11
+ return e.display !== "none" && e.visibility !== "hidden" && r.getAttribute("aria-hidden") !== "true";
12
+ }).sort(
13
+ (r, e) => (Number.parseInt(getComputedStyle(r).zIndex, 10) || 0) - (Number.parseInt(getComputedStyle(e).zIndex, 10) || 0)
14
+ ).at(-1) === t;
15
+ }
16
+ function p(t, a = 0) {
17
+ const r = typeof document > "u" ? [] : Array.from(
18
+ document.querySelectorAll(".el-overlay, .el-image-viewer__wrapper, .el-popper")
19
+ ).filter((e) => {
20
+ const i = getComputedStyle(e);
21
+ return i.display !== "none" && i.visibility !== "hidden" && e.getAttribute("aria-hidden") !== "true";
22
+ });
23
+ return Math.max(
24
+ t,
25
+ Number.isFinite(a) ? a : 0,
26
+ ...r.map((e) => (Number.parseInt(getComputedStyle(e).zIndex, 10) || 0) + 1)
27
+ );
28
+ }
29
+ export {
30
+ o as a,
31
+ n as c,
32
+ s as i,
33
+ p as r
34
+ };
@@ -1,34 +1,45 @@
1
- import { h as g, createApp as y } from "vue";
2
- import { ElImageViewer as v } from "element-plus";
3
- const d = Symbol.for("qynpm.image-preview.runtime");
1
+ import { h as v, createApp as I } from "vue";
2
+ import { useZIndex as b, ElImageViewer as _ } from "element-plus";
3
+ import { r as R } from "./overlay-stack-eI-yzYU6.mjs";
4
+ let p = 0, w = "";
5
+ function E() {
6
+ if (typeof document > "u") return () => {
7
+ };
8
+ p++ === 0 && (w = document.body.style.overflow, document.body.style.overflow = "hidden");
9
+ let e = !1;
10
+ return () => {
11
+ e || (e = !0, --p === 0 && (document.body.style.overflow = w));
12
+ };
13
+ }
14
+ const m = Symbol.for("qynpm.image-preview.runtime");
4
15
  function c() {
5
16
  const e = globalThis;
6
- return e[d] || (e[d] = {
17
+ return e[m] || (e[m] = {
7
18
  snapshot: null,
8
19
  activeToken: null,
9
20
  activeClose: null,
10
21
  transitionDepth: 0
11
- }), e[d];
22
+ }), e[m];
12
23
  }
13
- const b = {
24
+ const S = {
14
25
  w: 200,
15
26
  h: 200,
16
27
  q: 50
17
28
  };
18
- function m(e) {
29
+ function h(e) {
19
30
  const t = String(e || "").trim();
20
31
  return t ? t.includes("ys.diansan.com") ? t.replace(/^http:\/\//, "https://").replace("ys.diansan.com", "admin.qiyinbz.com") : t : "";
21
32
  }
22
- function I(e, t = !0) {
33
+ function x(e, t = !0) {
23
34
  const r = String(e || "").trim();
24
35
  if (!r) return "";
25
- const n = m(r);
36
+ const n = h(r);
26
37
  if (!t) return n;
27
- const o = w(t);
38
+ const o = y(t);
28
39
  return r.includes("ys.diansan.com") ? `${n}?small=true&style=image/resize,h_${o.h},w_${o.w}` : `${n}?w=${o.w}`;
29
40
  }
30
- async function x(e, t = {}) {
31
- const r = m(e);
41
+ async function Q(e, t = {}) {
42
+ const r = h(e);
32
43
  if (!r) throw new Error("图片地址不能为空");
33
44
  const n = t.compressor ?? !0;
34
45
  if (!n)
@@ -36,58 +47,60 @@ async function x(e, t = {}) {
36
47
  src: r,
37
48
  source: "original"
38
49
  };
39
- const o = I(e, n), a = t.loadBlob ?? C, i = t.compressBlob ?? S;
50
+ const o = x(e, n), a = t.loadBlob ?? k, i = t.compressBlob ?? M;
40
51
  try {
41
52
  return await a(o), {
42
53
  src: o,
43
54
  source: "thumbnail"
44
55
  };
45
56
  } catch {
46
- const l = await a(r);
57
+ const u = await a(r);
47
58
  return {
48
- src: await i(l, w(n)),
59
+ src: await i(u, y(n)),
49
60
  source: "fallback"
50
61
  };
51
62
  }
52
63
  }
53
- function _(e = {}) {
64
+ function L(e = {}) {
54
65
  if (typeof document > "u") return { close() {
55
66
  } };
56
- const t = T(e.urlList, e.url);
67
+ const t = P(e.urlList, e.url);
57
68
  if (!t.length) return { close() {
58
69
  } };
59
- const r = globalThis.__QY_IMAGE_PREVIEW_CREATE_APP__ ?? y, n = document.createElement("div"), o = document.body.style.overflow;
70
+ const r = globalThis.__QY_IMAGE_PREVIEW_CREATE_APP__ ?? I, n = document.createElement("div"), o = E();
60
71
  let a = !1, i;
61
- const l = { urlList: [...t], initialIndex: e.initialIndex ?? 0, hideOnClickModal: e.hideOnClickModal ?? !0 }, s = c(), h = {};
62
- s.snapshot = l, s.activeToken = h;
63
- const u = () => {
64
- var f;
65
- a || (a = !0, s.activeToken === h && (s.activeToken = null, s.activeClose = null, s.transitionDepth === 0 && (s.snapshot = null)), document.body.style.overflow = o, (f = i == null ? void 0 : i.unmount) == null || f.call(i), n.parentNode && n.parentNode.removeChild(n));
72
+ const u = { urlList: [...t], initialIndex: e.initialIndex ?? 0, hideOnClickModal: e.hideOnClickModal ?? !0 }, s = c(), f = {};
73
+ s.snapshot = u, s.activeToken = f;
74
+ const d = () => {
75
+ var l;
76
+ a || (a = !0, s.activeToken === f && (s.activeToken = null, s.activeClose = null, s.transitionDepth === 0 && (s.snapshot = null)), o(), (l = i == null ? void 0 : i.unmount) == null || l.call(i), n.parentNode && n.parentNode.removeChild(n));
66
77
  };
67
- return document.body.appendChild(n), document.body.style.overflow = "hidden", i = r({
78
+ return document.body.appendChild(n), i = r({
68
79
  setup() {
69
- return () => g(v, {
80
+ const l = R(b().nextZIndex());
81
+ return () => v(_, {
82
+ zIndex: l,
70
83
  urlList: t,
71
84
  initialIndex: e.initialIndex ?? 0,
72
85
  hideOnClickModal: e.hideOnClickModal ?? !0,
73
86
  teleported: !0,
74
- onClose: u
87
+ onClose: d
75
88
  });
76
89
  }
77
- }), i.mount(n), s.activeClose = u, { close: u };
90
+ }), i.mount(n), s.activeClose = d, { close: d };
78
91
  }
79
- function R() {
92
+ function T() {
80
93
  const e = c().snapshot;
81
94
  return e ? { ...e, urlList: [...e.urlList] } : null;
82
95
  }
83
- function p(e) {
96
+ function g(e) {
84
97
  const t = c();
85
98
  if (!(!e || t.activeToken))
86
- return _(e);
99
+ return L(e);
87
100
  }
88
- const E = {
89
- getSnapshot: R,
90
- restore: p,
101
+ const C = {
102
+ getSnapshot: T,
103
+ restore: g,
91
104
  beginRendererTransition() {
92
105
  c().transitionDepth += 1;
93
106
  },
@@ -95,54 +108,55 @@ const E = {
95
108
  const e = c();
96
109
  if (e.transitionDepth = Math.max(0, e.transitionDepth - 1), e.transitionDepth === 0 && e.snapshot) {
97
110
  const t = { ...e.snapshot, urlList: [...e.snapshot.urlList] };
98
- e.activeClose && (e.transitionDepth = 1, e.activeClose(), e.transitionDepth = 0), p(t);
111
+ e.activeClose && (e.transitionDepth = 1, e.activeClose(), e.transitionDepth = 0), g(t);
99
112
  }
100
113
  }
101
114
  };
102
- globalThis.__QY_IMAGE_PREVIEW_INTERNAL__ = E;
103
- function w(e) {
115
+ globalThis.__QY_IMAGE_PREVIEW_INTERNAL__ = C;
116
+ function y(e) {
104
117
  return {
105
- ...b,
118
+ ...S,
106
119
  ...typeof e == "object" ? e : {}
107
120
  };
108
121
  }
109
- function T(e, t) {
110
- return (Array.isArray(e) ? e : [t]).map((n) => m(n)).filter(Boolean);
122
+ function P(e, t) {
123
+ return (Array.isArray(e) ? e : [t]).map((n) => h(n)).filter(Boolean);
111
124
  }
112
- async function C(e) {
125
+ async function k(e) {
113
126
  const t = await fetch(e, { redirect: "follow" });
114
127
  if (!t.ok) throw new Error(e);
115
128
  return t.blob();
116
129
  }
117
- async function S(e, t) {
130
+ async function M(e, t) {
118
131
  if (typeof document > "u" || typeof Image > "u")
119
- return M(e);
132
+ return A(e);
120
133
  const r = URL.createObjectURL(e);
121
134
  try {
122
- const n = await L(r), o = document.createElement("canvas"), a = P(n, t);
135
+ const n = await D(r), o = document.createElement("canvas"), a = O(n, t);
123
136
  return o.width = Math.max(1, Math.round(n.naturalWidth * a)), o.height = Math.max(1, Math.round(n.naturalHeight * a)), o.getContext("2d").drawImage(n, 0, 0, o.width, o.height), o.toDataURL(e.type || "image/jpeg", t.q / 100);
124
137
  } finally {
125
138
  URL.revokeObjectURL(r);
126
139
  }
127
140
  }
128
- function L(e) {
141
+ function D(e) {
129
142
  return new Promise((t, r) => {
130
143
  const n = new Image();
131
144
  n.onload = () => t(n), n.onerror = r, n.src = e;
132
145
  });
133
146
  }
134
- function P(e, t) {
147
+ function O(e, t) {
135
148
  const r = t.w ? t.w / e.naturalWidth : 1, n = t.h ? t.h / e.naturalHeight : 1;
136
149
  return Math.min(1, r, n);
137
150
  }
138
- function M(e) {
151
+ function A(e) {
139
152
  return new Promise((t, r) => {
140
153
  const n = new FileReader();
141
154
  n.onloadend = () => t(n.result), n.onerror = r, n.readAsDataURL(e);
142
155
  });
143
156
  }
144
157
  export {
145
- m as n,
146
- _ as o,
147
- x as r
158
+ E as a,
159
+ h as n,
160
+ L as o,
161
+ Q as r
148
162
  };
@@ -0,0 +1 @@
1
+ "use strict";const w=require("vue"),g=require("element-plus"),R=require("./overlay-stack-DeKq7jZu.cjs");let p=0,v="";function I(){if(typeof document>"u")return()=>{};p++===0&&(v=document.body.style.overflow,document.body.style.overflow="hidden");let e=!1;return()=>{e||(e=!0,--p===0&&(document.body.style.overflow=v))}}const h=Symbol.for("qynpm.image-preview.runtime");function c(){const e=globalThis;return e[h]||(e[h]={snapshot:null,activeToken:null,activeClose:null,transitionDepth:0}),e[h]}const S={w:200,h:200,q:50};function u(e){const t=String(e||"").trim();return t?t.includes("ys.diansan.com")?t.replace(/^http:\/\//,"https://").replace("ys.diansan.com","admin.qiyinbz.com"):t:""}function E(e,t=!0){const r=String(e||"").trim();if(!r)return"";const n=u(r);if(!t)return n;const o=_(t);return r.includes("ys.diansan.com")?`${n}?small=true&style=image/resize,h_${o.h},w_${o.w}`:`${n}?w=${o.w}`}async function P(e,t={}){const r=u(e);if(!r)throw new Error("图片地址不能为空");const n=t.compressor??!0;if(!n)return{src:r,source:"original"};const o=E(e,n),a=t.loadBlob??x,i=t.compressBlob??C;try{return await a(o),{src:o,source:"thumbnail"}}catch{const d=await a(r);return{src:await i(d,_(n)),source:"fallback"}}}function b(e={}){if(typeof document>"u")return{close(){}};const t=T(e.urlList,e.url);if(!t.length)return{close(){}};const r=globalThis.__QY_IMAGE_PREVIEW_CREATE_APP__??w.createApp,n=document.createElement("div"),o=I();let a=!1,i;const d={urlList:[...t],initialIndex:e.initialIndex??0,hideOnClickModal:e.hideOnClickModal??!0},s=c(),f={};s.snapshot=d,s.activeToken=f;const m=()=>{var l;a||(a=!0,s.activeToken===f&&(s.activeToken=null,s.activeClose=null,s.transitionDepth===0&&(s.snapshot=null)),o(),(l=i==null?void 0:i.unmount)==null||l.call(i),n.parentNode&&n.parentNode.removeChild(n))};return document.body.appendChild(n),i=r({setup(){const l=R.resolveOverlayZIndex(g.useZIndex().nextZIndex());return()=>w.h(g.ElImageViewer,{zIndex:l,urlList:t,initialIndex:e.initialIndex??0,hideOnClickModal:e.hideOnClickModal??!0,teleported:!0,onClose:m})}}),i.mount(n),s.activeClose=m,{close:m}}function L(){const e=c().snapshot;return e?{...e,urlList:[...e.urlList]}:null}function y(e){const t=c();if(!(!e||t.activeToken))return b(e)}const k={getSnapshot:L,restore:y,beginRendererTransition(){c().transitionDepth+=1},endRendererTransition(){const e=c();if(e.transitionDepth=Math.max(0,e.transitionDepth-1),e.transitionDepth===0&&e.snapshot){const t={...e.snapshot,urlList:[...e.snapshot.urlList]};e.activeClose&&(e.transitionDepth=1,e.activeClose(),e.transitionDepth=0),y(t)}}};globalThis.__QY_IMAGE_PREVIEW_INTERNAL__=k;function _(e){return{...S,...typeof e=="object"?e:{}}}function T(e,t){return(Array.isArray(e)?e:[t]).map(n=>u(n)).filter(Boolean)}async function x(e){const t=await fetch(e,{redirect:"follow"});if(!t.ok)throw new Error(e);return t.blob()}async function C(e,t){if(typeof document>"u"||typeof Image>"u")return O(e);const r=URL.createObjectURL(e);try{const n=await D(r),o=document.createElement("canvas"),a=M(n,t);return o.width=Math.max(1,Math.round(n.naturalWidth*a)),o.height=Math.max(1,Math.round(n.naturalHeight*a)),o.getContext("2d").drawImage(n,0,0,o.width,o.height),o.toDataURL(e.type||"image/jpeg",t.q/100)}finally{URL.revokeObjectURL(r)}}function D(e){return new Promise((t,r)=>{const n=new Image;n.onload=()=>t(n),n.onerror=r,n.src=e})}function M(e,t){const r=t.w?t.w/e.naturalWidth:1,n=t.h?t.h/e.naturalHeight:1;return Math.min(1,r,n)}function O(e){return new Promise((t,r)=>{const n=new FileReader;n.onloadend=()=>t(n.result),n.onerror=r,n.readAsDataURL(e)})}exports.acquirePreviewScrollLock=I;exports.normalizeImageSrc=u;exports.openQyImagePreview=b;exports.resolveQyImageDisplaySrc=P;
package/index.d.ts CHANGED
@@ -1,3 +1,10 @@
1
+ import type QyRecordQuoteSearchComponent from './qy-record-quote-search'
2
+ import type QyTableColumnSettingsComponent from './qy-table-column-settings'
3
+ import type QyMenuActionsComponent from './qy-menu-actions'
4
+ import type QyFormSectionComponent from './qy-form-section'
5
+ import type QyActionBarComponent from './qy-action-bar'
6
+ import type QyRemarkImageComponent from './qy-remark-image'
7
+ import type QySearchInputComponent from './qy-search-input'
1
8
  import type { App, Plugin } from 'vue'
2
9
  import type QyUploadComponent from './qy-upload'
3
10
  import type QyImageUploadComponent from './qy-image-upload'
@@ -7,6 +14,8 @@ import type QyCheckboxGroupComponent from './qy-checkbox-group'
7
14
  import type QyRadioComponent from './qy-radio'
8
15
  import type QyRadioGroupComponent from './qy-radio-group'
9
16
  import type QySelectComponent from './qy-select'
17
+ import type QyAutocompleteComponent from './qy-autocomplete'
18
+ import type QyRemoteSelectComponent from './qy-remote-select'
10
19
  import type QyTreeSelectComponent from './qy-tree-select'
11
20
  import type QySwitchComponent from './qy-switch'
12
21
  import type QyTagComponent from './qy-tag'
@@ -44,6 +53,9 @@ import type QyCardComponent from './qy-card'
44
53
  import type QyResultComponent from './qy-result'
45
54
  import type QyWatermarkComponent from './qy-watermark'
46
55
  import type QyDialogComponent from './qy-dialog'
56
+ import type QyImageComponent from './qy-image'
57
+ import type QyImagePreviewComponent from './qy-image-preview'
58
+ import type QySelectionDialogComponent from './qy-selection-dialog'
47
59
  import type QyScrollbarComponent from './qy-scrollbar'
48
60
  import type QyProgressComponent from './qy-progress'
49
61
  import type QyStatisticComponent from './qy-statistic'
@@ -51,7 +63,6 @@ import type QyAvatarComponent from './qy-avatar'
51
63
  import type QyTreeComponent from './qy-tree'
52
64
  import type QyPaginationComponent from './qy-pagination'
53
65
  import type QyInputComponent from './qy-input'
54
- import type QyInputTagComponent from './qy-input-tag'
55
66
  import type QyInputNumberComponent from './qy-input-number'
56
67
  import type QyDatePickerComponent from './qy-date-picker'
57
68
  import type QyMoneyInputComponent from './qy-money-input'
@@ -59,6 +70,7 @@ import type QyMoneyInputComponent from './qy-money-input'
59
70
  export type {
60
71
  QyPaginationBinding,
61
72
  QyPaginationEmits,
73
+ QyPaginationLayoutItem,
62
74
  QyPaginationProps
63
75
  } from './qy-pagination'
64
76
 
@@ -209,6 +221,7 @@ export type {
209
221
  } from './qy-cascader'
210
222
  export type {
211
223
  QyTooltipEffect,
224
+ QyTooltipTrigger,
212
225
  QyTooltipEmits,
213
226
  QyTooltipPlacement,
214
227
  QyTooltipProps
@@ -535,33 +548,36 @@ export type {
535
548
 
536
549
  // 根入口类型声明,对应 @qynpm/ui 的命名导出和 app.use(QyUI) 整包注册。
537
550
  export const QyUpload: typeof QyUploadComponent
538
- export const QyImage: Plugin
539
- export const QyImagePreview: Plugin
551
+ export const QyImage: typeof QyImageComponent
552
+ export const QyImagePreview: typeof QyImagePreviewComponent
553
+ export type { QyImagePreviewProps, QyImagePreviewEmits } from './qy-image-preview'
540
554
  export const QyImageUpload: typeof QyImageUploadComponent
541
555
  export const QyDialog: typeof QyDialogComponent
542
556
  export const QyButton: Plugin
543
557
  export const QyDropdown: Plugin
544
558
  export const QyInput: typeof QyInputComponent
545
- export const QyInputTag: typeof QyInputTagComponent
546
559
  export { QyInputNumber } from './qy-input-number'
547
560
  export const QyMoneyInput: typeof QyMoneyInputComponent
548
561
  export const QyDatePicker: typeof QyDatePickerComponent
549
562
  export const QyCheckbox: typeof QyCheckboxComponent
550
563
  export const QyCheckboxGroup: typeof QyCheckboxGroupComponent
551
564
  export const QyRadio: typeof QyRadioComponent
552
- export const QyAutocomplete: Plugin
553
- export const QyMenuActions: Plugin
554
- export const QyTableColumnSettings: Plugin
565
+ export const QyAutocomplete: typeof QyAutocompleteComponent
566
+ export type { QyAutocompleteProps, QyAutocompleteEmits, QyAutocompleteSlots, QyAutocompleteExposed, QyAutocompleteOption, QyAutocompleteValue, QyAutocompleteFetchSuggestions } from './qy-autocomplete'
567
+ export const QyMenuActions: typeof QyMenuActionsComponent
568
+ export const QyTableColumnSettings: typeof QyTableColumnSettingsComponent
555
569
  export const QyRadioGroup: typeof QyRadioGroupComponent
556
- export const QyRemoteSelect: Plugin
557
- export const QySearchInput: Plugin
558
- export const QyRecordQuoteSearch: Plugin
570
+ export const QyRemoteSelect: typeof QyRemoteSelectComponent
571
+ export type { QyRemoteSelectProps, QyRemoteSelectEmits, QyRemoteSelectExposed, QyRemoteSelectOption, QyRemoteSelectModelValue, QyRemoteSelectFetchMethod } from './qy-remote-select'
572
+ export const QySearchInput: typeof QySearchInputComponent
573
+ export const QyRecordQuoteSearch: typeof QyRecordQuoteSearchComponent
559
574
  export const QySelect: typeof QySelectComponent
560
575
  export const QyTreeSelect: typeof QyTreeSelectComponent
561
- export const QySelectionDialog: Plugin
576
+ export const QySelectionDialog: typeof QySelectionDialogComponent
577
+ export type { QySelectionDialogProps, QySelectionDialogEmits, QySelectionDialogExposed, QySelectionRow, QySelectionResult } from './qy-selection-dialog'
562
578
  export const QyLegacySelectionDialog: Plugin
563
- export const QyFormSection: Plugin
564
- export const QyActionBar: Plugin
579
+ export const QyFormSection: typeof QyFormSectionComponent
580
+ export const QyActionBar: typeof QyActionBarComponent
565
581
  /** @deprecated 请使用 QyUpload 的本地选择模式。 */
566
582
  export const QyFilePicker: typeof QyFilePickerComponent
567
583
  export const QySwitch: typeof QySwitchComponent
@@ -608,7 +624,7 @@ export const QyStatistic: typeof QyStatisticComponent
608
624
  export const QyAvatar: typeof QyAvatarComponent
609
625
  export const QyTree: typeof QyTreeComponent
610
626
  export const QyPagination: typeof QyPaginationComponent
611
- export const QyRemarkImage: Plugin
627
+ export const QyRemarkImage: typeof QyRemarkImageComponent
612
628
  export function parseRemarkText(remarkText: string): {
613
629
  imageUrl: string
614
630
  text: string
@@ -634,7 +650,6 @@ declare const _default: Plugin & {
634
650
  QyButton: typeof QyButton
635
651
  QyDropdown: typeof QyDropdown
636
652
  QyInput: typeof QyInput
637
- QyInputTag: typeof QyInputTagComponent
638
653
  QyInputNumber: typeof QyInputNumberComponent
639
654
  QyMoneyInput: typeof QyMoneyInput
640
655
  QyDatePicker: typeof QyDatePickerComponent
@@ -703,3 +718,17 @@ declare const _default: Plugin & {
703
718
  }
704
719
 
705
720
  export default _default
721
+
722
+ export type { QySearchSuggestion, QySearchSuggestionGroup, QySearchSuggestionInput, QySearchInputTrimMode, QySearchInputProps, QySearchInputEmits, QySearchInputExposed, QySearchInputSlots } from './qy-search-input'
723
+
724
+ export type { QyRemarkImageSelectValue, QyRemarkImageSelectOption, QyRemarkImageUploadContext, QyRemarkImageProps, QyRemarkImageEmits, QyRemarkImageExposed } from './qy-remark-image'
725
+
726
+ export type { QyActionBarProps, QyActionBarSlots } from './qy-action-bar'
727
+
728
+ export type { QyFormSectionProps, QyFormSectionEmits, QyFormSectionSlots } from './qy-form-section'
729
+
730
+ export type { QyMenuActionType, QyMenuActionContext, QyMenuAction, QyMenuActionsProps, QyMenuActionsEmits } from './qy-menu-actions'
731
+
732
+ export type { QyColumnFixed, QyTableColumnSetting, QyTableColumnSettingsProps, QyTableColumnSettingsEmits } from './qy-table-column-settings'
733
+
734
+ export type { QyRecordQuoteSearchStatus, QyRecordQuoteSearchPayload, QyRecordQuoteSearchProps, QyRecordQuoteSearchEmits, QyRecordQuoteSearchExposed, QyRecordQuoteSearchSlots } from './qy-record-quote-search'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qynpm/ui",
3
- "version": "1.0.44",
3
+ "version": "1.0.46",
4
4
  "description": "起印公共 UI 组件包。",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,5 +1,17 @@
1
- import type { DefineComponent, Plugin } from 'vue'
2
-
3
- declare const QyActionBar: DefineComponent<any, any, any> & Plugin
4
-
1
+ import type { ComponentOptionsMixin, DefineComponent, Plugin, PublicProps, SlotsType } from 'vue'
2
+ export interface QyActionBarProps {
3
+ sticky?: boolean
4
+ offsetBottom?: number
5
+ bordered?: boolean
6
+ shadow?: boolean
7
+ wrap?: boolean
8
+ justify?: 'between' | 'end' | 'start'
9
+ background?: string
10
+ }
11
+ export interface QyActionBarSlots {
12
+ left?: () => unknown
13
+ default?: () => unknown
14
+ right?: () => unknown
15
+ }
16
+ declare const QyActionBar: DefineComponent<QyActionBarProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<QyActionBarProps>, {}, SlotsType<QyActionBarSlots>> & Plugin
5
17
  export default QyActionBar
@@ -1,5 +1,46 @@
1
- import type { DefineComponent, Plugin } from 'vue'
1
+ import type { ComponentOptionsMixin, DefineComponent, EmitsToProps, Plugin, PublicProps, SlotsType, Ref } from 'vue'
2
2
 
3
- declare const QyAutocomplete: DefineComponent<any, any, any> & Plugin
3
+ export type QyAutocompleteOption = Record<string, any>
4
+ export type QyAutocompleteValue = string | number
5
+ export type QyAutocompleteFetchSuggestions = (
6
+ query: string, callback: (items: QyAutocompleteOption[]) => void
7
+ ) => void | QyAutocompleteOption[] | Promise<void | QyAutocompleteOption[]>
8
+ export interface QyAutocompleteProps {
9
+ modelValue?: QyAutocompleteValue | null
10
+ options?: QyAutocompleteOption[] | { value?: QyAutocompleteOption[] | Ref<QyAutocompleteOption[]> }
11
+ valueKey?: string
12
+ labelKey?: string
13
+ placeholder?: string
14
+ disabled?: boolean
15
+ clearable?: boolean
16
+ size?: 'small' | 'default' | 'large'
17
+ teleported?: boolean
18
+ appendTo?: string
19
+ popperClass?: string
20
+ filterMethod?: (query: string, option: QyAutocompleteOption) => boolean
21
+ fetchSuggestions?: QyAutocompleteFetchSuggestions
22
+ }
23
+ export type QyAutocompleteEmits = {
24
+ 'update:modelValue': (value: QyAutocompleteValue) => void
25
+ input: (value: string) => void
26
+ change: (value: QyAutocompleteValue) => void
27
+ select: (option: QyAutocompleteOption) => void
28
+ focus: (event: FocusEvent) => void
29
+ blur: (event: FocusEvent) => void
30
+ clear: () => void
31
+ }
32
+ export interface QyAutocompleteSlots {
33
+ default?: (props: { item: QyAutocompleteOption }) => unknown
34
+ prefix?: () => unknown
35
+ suffix?: () => unknown
36
+ prepend?: () => unknown
37
+ append?: () => unknown
38
+ }
39
+ export interface QyAutocompleteExposed {
40
+ querySearch(query: string, callback: (items: QyAutocompleteOption[]) => void): void
41
+ focus(): void
42
+ blur(): void
43
+ }
44
+ declare const QyAutocomplete: DefineComponent<QyAutocompleteProps, QyAutocompleteExposed, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, QyAutocompleteEmits, string, PublicProps, Readonly<QyAutocompleteProps> & EmitsToProps<QyAutocompleteEmits>, {}, SlotsType<QyAutocompleteSlots>> & Plugin
4
45
 
5
46
  export default QyAutocomplete
@@ -11,6 +11,7 @@ export interface QyCheckboxProps {
11
11
  modelValue?: QyCheckboxValue
12
12
  value?: QyCheckboxValue
13
13
  indeterminate?: boolean
14
+ validateEvent?: boolean
14
15
  disabled?: boolean
15
16
  size?: QyCheckboxSize
16
17
  trueValue?: QyCheckboxValue