hs-admin-ui 2.1.9 → 2.1.10

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 (762) hide show
  1. package/LICENSE +20 -20
  2. package/package.json +100 -100
  3. package/dist/401-4YR5Y2Tm.js +0 -1
  4. package/dist/401-4YR5Y2Tm.js.gz +0 -0
  5. package/dist/401-pPini-LQ.mjs +0 -47
  6. package/dist/401-pPini-LQ.mjs.gz +0 -0
  7. package/dist/404-chh7HeEq.mjs +0 -47
  8. package/dist/404-chh7HeEq.mjs.gz +0 -0
  9. package/dist/404-dhCEUgfO.js +0 -1
  10. package/dist/404-dhCEUgfO.js.gz +0 -0
  11. package/dist/account-_V_GSNEu.js +0 -1
  12. package/dist/account-_V_GSNEu.js.gz +0 -0
  13. package/dist/account-sfpk148K.mjs +0 -308
  14. package/dist/account-sfpk148K.mjs.gz +0 -0
  15. package/dist/aside-8C7xfVU-.mjs +0 -105
  16. package/dist/aside-8C7xfVU-.mjs.gz +0 -0
  17. package/dist/aside-YMQJEHBY.js +0 -1
  18. package/dist/aside-YMQJEHBY.js.gz +0 -0
  19. package/dist/baseBtnConfig-1QiNUkE9.js +0 -1
  20. package/dist/baseBtnConfig-1QiNUkE9.js.gz +0 -0
  21. package/dist/baseBtnConfig-iQpEuBPd.mjs +0 -261
  22. package/dist/baseBtnConfig-iQpEuBPd.mjs.gz +0 -0
  23. package/dist/baseFormConfig-NpFm5qQc.js +0 -1
  24. package/dist/baseFormConfig-NpFm5qQc.js.gz +0 -0
  25. package/dist/baseFormConfig-OZYeITAW.mjs +0 -565
  26. package/dist/baseFormConfig-OZYeITAW.mjs.gz +0 -0
  27. package/dist/btnIndex-OOAi_XF4.mjs +0 -247
  28. package/dist/btnIndex-OOAi_XF4.mjs.gz +0 -0
  29. package/dist/btnIndex-w92YHMh4.js +0 -1
  30. package/dist/btnIndex-w92YHMh4.js.gz +0 -0
  31. package/dist/classic-7hj-M9mT.mjs +0 -61
  32. package/dist/classic-7hj-M9mT.mjs.gz +0 -0
  33. package/dist/classic-DhlY3rfn.js +0 -1
  34. package/dist/classic-DhlY3rfn.js.gz +0 -0
  35. package/dist/columns-7HpaJnZp.js +0 -1
  36. package/dist/columns-7HpaJnZp.js.gz +0 -0
  37. package/dist/columns-GxbohTZe.mjs +0 -67
  38. package/dist/columns-GxbohTZe.mjs.gz +0 -0
  39. package/dist/columnsAside-LPC6kQ9M.js +0 -1
  40. package/dist/columnsAside-LPC6kQ9M.js.gz +0 -0
  41. package/dist/columnsAside-ix2IQxQ-.mjs +0 -157
  42. package/dist/columnsAside-ix2IQxQ-.mjs.gz +0 -0
  43. package/dist/contextmenu-1NR1Vm7H.mjs +0 -97
  44. package/dist/contextmenu-1NR1Vm7H.mjs.gz +0 -0
  45. package/dist/contextmenu-JRwBt6AG.js +0 -1
  46. package/dist/contextmenu-JRwBt6AG.js.gz +0 -0
  47. package/dist/contextmenu-Uin7SwLM.mjs +0 -99
  48. package/dist/contextmenu-Uin7SwLM.mjs.gz +0 -0
  49. package/dist/contextmenu-danSBVkk.js +0 -1
  50. package/dist/contextmenu-danSBVkk.js.gz +0 -0
  51. package/dist/defaults-8ydx8azc.js +0 -1
  52. package/dist/defaults-8ydx8azc.js.gz +0 -0
  53. package/dist/defaults-Rt-8DEzg.mjs +0 -66
  54. package/dist/defaults-Rt-8DEzg.mjs.gz +0 -0
  55. package/dist/dialog-6ORPXAaD.mjs +0 -4
  56. package/dist/dialog-ARVUB34V.mjs +0 -429
  57. package/dist/dialog-ARVUB34V.mjs.gz +0 -0
  58. package/dist/dialog-An-djowy.js +0 -1
  59. package/dist/dialog-An-djowy.js.gz +0 -0
  60. package/dist/dialog-C2K3ffdc.js +0 -1
  61. package/dist/dialog-Jy5HumWl.js +0 -1
  62. package/dist/dialog-NJFfBsoe.mjs +0 -319
  63. package/dist/dialog-NJFfBsoe.mjs.gz +0 -0
  64. package/dist/dialog-RygjWcmL.js +0 -1
  65. package/dist/dialog-_5qJS1d0.mjs +0 -329
  66. package/dist/dialog-_5qJS1d0.mjs.gz +0 -0
  67. package/dist/dialog-aEozuU_Q.mjs +0 -4
  68. package/dist/dialog-e__UUaA0.js +0 -1
  69. package/dist/dialog-e__UUaA0.js.gz +0 -0
  70. package/dist/dialog-sZIy2dAG.js +0 -1
  71. package/dist/dialog-sZIy2dAG.js.gz +0 -0
  72. package/dist/dialog-uSA1h7ix.mjs +0 -10
  73. package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-ZkmUfXeI.mjs +0 -179
  74. package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-ZkmUfXeI.mjs.gz +0 -0
  75. package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-yga_CeF5.js +0 -1
  76. package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-yga_CeF5.js.gz +0 -0
  77. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-ifYb7VzM.js +0 -1
  78. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-ifYb7VzM.js.gz +0 -0
  79. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-tmdq8Fiv.mjs +0 -549
  80. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-tmdq8Fiv.mjs.gz +0 -0
  81. package/dist/dictDialog--wrjImN-.js +0 -1
  82. package/dist/dictDialog-GHrHoYIl.mjs +0 -4
  83. package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-XIlHRzD0.js +0 -1
  84. package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-XIlHRzD0.js.gz +0 -0
  85. package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-r7mzZfc_.mjs +0 -122
  86. package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-r7mzZfc_.mjs.gz +0 -0
  87. package/dist/dictItemDialog-7mmFdyuT.js +0 -1
  88. package/dist/dictItemDialog-tlHVfl2_.mjs +0 -4
  89. package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-MLIXuEtV.js +0 -1
  90. package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-MLIXuEtV.js.gz +0 -0
  91. package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-rMTYVH2D.mjs +0 -201
  92. package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-rMTYVH2D.mjs.gz +0 -0
  93. package/dist/favicon.ico +0 -0
  94. package/dist/formConfig-AvtTcsbF.js +0 -1
  95. package/dist/formConfig-AvtTcsbF.js.gz +0 -0
  96. package/dist/formConfig-r4jP2hpz.mjs +0 -326
  97. package/dist/formConfig-r4jP2hpz.mjs.gz +0 -0
  98. package/dist/header-2HPNk2IV.js +0 -1
  99. package/dist/header-W86byyDK.mjs +0 -24
  100. package/dist/horizontal-1RL6MsmV.js +0 -1
  101. package/dist/horizontal-1RL6MsmV.js.gz +0 -0
  102. package/dist/horizontal-mbd8-ToP.mjs +0 -109
  103. package/dist/horizontal-mbd8-ToP.mjs.gz +0 -0
  104. package/dist/hsAttrBtn-X4ZEeCFv.mjs +0 -4
  105. package/dist/hsAttrBtn-jaurE6Oj.js +0 -1
  106. package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-OmpE3-_v.mjs +0 -103
  107. package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-OmpE3-_v.mjs.gz +0 -0
  108. package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-isR7PgYf.js +0 -1
  109. package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-isR7PgYf.js.gz +0 -0
  110. package/dist/hsAttrForm-Hvmby3bi.mjs +0 -4
  111. package/dist/hsAttrForm-KhzTptAi.js +0 -1
  112. package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-BElpN03R.mjs +0 -211
  113. package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-BElpN03R.mjs.gz +0 -0
  114. package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-h6IFUsBO.js +0 -1
  115. package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-h6IFUsBO.js.gz +0 -0
  116. package/dist/hsBtnConfigList--se_FWpD.js +0 -1
  117. package/dist/hsBtnConfigList--se_FWpD.js.gz +0 -0
  118. package/dist/hsBtnConfigList-0ogExyIR.mjs +0 -87
  119. package/dist/hsBtnConfigList-0ogExyIR.mjs.gz +0 -0
  120. package/dist/hsBtnItemConfig-ovjg9uy0.mjs +0 -4
  121. package/dist/hsBtnItemConfig-uy7Px4sO.js +0 -1
  122. package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-5aLIAl89.mjs +0 -84
  123. package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-5aLIAl89.mjs.gz +0 -0
  124. package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-sRJk_N_3.js +0 -1
  125. package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-sRJk_N_3.js.gz +0 -0
  126. package/dist/hsBtnPanel-CmSUWYQM.js +0 -1
  127. package/dist/hsBtnPanel-m-ZF39XJ.mjs +0 -4
  128. package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-1mZcKeHO.js +0 -1
  129. package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-1mZcKeHO.js.gz +0 -0
  130. package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-IEF9Fxv3.mjs +0 -56
  131. package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-IEF9Fxv3.mjs.gz +0 -0
  132. package/dist/hsExpand-RSWOvEHx.mjs +0 -4
  133. package/dist/hsExpand-ZRNYyYnQ.js +0 -1
  134. package/dist/hsExpand.vue_vue_type_script_setup_true_lang-CbvNde0H.js +0 -1
  135. package/dist/hsExpand.vue_vue_type_script_setup_true_lang-lZF_Q-Sr.mjs +0 -46
  136. package/dist/hsExpand.vue_vue_type_script_setup_true_lang-lZF_Q-Sr.mjs.gz +0 -0
  137. package/dist/hsFormConfig-arkDRR9B.mjs +0 -178
  138. package/dist/hsFormConfig-arkDRR9B.mjs.gz +0 -0
  139. package/dist/hsFormConfig-ebP-jeYt.js +0 -1
  140. package/dist/hsFormConfig-ebP-jeYt.js.gz +0 -0
  141. package/dist/hsFormConfigList-At4iHQCo.js +0 -1
  142. package/dist/hsFormConfigList-At4iHQCo.js.gz +0 -0
  143. package/dist/hsFormConfigList-cG_ch8JY.mjs +0 -232
  144. package/dist/hsFormConfigList-cG_ch8JY.mjs.gz +0 -0
  145. package/dist/hsFormPanel-RhmnxC0W.js +0 -1
  146. package/dist/hsFormPanel-bbgLFtyB.mjs +0 -4
  147. package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-acNwr8xW.js +0 -1
  148. package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-acNwr8xW.js.gz +0 -0
  149. package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-tj2Hx6TM.mjs +0 -172
  150. package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-tj2Hx6TM.mjs.gz +0 -0
  151. package/dist/hsFormParse-5d_pzr4H.js +0 -1
  152. package/dist/hsFormParse-mg_-zGA2.mjs +0 -4
  153. package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-ggu41WcG.js +0 -1
  154. package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-ggu41WcG.js.gz +0 -0
  155. package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-iJzJEcHU.mjs +0 -99
  156. package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-iJzJEcHU.mjs.gz +0 -0
  157. package/dist/hsPageTree-d_9v6RZg.mjs +0 -90
  158. package/dist/hsPageTree-d_9v6RZg.mjs.gz +0 -0
  159. package/dist/hsPageTree-l0ZzJz4v.js +0 -1
  160. package/dist/hsPageTree-l0ZzJz4v.js.gz +0 -0
  161. package/dist/hsPanelItem-hyh0lVgs.mjs +0 -4
  162. package/dist/hsPanelItem-jyiez_1g.js +0 -1
  163. package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-5qK6aTw3.mjs +0 -76
  164. package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-5qK6aTw3.mjs.gz +0 -0
  165. package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-He_5z2JN.js +0 -1
  166. package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-He_5z2JN.js.gz +0 -0
  167. package/dist/iframes-2gSGwqRJ.js +0 -1
  168. package/dist/iframes-2gSGwqRJ.js.gz +0 -0
  169. package/dist/iframes-xWFyFREu.mjs +0 -102
  170. package/dist/iframes-xWFyFREu.mjs.gz +0 -0
  171. package/dist/index-0By6gzkG.mjs +0 -845
  172. package/dist/index-0By6gzkG.mjs.gz +0 -0
  173. package/dist/index-0I2dj9am.js +0 -1
  174. package/dist/index-0I2dj9am.js.gz +0 -0
  175. package/dist/index-1HqI3YKA.js +0 -1
  176. package/dist/index-1HqI3YKA.js.gz +0 -0
  177. package/dist/index-1NgK1j0s.js +0 -1
  178. package/dist/index-306K_ZM8.js +0 -195
  179. package/dist/index-306K_ZM8.js.gz +0 -0
  180. package/dist/index-5Gmx6M7o.mjs +0 -93658
  181. package/dist/index-5Gmx6M7o.mjs.gz +0 -0
  182. package/dist/index-5eIX35Dn.mjs +0 -55
  183. package/dist/index-5eIX35Dn.mjs.gz +0 -0
  184. package/dist/index-5jumHIWN.js +0 -1
  185. package/dist/index-6JV_tjsR.mjs +0 -54
  186. package/dist/index-6JV_tjsR.mjs.gz +0 -0
  187. package/dist/index-7KDf0PSM.js +0 -1
  188. package/dist/index-7KDf0PSM.js.gz +0 -0
  189. package/dist/index-8AvBm7ce.js +0 -1
  190. package/dist/index-8AvBm7ce.js.gz +0 -0
  191. package/dist/index-9Fi3HCUj.mjs +0 -217
  192. package/dist/index-9Fi3HCUj.mjs.gz +0 -0
  193. package/dist/index-9woBqiJJ.js +0 -1
  194. package/dist/index-9woBqiJJ.js.gz +0 -0
  195. package/dist/index-9y3clZX4.mjs +0 -220
  196. package/dist/index-9y3clZX4.mjs.gz +0 -0
  197. package/dist/index-A7nnM7c5.mjs +0 -10
  198. package/dist/index-AXv_s1qi.js +0 -1
  199. package/dist/index-AXv_s1qi.js.gz +0 -0
  200. package/dist/index-C2_Bu4eD.js +0 -1
  201. package/dist/index-C2_Bu4eD.js.gz +0 -0
  202. package/dist/index-EDkcpSEk.js +0 -1
  203. package/dist/index-EDkcpSEk.js.gz +0 -0
  204. package/dist/index-EmXbKLhK.mjs +0 -55
  205. package/dist/index-EmXbKLhK.mjs.gz +0 -0
  206. package/dist/index-EwgwPptC.mjs +0 -65
  207. package/dist/index-EwgwPptC.mjs.gz +0 -0
  208. package/dist/index-GLPEPPqB.mjs +0 -4
  209. package/dist/index-KaQo7Xxf.mjs +0 -18
  210. package/dist/index-L1W6vmsH.mjs +0 -29
  211. package/dist/index-LMSE2Np_.js +0 -1
  212. package/dist/index-LMSE2Np_.js.gz +0 -0
  213. package/dist/index-M8XB3UPW.js +0 -1
  214. package/dist/index-MUTsl5Wh.mjs +0 -149
  215. package/dist/index-MUTsl5Wh.mjs.gz +0 -0
  216. package/dist/index-OlPzc4XO.mjs +0 -320
  217. package/dist/index-OlPzc4XO.mjs.gz +0 -0
  218. package/dist/index-Q4_3i_J-.js +0 -1
  219. package/dist/index-Q4_3i_J-.js.gz +0 -0
  220. package/dist/index-Rc8FbFxM.js +0 -1
  221. package/dist/index-Rc8FbFxM.js.gz +0 -0
  222. package/dist/index-TNHRUJeO.mjs +0 -41
  223. package/dist/index-TNHRUJeO.mjs.gz +0 -0
  224. package/dist/index-WE38vBpj.js +0 -1
  225. package/dist/index-XOZpjwX8.mjs +0 -220
  226. package/dist/index-XOZpjwX8.mjs.gz +0 -0
  227. package/dist/index-XqaoJ5cw.mjs +0 -29
  228. package/dist/index-_oVKJLUN.mjs +0 -4
  229. package/dist/index-aAmvvhGP.js +0 -1
  230. package/dist/index-aAmvvhGP.js.gz +0 -0
  231. package/dist/index-bwSxI4zC.mjs +0 -73
  232. package/dist/index-bwSxI4zC.mjs.gz +0 -0
  233. package/dist/index-ceHiyNpB.mjs +0 -62
  234. package/dist/index-ceHiyNpB.mjs.gz +0 -0
  235. package/dist/index-dJ6r3PZR.mjs +0 -20
  236. package/dist/index-dMmkZukx.mjs +0 -4
  237. package/dist/index-e6VxsJgs.mjs +0 -34
  238. package/dist/index-e6VxsJgs.mjs.gz +0 -0
  239. package/dist/index-eE71odRG.js +0 -1
  240. package/dist/index-fByiznxz.js +0 -1
  241. package/dist/index-fByiznxz.js.gz +0 -0
  242. package/dist/index-gOM2I1mN.mjs +0 -88
  243. package/dist/index-gOM2I1mN.mjs.gz +0 -0
  244. package/dist/index-hMkJPLcq.js +0 -1
  245. package/dist/index-htEaNa-F.mjs +0 -108
  246. package/dist/index-htEaNa-F.mjs.gz +0 -0
  247. package/dist/index-iMLajlBT.mjs +0 -65
  248. package/dist/index-iMLajlBT.mjs.gz +0 -0
  249. package/dist/index-jLmzz19u.js +0 -1
  250. package/dist/index-jLmzz19u.js.gz +0 -0
  251. package/dist/index-kCR9nicJ.js +0 -1
  252. package/dist/index-kCR9nicJ.js.gz +0 -0
  253. package/dist/index-kHqKdmMl.js +0 -1
  254. package/dist/index-kHqKdmMl.js.gz +0 -0
  255. package/dist/index-kUpREBkD.mjs +0 -231
  256. package/dist/index-kUpREBkD.mjs.gz +0 -0
  257. package/dist/index-kZGQVFD6.js +0 -1
  258. package/dist/index-l2j9CsU3.js +0 -1
  259. package/dist/index-mLZP993T.mjs +0 -59
  260. package/dist/index-mLZP993T.mjs.gz +0 -0
  261. package/dist/index-oIN2B1CK.js +0 -1
  262. package/dist/index-oIN2B1CK.js.gz +0 -0
  263. package/dist/index-pxtCt_ZD.js +0 -1
  264. package/dist/index-pxtCt_ZD.js.gz +0 -0
  265. package/dist/index-quQk47K7.js +0 -1
  266. package/dist/index-quQk47K7.js.gz +0 -0
  267. package/dist/index-saPxEyyM.mjs +0 -101
  268. package/dist/index-saPxEyyM.mjs.gz +0 -0
  269. package/dist/index-tbvDr2pC.js +0 -1
  270. package/dist/index-tbvDr2pC.js.gz +0 -0
  271. package/dist/index-uIbkD9On.mjs +0 -132
  272. package/dist/index-uIbkD9On.mjs.gz +0 -0
  273. package/dist/index-uqos7TGn.mjs +0 -229
  274. package/dist/index-uqos7TGn.mjs.gz +0 -0
  275. package/dist/index-uyjnllzm.js +0 -1
  276. package/dist/index-uyjnllzm.js.gz +0 -0
  277. package/dist/index-w6WR98Gy.js +0 -1
  278. package/dist/index-w6WR98Gy.js.gz +0 -0
  279. package/dist/index-wogkG8UV.mjs +0 -67
  280. package/dist/index-wogkG8UV.mjs.gz +0 -0
  281. package/dist/index-z0qguI3O.js +0 -1
  282. package/dist/index-z0qguI3O.js.gz +0 -0
  283. package/dist/index.js +0 -1
  284. package/dist/index.mjs +0 -13
  285. package/dist/index.vue_vue_type_script_setup_true_lang-GobBqxwA.mjs +0 -30
  286. package/dist/index.vue_vue_type_script_setup_true_lang-HUp206Tu.js +0 -1
  287. package/dist/index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-YxjsL-b6.js +0 -1
  288. package/dist/index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-YxjsL-b6.js.gz +0 -0
  289. package/dist/index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-xGZYmlN-.mjs +0 -77
  290. package/dist/index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-xGZYmlN-.mjs.gz +0 -0
  291. package/dist/link-0xS9-J1S.mjs +0 -50
  292. package/dist/link-0xS9-J1S.mjs.gz +0 -0
  293. package/dist/link-mIHEr0Jg.js +0 -1
  294. package/dist/link-mIHEr0Jg.js.gz +0 -0
  295. package/dist/list-VMJcPpme.js +0 -1
  296. package/dist/list-VMJcPpme.js.gz +0 -0
  297. package/dist/list-wiZWcorr.mjs +0 -74
  298. package/dist/list-wiZWcorr.mjs.gz +0 -0
  299. package/dist/logo-mini-BSd8j4as.js +0 -1
  300. package/dist/logo-mini-BSd8j4as.js.gz +0 -0
  301. package/dist/logo-mini-lrz9izS3.mjs +0 -4
  302. package/dist/logo-mini-lrz9izS3.mjs.gz +0 -0
  303. package/dist/main-1rT4uO_8.js +0 -1
  304. package/dist/main-1rT4uO_8.js.gz +0 -0
  305. package/dist/main-ooDsyfQK.mjs +0 -47
  306. package/dist/main-ooDsyfQK.mjs.gz +0 -0
  307. package/dist/mobile-J_8U4RPD.js +0 -1
  308. package/dist/mobile-J_8U4RPD.js.gz +0 -0
  309. package/dist/mobile-fV_J0_KI.mjs +0 -104
  310. package/dist/mobile-fV_J0_KI.mjs.gz +0 -0
  311. package/dist/parent-16LwYrMZ.mjs +0 -95
  312. package/dist/parent-16LwYrMZ.mjs.gz +0 -0
  313. package/dist/parent-ykKMTuXD.js +0 -1
  314. package/dist/parent-ykKMTuXD.js.gz +0 -0
  315. package/dist/roleItem-6vrJPOEE.mjs +0 -83
  316. package/dist/roleItem-6vrJPOEE.mjs.gz +0 -0
  317. package/dist/roleItem-Vdj2NeR5.js +0 -1
  318. package/dist/roleItem-Vdj2NeR5.js.gz +0 -0
  319. package/dist/saveForm-icMuS8A6.mjs +0 -4
  320. package/dist/saveForm-qBvN_8rp.js +0 -1
  321. package/dist/saveForm.vue_vue_type_script_setup_true_lang-kjpBZvHh.js +0 -1
  322. package/dist/saveForm.vue_vue_type_script_setup_true_lang-kjpBZvHh.js.gz +0 -0
  323. package/dist/saveForm.vue_vue_type_script_setup_true_lang-sR_RsMem.mjs +0 -273
  324. package/dist/saveForm.vue_vue_type_script_setup_true_lang-sR_RsMem.mjs.gz +0 -0
  325. package/dist/scan-Kn1ZecWu.mjs +0 -544
  326. package/dist/scan-Kn1ZecWu.mjs.gz +0 -0
  327. package/dist/scan-S6y2KsIy.js +0 -1
  328. package/dist/scan-S6y2KsIy.js.gz +0 -0
  329. package/dist/search-09TW3yRG.mjs +0 -85
  330. package/dist/search-09TW3yRG.mjs.gz +0 -0
  331. package/dist/search-VBIOGQBi.js +0 -1
  332. package/dist/search-VBIOGQBi.js.gz +0 -0
  333. package/dist/selectConfig-hngZwKSW.js +0 -1
  334. package/dist/selectConfig-hngZwKSW.js.gz +0 -0
  335. package/dist/selectConfig-kGaQuSOI.mjs +0 -536
  336. package/dist/selectConfig-kGaQuSOI.mjs.gz +0 -0
  337. package/dist/style.css +0 -1
  338. package/dist/style.css.gz +0 -0
  339. package/dist/subItem-bUuqPbB9.mjs +0 -66
  340. package/dist/subItem-bUuqPbB9.mjs.gz +0 -0
  341. package/dist/subItem-e_O1kNJ0.js +0 -1
  342. package/dist/subItem-e_O1kNJ0.js.gz +0 -0
  343. package/dist/tagsView-c9GMUX2O.mjs +0 -1568
  344. package/dist/tagsView-c9GMUX2O.mjs.gz +0 -0
  345. package/dist/tagsView-wC1QNNWE.js +0 -6
  346. package/dist/tagsView-wC1QNNWE.js.gz +0 -0
  347. package/dist/transverse-dHJkqp08.mjs +0 -51
  348. package/dist/transverse-dHJkqp08.mjs.gz +0 -0
  349. package/dist/transverse-vC85WnEi.js +0 -1
  350. package/dist/transverse-vC85WnEi.js.gz +0 -0
  351. package/dist/types/api/bizApiController/index.d.ts +0 -5
  352. package/dist/types/api/bizApiController/type.d.ts +0 -19
  353. package/dist/types/api/btnConfigController/index.d.ts +0 -8
  354. package/dist/types/api/btnConfigController/type.d.ts +0 -76
  355. package/dist/types/api/businessController/index.d.ts +0 -4
  356. package/dist/types/api/businessController/type.d.ts +0 -24
  357. package/dist/types/api/dataPermissionController/index.d.ts +0 -6
  358. package/dist/types/api/dataPermissionController/type.d.ts +0 -33
  359. package/dist/types/api/dictController/index.d.ts +0 -12
  360. package/dist/types/api/dictController/type.d.ts +0 -96
  361. package/dist/types/api/fieldConfigController/index.d.ts +0 -17
  362. package/dist/types/api/fieldConfigController/type.d.ts +0 -270
  363. package/dist/types/api/fileController/index.d.ts +0 -18
  364. package/dist/types/api/fileController/type.d.ts +0 -49
  365. package/dist/types/api/getApiController/index.d.ts +0 -4
  366. package/dist/types/api/index.d.ts +0 -22
  367. package/dist/types/api/loginController/index.d.ts +0 -6
  368. package/dist/types/api/loginController/type.d.ts +0 -2
  369. package/dist/types/api/menuController/index.d.ts +0 -11
  370. package/dist/types/api/menuController/type.d.ts +0 -57
  371. package/dist/types/api/systemController/index.d.ts +0 -3
  372. package/dist/types/api/systemController/type.d.ts +0 -19
  373. package/dist/types/api/userController/index.d.ts +0 -3
  374. package/dist/types/api/userController/type.d.ts +0 -18
  375. package/dist/types/components/base/hsAffix/src/hsAffix.vue.d.ts +0 -10
  376. package/dist/types/components/base/hsAlert/src/hsAlert.vue.d.ts +0 -10
  377. package/dist/types/components/base/hsAutocomplete/src/hsAutocomplete.vue.d.ts +0 -10
  378. package/dist/types/components/base/hsBadge/src/hsBadge.vue.d.ts +0 -10
  379. package/dist/types/components/base/hsButton/src/hsButton.vue.d.ts +0 -14
  380. package/dist/types/components/base/hsButton/src/hsButtonGroup.vue.d.ts +0 -8
  381. package/dist/types/components/base/hsButton/useButtonEvents.d.ts +0 -9
  382. package/dist/types/components/base/hsCalendar/src/hsCalendar.vue.d.ts +0 -10
  383. package/dist/types/components/base/hsCarousel/src/hsCarousel.vue.d.ts +0 -10
  384. package/dist/types/components/base/hsCarousel/src/hsCarouselItem.vue.d.ts +0 -10
  385. package/dist/types/components/base/hsCascader/src/hsCascader.vue.d.ts +0 -10
  386. package/dist/types/components/base/hsCascader/src/hsCascaderPanel.vue.d.ts +0 -10
  387. package/dist/types/components/base/hsCheckbox/src/hsCheckbox.vue.d.ts +0 -10
  388. package/dist/types/components/base/hsCheckbox/src/hsCheckboxButton.vue.d.ts +0 -10
  389. package/dist/types/components/base/hsCheckbox/src/hsCheckboxGroup.vue.d.ts +0 -10
  390. package/dist/types/components/base/hsCol/src/hsCol.vue.d.ts +0 -10
  391. package/dist/types/components/base/hsCollapse/src/hsCollapse.vue.d.ts +0 -10
  392. package/dist/types/components/base/hsCollapse/src/hsCollapseItem.vue.d.ts +0 -10
  393. package/dist/types/components/base/hsColorPicker/src/hsColorPicker.vue.d.ts +0 -5
  394. package/dist/types/components/base/hsDatePicker/src/hsDatePicker.vue.d.ts +0 -10
  395. package/dist/types/components/base/hsDialog/src/hsDialog.vue.d.ts +0 -10
  396. package/dist/types/components/base/hsDrawer/src/hsDrawer.vue.d.ts +0 -10
  397. package/dist/types/components/base/hsDropdown/src/hsDropdown.vue.d.ts +0 -10
  398. package/dist/types/components/base/hsDropdown/src/hsDropdownItem.vue.d.ts +0 -10
  399. package/dist/types/components/base/hsDropdown/src/hsDropdownMenu.vue.d.ts +0 -10
  400. package/dist/types/components/base/hsEmpty/src/hsEmpty.vue.d.ts +0 -12
  401. package/dist/types/components/base/hsForm/src/hsForm.vue.d.ts +0 -10
  402. package/dist/types/components/base/hsForm/src/hsFormItem.vue.d.ts +0 -10
  403. package/dist/types/components/base/hsGetApi/src/hsGetApis.vue.d.ts +0 -3
  404. package/dist/types/components/base/hsGetApi/useGetApis.d.ts +0 -119
  405. package/dist/types/components/base/hsImage/src/hsImage.vue.d.ts +0 -12
  406. package/dist/types/components/base/hsImageViewer/src/hsImageViewer.vue.d.ts +0 -10
  407. package/dist/types/components/base/hsInput/src/hsInput.vue.d.ts +0 -11
  408. package/dist/types/components/base/hsInput/useInputEvents.d.ts +0 -13
  409. package/dist/types/components/base/hsInputNumber/src/hsInputNumber.vue.d.ts +0 -5
  410. package/dist/types/components/base/hsPopconfirm/src/hsPopconfirm.vue.d.ts +0 -10
  411. package/dist/types/components/base/hsPopover/src/hsPopover.vue.d.ts +0 -10
  412. package/dist/types/components/base/hsProgress/src/hsProgress.vue.d.ts +0 -10
  413. package/dist/types/components/base/hsRadio/src/hsRadio.vue.d.ts +0 -10
  414. package/dist/types/components/base/hsRadio/src/hsRadioButton.vue.d.ts +0 -10
  415. package/dist/types/components/base/hsRadio/src/hsRadioGroup.vue.d.ts +0 -10
  416. package/dist/types/components/base/hsRate/src/hsRate.vue.d.ts +0 -5
  417. package/dist/types/components/base/hsResult/src/hsResult.vue.d.ts +0 -10
  418. package/dist/types/components/base/hsRow/src/hsRow.vue.d.ts +0 -10
  419. package/dist/types/components/base/hsScrollbar/src/hsScrollbar.vue.d.ts +0 -11
  420. package/dist/types/components/base/hsSelect/src/hsOption.vue.d.ts +0 -8
  421. package/dist/types/components/base/hsSelect/src/hsOptionGroup.vue.d.ts +0 -8
  422. package/dist/types/components/base/hsSelect/src/hsSelect.vue.d.ts +0 -24
  423. package/dist/types/components/base/hsSelect/useSelectEvents.d.ts +0 -15
  424. package/dist/types/components/base/hsSlider/src/hsSlider.vue.d.ts +0 -5
  425. package/dist/types/components/base/hsSteps/src/hsStep.vue.d.ts +0 -10
  426. package/dist/types/components/base/hsSteps/src/hsSteps.vue.d.ts +0 -10
  427. package/dist/types/components/base/hsSwitch/src/hsSwitch.vue.d.ts +0 -10
  428. package/dist/types/components/base/hsTable/hsBCTable.vue.d.ts +0 -14
  429. package/dist/types/components/base/hsTable/hsTable.vue.d.ts +0 -14
  430. package/dist/types/components/base/hsTable/useHsTableConfig.d.ts +0 -4
  431. package/dist/types/components/base/hsTable/useTableEvents.d.ts +0 -11
  432. package/dist/types/components/base/hsTabs/src/hsTabPane.vue.d.ts +0 -10
  433. package/dist/types/components/base/hsTabs/src/hsTabs.vue.d.ts +0 -10
  434. package/dist/types/components/base/hsTag/src/hsCheckTag.vue.d.ts +0 -10
  435. package/dist/types/components/base/hsTag/src/hsTag.vue.d.ts +0 -10
  436. package/dist/types/components/base/hsTest/HsTest.vue.d.ts +0 -11
  437. package/dist/types/components/base/hsTooltip/src/hsTooltip.vue.d.ts +0 -10
  438. package/dist/types/components/base/hsTour/src/hsTour.vue.d.ts +0 -10
  439. package/dist/types/components/base/hsTour/src/hsTourStep.vue.d.ts +0 -10
  440. package/dist/types/components/base/hsTransfer/src/hsTransfer.vue.d.ts +0 -10
  441. package/dist/types/components/base/hsTree/src/hsTree.vue.d.ts +0 -6
  442. package/dist/types/components/base/hsTreeSelect/src/hsTreeSelect.vue.d.ts +0 -22
  443. package/dist/types/components/base/hsUpload/src/hsUpload.vue.d.ts +0 -26
  444. package/dist/types/components/base/hsWatermark/src/hsWatermark.vue.d.ts +0 -10
  445. package/dist/types/components/business/bcAutoComplete/bcAutoComplete.vue.d.ts +0 -56
  446. package/dist/types/components/business/bcAutoComplete/defaultData.d.ts +0 -9
  447. package/dist/types/components/business/bcAutoComplete/useAutoComplete.d.ts +0 -6
  448. package/dist/types/components/business/bcBox/bcBox.vue.d.ts +0 -57
  449. package/dist/types/components/business/bcBox/utils.d.ts +0 -44
  450. package/dist/types/components/business/bcBtn/bcBtn.vue.d.ts +0 -20
  451. package/dist/types/components/business/bcCheckbox/bcCheckbox.vue.d.ts +0 -21
  452. package/dist/types/components/business/bcForm/baseForm.vue.d.ts +0 -38
  453. package/dist/types/components/business/bcForm/bcForm.vue.d.ts +0 -36
  454. package/dist/types/components/business/bcForm/type.d.ts +0 -15
  455. package/dist/types/components/business/bcFormConfig/bcFormConfig.vue.d.ts +0 -1297
  456. package/dist/types/components/business/bcFormTable/bcFormTable.vue.d.ts +0 -96
  457. package/dist/types/components/business/bcFormTable/bcTable.vue.d.ts +0 -30
  458. package/dist/types/components/business/bcFormTable/components/contextBody/contextBody.vue.d.ts +0 -29
  459. package/dist/types/components/business/bcFormTable/components/contextBody/useContextMenu.d.ts +0 -18
  460. package/dist/types/components/business/bcFormTable/components/form/components/sortForm/index.d.ts +0 -2
  461. package/dist/types/components/business/bcFormTable/components/form/components/sortForm/sortForm.vue.d.ts +0 -17
  462. package/dist/types/components/business/bcFormTable/components/form/formDrag.vue.d.ts +0 -29
  463. package/dist/types/components/business/bcFormTable/components/form/formSearch.vue.d.ts +0 -29
  464. package/dist/types/components/business/bcFormTable/components/form/formSearchBtn.vue.d.ts +0 -74
  465. package/dist/types/components/business/bcFormTable/components/index.d.ts +0 -6
  466. package/dist/types/components/business/bcFormTable/components/table/components/sortColumn/index.d.ts +0 -2
  467. package/dist/types/components/business/bcFormTable/components/table/components/sortColumn/sortColumn.vue.d.ts +0 -19
  468. package/dist/types/components/business/bcFormTable/components/table/table.vue.d.ts +0 -57
  469. package/dist/types/components/business/bcFormTable/components/table/useTable.d.ts +0 -11
  470. package/dist/types/components/business/bcFormTable/components/table/useTableHeight.d.ts +0 -10
  471. package/dist/types/components/business/bcFormTable/components/tabs/tabs.vue.d.ts +0 -24
  472. package/dist/types/components/business/bcFormTable/methods/cellDetailMethod.d.ts +0 -2
  473. package/dist/types/components/business/bcFormTable/methods/filterAgeMethod.d.ts +0 -2
  474. package/dist/types/components/business/bcFormTable/methods/footerMethod.d.ts +0 -3
  475. package/dist/types/components/business/bcFormTable/methods/formBtnMethod.d.ts +0 -7
  476. package/dist/types/components/business/bcFormTable/methods/index.d.ts +0 -3
  477. package/dist/types/components/business/bcFormTable/utils/onFormKey.d.ts +0 -16
  478. package/dist/types/components/business/bcFormTable/utils/onTableKey.d.ts +0 -15
  479. package/dist/types/components/business/bcFormTable/utils/parseTable.d.ts +0 -90
  480. package/dist/types/components/business/bcFormTable/utils/store.d.ts +0 -2741
  481. package/dist/types/components/business/bcFormTable/utils/useButon.d.ts +0 -11
  482. package/dist/types/components/business/bcFormTable/utils/useTableHeight.d.ts +0 -13
  483. package/dist/types/components/business/bcGroupComponent/date.vue.d.ts +0 -36
  484. package/dist/types/components/business/bcIcon/bcIcon.vue.d.ts +0 -27
  485. package/dist/types/components/business/bcPageConfig/bcPageConfig.vue.d.ts +0 -10
  486. package/dist/types/components/business/bcPageConfig/components/hsBtn/src/hsAttrBtn.vue.d.ts +0 -51
  487. package/dist/types/components/business/bcPageConfig/components/hsBtn/src/hsBtnConfigList.vue.d.ts +0 -22
  488. package/dist/types/components/business/bcPageConfig/components/hsBtn/src/hsBtnItemConfig.vue.d.ts +0 -20
  489. package/dist/types/components/business/bcPageConfig/components/hsBtn/src/hsBtnPanel.vue.d.ts +0 -18
  490. package/dist/types/components/business/bcPageConfig/components/hsBtn/useAttrBtn.d.ts +0 -14
  491. package/dist/types/components/business/bcPageConfig/components/hsBtn/useBtnConfigList.d.ts +0 -8
  492. package/dist/types/components/business/bcPageConfig/components/hsBtn/useBtnItemConfig.d.ts +0 -31
  493. package/dist/types/components/business/bcPageConfig/components/hsExpand/src/hsExpand.vue.d.ts +0 -34
  494. package/dist/types/components/business/bcPageConfig/components/hsExpand/useExpand.d.ts +0 -3
  495. package/dist/types/components/business/bcPageConfig/components/hsForm/src/hsAttrForm.vue.d.ts +0 -25
  496. package/dist/types/components/business/bcPageConfig/components/hsForm/src/hsFormConfigList.vue.d.ts +0 -22
  497. package/dist/types/components/business/bcPageConfig/components/hsForm/src/hsFormPanel.vue.d.ts +0 -8
  498. package/dist/types/components/business/bcPageConfig/components/hsForm/src/hsFormParse.vue.d.ts +0 -8
  499. package/dist/types/components/business/bcPageConfig/components/hsForm/useAttrForm.d.ts +0 -38
  500. package/dist/types/components/business/bcPageConfig/components/hsForm/useFormListConfig.d.ts +0 -8
  501. package/dist/types/components/business/bcPageConfig/components/hsForm/useFormParse.d.ts +0 -6
  502. package/dist/types/components/business/bcPageConfig/components/hsSaveForm/saveFormConfig.d.ts +0 -70
  503. package/dist/types/components/business/bcPageConfig/components/hsSaveForm/src/saveForm.vue.d.ts +0 -52
  504. package/dist/types/components/business/bcPageConfig/components/hsSaveForm/useSaveForm.d.ts +0 -26
  505. package/dist/types/components/business/bcPageConfig/components/hsTables/src/hsAttrTable.vue.d.ts +0 -51
  506. package/dist/types/components/business/bcPageConfig/components/hsTables/src/hsRecursionConfig.vue.d.ts +0 -44
  507. package/dist/types/components/business/bcPageConfig/components/hsTables/src/hsTableConfig.vue.d.ts +0 -30
  508. package/dist/types/components/business/bcPageConfig/components/hsTables/src/hsTableConfigList.vue.d.ts +0 -22
  509. package/dist/types/components/business/bcPageConfig/components/hsTables/src/hsTableDynamicConfigList.vue.d.ts +0 -22
  510. package/dist/types/components/business/bcPageConfig/components/hsTables/src/hsTablePanel.vue.d.ts +0 -10
  511. package/dist/types/components/business/bcPageConfig/components/hsTables/src/hsTableParse.vue.d.ts +0 -8
  512. package/dist/types/components/business/bcPageConfig/components/hsTables/useAttrTable.d.ts +0 -48
  513. package/dist/types/components/business/bcPageConfig/components/hsTables/useTableConfigList.d.ts +0 -9
  514. package/dist/types/components/business/bcPageConfig/components/hsTables/useTableDynamicConfigList.d.ts +0 -11
  515. package/dist/types/components/business/bcPageConfig/components/hsTables/useTableParse.d.ts +0 -6
  516. package/dist/types/components/business/bcPageConfig/default/baseBtnConfig.d.ts +0 -151
  517. package/dist/types/components/business/bcPageConfig/default/baseFormConfig.d.ts +0 -574
  518. package/dist/types/components/business/bcPageConfig/default/baseTableConfig.d.ts +0 -5812
  519. package/dist/types/components/business/bcPageConfig/usePageConfig.d.ts +0 -19
  520. package/dist/types/components/business/bcPageTree/bcPageTree.vue.d.ts +0 -64
  521. package/dist/types/components/business/bcPageTree/usePageTree.d.ts +0 -38
  522. package/dist/types/components/business/bcPageTreeBySystem/bcPageTreeBySystem.vue.d.ts +0 -12
  523. package/dist/types/components/business/bcPageTreeBySystem/usePageTreeBySystem.d.ts +0 -35
  524. package/dist/types/components/business/bcRadio/bcRadio.vue.d.ts +0 -16
  525. package/dist/types/components/business/bcSelect/bcSelect.vue.d.ts +0 -30
  526. package/dist/types/components/business/bcSwitchSystems/bcSwitchSystems.vue.d.ts +0 -28
  527. package/dist/types/components/business/bcSwitchSystems/useSwitchSystems.d.ts +0 -9
  528. package/dist/types/components/business/bcTreeSelect/bcTreeSelect.vue.d.ts +0 -27
  529. package/dist/types/components/business/bcUpload/bcUpload.vue.d.ts +0 -178
  530. package/dist/types/components/business/bcUpload/type.d.ts +0 -29
  531. package/dist/types/components/business/bcUpload/useUpload.d.ts +0 -24
  532. package/dist/types/components/business/cardID/type.d.ts +0 -0
  533. package/dist/types/components/business/cardID/useCardID.d.ts +0 -0
  534. package/dist/types/components/component.d.ts +0 -4328
  535. package/dist/types/components/config/autocompleteAttrConfig/autocompleteAttrConfig.vue.d.ts +0 -24
  536. package/dist/types/components/config/autocompleteAttrConfig/config.d.ts +0 -44
  537. package/dist/types/components/config/baseForm.vue.d.ts +0 -116
  538. package/dist/types/components/config/buttonAttrConfig/buttonAttrConfig.vue.d.ts +0 -24
  539. package/dist/types/components/config/buttonAttrConfig/config.d.ts +0 -87
  540. package/dist/types/components/config/cascaderAttrConfig/cascaderAttrConfig.vue.d.ts +0 -24
  541. package/dist/types/components/config/cascaderAttrConfig/config.d.ts +0 -99
  542. package/dist/types/components/config/cascaderPanelAttrConfig/cascaderPanelAttrConfig.vue.d.ts +0 -24
  543. package/dist/types/components/config/cascaderPanelAttrConfig/config.d.ts +0 -71
  544. package/dist/types/components/config/checkboxAttrConfig/checkboxAttrConfig.vue.d.ts +0 -24
  545. package/dist/types/components/config/checkboxAttrConfig/config.d.ts +0 -86
  546. package/dist/types/components/config/datePickerAttrConfig/config.d.ts +0 -72
  547. package/dist/types/components/config/datePickerAttrConfig/datePickerAttrConfig.vue.d.ts +0 -24
  548. package/dist/types/components/config/inputAttrConfig/config.d.ts +0 -94
  549. package/dist/types/components/config/inputAttrConfig/inputAttrConfig.vue.d.ts +0 -24
  550. package/dist/types/components/config/inputAttrConfig/inputEventConfig.vue.d.ts +0 -15
  551. package/dist/types/components/config/inputNumberAttrConfig/config.d.ts +0 -65
  552. package/dist/types/components/config/inputNumberAttrConfig/inputNumberAttrConfig.vue.d.ts +0 -24
  553. package/dist/types/components/config/radioAttrConfig/config.d.ts +0 -82
  554. package/dist/types/components/config/radioAttrConfig/radioAttrConfig.vue.d.ts +0 -24
  555. package/dist/types/components/config/selectAttrConfig/config.d.ts +0 -110
  556. package/dist/types/components/config/selectAttrConfig/selectAttrConfig.vue.d.ts +0 -24
  557. package/dist/types/components/config/switchAttrConfig/config.d.ts +0 -63
  558. package/dist/types/components/config/switchAttrConfig/switchAttrConfig.vue.d.ts +0 -24
  559. package/dist/types/components/config/treeSelectAttrConfig/config.d.ts +0 -97
  560. package/dist/types/components/config/treeSelectAttrConfig/treeSelectAttrConfig.vue.d.ts +0 -24
  561. package/dist/types/components/config/type/formType.d.ts +0 -20
  562. package/dist/types/components/config/uploadAttrConfig/config.d.ts +0 -64
  563. package/dist/types/components/config/uploadAttrConfig/uploadAttrConfig.vue.d.ts +0 -24
  564. package/dist/types/components/iconSelector/index.vue.d.ts +0 -88
  565. package/dist/types/components/iconSelector/list.vue.d.ts +0 -37
  566. package/dist/types/components/svgIcon/index.vue.d.ts +0 -27
  567. package/dist/types/directive/authDirective.d.ts +0 -8
  568. package/dist/types/directive/customDirective.d.ts +0 -15
  569. package/dist/types/directive/index.d.ts +0 -8
  570. package/dist/types/hooks/index.d.ts +0 -2
  571. package/dist/types/hooks/useCrypto.d.ts +0 -6
  572. package/dist/types/hooks/useExpose.d.ts +0 -24
  573. package/dist/types/index.d.ts +0 -1
  574. package/dist/types/layout/component/aside.vue.d.ts +0 -3
  575. package/dist/types/layout/component/columnsAside.vue.d.ts +0 -3
  576. package/dist/types/layout/component/header.vue.d.ts +0 -3
  577. package/dist/types/layout/component/main.vue.d.ts +0 -5
  578. package/dist/types/layout/footer/index.vue.d.ts +0 -3
  579. package/dist/types/layout/index.vue.d.ts +0 -3
  580. package/dist/types/layout/logo/index.vue.d.ts +0 -3
  581. package/dist/types/layout/main/classic.vue.d.ts +0 -3
  582. package/dist/types/layout/main/columns.vue.d.ts +0 -3
  583. package/dist/types/layout/main/defaults.vue.d.ts +0 -3
  584. package/dist/types/layout/main/transverse.vue.d.ts +0 -3
  585. package/dist/types/layout/navBars/index.vue.d.ts +0 -3
  586. package/dist/types/layout/navBars/tagsView/contextmenu.vue.d.ts +0 -27
  587. package/dist/types/layout/navBars/tagsView/tagsView.vue.d.ts +0 -3
  588. package/dist/types/layout/navBars/topBar/index.vue.d.ts +0 -3
  589. package/dist/types/layout/navBars/topBar/search.vue.d.ts +0 -5
  590. package/dist/types/layout/navBars/topBar/user.vue.d.ts +0 -3
  591. package/dist/types/layout/navBars/topBar/userNews.vue.d.ts +0 -3
  592. package/dist/types/layout/navMenu/horizontal.vue.d.ts +0 -42
  593. package/dist/types/layout/navMenu/subItem.vue.d.ts +0 -42
  594. package/dist/types/layout/navMenu/vertical.vue.d.ts +0 -42
  595. package/dist/types/layout/routerView/iframes.vue.d.ts +0 -33
  596. package/dist/types/layout/routerView/link.vue.d.ts +0 -3
  597. package/dist/types/layout/routerView/parent.vue.d.ts +0 -3
  598. package/dist/types/main.d.ts +0 -6
  599. package/dist/types/plugins/index.d.ts +0 -21
  600. package/dist/types/router/backEnd.d.ts +0 -58
  601. package/dist/types/router/frontEnd.d.ts +0 -61
  602. package/dist/types/router/index.d.ts +0 -22
  603. package/dist/types/router/route.d.ts +0 -56
  604. package/dist/types/stores/index.d.ts +0 -3
  605. package/dist/types/stores/keepAliveNames.d.ts +0 -16
  606. package/dist/types/stores/requestOldRoutes.d.ts +0 -8
  607. package/dist/types/stores/routesList.d.ts +0 -12
  608. package/dist/types/stores/tagsViewRoutes.d.ts +0 -10
  609. package/dist/types/stores/themeConfig.d.ts +0 -10
  610. package/dist/types/stores/userInfo.d.ts +0 -20
  611. package/dist/types/types/auth.d.ts +0 -73
  612. package/dist/types/types/components.d.ts +0 -28
  613. package/dist/types/types/customData.d.ts +0 -193
  614. package/dist/types/types/form.d.ts +0 -86
  615. package/dist/types/types/formItem/autocomplete.d.ts +0 -42
  616. package/dist/types/types/formItem/button.d.ts +0 -39
  617. package/dist/types/types/formItem/checkbox.d.ts +0 -79
  618. package/dist/types/types/formItem/index.d.ts +0 -8
  619. package/dist/types/types/formItem/input.d.ts +0 -64
  620. package/dist/types/types/formItem/inputNumber.d.ts +0 -40
  621. package/dist/types/types/formItem/radio.d.ts +0 -57
  622. package/dist/types/types/formItem/selelct.d.ts +0 -53
  623. package/dist/types/types/formItem/treeSelect.d.ts +0 -40
  624. package/dist/types/types/index.d.ts +0 -6
  625. package/dist/types/types/system.d.ts +0 -14
  626. package/dist/types/utils/arrayOperation.d.ts +0 -21
  627. package/dist/types/utils/authFunction.d.ts +0 -18
  628. package/dist/types/utils/build.d.ts +0 -12
  629. package/dist/types/utils/common.d.ts +0 -9
  630. package/dist/types/utils/commonFunction.d.ts +0 -18
  631. package/dist/types/utils/download.d.ts +0 -6
  632. package/dist/types/utils/formatTime.d.ts +0 -37
  633. package/dist/types/utils/getDataType.d.ts +0 -8
  634. package/dist/types/utils/getStyleSheets.d.ts +0 -11
  635. package/dist/types/utils/index.d.ts +0 -21
  636. package/dist/types/utils/loading.d.ts +0 -9
  637. package/dist/types/utils/mitt.d.ts +0 -2
  638. package/dist/types/utils/other.d.ts +0 -74
  639. package/dist/types/utils/request/index.d.ts +0 -2
  640. package/dist/types/utils/request/interceptors/request/authorization.interceptor.d.ts +0 -3
  641. package/dist/types/utils/request/interceptors/request/index.d.ts +0 -2
  642. package/dist/types/utils/request/interceptors/request/result.type.interceptor.d.ts +0 -8
  643. package/dist/types/utils/request/interceptors/response/error-handler.interceptor.d.ts +0 -3
  644. package/dist/types/utils/request/interceptors/response/file-handler.interceptor.d.ts +0 -3
  645. package/dist/types/utils/request/interceptors/response/index.d.ts +0 -2
  646. package/dist/types/utils/request/request.d.ts +0 -6
  647. package/dist/types/utils/request2.d.ts +0 -2
  648. package/dist/types/utils/setIconfont.d.ts +0 -11
  649. package/dist/types/utils/showMessage.d.ts +0 -2
  650. package/dist/types/utils/showMessageBox.d.ts +0 -2
  651. package/dist/types/utils/showNotification.d.ts +0 -2
  652. package/dist/types/utils/showPopup/index.d.ts +0 -34
  653. package/dist/types/utils/showPopup/showPopup.vue.d.ts +0 -44
  654. package/dist/types/utils/storage.d.ts +0 -75
  655. package/dist/types/utils/theme.d.ts +0 -13
  656. package/dist/types/utils/toolsValidate.d.ts +0 -149
  657. package/dist/types/utils/watermark.d.ts +0 -9
  658. package/dist/types/views/config/buttonManagement/btnIndex.vue.d.ts +0 -3
  659. package/dist/types/views/config/buttonManagement/dialog.vue.d.ts +0 -3
  660. package/dist/types/views/config/buttonManagement/index.vue.d.ts +0 -3
  661. package/dist/types/views/config/dataAuth/dialog.vue.d.ts +0 -31
  662. package/dist/types/views/config/dataAuth/index.vue.d.ts +0 -3
  663. package/dist/types/views/config/dataAuth/useDataAuth.d.ts +0 -11
  664. package/dist/types/views/config/dataAuth/useDataAuthDialog.d.ts +0 -2812
  665. package/dist/types/views/config/dataDict/components/dict/dictDialog.vue.d.ts +0 -9
  666. package/dist/types/views/config/dataDict/components/dict/useDictDialog.d.ts +0 -2237
  667. package/dist/types/views/config/dataDict/components/dictItem/dictItemDialog.vue.d.ts +0 -75
  668. package/dist/types/views/config/dataDict/components/dictItem/useDictItemDialog.d.ts +0 -5024
  669. package/dist/types/views/config/dataDict/index.vue.d.ts +0 -3
  670. package/dist/types/views/config/dataDict/useDataDict.d.ts +0 -155
  671. package/dist/types/views/config/fieldPool/components/dialog/index.vue.d.ts +0 -3
  672. package/dist/types/views/config/fieldPool/components/dialog/useDialog.d.ts +0 -971
  673. package/dist/types/views/config/fieldPool/index.vue.d.ts +0 -3
  674. package/dist/types/views/config/fieldPool/useFieldPool.d.ts +0 -9
  675. package/dist/types/views/config/formSetting/components/hsBtn/src/hsAttrBtn.vue.d.ts +0 -51
  676. package/dist/types/views/config/formSetting/components/hsBtn/src/hsBtnConfigList.vue.d.ts +0 -22
  677. package/dist/types/views/config/formSetting/components/hsBtn/src/hsBtnItemConfig.vue.d.ts +0 -19
  678. package/dist/types/views/config/formSetting/components/hsBtn/src/hsBtnPanel.vue.d.ts +0 -8
  679. package/dist/types/views/config/formSetting/components/hsBtn/useAttrBtn.d.ts +0 -14
  680. package/dist/types/views/config/formSetting/components/hsBtn/useBtnConfigList.d.ts +0 -8
  681. package/dist/types/views/config/formSetting/components/hsBtn/useBtnItemConfig.d.ts +0 -31
  682. package/dist/types/views/config/formSetting/components/hsExpand/src/hsExpand.vue.d.ts +0 -25
  683. package/dist/types/views/config/formSetting/components/hsExpand/useExpand.d.ts +0 -3
  684. package/dist/types/views/config/formSetting/components/hsForm/src/contextmenu.vue.d.ts +0 -36
  685. package/dist/types/views/config/formSetting/components/hsForm/src/hsAttrForm.vue.d.ts +0 -24
  686. package/dist/types/views/config/formSetting/components/hsForm/src/hsFormConfig.vue.d.ts +0 -1279
  687. package/dist/types/views/config/formSetting/components/hsForm/src/hsFormConfigList.vue.d.ts +0 -33
  688. package/dist/types/views/config/formSetting/components/hsForm/src/hsFormPanel.vue.d.ts +0 -31
  689. package/dist/types/views/config/formSetting/components/hsForm/src/hsFormParse.vue.d.ts +0 -8
  690. package/dist/types/views/config/formSetting/components/hsForm/useAttrForm.d.ts +0 -34
  691. package/dist/types/views/config/formSetting/components/hsForm/useFormListConfig.d.ts +0 -29
  692. package/dist/types/views/config/formSetting/components/hsForm/useFormParse.d.ts +0 -6
  693. package/dist/types/views/config/formSetting/components/hsPageTree/configData.d.ts +0 -50
  694. package/dist/types/views/config/formSetting/components/hsPageTree/src/hsPageTree.vue.d.ts +0 -64
  695. package/dist/types/views/config/formSetting/components/hsPageTree/usePageTree.d.ts +0 -12
  696. package/dist/types/views/config/formSetting/components/hsSaveForm/saveFormConfig.d.ts +0 -86
  697. package/dist/types/views/config/formSetting/components/hsSaveForm/src/saveForm.vue.d.ts +0 -52
  698. package/dist/types/views/config/formSetting/components/hsSaveForm/useSaveForm.d.ts +0 -25
  699. package/dist/types/views/config/formSetting/components/selectConfig/config.d.ts +0 -80
  700. package/dist/types/views/config/formSetting/components/selectConfig/selectConfig.vue.d.ts +0 -24
  701. package/dist/types/views/config/formSetting/default/baseBtnConfig.d.ts +0 -150
  702. package/dist/types/views/config/formSetting/default/baseFormConfig.d.ts +0 -5356
  703. package/dist/types/views/config/formSetting/default/baseTableConfig.d.ts +0 -6520
  704. package/dist/types/views/config/formSetting/formConfig.vue.d.ts +0 -23
  705. package/dist/types/views/config/formSetting/index.vue.d.ts +0 -3
  706. package/dist/types/views/config/formSetting/useForm.d.ts +0 -17
  707. package/dist/types/views/config/formSetting/useFormConfig.d.ts +0 -9
  708. package/dist/types/views/config/pageElement/components/hsPanelItem/hsPanelItem.vue.d.ts +0 -35
  709. package/dist/types/views/config/pageElement/components/hsPanelItem/usePanelItem.d.ts +0 -6
  710. package/dist/types/views/config/pageElement/index.vue.d.ts +0 -3
  711. package/dist/types/views/config/pageElement/usePageElement.d.ts +0 -108
  712. package/dist/types/views/config/parseAPI/index.vue.d.ts +0 -3
  713. package/dist/types/views/config/table/index.vue.d.ts +0 -3
  714. package/dist/types/views/config/table/usePage.d.ts +0 -14
  715. package/dist/types/views/error/401.vue.d.ts +0 -3
  716. package/dist/types/views/error/404.vue.d.ts +0 -3
  717. package/dist/types/views/home/index.vue.d.ts +0 -3
  718. package/dist/types/views/login/component/account.vue.d.ts +0 -3
  719. package/dist/types/views/login/component/mobile.vue.d.ts +0 -3
  720. package/dist/types/views/login/component/scan.vue.d.ts +0 -3
  721. package/dist/types/views/login/index.vue.d.ts +0 -3
  722. package/dist/types/views/system/auth/index.vue.d.ts +0 -3
  723. package/dist/types/views/system/auth/useAuth.d.ts +0 -140
  724. package/dist/types/views/system/auth/utils.d.ts +0 -8
  725. package/dist/types/views/system/dept/dialog.vue.d.ts +0 -9
  726. package/dist/types/views/system/dept/index.vue.d.ts +0 -3
  727. package/dist/types/views/system/dic/dialog.vue.d.ts +0 -9
  728. package/dist/types/views/system/dic/index.vue.d.ts +0 -3
  729. package/dist/types/views/system/menu/dialog.vue.d.ts +0 -34
  730. package/dist/types/views/system/menu/index.vue.d.ts +0 -3
  731. package/dist/types/views/system/role/component/roleItem.vue.d.ts +0 -3
  732. package/dist/types/views/system/role/component/userSelect.vue.d.ts +0 -9
  733. package/dist/types/views/system/role/index.vue.d.ts +0 -3
  734. package/dist/types/views/system/user/dialog.vue.d.ts +0 -9
  735. package/dist/types/views/system/user/index.vue.d.ts +0 -3
  736. package/dist/types/views/test/form/index.vue.d.ts +0 -3
  737. package/dist/types/views/test/table/index.vue.d.ts +0 -9
  738. package/dist/types/views/test/test/index.vue.d.ts +0 -3
  739. package/dist/types/views/test/test/uploadAvatar.vue.d.ts +0 -37
  740. package/dist/types/views/test/test/useUpload.d.ts +0 -3
  741. package/dist/uploadAvatar-IaZLFUdD.js +0 -7
  742. package/dist/uploadAvatar-IaZLFUdD.js.gz +0 -0
  743. package/dist/uploadAvatar-isjJZgM9.mjs +0 -1346
  744. package/dist/uploadAvatar-isjJZgM9.mjs.gz +0 -0
  745. package/dist/user--eBSuNwY.mjs +0 -291
  746. package/dist/user--eBSuNwY.mjs.gz +0 -0
  747. package/dist/user-c6SBj_EC.js +0 -1
  748. package/dist/user-c6SBj_EC.js.gz +0 -0
  749. package/dist/userNews-HKnzEhkk.js +0 -1
  750. package/dist/userNews-HKnzEhkk.js.gz +0 -0
  751. package/dist/userNews-JKRTkLHc.mjs +0 -61
  752. package/dist/userNews-JKRTkLHc.mjs.gz +0 -0
  753. package/dist/userSelect-H59z6tSv.js +0 -1
  754. package/dist/userSelect-ejpKheqk.mjs +0 -4
  755. package/dist/userSelect.vue_vue_type_script_setup_true_lang-lIG6w4Hi.mjs +0 -80
  756. package/dist/userSelect.vue_vue_type_script_setup_true_lang-lIG6w4Hi.mjs.gz +0 -0
  757. package/dist/userSelect.vue_vue_type_script_setup_true_lang-u3KKjG36.js +0 -1
  758. package/dist/userSelect.vue_vue_type_script_setup_true_lang-u3KKjG36.js.gz +0 -0
  759. package/dist/vertical-8eZ_zMrG.mjs +0 -101
  760. package/dist/vertical-8eZ_zMrG.mjs.gz +0 -0
  761. package/dist/vertical-f260pFOn.js +0 -1
  762. package/dist/vertical-f260pFOn.js.gz +0 -0
@@ -1,1346 +0,0 @@
1
- import { openBlock as Y, createElementBlock as M, withDirectives as k, createElementVNode as w, normalizeStyle as S, vShow as A, createCommentVNode as L, normalizeClass as U, toDisplayString as N, defineComponent as F, ref as I, onMounted as z, getCurrentInstance as D, toRefs as j, reactive as V, resolveComponent as O, createVNode as v, withCtx as y, unref as H, createTextVNode as E } from "vue";
2
- import { _ as B, L as q, M as G } from "./index-5Gmx6M7o.mjs";
3
- const $ = {};
4
- $.getData = (t) => new Promise((e, i) => {
5
- let s = {};
6
- Z(t).then((o) => {
7
- s.arrayBuffer = o;
8
- try {
9
- s.orientation = _(o);
10
- } catch {
11
- s.orientation = -1;
12
- }
13
- e(s);
14
- }).catch((o) => {
15
- i(o);
16
- });
17
- });
18
- function Z(t) {
19
- let e = null;
20
- return new Promise((i, s) => {
21
- if (t.src)
22
- if (/^data\:/i.test(t.src))
23
- e = K(t.src), i(e);
24
- else if (/^blob\:/i.test(t.src)) {
25
- var o = new FileReader();
26
- o.onload = function(h) {
27
- e = h.target.result, i(e);
28
- }, J(t.src, function(h) {
29
- o.readAsArrayBuffer(h);
30
- });
31
- } else {
32
- var r = new XMLHttpRequest();
33
- r.onload = function() {
34
- if (this.status == 200 || this.status === 0)
35
- e = r.response, i(e);
36
- else
37
- throw "Could not load image";
38
- r = null;
39
- }, r.open("GET", t.src, !0), r.responseType = "arraybuffer", r.send(null);
40
- }
41
- else
42
- s("img error");
43
- });
44
- }
45
- function J(t, e) {
46
- var i = new XMLHttpRequest();
47
- i.open("GET", t, !0), i.responseType = "blob", i.onload = function(s) {
48
- (this.status == 200 || this.status === 0) && e(this.response);
49
- }, i.send();
50
- }
51
- function K(t, e) {
52
- e = e || t.match(/^data\:([^\;]+)\;base64,/mi)[1] || "", t = t.replace(/^data\:([^\;]+)\;base64,/gmi, "");
53
- for (var i = atob(t), s = i.length % 2 == 0 ? i.length : i.length + 1, o = new ArrayBuffer(s), r = new Uint16Array(o), h = 0; h < s; h++)
54
- r[h] = i.charCodeAt(h);
55
- return o;
56
- }
57
- function Q(t, e, i) {
58
- var s = "", o;
59
- for (o = e, i += e; o < i; o++)
60
- s += String.fromCharCode(t.getUint8(o));
61
- return s;
62
- }
63
- function _(t) {
64
- var e = new DataView(t), i = e.byteLength, s, o, r, h, a, c, l, n, p, f;
65
- if (e.getUint8(0) === 255 && e.getUint8(1) === 216)
66
- for (p = 2; p < i; ) {
67
- if (e.getUint8(p) === 255 && e.getUint8(p + 1) === 225) {
68
- l = p;
69
- break;
70
- }
71
- p++;
72
- }
73
- if (l && (o = l + 4, r = l + 10, Q(e, o, 4) === "Exif" && (c = e.getUint16(r), a = c === 18761, (a || c === 19789) && e.getUint16(r + 2, a) === 42 && (h = e.getUint32(r + 4, a), h >= 8 && (n = r + h)))), n) {
74
- for (i = e.getUint16(n, a), f = 0; f < i; f++)
75
- if (p = n + f * 12 + 2, e.getUint16(p, a) === 274) {
76
- p += 8, s = e.getUint16(p, a);
77
- break;
78
- }
79
- }
80
- return s;
81
- }
82
- const tt = {
83
- data: function() {
84
- return {
85
- // 容器高宽
86
- w: 0,
87
- h: 0,
88
- // 图片缩放比例
89
- scale: 1,
90
- // 图片偏移x轴
91
- x: 0,
92
- // 图片偏移y轴
93
- y: 0,
94
- // 图片加载
95
- loading: !0,
96
- // 图片真实宽度
97
- trueWidth: 0,
98
- // 图片真实高度
99
- trueHeight: 0,
100
- move: !0,
101
- // 移动的x
102
- moveX: 0,
103
- // 移动的y
104
- moveY: 0,
105
- // 开启截图
106
- crop: !1,
107
- // 正在截图
108
- cropping: !1,
109
- // 裁剪框大小
110
- cropW: 0,
111
- cropH: 0,
112
- cropOldW: 0,
113
- cropOldH: 0,
114
- // 判断是否能够改变
115
- canChangeX: !1,
116
- canChangeY: !1,
117
- // 改变的基准点
118
- changeCropTypeX: 1,
119
- changeCropTypeY: 1,
120
- // 裁剪框的坐标轴
121
- cropX: 0,
122
- cropY: 0,
123
- cropChangeX: 0,
124
- cropChangeY: 0,
125
- cropOffsertX: 0,
126
- cropOffsertY: 0,
127
- // 支持的滚动事件
128
- support: "",
129
- // 移动端手指缩放
130
- touches: [],
131
- touchNow: !1,
132
- // 图片旋转
133
- rotate: 0,
134
- isIos: !1,
135
- orientation: 0,
136
- imgs: "",
137
- // 图片缩放系数
138
- coe: 0.2,
139
- // 是否正在多次缩放
140
- scaling: !1,
141
- scalingSet: "",
142
- coeStatus: "",
143
- // 控制emit触发频率
144
- isCanShow: !0
145
- };
146
- },
147
- props: {
148
- img: {
149
- type: [String, Blob, null, File],
150
- default: ""
151
- },
152
- // 输出图片压缩比
153
- outputSize: {
154
- type: Number,
155
- default: 1
156
- },
157
- outputType: {
158
- type: String,
159
- default: "jpeg"
160
- },
161
- info: {
162
- type: Boolean,
163
- default: !0
164
- },
165
- // 是否开启滚轮放大缩小
166
- canScale: {
167
- type: Boolean,
168
- default: !0
169
- },
170
- // 是否自成截图框
171
- autoCrop: {
172
- type: Boolean,
173
- default: !1
174
- },
175
- autoCropWidth: {
176
- type: [Number, String],
177
- default: 0
178
- },
179
- autoCropHeight: {
180
- type: [Number, String],
181
- default: 0
182
- },
183
- // 是否开启固定宽高比
184
- fixed: {
185
- type: Boolean,
186
- default: !1
187
- },
188
- // 宽高比 w/h
189
- fixedNumber: {
190
- type: Array,
191
- default: () => [1, 1]
192
- },
193
- // 固定大小 禁止改变截图框大小
194
- fixedBox: {
195
- type: Boolean,
196
- default: !1
197
- },
198
- // 输出截图是否缩放
199
- full: {
200
- type: Boolean,
201
- default: !1
202
- },
203
- // 是否可以拖动图片
204
- canMove: {
205
- type: Boolean,
206
- default: !0
207
- },
208
- // 是否可以拖动截图框
209
- canMoveBox: {
210
- type: Boolean,
211
- default: !0
212
- },
213
- // 上传图片按照原始比例显示
214
- original: {
215
- type: Boolean,
216
- default: !1
217
- },
218
- // 截图框能否超过图片
219
- centerBox: {
220
- type: Boolean,
221
- default: !1
222
- },
223
- // 是否根据dpr输出高清图片
224
- high: {
225
- type: Boolean,
226
- default: !0
227
- },
228
- // 截图框展示宽高类型
229
- infoTrue: {
230
- type: Boolean,
231
- default: !1
232
- },
233
- // 可以压缩图片宽高 默认不超过200
234
- maxImgSize: {
235
- type: [Number, String],
236
- default: 2e3
237
- },
238
- // 倍数 可渲染当前截图框的n倍 0 - 1000;
239
- enlarge: {
240
- type: [Number, String],
241
- default: 1
242
- },
243
- // 自动预览的固定宽度
244
- preW: {
245
- type: [Number, String],
246
- default: 0
247
- },
248
- /*
249
- 图片布局方式 mode 实现和css背景一样的效果
250
- contain 居中布局 默认不会缩放 保证图片在容器里面 mode: 'contain'
251
- cover 拉伸布局 填充整个容器 mode: 'cover'
252
- 如果仅有一个数值被给定,这个数值将作为宽度值大小,高度值将被设定为auto。 mode: '50px'
253
- 如果有两个数值被给定,第一个将作为宽度值大小,第二个作为高度值大小。 mode: '50px 60px'
254
- */
255
- mode: {
256
- type: String,
257
- default: "contain"
258
- },
259
- //限制最小区域,可传1以上的数字和字符串,限制长宽都是这么大
260
- // 也可以传数组[90,90]
261
- limitMinSize: {
262
- type: [Number, Array, String],
263
- default: () => 10,
264
- validator: function(t) {
265
- return Array.isArray(t) ? Number(t[0]) >= 0 && Number(t[1]) >= 0 : Number(t) >= 0;
266
- }
267
- },
268
- // 导出时,填充背景颜色
269
- fillColor: {
270
- type: String,
271
- default: ""
272
- }
273
- },
274
- computed: {
275
- cropInfo() {
276
- let t = {};
277
- if (t.top = this.cropOffsertY > 21 ? "-21px" : "0px", t.width = this.cropW > 0 ? this.cropW : 0, t.height = this.cropH > 0 ? this.cropH : 0, this.infoTrue) {
278
- let e = 1;
279
- this.high && !this.full && (e = window.devicePixelRatio), this.enlarge !== 1 & !this.full && (e = Math.abs(Number(this.enlarge))), t.width = t.width * e, t.height = t.height * e, this.full && (t.width = t.width / this.scale, t.height = t.height / this.scale);
280
- }
281
- return t.width = t.width.toFixed(0), t.height = t.height.toFixed(0), t;
282
- },
283
- isIE() {
284
- return !!window.ActiveXObject || "ActiveXObject" in window;
285
- },
286
- passive() {
287
- return this.isIE ? null : {
288
- passive: !1
289
- };
290
- }
291
- },
292
- watch: {
293
- // 如果图片改变, 重新布局
294
- img() {
295
- this.checkedImg();
296
- },
297
- imgs(t) {
298
- t !== "" && this.reload();
299
- },
300
- cropW() {
301
- this.showPreview();
302
- },
303
- cropH() {
304
- this.showPreview();
305
- },
306
- cropOffsertX() {
307
- this.showPreview();
308
- },
309
- cropOffsertY() {
310
- this.showPreview();
311
- },
312
- scale(t, e) {
313
- this.showPreview();
314
- },
315
- x() {
316
- this.showPreview();
317
- },
318
- y() {
319
- this.showPreview();
320
- },
321
- autoCrop(t) {
322
- t && this.goAutoCrop();
323
- },
324
- // 修改了自动截图框
325
- autoCropWidth() {
326
- this.autoCrop && this.goAutoCrop();
327
- },
328
- autoCropHeight() {
329
- this.autoCrop && this.goAutoCrop();
330
- },
331
- mode() {
332
- this.checkedImg();
333
- },
334
- rotate() {
335
- this.showPreview(), this.autoCrop ? this.goAutoCrop(this.cropW, this.cropH) : (this.cropW > 0 || this.cropH > 0) && this.goAutoCrop(this.cropW, this.cropH);
336
- }
337
- },
338
- methods: {
339
- getVersion(t) {
340
- var e = navigator.userAgent.split(" "), i = "";
341
- let s = 0;
342
- const o = new RegExp(t, "i");
343
- for (var r = 0; r < e.length; r++)
344
- o.test(e[r]) && (i = e[r]);
345
- return i ? s = i.split("/")[1].split(".") : s = ["0", "0", "0"], s;
346
- },
347
- checkOrientationImage(t, e, i, s) {
348
- if (this.getVersion("chrome")[0] >= 81)
349
- e = -1;
350
- else if (this.getVersion("safari")[0] >= 605) {
351
- const h = this.getVersion("version");
352
- h[0] > 13 && h[1] > 1 && (e = -1);
353
- } else {
354
- const h = navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);
355
- if (h) {
356
- let a = h[1];
357
- a = a.split("_"), (a[0] > 13 || a[0] >= 13 && a[1] >= 4) && (e = -1);
358
- }
359
- }
360
- let o = document.createElement("canvas"), r = o.getContext("2d");
361
- switch (r.save(), e) {
362
- case 2:
363
- o.width = i, o.height = s, r.translate(i, 0), r.scale(-1, 1);
364
- break;
365
- case 3:
366
- o.width = i, o.height = s, r.translate(i / 2, s / 2), r.rotate(180 * Math.PI / 180), r.translate(-i / 2, -s / 2);
367
- break;
368
- case 4:
369
- o.width = i, o.height = s, r.translate(0, s), r.scale(1, -1);
370
- break;
371
- case 5:
372
- o.height = i, o.width = s, r.rotate(0.5 * Math.PI), r.scale(1, -1);
373
- break;
374
- case 6:
375
- o.width = s, o.height = i, r.translate(s / 2, i / 2), r.rotate(90 * Math.PI / 180), r.translate(-i / 2, -s / 2);
376
- break;
377
- case 7:
378
- o.height = i, o.width = s, r.rotate(0.5 * Math.PI), r.translate(i, -s), r.scale(-1, 1);
379
- break;
380
- case 8:
381
- o.height = i, o.width = s, r.translate(s / 2, i / 2), r.rotate(-90 * Math.PI / 180), r.translate(-i / 2, -s / 2);
382
- break;
383
- default:
384
- o.width = i, o.height = s;
385
- }
386
- r.drawImage(t, 0, 0, i, s), r.restore(), o.toBlob(
387
- (h) => {
388
- let a = URL.createObjectURL(h);
389
- URL.revokeObjectURL(this.imgs), this.imgs = a;
390
- },
391
- "image/" + this.outputType,
392
- 1
393
- );
394
- },
395
- // checkout img
396
- checkedImg() {
397
- if (this.img === null || this.img === "") {
398
- this.imgs = "", this.clearCrop();
399
- return;
400
- }
401
- this.loading = !0, this.scale = 1, this.rotate = 0, this.clearCrop();
402
- let t = new Image();
403
- if (t.onload = () => {
404
- if (this.img === "")
405
- return this.$emit("imgLoad", "error"), this.$emit("img-load", "error"), this.$emit("img-load", new Error("图片不能为空")), !1;
406
- let i = t.width, s = t.height;
407
- $.getData(t).then((o) => {
408
- this.orientation = o.orientation || 1;
409
- let r = Number(this.maxImgSize);
410
- if (!this.orientation && i < r & s < r) {
411
- this.imgs = this.img;
412
- return;
413
- }
414
- i > r && (s = s / i * r, i = r), s > r && (i = i / s * r, s = r), this.checkOrientationImage(t, this.orientation, i, s);
415
- }).catch((o) => {
416
- this.$emit("img-load", "error"), this.$emit("img-load-error", o);
417
- });
418
- }, t.onerror = () => {
419
- this.$emit("imgLoad", "error"), this.$emit("img-load", "error"), this.$emit("img-load-error", error);
420
- }, this.img.substr(0, 4) !== "data" && (t.crossOrigin = ""), this.isIE) {
421
- var e = new XMLHttpRequest();
422
- e.onload = function() {
423
- var i = URL.createObjectURL(this.response);
424
- t.src = i;
425
- }, e.open("GET", this.img, !0), e.responseType = "blob", e.send();
426
- } else
427
- t.src = this.img;
428
- },
429
- // 当按下鼠标键
430
- startMove(t) {
431
- if (t.preventDefault(), this.move && !this.crop) {
432
- if (!this.canMove)
433
- return !1;
434
- this.moveX = ("clientX" in t ? t.clientX : t.touches[0].clientX) - this.x, this.moveY = ("clientY" in t ? t.clientY : t.touches[0].clientY) - this.y, t.touches ? (window.addEventListener("touchmove", this.moveImg), window.addEventListener("touchend", this.leaveImg), t.touches.length == 2 && (this.touches = t.touches, window.addEventListener("touchmove", this.touchScale), window.addEventListener("touchend", this.cancelTouchScale))) : (window.addEventListener("mousemove", this.moveImg), window.addEventListener("mouseup", this.leaveImg)), this.$emit("imgMoving", {
435
- moving: !0,
436
- axis: this.getImgAxis()
437
- }), this.$emit("img-moving", {
438
- moving: !0,
439
- axis: this.getImgAxis()
440
- });
441
- } else
442
- this.cropping = !0, window.addEventListener("mousemove", this.createCrop), window.addEventListener("mouseup", this.endCrop), window.addEventListener("touchmove", this.createCrop), window.addEventListener("touchend", this.endCrop), this.cropOffsertX = t.offsetX ? t.offsetX : t.touches[0].pageX - this.$refs.cropper.offsetLeft, this.cropOffsertY = t.offsetY ? t.offsetY : t.touches[0].pageY - this.$refs.cropper.offsetTop, this.cropX = "clientX" in t ? t.clientX : t.touches[0].clientX, this.cropY = "clientY" in t ? t.clientY : t.touches[0].clientY, this.cropChangeX = this.cropOffsertX, this.cropChangeY = this.cropOffsertY, this.cropW = 0, this.cropH = 0;
443
- },
444
- // 移动端缩放
445
- touchScale(t) {
446
- t.preventDefault();
447
- let e = this.scale;
448
- var i = {
449
- x: this.touches[0].clientX,
450
- y: this.touches[0].clientY
451
- }, s = {
452
- x: t.touches[0].clientX,
453
- y: t.touches[0].clientY
454
- }, o = {
455
- x: this.touches[1].clientX,
456
- y: this.touches[1].clientY
457
- }, r = {
458
- x: t.touches[1].clientX,
459
- y: t.touches[1].clientY
460
- }, h = Math.sqrt(
461
- Math.pow(i.x - o.x, 2) + Math.pow(i.y - o.y, 2)
462
- ), a = Math.sqrt(
463
- Math.pow(s.x - r.x, 2) + Math.pow(s.y - r.y, 2)
464
- ), c = a - h, l = 1;
465
- l = l / this.trueWidth > l / this.trueHeight ? l / this.trueHeight : l / this.trueWidth, l = l > 0.1 ? 0.1 : l;
466
- var n = l * c;
467
- if (!this.touchNow) {
468
- if (this.touchNow = !0, c > 0 ? e += Math.abs(n) : c < 0 && e > Math.abs(n) && (e -= Math.abs(n)), this.touches = t.touches, setTimeout(() => {
469
- this.touchNow = !1;
470
- }, 8), !this.checkoutImgAxis(this.x, this.y, e))
471
- return !1;
472
- this.scale = e;
473
- }
474
- },
475
- cancelTouchScale(t) {
476
- window.removeEventListener("touchmove", this.touchScale);
477
- },
478
- // 移动图片
479
- moveImg(t) {
480
- if (t.preventDefault(), t.touches && t.touches.length === 2)
481
- return this.touches = t.touches, window.addEventListener("touchmove", this.touchScale), window.addEventListener("touchend", this.cancelTouchScale), window.removeEventListener("touchmove", this.moveImg), !1;
482
- let e = "clientX" in t ? t.clientX : t.touches[0].clientX, i = "clientY" in t ? t.clientY : t.touches[0].clientY, s, o;
483
- s = e - this.moveX, o = i - this.moveY, this.$nextTick(() => {
484
- if (this.centerBox) {
485
- let r = this.getImgAxis(s, o, this.scale), h = this.getCropAxis(), a = this.trueHeight * this.scale, c = this.trueWidth * this.scale, l, n, p, f;
486
- switch (this.rotate) {
487
- case 1:
488
- case -1:
489
- case 3:
490
- case -3:
491
- l = this.cropOffsertX - this.trueWidth * (1 - this.scale) / 2 + (a - c) / 2, n = this.cropOffsertY - this.trueHeight * (1 - this.scale) / 2 + (c - a) / 2, p = l - a + this.cropW, f = n - c + this.cropH;
492
- break;
493
- default:
494
- l = this.cropOffsertX - this.trueWidth * (1 - this.scale) / 2, n = this.cropOffsertY - this.trueHeight * (1 - this.scale) / 2, p = l - c + this.cropW, f = n - a + this.cropH;
495
- break;
496
- }
497
- r.x1 >= h.x1 && (s = l), r.y1 >= h.y1 && (o = n), r.x2 <= h.x2 && (s = p), r.y2 <= h.y2 && (o = f);
498
- }
499
- this.x = s, this.y = o, this.$emit("imgMoving", {
500
- moving: !0,
501
- axis: this.getImgAxis()
502
- }), this.$emit("img-moving", {
503
- moving: !0,
504
- axis: this.getImgAxis()
505
- });
506
- });
507
- },
508
- // 移动图片结束
509
- leaveImg(t) {
510
- window.removeEventListener("mousemove", this.moveImg), window.removeEventListener("touchmove", this.moveImg), window.removeEventListener("mouseup", this.leaveImg), window.removeEventListener("touchend", this.leaveImg), this.$emit("imgMoving", {
511
- moving: !1,
512
- axis: this.getImgAxis()
513
- }), this.$emit("img-moving", {
514
- moving: !1,
515
- axis: this.getImgAxis()
516
- });
517
- },
518
- // 缩放图片
519
- scaleImg() {
520
- this.canScale && window.addEventListener(this.support, this.changeSize, this.passive);
521
- },
522
- // 移出框
523
- cancelScale() {
524
- this.canScale && window.removeEventListener(this.support, this.changeSize);
525
- },
526
- // 改变大小函数
527
- changeSize(t) {
528
- t.preventDefault();
529
- let e = this.scale;
530
- var i = t.deltaY || t.wheelDelta, s = navigator.userAgent.indexOf("Firefox");
531
- i = s > 0 ? i * 30 : i, this.isIE && (i = -i);
532
- var o = this.coe;
533
- o = o / this.trueWidth > o / this.trueHeight ? o / this.trueHeight : o / this.trueWidth;
534
- var r = o * i;
535
- r < 0 ? e += Math.abs(r) : e > Math.abs(r) && (e -= Math.abs(r));
536
- let h = r < 0 ? "add" : "reduce";
537
- if (h !== this.coeStatus && (this.coeStatus = h, this.coe = 0.2), this.scaling || (this.scalingSet = setTimeout(() => {
538
- this.scaling = !1, this.coe = this.coe += 0.01;
539
- }, 50)), this.scaling = !0, !this.checkoutImgAxis(this.x, this.y, e))
540
- return !1;
541
- this.scale = e;
542
- },
543
- // 修改图片大小函数
544
- changeScale(t) {
545
- let e = this.scale;
546
- t = t || 1;
547
- var i = 20;
548
- if (i = i / this.trueWidth > i / this.trueHeight ? i / this.trueHeight : i / this.trueWidth, t = t * i, t > 0 ? e += Math.abs(t) : e > Math.abs(t) && (e -= Math.abs(t)), !this.checkoutImgAxis(this.x, this.y, e))
549
- return !1;
550
- this.scale = e;
551
- },
552
- // 创建截图框
553
- createCrop(t) {
554
- t.preventDefault();
555
- var e = "clientX" in t ? t.clientX : t.touches ? t.touches[0].clientX : 0, i = "clientY" in t ? t.clientY : t.touches ? t.touches[0].clientY : 0;
556
- this.$nextTick(() => {
557
- var s = e - this.cropX, o = i - this.cropY;
558
- if (s > 0 ? (this.cropW = s + this.cropChangeX > this.w ? this.w - this.cropChangeX : s, this.cropOffsertX = this.cropChangeX) : (this.cropW = this.w - this.cropChangeX + Math.abs(s) > this.w ? this.cropChangeX : Math.abs(s), this.cropOffsertX = this.cropChangeX + s > 0 ? this.cropChangeX + s : 0), !this.fixed)
559
- o > 0 ? (this.cropH = o + this.cropChangeY > this.h ? this.h - this.cropChangeY : o, this.cropOffsertY = this.cropChangeY) : (this.cropH = this.h - this.cropChangeY + Math.abs(o) > this.h ? this.cropChangeY : Math.abs(o), this.cropOffsertY = this.cropChangeY + o > 0 ? this.cropChangeY + o : 0);
560
- else {
561
- var r = this.cropW / this.fixedNumber[0] * this.fixedNumber[1];
562
- r + this.cropOffsertY > this.h ? (this.cropH = this.h - this.cropOffsertY, this.cropW = this.cropH / this.fixedNumber[1] * this.fixedNumber[0], s > 0 ? this.cropOffsertX = this.cropChangeX : this.cropOffsertX = this.cropChangeX - this.cropW) : this.cropH = r, this.cropOffsertY = this.cropOffsertY;
563
- }
564
- });
565
- },
566
- // 改变截图框大小
567
- changeCropSize(t, e, i, s, o) {
568
- t.preventDefault(), window.addEventListener("mousemove", this.changeCropNow), window.addEventListener("mouseup", this.changeCropEnd), window.addEventListener("touchmove", this.changeCropNow), window.addEventListener("touchend", this.changeCropEnd), this.canChangeX = e, this.canChangeY = i, this.changeCropTypeX = s, this.changeCropTypeY = o, this.cropX = "clientX" in t ? t.clientX : t.touches[0].clientX, this.cropY = "clientY" in t ? t.clientY : t.touches[0].clientY, this.cropOldW = this.cropW, this.cropOldH = this.cropH, this.cropChangeX = this.cropOffsertX, this.cropChangeY = this.cropOffsertY, this.fixed && this.canChangeX && this.canChangeY && (this.canChangeY = 0), this.$emit("changeCropSize", {
569
- width: this.cropW,
570
- height: this.cropH
571
- }), this.$emit("change-crop-size", {
572
- width: this.cropW,
573
- height: this.cropH
574
- });
575
- },
576
- // 正在改变
577
- changeCropNow(t) {
578
- t.preventDefault();
579
- var e = "clientX" in t ? t.clientX : t.touches ? t.touches[0].clientX : 0, i = "clientY" in t ? t.clientY : t.touches ? t.touches[0].clientY : 0;
580
- let s = this.w, o = this.h, r = 0, h = 0;
581
- if (this.centerBox) {
582
- let l = this.getImgAxis(), n = l.x2, p = l.y2;
583
- r = l.x1 > 0 ? l.x1 : 0, h = l.y1 > 0 ? l.y1 : 0, s > n && (s = n), o > p && (o = p);
584
- }
585
- const [a, c] = this.checkCropLimitSize();
586
- this.$nextTick(() => {
587
- var l = e - this.cropX, n = i - this.cropY;
588
- if (this.canChangeX && (this.changeCropTypeX === 1 ? this.cropOldW - l < a ? (this.cropW = a, this.cropOffsertX = this.cropOldW + this.cropChangeX - r - a) : this.cropOldW - l > 0 ? (this.cropW = s - this.cropChangeX - l <= s - r ? this.cropOldW - l : this.cropOldW + this.cropChangeX - r, this.cropOffsertX = s - this.cropChangeX - l <= s - r ? this.cropChangeX + l : r) : (this.cropW = Math.abs(l) + this.cropChangeX <= s ? Math.abs(l) - this.cropOldW : s - this.cropOldW - this.cropChangeX, this.cropOffsertX = this.cropChangeX + this.cropOldW) : this.changeCropTypeX === 2 && (this.cropOldW + l < a ? this.cropW = a : this.cropOldW + l > 0 ? (this.cropW = this.cropOldW + l + this.cropOffsertX <= s ? this.cropOldW + l : s - this.cropOffsertX, this.cropOffsertX = this.cropChangeX) : (this.cropW = s - this.cropChangeX + Math.abs(l + this.cropOldW) <= s - r ? Math.abs(l + this.cropOldW) : this.cropChangeX - r, this.cropOffsertX = s - this.cropChangeX + Math.abs(l + this.cropOldW) <= s - r ? this.cropChangeX - Math.abs(l + this.cropOldW) : r))), this.canChangeY && (this.changeCropTypeY === 1 ? this.cropOldH - n < c ? (this.cropH = c, this.cropOffsertY = this.cropOldH + this.cropChangeY - h - c) : this.cropOldH - n > 0 ? (this.cropH = o - this.cropChangeY - n <= o - h ? this.cropOldH - n : this.cropOldH + this.cropChangeY - h, this.cropOffsertY = o - this.cropChangeY - n <= o - h ? this.cropChangeY + n : h) : (this.cropH = Math.abs(n) + this.cropChangeY <= o ? Math.abs(n) - this.cropOldH : o - this.cropOldH - this.cropChangeY, this.cropOffsertY = this.cropChangeY + this.cropOldH) : this.changeCropTypeY === 2 && (this.cropOldH + n < c ? this.cropH = c : this.cropOldH + n > 0 ? (this.cropH = this.cropOldH + n + this.cropOffsertY <= o ? this.cropOldH + n : o - this.cropOffsertY, this.cropOffsertY = this.cropChangeY) : (this.cropH = o - this.cropChangeY + Math.abs(n + this.cropOldH) <= o - h ? Math.abs(n + this.cropOldH) : this.cropChangeY - h, this.cropOffsertY = o - this.cropChangeY + Math.abs(n + this.cropOldH) <= o - h ? this.cropChangeY - Math.abs(n + this.cropOldH) : h))), this.canChangeX && this.fixed) {
589
- var p = this.cropW / this.fixedNumber[0] * this.fixedNumber[1];
590
- p < c ? (this.cropH = c, this.cropW = this.fixedNumber[0] * c / this.fixedNumber[1], this.changeCropTypeX === 1 && (this.cropOffsertX = this.cropChangeX + (this.cropOldW - this.cropW))) : p + this.cropOffsertY > o ? (this.cropH = o - this.cropOffsertY, this.cropW = this.cropH / this.fixedNumber[1] * this.fixedNumber[0], this.changeCropTypeX === 1 && (this.cropOffsertX = this.cropChangeX + (this.cropOldW - this.cropW))) : this.cropH = p;
591
- }
592
- if (this.canChangeY && this.fixed) {
593
- var f = this.cropH / this.fixedNumber[1] * this.fixedNumber[0];
594
- f < a ? (this.cropW = a, this.cropH = this.fixedNumber[1] * a / this.fixedNumber[0]) : f + this.cropOffsertX > s ? (this.cropW = s - this.cropOffsertX, this.cropH = this.cropW / this.fixedNumber[0] * this.fixedNumber[1]) : this.cropW = f;
595
- }
596
- this.$emit("cropSizing", { cropW: this.cropW, cropH: this.cropH }), this.$emit("crop-sizing", { cropW: this.cropW, cropH: this.cropH });
597
- });
598
- },
599
- checkCropLimitSize() {
600
- let { cropW: t, cropH: e, limitMinSize: i } = this, s = new Array();
601
- return Array.isArray(i) ? s = i : s = [i, i], t = parseFloat(s[0]), e = parseFloat(s[1]), [t, e];
602
- },
603
- // 结束改变
604
- changeCropEnd(t) {
605
- window.removeEventListener("mousemove", this.changeCropNow), window.removeEventListener("mouseup", this.changeCropEnd), window.removeEventListener("touchmove", this.changeCropNow), window.removeEventListener("touchend", this.changeCropEnd);
606
- },
607
- // 根据比例x/y,最小宽度,最小高度,现有宽度,现有高度,得到应该有的宽度和高度
608
- calculateSize(t, e, i, s, o, r) {
609
- const h = t / e;
610
- let a = o, c = r;
611
- return a < i && (a = i, c = Math.ceil(a / h)), c < s && (c = s, a = Math.ceil(c * h), a < i && (a = i, c = Math.ceil(a / h))), a < o && (a = o, c = Math.ceil(a / h)), c < r && (c = r, a = Math.ceil(c * h)), { width: a, height: c };
612
- },
613
- // 创建完成
614
- endCrop() {
615
- this.cropW === 0 && this.cropH === 0 && (this.cropping = !1);
616
- let [t, e] = this.checkCropLimitSize();
617
- const { width: i, height: s } = this.fixed ? this.calculateSize(
618
- this.fixedNumber[0],
619
- this.fixedNumber[1],
620
- t,
621
- e,
622
- this.cropW,
623
- this.cropH
624
- ) : { width: t, height: e };
625
- i > this.cropW && (this.cropW = i, this.cropOffsertX + i > this.w && (this.cropOffsertX = this.w - i)), s > this.cropH && (this.cropH = s, this.cropOffsertY + s > this.h && (this.cropOffsertY = this.h - s)), window.removeEventListener("mousemove", this.createCrop), window.removeEventListener("mouseup", this.endCrop), window.removeEventListener("touchmove", this.createCrop), window.removeEventListener("touchend", this.endCrop);
626
- },
627
- // 开始截图
628
- startCrop() {
629
- this.crop = !0;
630
- },
631
- // 停止截图
632
- stopCrop() {
633
- this.crop = !1;
634
- },
635
- // 清除截图
636
- clearCrop() {
637
- this.cropping = !1, this.cropW = 0, this.cropH = 0;
638
- },
639
- // 截图移动
640
- cropMove(t) {
641
- if (t.preventDefault(), !this.canMoveBox)
642
- return this.crop = !1, this.startMove(t), !1;
643
- if (t.touches && t.touches.length === 2)
644
- return this.crop = !1, this.startMove(t), this.leaveCrop(), !1;
645
- window.addEventListener("mousemove", this.moveCrop), window.addEventListener("mouseup", this.leaveCrop), window.addEventListener("touchmove", this.moveCrop), window.addEventListener("touchend", this.leaveCrop);
646
- let e = "clientX" in t ? t.clientX : t.touches[0].clientX, i = "clientY" in t ? t.clientY : t.touches[0].clientY, s, o;
647
- s = e - this.cropOffsertX, o = i - this.cropOffsertY, this.cropX = s, this.cropY = o, this.$emit("cropMoving", {
648
- moving: !0,
649
- axis: this.getCropAxis()
650
- }), this.$emit("crop-moving", {
651
- moving: !0,
652
- axis: this.getCropAxis()
653
- });
654
- },
655
- moveCrop(t, e) {
656
- let i = 0, s = 0;
657
- t && (t.preventDefault(), i = "clientX" in t ? t.clientX : t.touches[0].clientX, s = "clientY" in t ? t.clientY : t.touches[0].clientY), this.$nextTick(() => {
658
- let o, r, h = i - this.cropX, a = s - this.cropY;
659
- if (e && (h = this.cropOffsertX, a = this.cropOffsertY), h <= 0 ? o = 0 : h + this.cropW > this.w ? o = this.w - this.cropW : o = h, a <= 0 ? r = 0 : a + this.cropH > this.h ? r = this.h - this.cropH : r = a, this.centerBox) {
660
- let c = this.getImgAxis();
661
- o <= c.x1 && (o = c.x1), o + this.cropW > c.x2 && (o = c.x2 - this.cropW), r <= c.y1 && (r = c.y1), r + this.cropH > c.y2 && (r = c.y2 - this.cropH);
662
- }
663
- this.cropOffsertX = o, this.cropOffsertY = r, this.$emit("cropMoving", {
664
- moving: !0,
665
- axis: this.getCropAxis()
666
- }), this.$emit("crop-moving", {
667
- moving: !0,
668
- axis: this.getCropAxis()
669
- });
670
- });
671
- },
672
- // 算出不同场景下面 图片相对于外层容器的坐标轴
673
- getImgAxis(t, e, i) {
674
- t = t || this.x, e = e || this.y, i = i || this.scale;
675
- let s = {
676
- x1: 0,
677
- x2: 0,
678
- y1: 0,
679
- y2: 0
680
- }, o = this.trueWidth * i, r = this.trueHeight * i;
681
- switch (this.rotate) {
682
- case 0:
683
- s.x1 = t + this.trueWidth * (1 - i) / 2, s.x2 = s.x1 + this.trueWidth * i, s.y1 = e + this.trueHeight * (1 - i) / 2, s.y2 = s.y1 + this.trueHeight * i;
684
- break;
685
- case 1:
686
- case -1:
687
- case 3:
688
- case -3:
689
- s.x1 = t + this.trueWidth * (1 - i) / 2 + (o - r) / 2, s.x2 = s.x1 + this.trueHeight * i, s.y1 = e + this.trueHeight * (1 - i) / 2 + (r - o) / 2, s.y2 = s.y1 + this.trueWidth * i;
690
- break;
691
- default:
692
- s.x1 = t + this.trueWidth * (1 - i) / 2, s.x2 = s.x1 + this.trueWidth * i, s.y1 = e + this.trueHeight * (1 - i) / 2, s.y2 = s.y1 + this.trueHeight * i;
693
- break;
694
- }
695
- return s;
696
- },
697
- // 获取截图框的坐标轴
698
- getCropAxis() {
699
- let t = {
700
- x1: 0,
701
- x2: 0,
702
- y1: 0,
703
- y2: 0
704
- };
705
- return t.x1 = this.cropOffsertX, t.x2 = t.x1 + this.cropW, t.y1 = this.cropOffsertY, t.y2 = t.y1 + this.cropH, t;
706
- },
707
- leaveCrop(t) {
708
- window.removeEventListener("mousemove", this.moveCrop), window.removeEventListener("mouseup", this.leaveCrop), window.removeEventListener("touchmove", this.moveCrop), window.removeEventListener("touchend", this.leaveCrop), this.$emit("cropMoving", {
709
- moving: !1,
710
- axis: this.getCropAxis()
711
- }), this.$emit("crop-moving", {
712
- moving: !1,
713
- axis: this.getCropAxis()
714
- });
715
- },
716
- getCropChecked(t) {
717
- let e = document.createElement("canvas"), i = new Image(), s = this.rotate, o = this.trueWidth, r = this.trueHeight, h = this.cropOffsertX, a = this.cropOffsertY;
718
- i.onload = () => {
719
- if (this.cropW !== 0) {
720
- let n = e.getContext("2d"), p = 1;
721
- this.high & !this.full && (p = window.devicePixelRatio), this.enlarge !== 1 & !this.full && (p = Math.abs(Number(this.enlarge)));
722
- let f = this.cropW * p, b = this.cropH * p, d = o * this.scale * p, g = r * this.scale * p, m = (this.x - h + this.trueWidth * (1 - this.scale) / 2) * p, u = (this.y - a + this.trueHeight * (1 - this.scale) / 2) * p;
723
- switch (l(f, b), n.save(), this.fillColor && (n.fillStyle = this.fillColor, n.fillRect(0, 0, e.width, e.height)), s) {
724
- case 0:
725
- this.full ? (l(f / this.scale, b / this.scale), n.drawImage(
726
- i,
727
- m / this.scale,
728
- u / this.scale,
729
- d / this.scale,
730
- g / this.scale
731
- )) : n.drawImage(i, m, u, d, g);
732
- break;
733
- case 1:
734
- case -3:
735
- this.full ? (l(f / this.scale, b / this.scale), m = m / this.scale + (d / this.scale - g / this.scale) / 2, u = u / this.scale + (g / this.scale - d / this.scale) / 2, n.rotate(s * 90 * Math.PI / 180), n.drawImage(
736
- i,
737
- u,
738
- -m - g / this.scale,
739
- d / this.scale,
740
- g / this.scale
741
- )) : (m = m + (d - g) / 2, u = u + (g - d) / 2, n.rotate(s * 90 * Math.PI / 180), n.drawImage(i, u, -m - g, d, g));
742
- break;
743
- case 2:
744
- case -2:
745
- this.full ? (l(f / this.scale, b / this.scale), n.rotate(s * 90 * Math.PI / 180), m = m / this.scale, u = u / this.scale, n.drawImage(
746
- i,
747
- -m - d / this.scale,
748
- -u - g / this.scale,
749
- d / this.scale,
750
- g / this.scale
751
- )) : (n.rotate(s * 90 * Math.PI / 180), n.drawImage(i, -m - d, -u - g, d, g));
752
- break;
753
- case 3:
754
- case -1:
755
- this.full ? (l(f / this.scale, b / this.scale), m = m / this.scale + (d / this.scale - g / this.scale) / 2, u = u / this.scale + (g / this.scale - d / this.scale) / 2, n.rotate(s * 90 * Math.PI / 180), n.drawImage(
756
- i,
757
- -u - d / this.scale,
758
- m,
759
- d / this.scale,
760
- g / this.scale
761
- )) : (m = m + (d - g) / 2, u = u + (g - d) / 2, n.rotate(s * 90 * Math.PI / 180), n.drawImage(i, -u - d, m, d, g));
762
- break;
763
- default:
764
- this.full ? (l(f / this.scale, b / this.scale), n.drawImage(
765
- i,
766
- m / this.scale,
767
- u / this.scale,
768
- d / this.scale,
769
- g / this.scale
770
- )) : n.drawImage(i, m, u, d, g);
771
- }
772
- n.restore();
773
- } else {
774
- let n = o * this.scale, p = r * this.scale, f = e.getContext("2d");
775
- switch (f.save(), this.fillColor && (f.fillStyle = this.fillColor, f.fillRect(0, 0, e.width, e.height)), s) {
776
- case 0:
777
- l(n, p), f.drawImage(i, 0, 0, n, p);
778
- break;
779
- case 1:
780
- case -3:
781
- l(p, n), f.rotate(s * 90 * Math.PI / 180), f.drawImage(i, 0, -p, n, p);
782
- break;
783
- case 2:
784
- case -2:
785
- l(n, p), f.rotate(s * 90 * Math.PI / 180), f.drawImage(i, -n, -p, n, p);
786
- break;
787
- case 3:
788
- case -1:
789
- l(p, n), f.rotate(s * 90 * Math.PI / 180), f.drawImage(i, -n, 0, n, p);
790
- break;
791
- default:
792
- l(n, p), f.drawImage(i, 0, 0, n, p);
793
- }
794
- f.restore();
795
- }
796
- t(e);
797
- };
798
- var c = this.img.substr(0, 4);
799
- c !== "data" && (i.crossOrigin = "Anonymous"), i.src = this.imgs;
800
- function l(n, p) {
801
- e.width = Math.round(n), e.height = Math.round(p);
802
- }
803
- },
804
- // 获取转换成base64 的图片信息
805
- getCropData(t) {
806
- this.getCropChecked((e) => {
807
- t(e.toDataURL("image/" + this.outputType, this.outputSize));
808
- });
809
- },
810
- //canvas获取为blob对象
811
- getCropBlob(t) {
812
- this.getCropChecked((e) => {
813
- e.toBlob(
814
- (i) => t(i),
815
- "image/" + this.outputType,
816
- this.outputSize
817
- );
818
- });
819
- },
820
- // 自动预览函数
821
- showPreview() {
822
- if (this.isCanShow)
823
- this.isCanShow = !1, setTimeout(() => {
824
- this.isCanShow = !0;
825
- }, 16);
826
- else
827
- return !1;
828
- let t = this.cropW, e = this.cropH, i = this.scale;
829
- var s = {};
830
- s.div = {
831
- width: `${t}px`,
832
- height: `${e}px`
833
- };
834
- let o = (this.x - this.cropOffsertX) / i, r = (this.y - this.cropOffsertY) / i, h = 0;
835
- s.w = t, s.h = e, s.url = this.imgs, s.img = {
836
- width: `${this.trueWidth}px`,
837
- height: `${this.trueHeight}px`,
838
- transform: `scale(${i})translate3d(${o}px, ${r}px, ${h}px)rotateZ(${this.rotate * 90}deg)`
839
- }, s.html = `
840
- <div class="show-preview" style="width: ${s.w}px; height: ${s.h}px; overflow: hidden">
841
- <div style="width: ${t}px; height: ${e}px">
842
- <img src=${s.url} style="width: ${this.trueWidth}px; height: ${this.trueHeight}px; transform:
843
- scale(${i})translate3d(${o}px, ${r}px, ${h}px)rotateZ(${this.rotate * 90}deg)">
844
- </div>
845
- </div>`, this.$emit("realTime", s), this.$emit("real-time", s);
846
- },
847
- // reload 图片布局函数
848
- reload() {
849
- let t = new Image();
850
- t.onload = () => {
851
- this.w = parseFloat(window.getComputedStyle(this.$refs.cropper).width), this.h = parseFloat(window.getComputedStyle(this.$refs.cropper).height), this.trueWidth = t.width, this.trueHeight = t.height, this.original ? this.scale = 1 : this.scale = this.checkedMode(), this.$nextTick(() => {
852
- this.x = -(this.trueWidth - this.trueWidth * this.scale) / 2 + (this.w - this.trueWidth * this.scale) / 2, this.y = -(this.trueHeight - this.trueHeight * this.scale) / 2 + (this.h - this.trueHeight * this.scale) / 2, this.loading = !1, this.autoCrop && this.goAutoCrop(), this.$emit("img-load", "success"), this.$emit("imgLoad", "success"), setTimeout(() => {
853
- this.showPreview();
854
- }, 20);
855
- });
856
- }, t.onerror = () => {
857
- this.$emit("imgLoad", "error"), this.$emit("img-load", "error");
858
- }, t.src = this.imgs;
859
- },
860
- // 背景布局的函数
861
- checkedMode() {
862
- let t = 1, e = this.trueWidth, i = this.trueHeight;
863
- const s = this.mode.split(" ");
864
- switch (s[0]) {
865
- case "contain":
866
- this.trueWidth > this.w && (t = this.w / this.trueWidth), this.trueHeight * t > this.h && (t = this.h / this.trueHeight);
867
- break;
868
- case "cover":
869
- e = this.w, t = e / this.trueWidth, i = i * t, i < this.h && (i = this.h, t = i / this.trueHeight);
870
- break;
871
- default:
872
- try {
873
- let o = s[0];
874
- if (o.search("px") !== -1) {
875
- o = o.replace("px", ""), e = parseFloat(o);
876
- const r = e / this.trueWidth;
877
- let h = 1, a = s[1];
878
- a.search("px") !== -1 && (a = a.replace("px", ""), i = parseFloat(a), h = i / this.trueHeight), t = Math.min(r, h);
879
- }
880
- if (o.search("%") !== -1 && (o = o.replace("%", ""), e = parseFloat(o) / 100 * this.w, t = e / this.trueWidth), s.length === 2 && o === "auto") {
881
- let r = s[1];
882
- r.search("px") !== -1 && (r = r.replace("px", ""), i = parseFloat(r), t = i / this.trueHeight), r.search("%") !== -1 && (r = r.replace("%", ""), i = parseFloat(r) / 100 * this.h, t = i / this.trueHeight);
883
- }
884
- } catch {
885
- t = 1;
886
- }
887
- }
888
- return t;
889
- },
890
- // 自动截图函数
891
- goAutoCrop(t, e) {
892
- if (this.imgs === "" || this.imgs === null)
893
- return;
894
- this.clearCrop(), this.cropping = !0;
895
- let i = this.w, s = this.h;
896
- if (this.centerBox) {
897
- const h = Math.abs(this.rotate) % 2 > 0;
898
- let a = (h ? this.trueHeight : this.trueWidth) * this.scale, c = (h ? this.trueWidth : this.trueHeight) * this.scale;
899
- i = a < i ? a : i, s = c < s ? c : s;
900
- }
901
- var o = t || parseFloat(this.autoCropWidth), r = e || parseFloat(this.autoCropHeight);
902
- (o === 0 || r === 0) && (o = i * 0.8, r = s * 0.8), o = o > i ? i : o, r = r > s ? s : r, this.fixed && (r = o / this.fixedNumber[0] * this.fixedNumber[1]), r > this.h && (r = this.h, o = r / this.fixedNumber[1] * this.fixedNumber[0]), this.changeCrop(o, r);
903
- },
904
- // 手动改变截图框大小函数
905
- changeCrop(t, e) {
906
- if (this.centerBox) {
907
- let i = this.getImgAxis();
908
- t > i.x2 - i.x1 && (t = i.x2 - i.x1, e = t / this.fixedNumber[0] * this.fixedNumber[1]), e > i.y2 - i.y1 && (e = i.y2 - i.y1, t = e / this.fixedNumber[1] * this.fixedNumber[0]);
909
- }
910
- this.cropW = t, this.cropH = e, this.checkCropLimitSize(), this.$nextTick(() => {
911
- this.cropOffsertX = (this.w - this.cropW) / 2, this.cropOffsertY = (this.h - this.cropH) / 2, this.centerBox && this.moveCrop(null, !0);
912
- });
913
- },
914
- // 重置函数, 恢复组件置初始状态
915
- refresh() {
916
- this.img, this.imgs = "", this.scale = 1, this.crop = !1, this.rotate = 0, this.w = 0, this.h = 0, this.trueWidth = 0, this.trueHeight = 0, this.clearCrop(), this.$nextTick(() => {
917
- this.checkedImg();
918
- });
919
- },
920
- // 向左边旋转
921
- rotateLeft() {
922
- this.rotate = this.rotate <= -3 ? 0 : this.rotate - 1;
923
- },
924
- // 向右边旋转
925
- rotateRight() {
926
- this.rotate = this.rotate >= 3 ? 0 : this.rotate + 1;
927
- },
928
- // 清除旋转
929
- rotateClear() {
930
- this.rotate = 0;
931
- },
932
- // 图片坐标点校验
933
- checkoutImgAxis(t, e, i) {
934
- t = t || this.x, e = e || this.y, i = i || this.scale;
935
- let s = !0;
936
- if (this.centerBox) {
937
- let o = this.getImgAxis(t, e, i), r = this.getCropAxis();
938
- o.x1 >= r.x1 && (s = !1), o.x2 <= r.x2 && (s = !1), o.y1 >= r.y1 && (s = !1), o.y2 <= r.y2 && (s = !1);
939
- }
940
- return s;
941
- }
942
- },
943
- mounted() {
944
- this.support = "onwheel" in document.createElement("div") ? "wheel" : document.onmousewheel !== void 0 ? "mousewheel" : "DOMMouseScroll";
945
- let t = this;
946
- var e = navigator.userAgent;
947
- this.isIOS = !!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), HTMLCanvasElement.prototype.toBlob || Object.defineProperty(HTMLCanvasElement.prototype, "toBlob", {
948
- value: function(i, s, o) {
949
- for (var r = atob(this.toDataURL(s, o).split(",")[1]), h = r.length, a = new Uint8Array(h), c = 0; c < h; c++)
950
- a[c] = r.charCodeAt(c);
951
- i(new Blob([a], { type: t.type || "image/png" }));
952
- }
953
- }), this.showPreview(), this.checkedImg();
954
- },
955
- destroyed() {
956
- window.removeEventListener("mousemove", this.moveCrop), window.removeEventListener("mouseup", this.leaveCrop), window.removeEventListener("touchmove", this.moveCrop), window.removeEventListener("touchend", this.leaveCrop), this.cancelScale();
957
- }
958
- }, et = {
959
- key: 0,
960
- class: "cropper-box"
961
- }, it = ["src"], st = { class: "cropper-view-box" }, rt = ["src"], ot = { key: 1 };
962
- function ht(t, e, i, s, o, r) {
963
- return Y(), M("div", {
964
- class: "vue-cropper",
965
- ref: "cropper",
966
- onMouseover: e[28] || (e[28] = (...h) => r.scaleImg && r.scaleImg(...h)),
967
- onMouseout: e[29] || (e[29] = (...h) => r.cancelScale && r.cancelScale(...h))
968
- }, [
969
- t.imgs ? (Y(), M("div", et, [
970
- k(w("div", {
971
- class: "cropper-box-canvas",
972
- style: S({
973
- width: t.trueWidth + "px",
974
- height: t.trueHeight + "px",
975
- transform: "scale(" + t.scale + "," + t.scale + ") translate3d(" + t.x / t.scale + "px," + t.y / t.scale + "px,0)rotateZ(" + t.rotate * 90 + "deg)"
976
- })
977
- }, [
978
- w("img", {
979
- src: t.imgs,
980
- alt: "cropper-img",
981
- ref: "cropperImg"
982
- }, null, 8, it)
983
- ], 4), [
984
- [A, !t.loading]
985
- ])
986
- ])) : L("", !0),
987
- w("div", {
988
- class: U(["cropper-drag-box", { "cropper-move": t.move && !t.crop, "cropper-crop": t.crop, "cropper-modal": t.cropping }]),
989
- onMousedown: e[0] || (e[0] = (...h) => r.startMove && r.startMove(...h)),
990
- onTouchstart: e[1] || (e[1] = (...h) => r.startMove && r.startMove(...h))
991
- }, null, 34),
992
- k(w("div", {
993
- class: "cropper-crop-box",
994
- style: S({
995
- width: t.cropW + "px",
996
- height: t.cropH + "px",
997
- transform: "translate3d(" + t.cropOffsertX + "px," + t.cropOffsertY + "px,0)"
998
- })
999
- }, [
1000
- w("span", st, [
1001
- w("img", {
1002
- style: S({
1003
- width: t.trueWidth + "px",
1004
- height: t.trueHeight + "px",
1005
- transform: "scale(" + t.scale + "," + t.scale + ") translate3d(" + (t.x - t.cropOffsertX) / t.scale + "px," + (t.y - t.cropOffsertY) / t.scale + "px,0)rotateZ(" + t.rotate * 90 + "deg)"
1006
- }),
1007
- src: t.imgs,
1008
- alt: "cropper-img"
1009
- }, null, 12, rt)
1010
- ]),
1011
- w("span", {
1012
- class: "cropper-face cropper-move",
1013
- onMousedown: e[2] || (e[2] = (...h) => r.cropMove && r.cropMove(...h)),
1014
- onTouchstart: e[3] || (e[3] = (...h) => r.cropMove && r.cropMove(...h))
1015
- }, null, 32),
1016
- i.info ? (Y(), M("span", {
1017
- key: 0,
1018
- class: "crop-info",
1019
- style: S({ top: r.cropInfo.top })
1020
- }, N(r.cropInfo.width) + " × " + N(r.cropInfo.height), 5)) : L("", !0),
1021
- i.fixedBox ? L("", !0) : (Y(), M("span", ot, [
1022
- w("span", {
1023
- class: "crop-line line-w",
1024
- onMousedown: e[4] || (e[4] = (h) => r.changeCropSize(h, !1, !0, 0, 1)),
1025
- onTouchstart: e[5] || (e[5] = (h) => r.changeCropSize(h, !1, !0, 0, 1))
1026
- }, null, 32),
1027
- w("span", {
1028
- class: "crop-line line-a",
1029
- onMousedown: e[6] || (e[6] = (h) => r.changeCropSize(h, !0, !1, 1, 0)),
1030
- onTouchstart: e[7] || (e[7] = (h) => r.changeCropSize(h, !0, !1, 1, 0))
1031
- }, null, 32),
1032
- w("span", {
1033
- class: "crop-line line-s",
1034
- onMousedown: e[8] || (e[8] = (h) => r.changeCropSize(h, !1, !0, 0, 2)),
1035
- onTouchstart: e[9] || (e[9] = (h) => r.changeCropSize(h, !1, !0, 0, 2))
1036
- }, null, 32),
1037
- w("span", {
1038
- class: "crop-line line-d",
1039
- onMousedown: e[10] || (e[10] = (h) => r.changeCropSize(h, !0, !1, 2, 0)),
1040
- onTouchstart: e[11] || (e[11] = (h) => r.changeCropSize(h, !0, !1, 2, 0))
1041
- }, null, 32),
1042
- w("span", {
1043
- class: "crop-point point1",
1044
- onMousedown: e[12] || (e[12] = (h) => r.changeCropSize(h, !0, !0, 1, 1)),
1045
- onTouchstart: e[13] || (e[13] = (h) => r.changeCropSize(h, !0, !0, 1, 1))
1046
- }, null, 32),
1047
- w("span", {
1048
- class: "crop-point point2",
1049
- onMousedown: e[14] || (e[14] = (h) => r.changeCropSize(h, !1, !0, 0, 1)),
1050
- onTouchstart: e[15] || (e[15] = (h) => r.changeCropSize(h, !1, !0, 0, 1))
1051
- }, null, 32),
1052
- w("span", {
1053
- class: "crop-point point3",
1054
- onMousedown: e[16] || (e[16] = (h) => r.changeCropSize(h, !0, !0, 2, 1)),
1055
- onTouchstart: e[17] || (e[17] = (h) => r.changeCropSize(h, !0, !0, 2, 1))
1056
- }, null, 32),
1057
- w("span", {
1058
- class: "crop-point point4",
1059
- onMousedown: e[18] || (e[18] = (h) => r.changeCropSize(h, !0, !1, 1, 0)),
1060
- onTouchstart: e[19] || (e[19] = (h) => r.changeCropSize(h, !0, !1, 1, 0))
1061
- }, null, 32),
1062
- w("span", {
1063
- class: "crop-point point5",
1064
- onMousedown: e[20] || (e[20] = (h) => r.changeCropSize(h, !0, !1, 2, 0)),
1065
- onTouchstart: e[21] || (e[21] = (h) => r.changeCropSize(h, !0, !1, 2, 0))
1066
- }, null, 32),
1067
- w("span", {
1068
- class: "crop-point point6",
1069
- onMousedown: e[22] || (e[22] = (h) => r.changeCropSize(h, !0, !0, 1, 2)),
1070
- onTouchstart: e[23] || (e[23] = (h) => r.changeCropSize(h, !0, !0, 1, 2))
1071
- }, null, 32),
1072
- w("span", {
1073
- class: "crop-point point7",
1074
- onMousedown: e[24] || (e[24] = (h) => r.changeCropSize(h, !1, !0, 0, 2)),
1075
- onTouchstart: e[25] || (e[25] = (h) => r.changeCropSize(h, !1, !0, 0, 2))
1076
- }, null, 32),
1077
- w("span", {
1078
- class: "crop-point point8",
1079
- onMousedown: e[26] || (e[26] = (h) => r.changeCropSize(h, !0, !0, 2, 2)),
1080
- onTouchstart: e[27] || (e[27] = (h) => r.changeCropSize(h, !0, !0, 2, 2))
1081
- }, null, 32)
1082
- ]))
1083
- ], 4), [
1084
- [A, t.cropping]
1085
- ])
1086
- ], 544);
1087
- }
1088
- const at = /* @__PURE__ */ B(tt, [["render", ht], ["__scopeId", "data-v-3274417a"]]), nt = { class: "h-full" }, lt = { class: "avatar-upload-preview" }, ct = ["src"], pt = /* @__PURE__ */ F({
1089
- __name: "uploadAvatar",
1090
- props: {
1091
- avatar: { default: "" },
1092
- close: { type: Function, default: close },
1093
- proxyId: { default: "" }
1094
- },
1095
- setup(t) {
1096
- const { postSinglefile: e, postUpdateFile: i } = G(), s = t;
1097
- let o = I({});
1098
- z(async () => {
1099
- o.value = await q.get("userInfo");
1100
- });
1101
- const { proxy: r } = D();
1102
- let { avatar: h } = j(s);
1103
- const a = V({
1104
- img: "",
1105
- // 需要剪裁的图片
1106
- autoCrop: !0,
1107
- // 是否默认生成截图框
1108
- autoCropWidth: 200,
1109
- // 默认生成截图框的宽度
1110
- autoCropHeight: 200,
1111
- // 默认生成截图框的长度
1112
- fixedBox: !1,
1113
- // 是否固定截图框的大小 不允许改变
1114
- // info: true, // 裁剪框的大小信息
1115
- outputSize: 0.5,
1116
- // 裁剪生成图片的质量 [1至0.1]
1117
- outputType: "jpeg",
1118
- // 裁剪生成图片的格式
1119
- canScale: !1,
1120
- // 图片是否允许滚轮缩放
1121
- fixed: !1,
1122
- // 是否开启截图框宽高固定比例
1123
- fixedNumber: [1, 1],
1124
- // 截图框的宽高比例 需要配合centerBox一起使用才能生效
1125
- full: !0,
1126
- // 是否输出原图比例的截图
1127
- canMoveBox: !1,
1128
- // 截图框能否拖动
1129
- original: !1,
1130
- // 上传图片按照原始比例渲染
1131
- centerBox: !1,
1132
- // 截图框是否被限制在图片里面
1133
- infoTrue: !0,
1134
- // true 为展示真实输出图片宽高 false 展示看到的截图框宽高
1135
- filename: ""
1136
- // 文件名
1137
- }), c = I({}), l = I({});
1138
- I(!1);
1139
- let n = (u) => {
1140
- u == "left" && l.value.rotateLeft(), u == "right" && l.value.rotateRight();
1141
- }, p = (u) => {
1142
- const C = u || 1;
1143
- l.value.changeScale(C);
1144
- }, f = () => {
1145
- l.value.refresh();
1146
- };
1147
- const b = (u) => {
1148
- c.value = u;
1149
- };
1150
- let d = () => {
1151
- }, g = (u) => {
1152
- if (["image/png", "image/jpg", "image/jpeg", "image/PNG", "image/JPG", "image/JPEG", "image/gif"].includes(u.type)) {
1153
- const x = new FileReader();
1154
- x.readAsDataURL(u), x.onload = () => {
1155
- a.img = x.result, a.filename = u.name;
1156
- };
1157
- } else
1158
- return r.$message.error("图片格式有误,请重新上传"), !1;
1159
- }, m = () => {
1160
- a.img || r.$message.warning("请先选择图片"), l.value.getCropBlob(async (u) => {
1161
- const C = await e({ data: { file: u }, proxy: s.proxyId }), x = await i({
1162
- data: {
1163
- id: o.value.id,
1164
- attchIdArrStr: C.data.id,
1165
- attachType: 2
1166
- },
1167
- proxy: s.proxyId
1168
- });
1169
- s.close(x);
1170
- });
1171
- };
1172
- return z(() => {
1173
- setTimeout(() => {
1174
- a.img = h.value;
1175
- }, 100);
1176
- }), (u, C) => {
1177
- const x = O("el-col"), T = O("el-row"), P = O("bc-icon"), W = O("el-button"), R = O("hs-upload");
1178
- return Y(), M("div", nt, [
1179
- v(T, null, {
1180
- default: y(() => [
1181
- v(x, {
1182
- xs: 24,
1183
- md: 13,
1184
- style: { height: "350px" }
1185
- }, {
1186
- default: y(() => [
1187
- v(at, {
1188
- ref_key: "cropperRef",
1189
- ref: l,
1190
- img: a.img,
1191
- info: !0,
1192
- infoTrue: a.infoTrue,
1193
- "auto-crop": a.autoCrop,
1194
- "fixed-box": a.fixedBox,
1195
- fixedNumber: a.fixedNumber,
1196
- fixed: a.fixed,
1197
- centerBox: a.centerBox,
1198
- outputType: "png",
1199
- onRealTime: b
1200
- }, null, 8, ["img", "infoTrue", "auto-crop", "fixed-box", "fixedNumber", "fixed", "centerBox"])
1201
- ]),
1202
- _: 1
1203
- }),
1204
- v(x, {
1205
- xs: 24,
1206
- md: 11,
1207
- style: { height: "350px" }
1208
- }, {
1209
- default: y(() => [
1210
- w("div", lt, [
1211
- w("img", {
1212
- src: c.value.url,
1213
- style: S(c.value.img)
1214
- }, null, 12, ct)
1215
- ])
1216
- ]),
1217
- _: 1
1218
- })
1219
- ]),
1220
- _: 1
1221
- }),
1222
- v(T, { class: "ptb2 py-3" }, {
1223
- default: y(() => [
1224
- v(x, {
1225
- lg: 2,
1226
- md: 2
1227
- }, {
1228
- default: y(() => [
1229
- v(R, {
1230
- action: "#",
1231
- "http-request": H(d),
1232
- "show-file-list": !1,
1233
- "before-upload": H(g),
1234
- accept: "image/*"
1235
- }, {
1236
- default: y(() => [
1237
- v(W, { size: "default" }, {
1238
- default: y(() => [
1239
- E(" 选择 "),
1240
- v(P, { name: "ele-UploadFilled" })
1241
- ]),
1242
- _: 1
1243
- })
1244
- ]),
1245
- _: 1
1246
- }, 8, ["http-request", "before-upload"])
1247
- ]),
1248
- _: 1
1249
- }),
1250
- v(x, {
1251
- lg: { span: 1, offset: 1 },
1252
- md: 2
1253
- }, {
1254
- default: y(() => [
1255
- v(W, {
1256
- size: "default",
1257
- icon: "ele-Plus",
1258
- onClick: C[0] || (C[0] = (X) => H(p)(1))
1259
- })
1260
- ]),
1261
- _: 1
1262
- }),
1263
- v(x, {
1264
- lg: { span: 1, offset: 1 },
1265
- md: 2
1266
- }, {
1267
- default: y(() => [
1268
- v(W, {
1269
- size: "default",
1270
- icon: "ele-Minus",
1271
- onClick: C[1] || (C[1] = (X) => H(p)(-1))
1272
- })
1273
- ]),
1274
- _: 1
1275
- }),
1276
- v(x, {
1277
- lg: { span: 1, offset: 1 },
1278
- md: 2
1279
- }, {
1280
- default: y(() => [
1281
- v(W, {
1282
- size: "default",
1283
- icon: "ele-RefreshLeft",
1284
- onClick: C[2] || (C[2] = (X) => H(n)("left"))
1285
- })
1286
- ]),
1287
- _: 1
1288
- }),
1289
- v(x, {
1290
- lg: { span: 1, offset: 1 },
1291
- md: 2
1292
- }, {
1293
- default: y(() => [
1294
- v(W, {
1295
- size: "default",
1296
- icon: "ele-RefreshRight",
1297
- onClick: C[3] || (C[3] = (X) => H(n)("right"))
1298
- })
1299
- ]),
1300
- _: 1
1301
- }),
1302
- v(x, {
1303
- lg: { span: 1, offset: 1 },
1304
- md: 2
1305
- }, {
1306
- default: y(() => [
1307
- v(W, {
1308
- size: "default",
1309
- onClick: C[4] || (C[4] = (X) => H(f)())
1310
- }, {
1311
- default: y(() => [
1312
- E("重 置")
1313
- ]),
1314
- _: 1
1315
- })
1316
- ]),
1317
- _: 1
1318
- }),
1319
- v(x, {
1320
- lg: { span: 1, offset: 7 },
1321
- md: 2
1322
- }, {
1323
- default: y(() => [
1324
- v(W, {
1325
- size: "default",
1326
- type: "primary",
1327
- onClick: C[5] || (C[5] = (X) => H(m)())
1328
- }, {
1329
- default: y(() => [
1330
- E("提 交")
1331
- ]),
1332
- _: 1
1333
- })
1334
- ]),
1335
- _: 1
1336
- })
1337
- ]),
1338
- _: 1
1339
- })
1340
- ]);
1341
- };
1342
- }
1343
- }), dt = /* @__PURE__ */ B(pt, [["__scopeId", "data-v-26941f37"]]);
1344
- export {
1345
- dt as default
1346
- };