hs-admin-ui 2.1.10 → 2.2.1

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 (751) hide show
  1. package/dist/401-Ba8t9cWP.js +1 -0
  2. package/dist/401-Ba8t9cWP.js.gz +0 -0
  3. package/dist/401-BfOzvBjn.mjs +47 -0
  4. package/dist/401-BfOzvBjn.mjs.gz +0 -0
  5. package/dist/404-3VEj_5E-.js +1 -0
  6. package/dist/404-3VEj_5E-.js.gz +0 -0
  7. package/dist/404-D9HWsQOG.mjs +47 -0
  8. package/dist/404-D9HWsQOG.mjs.gz +0 -0
  9. package/dist/account-CLWiXIgk.js +1 -0
  10. package/dist/account-CLWiXIgk.js.gz +0 -0
  11. package/dist/account-CN5C-ZIM.mjs +306 -0
  12. package/dist/account-CN5C-ZIM.mjs.gz +0 -0
  13. package/dist/aside-CpWetIAc.mjs +105 -0
  14. package/dist/aside-CpWetIAc.mjs.gz +0 -0
  15. package/dist/aside-eQ8afK2y.js +1 -0
  16. package/dist/aside-eQ8afK2y.js.gz +0 -0
  17. package/dist/baseBtnConfig-BaYFVzAe.js +1 -0
  18. package/dist/baseBtnConfig-BaYFVzAe.js.gz +0 -0
  19. package/dist/baseBtnConfig-BpdCCSnd.mjs +261 -0
  20. package/dist/baseBtnConfig-BpdCCSnd.mjs.gz +0 -0
  21. package/dist/baseFormConfig-C0zfNyc-.js +1 -0
  22. package/dist/baseFormConfig-C0zfNyc-.js.gz +0 -0
  23. package/dist/baseFormConfig-uteR76ht.mjs +565 -0
  24. package/dist/baseFormConfig-uteR76ht.mjs.gz +0 -0
  25. package/dist/btnIndex-P2eH7NlQ.js +1 -0
  26. package/dist/btnIndex-P2eH7NlQ.js.gz +0 -0
  27. package/dist/btnIndex-xbNSRofQ.mjs +247 -0
  28. package/dist/btnIndex-xbNSRofQ.mjs.gz +0 -0
  29. package/dist/classic-CSDS9Rb8.mjs +61 -0
  30. package/dist/classic-CSDS9Rb8.mjs.gz +0 -0
  31. package/dist/classic-DDVofIx5.js +1 -0
  32. package/dist/classic-DDVofIx5.js.gz +0 -0
  33. package/dist/columns-CDPennHf.js +1 -0
  34. package/dist/columns-CDPennHf.js.gz +0 -0
  35. package/dist/columns-DNn2B8G0.mjs +67 -0
  36. package/dist/columns-DNn2B8G0.mjs.gz +0 -0
  37. package/dist/columnsAside-C4aCZ147.mjs +157 -0
  38. package/dist/columnsAside-C4aCZ147.mjs.gz +0 -0
  39. package/dist/columnsAside-LuuLXUwP.js +1 -0
  40. package/dist/columnsAside-LuuLXUwP.js.gz +0 -0
  41. package/dist/contextmenu-BqiDqvyj.mjs +99 -0
  42. package/dist/contextmenu-BqiDqvyj.mjs.gz +0 -0
  43. package/dist/contextmenu-D7_JPUX7.js +1 -0
  44. package/dist/contextmenu-D7_JPUX7.js.gz +0 -0
  45. package/dist/contextmenu-DBN0eibc.js +1 -0
  46. package/dist/contextmenu-DBN0eibc.js.gz +0 -0
  47. package/dist/contextmenu-Zf8a0xhS.mjs +97 -0
  48. package/dist/contextmenu-Zf8a0xhS.mjs.gz +0 -0
  49. package/dist/defaults-CcH4OPdR.mjs +66 -0
  50. package/dist/defaults-CcH4OPdR.mjs.gz +0 -0
  51. package/dist/defaults-DDv4yYah.js +1 -0
  52. package/dist/defaults-DDv4yYah.js.gz +0 -0
  53. package/dist/dialog-BSYMCKjT.mjs +4 -0
  54. package/dist/dialog-BU2004Ow.js +1 -0
  55. package/dist/dialog-BVOXtrln.mjs +10 -0
  56. package/dist/dialog-BmCwSZ2C.js +1 -0
  57. package/dist/dialog-BmCwSZ2C.js.gz +0 -0
  58. package/dist/dialog-Cg0U5X9w.mjs +4 -0
  59. package/dist/dialog-Ch_vZTX6.mjs +329 -0
  60. package/dist/dialog-Ch_vZTX6.mjs.gz +0 -0
  61. package/dist/dialog-Cqb6ay6R.js +1 -0
  62. package/dist/dialog-Cqb6ay6R.js.gz +0 -0
  63. package/dist/dialog-DM1K5pvu.js +1 -0
  64. package/dist/dialog-DVZ-Aqm0.mjs +429 -0
  65. package/dist/dialog-DVZ-Aqm0.mjs.gz +0 -0
  66. package/dist/dialog-DeuceWcM.js +1 -0
  67. package/dist/dialog-DeuceWcM.js.gz +0 -0
  68. package/dist/dialog-UoVqSoLN.mjs +319 -0
  69. package/dist/dialog-UoVqSoLN.mjs.gz +0 -0
  70. package/dist/dialog-ijcVjHau.js +1 -0
  71. package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-DXHczWSl.mjs +179 -0
  72. package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-DXHczWSl.mjs.gz +0 -0
  73. package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-nrVqzhaj.js +1 -0
  74. package/dist/dialog.vue_vue_type_script_setup_true_name_dataAuthDialog_lang-nrVqzhaj.js.gz +0 -0
  75. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-D2A0ND82.js +1 -0
  76. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-D2A0ND82.js.gz +0 -0
  77. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Dp3Hi5Lq.mjs +549 -0
  78. package/dist/dialog.vue_vue_type_script_setup_true_name_systemMenuDialog_lang-Dp3Hi5Lq.mjs.gz +0 -0
  79. package/dist/dictDialog-C4csEkC_.js +1 -0
  80. package/dist/dictDialog-D-YMScQz.mjs +4 -0
  81. package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-_-CyeOLR.js +1 -0
  82. package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-_-CyeOLR.js.gz +0 -0
  83. package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-mKTsX5Dw.mjs +122 -0
  84. package/dist/dictDialog.vue_vue_type_script_setup_true_name_dictDialog_lang-mKTsX5Dw.mjs.gz +0 -0
  85. package/dist/dictItemDialog-D1w6v7DL.js +1 -0
  86. package/dist/dictItemDialog-mC1Aq2rN.mjs +4 -0
  87. package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-7zI3dSTf.mjs +201 -0
  88. package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-7zI3dSTf.mjs.gz +0 -0
  89. package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-BnfKPtU_.js +1 -0
  90. package/dist/dictItemDialog.vue_vue_type_script_setup_true_name_dictItemDialog_lang-BnfKPtU_.js.gz +0 -0
  91. package/dist/favicon.ico +0 -0
  92. package/dist/formConfig-3XHjthRt.js +1 -0
  93. package/dist/formConfig-3XHjthRt.js.gz +0 -0
  94. package/dist/formConfig-CKIITwmi.mjs +326 -0
  95. package/dist/formConfig-CKIITwmi.mjs.gz +0 -0
  96. package/dist/header-BbgkuQb5.mjs +24 -0
  97. package/dist/header-CF1j7XZ4.js +1 -0
  98. package/dist/horizontal-5qc2-q0c.js +1 -0
  99. package/dist/horizontal-5qc2-q0c.js.gz +0 -0
  100. package/dist/horizontal-wGwxa67m.mjs +109 -0
  101. package/dist/horizontal-wGwxa67m.mjs.gz +0 -0
  102. package/dist/hsAttrBtn-CPWctcXt.js +1 -0
  103. package/dist/hsAttrBtn-DOe1C4uk.mjs +4 -0
  104. package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-CHv9lK6w.mjs +103 -0
  105. package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-CHv9lK6w.mjs.gz +0 -0
  106. package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-De1Jg1n7.js +1 -0
  107. package/dist/hsAttrBtn.vue_vue_type_script_setup_true_lang-De1Jg1n7.js.gz +0 -0
  108. package/dist/hsAttrForm-BVyxHa93.mjs +4 -0
  109. package/dist/hsAttrForm-zwfi5uRl.js +1 -0
  110. package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-C32EmB2Y.mjs +211 -0
  111. package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-C32EmB2Y.mjs.gz +0 -0
  112. package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-DIVl3m71.js +1 -0
  113. package/dist/hsAttrForm.vue_vue_type_script_setup_true_lang-DIVl3m71.js.gz +0 -0
  114. package/dist/hsBtnConfigList-ByQ5vE_x.mjs +87 -0
  115. package/dist/hsBtnConfigList-ByQ5vE_x.mjs.gz +0 -0
  116. package/dist/hsBtnConfigList-C6wtd0nf.js +1 -0
  117. package/dist/hsBtnConfigList-C6wtd0nf.js.gz +0 -0
  118. package/dist/hsBtnItemConfig-C7GWrb_W.js +1 -0
  119. package/dist/hsBtnItemConfig-Cmpu1u6a.mjs +4 -0
  120. package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-C_1pT6zp.mjs +84 -0
  121. package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-C_1pT6zp.mjs.gz +0 -0
  122. package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-Dqz8Ranp.js +1 -0
  123. package/dist/hsBtnItemConfig.vue_vue_type_script_setup_true_lang-Dqz8Ranp.js.gz +0 -0
  124. package/dist/hsBtnPanel-DCowZVZI.js +1 -0
  125. package/dist/hsBtnPanel-Ds3qwRyA.mjs +4 -0
  126. package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-Cz4trC-J.mjs +56 -0
  127. package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-Cz4trC-J.mjs.gz +0 -0
  128. package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DmiBZdoR.js +1 -0
  129. package/dist/hsBtnPanel.vue_vue_type_script_setup_true_name_formPanel_lang-DmiBZdoR.js.gz +0 -0
  130. package/dist/hsExpand-B9Miz2Yx.js +1 -0
  131. package/dist/hsExpand-BHpzHDbj.mjs +4 -0
  132. package/dist/hsExpand.vue_vue_type_script_setup_true_lang-BeHZrTe5.js +1 -0
  133. package/dist/hsExpand.vue_vue_type_script_setup_true_lang-Dav877Bl.mjs +46 -0
  134. package/dist/hsExpand.vue_vue_type_script_setup_true_lang-Dav877Bl.mjs.gz +0 -0
  135. package/dist/hsFormConfig-Cpynr1zi.mjs +178 -0
  136. package/dist/hsFormConfig-Cpynr1zi.mjs.gz +0 -0
  137. package/dist/hsFormConfig-sVcGTyxU.js +1 -0
  138. package/dist/hsFormConfig-sVcGTyxU.js.gz +0 -0
  139. package/dist/hsFormConfigList-CO8Fm2EI.js +1 -0
  140. package/dist/hsFormConfigList-CO8Fm2EI.js.gz +0 -0
  141. package/dist/hsFormConfigList-CoUM67-7.mjs +232 -0
  142. package/dist/hsFormConfigList-CoUM67-7.mjs.gz +0 -0
  143. package/dist/hsFormPanel-CJwKyMCy.mjs +4 -0
  144. package/dist/hsFormPanel-CjO2Z51I.js +1 -0
  145. package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-CHvhUQLH.js +1 -0
  146. package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-CHvhUQLH.js.gz +0 -0
  147. package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-Dqb8Vs0Q.mjs +172 -0
  148. package/dist/hsFormPanel.vue_vue_type_script_setup_true_name_formPanel_lang-Dqb8Vs0Q.mjs.gz +0 -0
  149. package/dist/hsFormParse-Bo4J3sFq.mjs +4 -0
  150. package/dist/hsFormParse-C6oO4utg.js +1 -0
  151. package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-CFV6ysBD.mjs +99 -0
  152. package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-CFV6ysBD.mjs.gz +0 -0
  153. package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-CjkhPiRL.js +1 -0
  154. package/dist/hsFormParse.vue_vue_type_script_setup_true_lang-CjkhPiRL.js.gz +0 -0
  155. package/dist/hsPageTree-BFdajwyy.js +1 -0
  156. package/dist/hsPageTree-BFdajwyy.js.gz +0 -0
  157. package/dist/hsPageTree-qBankwlo.mjs +90 -0
  158. package/dist/hsPageTree-qBankwlo.mjs.gz +0 -0
  159. package/dist/hsPanelItem-BLjqjUw0.js +1 -0
  160. package/dist/hsPanelItem-wNHbqYh_.mjs +4 -0
  161. package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-BHw6gHEQ.js +1 -0
  162. package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-BHw6gHEQ.js.gz +0 -0
  163. package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CTFAEXvW.mjs +76 -0
  164. package/dist/hsPanelItem.vue_vue_type_script_setup_true_name_panelItem_lang-CTFAEXvW.mjs.gz +0 -0
  165. package/dist/iframes-BY3ZNFzO.mjs +102 -0
  166. package/dist/iframes-BY3ZNFzO.mjs.gz +0 -0
  167. package/dist/iframes-M1NzlegU.js +1 -0
  168. package/dist/iframes-M1NzlegU.js.gz +0 -0
  169. package/dist/index-0vzDoVhe.mjs +55 -0
  170. package/dist/index-0vzDoVhe.mjs.gz +0 -0
  171. package/dist/index-1xD92rde.mjs +55 -0
  172. package/dist/index-1xD92rde.mjs.gz +0 -0
  173. package/dist/index-2LgodEsV.js +1 -0
  174. package/dist/index-B-o7bU4w.mjs +217 -0
  175. package/dist/index-B-o7bU4w.mjs.gz +0 -0
  176. package/dist/index-BIfZYEEX.mjs +320 -0
  177. package/dist/index-BIfZYEEX.mjs.gz +0 -0
  178. package/dist/index-BKF1XH2S.js +1 -0
  179. package/dist/index-BKF1XH2S.js.gz +0 -0
  180. package/dist/index-BLI1p_-f.mjs +101 -0
  181. package/dist/index-BLI1p_-f.mjs.gz +0 -0
  182. package/dist/index-BNWjBBKA.js +1 -0
  183. package/dist/index-BNWjBBKA.js.gz +0 -0
  184. package/dist/index-BUCUlnCI.js +1 -0
  185. package/dist/index-BUCUlnCI.js.gz +0 -0
  186. package/dist/index-BVHsBe1V.mjs +88 -0
  187. package/dist/index-BVHsBe1V.mjs.gz +0 -0
  188. package/dist/index-BVuwDntC.mjs +20 -0
  189. package/dist/index-BX4_gOOO.mjs +18 -0
  190. package/dist/index-Bbk244-4.js +1 -0
  191. package/dist/index-Bjnc_kMh.mjs +229 -0
  192. package/dist/index-Bjnc_kMh.mjs.gz +0 -0
  193. package/dist/index-BkayMP9E.js +1 -0
  194. package/dist/index-BkayMP9E.js.gz +0 -0
  195. package/dist/index-BmOVH4J-.mjs +220 -0
  196. package/dist/index-BmOVH4J-.mjs.gz +0 -0
  197. package/dist/index-Bni5Yjpt.mjs +94600 -0
  198. package/dist/index-Bni5Yjpt.mjs.gz +0 -0
  199. package/dist/index-Brdk0q6S.mjs +132 -0
  200. package/dist/index-Brdk0q6S.mjs.gz +0 -0
  201. package/dist/index-Bx7dXPJb.js +1 -0
  202. package/dist/index-Bx7dXPJb.js.gz +0 -0
  203. package/dist/index-C0uWjm3a.js +1 -0
  204. package/dist/index-C0uWjm3a.js.gz +0 -0
  205. package/dist/index-C3tHtNK5.mjs +4 -0
  206. package/dist/index-C5AlBnuC.js +1 -0
  207. package/dist/index-C6PXi5rP.js +1 -0
  208. package/dist/index-C6PXi5rP.js.gz +0 -0
  209. package/dist/index-C7-X4_Kf.mjs +29 -0
  210. package/dist/index-C9EDSZL4.js +1 -0
  211. package/dist/index-C9kqnbXa.js +1 -0
  212. package/dist/index-C9kqnbXa.js.gz +0 -0
  213. package/dist/index-CC_80kB5.js +1 -0
  214. package/dist/index-CC_80kB5.js.gz +0 -0
  215. package/dist/index-CCuvdE0A.mjs +73 -0
  216. package/dist/index-CCuvdE0A.mjs.gz +0 -0
  217. package/dist/index-CD_xqBW9.mjs +41 -0
  218. package/dist/index-CD_xqBW9.mjs.gz +0 -0
  219. package/dist/index-CLM1p20B.js +1 -0
  220. package/dist/index-CvXaWbRB.mjs +4 -0
  221. package/dist/index-CwmOfKbS.js +1 -0
  222. package/dist/index-CwmOfKbS.js.gz +0 -0
  223. package/dist/index-Cy3QY3Tu.js +1 -0
  224. package/dist/index-Cy3QY3Tu.js.gz +0 -0
  225. package/dist/index-D0JVWGKk.mjs +220 -0
  226. package/dist/index-D0JVWGKk.mjs.gz +0 -0
  227. package/dist/index-D2ad5QbZ.js +1 -0
  228. package/dist/index-D2ad5QbZ.js.gz +0 -0
  229. package/dist/index-D68KPqKp.js +1 -0
  230. package/dist/index-D8bQh2mn.js +1 -0
  231. package/dist/index-D8bQh2mn.js.gz +0 -0
  232. package/dist/index-DCkKzPTt.js +1 -0
  233. package/dist/index-DE4MvwTe.mjs +149 -0
  234. package/dist/index-DE4MvwTe.mjs.gz +0 -0
  235. package/dist/index-DHxrfOGu.js +1 -0
  236. package/dist/index-DHxrfOGu.js.gz +0 -0
  237. package/dist/index-DLEw_ANq.mjs +29 -0
  238. package/dist/index-DLs2j_93.mjs +54 -0
  239. package/dist/index-DLs2j_93.mjs.gz +0 -0
  240. package/dist/index-DUKYrrbu.mjs +65 -0
  241. package/dist/index-DUKYrrbu.mjs.gz +0 -0
  242. package/dist/index-DXi0eFJA.js +1 -0
  243. package/dist/index-DXi0eFJA.js.gz +0 -0
  244. package/dist/index-D_G8OTHC.mjs +4 -0
  245. package/dist/index-D_hFOhtO.mjs +231 -0
  246. package/dist/index-D_hFOhtO.mjs.gz +0 -0
  247. package/dist/index-DcKWcP88.mjs +65 -0
  248. package/dist/index-DcKWcP88.mjs.gz +0 -0
  249. package/dist/index-Dh8ZI5Ug.js +1 -0
  250. package/dist/index-Dh8ZI5Ug.js.gz +0 -0
  251. package/dist/index-Dpf8fUGg.mjs +10 -0
  252. package/dist/index-DqQl7rbU.js +1 -0
  253. package/dist/index-DqQl7rbU.js.gz +0 -0
  254. package/dist/index-DrXLFNLk.js +1 -0
  255. package/dist/index-DuW9CByJ.mjs +845 -0
  256. package/dist/index-DuW9CByJ.mjs.gz +0 -0
  257. package/dist/index-Duab8xvE.js +1 -0
  258. package/dist/index-Duab8xvE.js.gz +0 -0
  259. package/dist/index-OGkdH1Pk.js +1 -0
  260. package/dist/index-OGkdH1Pk.js.gz +0 -0
  261. package/dist/index-PulgzZFk.mjs +59 -0
  262. package/dist/index-PulgzZFk.mjs.gz +0 -0
  263. package/dist/index-QjWJ3yew.js +1 -0
  264. package/dist/index-QjWJ3yew.js.gz +0 -0
  265. package/dist/index-Zot0CDpt.js +1 -0
  266. package/dist/index-Zot0CDpt.js.gz +0 -0
  267. package/dist/index-gjHW_zh_.js +197 -0
  268. package/dist/index-gjHW_zh_.js.gz +0 -0
  269. package/dist/index-kuyYmMvk.js +1 -0
  270. package/dist/index-kuyYmMvk.js.gz +0 -0
  271. package/dist/index-ruXvfhBt.mjs +67 -0
  272. package/dist/index-ruXvfhBt.mjs.gz +0 -0
  273. package/dist/index-tZ500dvX.mjs +62 -0
  274. package/dist/index-tZ500dvX.mjs.gz +0 -0
  275. package/dist/index-xAFinFh2.mjs +108 -0
  276. package/dist/index-xAFinFh2.mjs.gz +0 -0
  277. package/dist/index-yXywRa42.mjs +34 -0
  278. package/dist/index-yXywRa42.mjs.gz +0 -0
  279. package/dist/index-zE1hlsNz.js +1 -0
  280. package/dist/index-zE1hlsNz.js.gz +0 -0
  281. package/dist/index.js +1 -0
  282. package/dist/index.mjs +13 -0
  283. package/dist/index.vue_vue_type_script_setup_true_lang-BO-nR5tp.js +1 -0
  284. package/dist/index.vue_vue_type_script_setup_true_lang-CdN0U_-3.mjs +30 -0
  285. package/dist/index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-BvZyodB8.js +1 -0
  286. package/dist/index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-BvZyodB8.js.gz +0 -0
  287. package/dist/index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-oCRoVvYH.mjs +77 -0
  288. package/dist/index.vue_vue_type_script_setup_true_name_testtablecomponent_lang-oCRoVvYH.mjs.gz +0 -0
  289. package/dist/link-CRANsJLm.mjs +50 -0
  290. package/dist/link-CRANsJLm.mjs.gz +0 -0
  291. package/dist/link-ChZMkBE3.js +1 -0
  292. package/dist/link-ChZMkBE3.js.gz +0 -0
  293. package/dist/list-CQV29lKk.mjs +74 -0
  294. package/dist/list-CQV29lKk.mjs.gz +0 -0
  295. package/dist/list-CazFh5hw.js +1 -0
  296. package/dist/list-CazFh5hw.js.gz +0 -0
  297. package/dist/logo-mini-B38ustl2.js +1 -0
  298. package/dist/logo-mini-B38ustl2.js.gz +0 -0
  299. package/dist/logo-mini-Bl032aC-.mjs +4 -0
  300. package/dist/logo-mini-Bl032aC-.mjs.gz +0 -0
  301. package/dist/main-7UrMTo0v.mjs +47 -0
  302. package/dist/main-7UrMTo0v.mjs.gz +0 -0
  303. package/dist/main-CK3kzPHk.js +1 -0
  304. package/dist/main-CK3kzPHk.js.gz +0 -0
  305. package/dist/mobile-CksGzDkO.mjs +104 -0
  306. package/dist/mobile-CksGzDkO.mjs.gz +0 -0
  307. package/dist/mobile-D1LhnwNG.js +1 -0
  308. package/dist/mobile-D1LhnwNG.js.gz +0 -0
  309. package/dist/parent-B2UPpdY1.js +1 -0
  310. package/dist/parent-B2UPpdY1.js.gz +0 -0
  311. package/dist/parent-MzfataJM.mjs +95 -0
  312. package/dist/parent-MzfataJM.mjs.gz +0 -0
  313. package/dist/roleItem-3VtJfvxH.js +1 -0
  314. package/dist/roleItem-3VtJfvxH.js.gz +0 -0
  315. package/dist/roleItem-Dhr_9xJQ.mjs +83 -0
  316. package/dist/roleItem-Dhr_9xJQ.mjs.gz +0 -0
  317. package/dist/saveForm-BFRjkJ6C.mjs +4 -0
  318. package/dist/saveForm-DGqNsmHJ.js +1 -0
  319. package/dist/saveForm.vue_vue_type_script_setup_true_lang-TO3TLFbJ.js +1 -0
  320. package/dist/saveForm.vue_vue_type_script_setup_true_lang-TO3TLFbJ.js.gz +0 -0
  321. package/dist/saveForm.vue_vue_type_script_setup_true_lang-tImLAszT.mjs +273 -0
  322. package/dist/saveForm.vue_vue_type_script_setup_true_lang-tImLAszT.mjs.gz +0 -0
  323. package/dist/scan-B7D45pkQ.js +1 -0
  324. package/dist/scan-B7D45pkQ.js.gz +0 -0
  325. package/dist/scan-CRe9UoZN.mjs +544 -0
  326. package/dist/scan-CRe9UoZN.mjs.gz +0 -0
  327. package/dist/search-B-TTOOA5.js +1 -0
  328. package/dist/search-B-TTOOA5.js.gz +0 -0
  329. package/dist/search-GSwlRbnx.mjs +85 -0
  330. package/dist/search-GSwlRbnx.mjs.gz +0 -0
  331. package/dist/selectConfig-C7DZHE3g.mjs +536 -0
  332. package/dist/selectConfig-C7DZHE3g.mjs.gz +0 -0
  333. package/dist/selectConfig-LaH2oCWt.js +1 -0
  334. package/dist/selectConfig-LaH2oCWt.js.gz +0 -0
  335. package/dist/style.css +1 -0
  336. package/dist/style.css.gz +0 -0
  337. package/dist/subItem-BIaK2N2l.js +1 -0
  338. package/dist/subItem-BIaK2N2l.js.gz +0 -0
  339. package/dist/subItem-CRuZ6w37.mjs +66 -0
  340. package/dist/subItem-CRuZ6w37.mjs.gz +0 -0
  341. package/dist/tagsView-dGAcqdEb.js +6 -0
  342. package/dist/tagsView-dGAcqdEb.js.gz +0 -0
  343. package/dist/tagsView-yREM2wxj.mjs +1568 -0
  344. package/dist/tagsView-yREM2wxj.mjs.gz +0 -0
  345. package/dist/transverse--3eIjREe.mjs +51 -0
  346. package/dist/transverse--3eIjREe.mjs.gz +0 -0
  347. package/dist/transverse-DYms3DUG.js +1 -0
  348. package/dist/transverse-DYms3DUG.js.gz +0 -0
  349. package/dist/types/api/bizApiController/index.d.ts +5 -0
  350. package/dist/types/api/bizApiController/type.d.ts +19 -0
  351. package/dist/types/api/btnConfigController/index.d.ts +8 -0
  352. package/dist/types/api/btnConfigController/type.d.ts +76 -0
  353. package/dist/types/api/businessController/index.d.ts +4 -0
  354. package/dist/types/api/businessController/type.d.ts +24 -0
  355. package/dist/types/api/dataPermissionController/index.d.ts +6 -0
  356. package/dist/types/api/dataPermissionController/type.d.ts +33 -0
  357. package/dist/types/api/dictController/index.d.ts +12 -0
  358. package/dist/types/api/dictController/type.d.ts +96 -0
  359. package/dist/types/api/fieldConfigController/index.d.ts +17 -0
  360. package/dist/types/api/fieldConfigController/type.d.ts +270 -0
  361. package/dist/types/api/fileController/index.d.ts +18 -0
  362. package/dist/types/api/fileController/type.d.ts +49 -0
  363. package/dist/types/api/getApiController/index.d.ts +4 -0
  364. package/dist/types/api/index.d.ts +22 -0
  365. package/dist/types/api/loginController/index.d.ts +6 -0
  366. package/dist/types/api/loginController/type.d.ts +2 -0
  367. package/dist/types/api/menuController/index.d.ts +11 -0
  368. package/dist/types/api/menuController/type.d.ts +57 -0
  369. package/dist/types/api/systemController/index.d.ts +3 -0
  370. package/dist/types/api/systemController/type.d.ts +19 -0
  371. package/dist/types/api/userController/index.d.ts +3 -0
  372. package/dist/types/api/userController/type.d.ts +18 -0
  373. package/dist/types/components/base/hsAffix/src/hsAffix.vue.d.ts +10 -0
  374. package/dist/types/components/base/hsAlert/src/hsAlert.vue.d.ts +10 -0
  375. package/dist/types/components/base/hsAutocomplete/src/hsAutocomplete.vue.d.ts +10 -0
  376. package/dist/types/components/base/hsBadge/src/hsBadge.vue.d.ts +10 -0
  377. package/dist/types/components/base/hsButton/src/hsButton.vue.d.ts +14 -0
  378. package/dist/types/components/base/hsButton/src/hsButtonGroup.vue.d.ts +8 -0
  379. package/dist/types/components/base/hsButton/useButtonEvents.d.ts +9 -0
  380. package/dist/types/components/base/hsCalendar/src/hsCalendar.vue.d.ts +10 -0
  381. package/dist/types/components/base/hsCarousel/src/hsCarousel.vue.d.ts +10 -0
  382. package/dist/types/components/base/hsCarousel/src/hsCarouselItem.vue.d.ts +10 -0
  383. package/dist/types/components/base/hsCascader/src/hsCascader.vue.d.ts +10 -0
  384. package/dist/types/components/base/hsCascader/src/hsCascaderPanel.vue.d.ts +10 -0
  385. package/dist/types/components/base/hsCheckbox/src/hsCheckbox.vue.d.ts +10 -0
  386. package/dist/types/components/base/hsCheckbox/src/hsCheckboxButton.vue.d.ts +10 -0
  387. package/dist/types/components/base/hsCheckbox/src/hsCheckboxGroup.vue.d.ts +10 -0
  388. package/dist/types/components/base/hsCol/src/hsCol.vue.d.ts +10 -0
  389. package/dist/types/components/base/hsCollapse/src/hsCollapse.vue.d.ts +10 -0
  390. package/dist/types/components/base/hsCollapse/src/hsCollapseItem.vue.d.ts +10 -0
  391. package/dist/types/components/base/hsColorPicker/src/hsColorPicker.vue.d.ts +5 -0
  392. package/dist/types/components/base/hsDatePicker/src/hsDatePicker.vue.d.ts +10 -0
  393. package/dist/types/components/base/hsDialog/src/hsDialog.vue.d.ts +10 -0
  394. package/dist/types/components/base/hsDrawer/src/hsDrawer.vue.d.ts +10 -0
  395. package/dist/types/components/base/hsDropdown/src/hsDropdown.vue.d.ts +10 -0
  396. package/dist/types/components/base/hsDropdown/src/hsDropdownItem.vue.d.ts +10 -0
  397. package/dist/types/components/base/hsDropdown/src/hsDropdownMenu.vue.d.ts +10 -0
  398. package/dist/types/components/base/hsEmpty/src/hsEmpty.vue.d.ts +12 -0
  399. package/dist/types/components/base/hsForm/src/hsForm.vue.d.ts +10 -0
  400. package/dist/types/components/base/hsForm/src/hsFormItem.vue.d.ts +10 -0
  401. package/dist/types/components/base/hsGetApi/src/hsGetApis.vue.d.ts +3 -0
  402. package/dist/types/components/base/hsGetApi/useGetApis.d.ts +126 -0
  403. package/dist/types/components/base/hsImage/src/hsImage.vue.d.ts +12 -0
  404. package/dist/types/components/base/hsImageViewer/src/hsImageViewer.vue.d.ts +10 -0
  405. package/dist/types/components/base/hsInput/src/hsInput.vue.d.ts +11 -0
  406. package/dist/types/components/base/hsInput/useInputEvents.d.ts +13 -0
  407. package/dist/types/components/base/hsInputNumber/src/hsInputNumber.vue.d.ts +5 -0
  408. package/dist/types/components/base/hsPopconfirm/src/hsPopconfirm.vue.d.ts +10 -0
  409. package/dist/types/components/base/hsPopover/src/hsPopover.vue.d.ts +10 -0
  410. package/dist/types/components/base/hsProgress/src/hsProgress.vue.d.ts +10 -0
  411. package/dist/types/components/base/hsRadio/src/hsRadio.vue.d.ts +10 -0
  412. package/dist/types/components/base/hsRadio/src/hsRadioButton.vue.d.ts +10 -0
  413. package/dist/types/components/base/hsRadio/src/hsRadioGroup.vue.d.ts +10 -0
  414. package/dist/types/components/base/hsRate/src/hsRate.vue.d.ts +5 -0
  415. package/dist/types/components/base/hsResult/src/hsResult.vue.d.ts +10 -0
  416. package/dist/types/components/base/hsRow/src/hsRow.vue.d.ts +10 -0
  417. package/dist/types/components/base/hsScrollbar/src/hsScrollbar.vue.d.ts +11 -0
  418. package/dist/types/components/base/hsSelect/src/hsOption.vue.d.ts +8 -0
  419. package/dist/types/components/base/hsSelect/src/hsOptionGroup.vue.d.ts +8 -0
  420. package/dist/types/components/base/hsSelect/src/hsSelect.vue.d.ts +24 -0
  421. package/dist/types/components/base/hsSelect/useSelectEvents.d.ts +15 -0
  422. package/dist/types/components/base/hsSlider/src/hsSlider.vue.d.ts +5 -0
  423. package/dist/types/components/base/hsSteps/src/hsStep.vue.d.ts +10 -0
  424. package/dist/types/components/base/hsSteps/src/hsSteps.vue.d.ts +10 -0
  425. package/dist/types/components/base/hsSwitch/src/hsSwitch.vue.d.ts +10 -0
  426. package/dist/types/components/base/hsTable/hsBCTable.vue.d.ts +14 -0
  427. package/dist/types/components/base/hsTable/hsTable.vue.d.ts +14 -0
  428. package/dist/types/components/base/hsTable/useHsTableConfig.d.ts +4 -0
  429. package/dist/types/components/base/hsTable/useTableEvents.d.ts +11 -0
  430. package/dist/types/components/base/hsTabs/src/hsTabPane.vue.d.ts +10 -0
  431. package/dist/types/components/base/hsTabs/src/hsTabs.vue.d.ts +10 -0
  432. package/dist/types/components/base/hsTag/src/hsCheckTag.vue.d.ts +10 -0
  433. package/dist/types/components/base/hsTag/src/hsTag.vue.d.ts +10 -0
  434. package/dist/types/components/base/hsTest/HsTest.vue.d.ts +11 -0
  435. package/dist/types/components/base/hsTooltip/src/hsTooltip.vue.d.ts +10 -0
  436. package/dist/types/components/base/hsTour/src/hsTour.vue.d.ts +10 -0
  437. package/dist/types/components/base/hsTour/src/hsTourStep.vue.d.ts +10 -0
  438. package/dist/types/components/base/hsTransfer/src/hsTransfer.vue.d.ts +10 -0
  439. package/dist/types/components/base/hsTree/src/hsTree.vue.d.ts +6 -0
  440. package/dist/types/components/base/hsTreeSelect/src/hsTreeSelect.vue.d.ts +22 -0
  441. package/dist/types/components/base/hsUpload/src/hsUpload.vue.d.ts +26 -0
  442. package/dist/types/components/base/hsWatermark/src/hsWatermark.vue.d.ts +10 -0
  443. package/dist/types/components/business/bcAutoComplete/bcAutoComplete.vue.d.ts +56 -0
  444. package/dist/types/components/business/bcAutoComplete/defaultData.d.ts +9 -0
  445. package/dist/types/components/business/bcAutoComplete/useAutoComplete.d.ts +6 -0
  446. package/dist/types/components/business/bcBox/bcBox.vue.d.ts +57 -0
  447. package/dist/types/components/business/bcBox/utils.d.ts +44 -0
  448. package/dist/types/components/business/bcBtn/bcBtn.vue.d.ts +20 -0
  449. package/dist/types/components/business/bcCheckbox/bcCheckbox.vue.d.ts +21 -0
  450. package/dist/types/components/business/bcForm/baseForm.vue.d.ts +38 -0
  451. package/dist/types/components/business/bcForm/bcForm.vue.d.ts +36 -0
  452. package/dist/types/components/business/bcForm/type.d.ts +15 -0
  453. package/dist/types/components/business/bcFormTable/bcFormTable.vue.d.ts +96 -0
  454. package/dist/types/components/business/bcFormTable/bcTable.vue.d.ts +30 -0
  455. package/dist/types/components/business/bcFormTable/components/contextBody/contextBody.vue.d.ts +29 -0
  456. package/dist/types/components/business/bcFormTable/components/contextBody/useContextMenu.d.ts +18 -0
  457. package/dist/types/components/business/bcFormTable/components/form/components/sortForm/index.d.ts +2 -0
  458. package/dist/types/components/business/bcFormTable/components/form/components/sortForm/sortForm.vue.d.ts +17 -0
  459. package/dist/types/components/business/bcFormTable/components/form/formDrag.vue.d.ts +29 -0
  460. package/dist/types/components/business/bcFormTable/components/form/formSearch.vue.d.ts +29 -0
  461. package/dist/types/components/business/bcFormTable/components/form/formSearchBtn.vue.d.ts +74 -0
  462. package/dist/types/components/business/bcFormTable/components/index.d.ts +6 -0
  463. package/dist/types/components/business/bcFormTable/components/table/components/sortColumn/index.d.ts +2 -0
  464. package/dist/types/components/business/bcFormTable/components/table/components/sortColumn/sortColumn.vue.d.ts +19 -0
  465. package/dist/types/components/business/bcFormTable/components/table/table.vue.d.ts +57 -0
  466. package/dist/types/components/business/bcFormTable/components/table/useTable.d.ts +11 -0
  467. package/dist/types/components/business/bcFormTable/components/table/useTableHeight.d.ts +10 -0
  468. package/dist/types/components/business/bcFormTable/components/tabs/tabs.vue.d.ts +24 -0
  469. package/dist/types/components/business/bcFormTable/methods/cellDetailMethod.d.ts +2 -0
  470. package/dist/types/components/business/bcFormTable/methods/filterAgeMethod.d.ts +2 -0
  471. package/dist/types/components/business/bcFormTable/methods/footerMethod.d.ts +3 -0
  472. package/dist/types/components/business/bcFormTable/methods/formBtnMethod.d.ts +7 -0
  473. package/dist/types/components/business/bcFormTable/methods/index.d.ts +3 -0
  474. package/dist/types/components/business/bcFormTable/utils/onFormKey.d.ts +16 -0
  475. package/dist/types/components/business/bcFormTable/utils/onTableKey.d.ts +15 -0
  476. package/dist/types/components/business/bcFormTable/utils/parseTable.d.ts +90 -0
  477. package/dist/types/components/business/bcFormTable/utils/store.d.ts +2740 -0
  478. package/dist/types/components/business/bcFormTable/utils/useButon.d.ts +11 -0
  479. package/dist/types/components/business/bcFormTable/utils/useTableHeight.d.ts +13 -0
  480. package/dist/types/components/business/bcGroupComponent/date.vue.d.ts +36 -0
  481. package/dist/types/components/business/bcIcon/bcIcon.vue.d.ts +27 -0
  482. package/dist/types/components/business/bcPageConfig/bcPageConfig.vue.d.ts +10 -0
  483. package/dist/types/components/business/bcPageConfig/components/hsBtn/src/hsAttrBtn.vue.d.ts +51 -0
  484. package/dist/types/components/business/bcPageConfig/components/hsBtn/src/hsBtnConfigList.vue.d.ts +22 -0
  485. package/dist/types/components/business/bcPageConfig/components/hsBtn/src/hsBtnItemConfig.vue.d.ts +20 -0
  486. package/dist/types/components/business/bcPageConfig/components/hsBtn/src/hsBtnPanel.vue.d.ts +18 -0
  487. package/dist/types/components/business/bcPageConfig/components/hsBtn/useAttrBtn.d.ts +14 -0
  488. package/dist/types/components/business/bcPageConfig/components/hsBtn/useBtnConfigList.d.ts +8 -0
  489. package/dist/types/components/business/bcPageConfig/components/hsBtn/useBtnItemConfig.d.ts +31 -0
  490. package/dist/types/components/business/bcPageConfig/components/hsExpand/src/hsExpand.vue.d.ts +34 -0
  491. package/dist/types/components/business/bcPageConfig/components/hsExpand/useExpand.d.ts +3 -0
  492. package/dist/types/components/business/bcPageConfig/components/hsForm/src/hsAttrForm.vue.d.ts +25 -0
  493. package/dist/types/components/business/bcPageConfig/components/hsForm/src/hsFormConfigList.vue.d.ts +22 -0
  494. package/dist/types/components/business/bcPageConfig/components/hsForm/src/hsFormPanel.vue.d.ts +8 -0
  495. package/dist/types/components/business/bcPageConfig/components/hsForm/src/hsFormParse.vue.d.ts +8 -0
  496. package/dist/types/components/business/bcPageConfig/components/hsForm/useAttrForm.d.ts +38 -0
  497. package/dist/types/components/business/bcPageConfig/components/hsForm/useFormListConfig.d.ts +8 -0
  498. package/dist/types/components/business/bcPageConfig/components/hsForm/useFormParse.d.ts +6 -0
  499. package/dist/types/components/business/bcPageConfig/components/hsSaveForm/saveFormConfig.d.ts +70 -0
  500. package/dist/types/components/business/bcPageConfig/components/hsSaveForm/src/saveForm.vue.d.ts +52 -0
  501. package/dist/types/components/business/bcPageConfig/components/hsSaveForm/useSaveForm.d.ts +26 -0
  502. package/dist/types/components/business/bcPageConfig/components/hsTables/src/hsAttrTable.vue.d.ts +51 -0
  503. package/dist/types/components/business/bcPageConfig/components/hsTables/src/hsRecursionConfig.vue.d.ts +44 -0
  504. package/dist/types/components/business/bcPageConfig/components/hsTables/src/hsTableConfig.vue.d.ts +30 -0
  505. package/dist/types/components/business/bcPageConfig/components/hsTables/src/hsTableConfigList.vue.d.ts +22 -0
  506. package/dist/types/components/business/bcPageConfig/components/hsTables/src/hsTableDynamicConfigList.vue.d.ts +22 -0
  507. package/dist/types/components/business/bcPageConfig/components/hsTables/src/hsTablePanel.vue.d.ts +10 -0
  508. package/dist/types/components/business/bcPageConfig/components/hsTables/src/hsTableParse.vue.d.ts +8 -0
  509. package/dist/types/components/business/bcPageConfig/components/hsTables/useAttrTable.d.ts +48 -0
  510. package/dist/types/components/business/bcPageConfig/components/hsTables/useTableConfigList.d.ts +9 -0
  511. package/dist/types/components/business/bcPageConfig/components/hsTables/useTableDynamicConfigList.d.ts +11 -0
  512. package/dist/types/components/business/bcPageConfig/components/hsTables/useTableParse.d.ts +6 -0
  513. package/dist/types/components/business/bcPageConfig/default/baseBtnConfig.d.ts +151 -0
  514. package/dist/types/components/business/bcPageConfig/default/baseFormConfig.d.ts +574 -0
  515. package/dist/types/components/business/bcPageConfig/usePageConfig.d.ts +19 -0
  516. package/dist/types/components/business/bcPageTree/bcPageTree.vue.d.ts +64 -0
  517. package/dist/types/components/business/bcPageTree/usePageTree.d.ts +38 -0
  518. package/dist/types/components/business/bcPageTreeBySystem/bcPageTreeBySystem.vue.d.ts +12 -0
  519. package/dist/types/components/business/bcPageTreeBySystem/usePageTreeBySystem.d.ts +35 -0
  520. package/dist/types/components/business/bcRadio/bcRadio.vue.d.ts +16 -0
  521. package/dist/types/components/business/bcSelect/bcSelect.vue.d.ts +30 -0
  522. package/dist/types/components/business/bcSwitchSystems/bcSwitchSystems.vue.d.ts +28 -0
  523. package/dist/types/components/business/bcSwitchSystems/useSwitchSystems.d.ts +9 -0
  524. package/dist/types/components/business/bcTreeSelect/bcTreeSelect.vue.d.ts +27 -0
  525. package/dist/types/components/business/bcUpload/bcUpload.vue.d.ts +178 -0
  526. package/dist/types/components/business/bcUpload/type.d.ts +29 -0
  527. package/dist/types/components/business/bcUpload/useUpload.d.ts +24 -0
  528. package/dist/types/components/business/cardID/type.d.ts +0 -0
  529. package/dist/types/components/business/cardID/useCardID.d.ts +0 -0
  530. package/dist/types/components/config/autocompleteAttrConfig/autocompleteAttrConfig.vue.d.ts +24 -0
  531. package/dist/types/components/config/autocompleteAttrConfig/config.d.ts +44 -0
  532. package/dist/types/components/config/baseForm.vue.d.ts +116 -0
  533. package/dist/types/components/config/buttonAttrConfig/buttonAttrConfig.vue.d.ts +24 -0
  534. package/dist/types/components/config/buttonAttrConfig/config.d.ts +87 -0
  535. package/dist/types/components/config/cascaderAttrConfig/cascaderAttrConfig.vue.d.ts +24 -0
  536. package/dist/types/components/config/cascaderAttrConfig/config.d.ts +99 -0
  537. package/dist/types/components/config/cascaderPanelAttrConfig/cascaderPanelAttrConfig.vue.d.ts +24 -0
  538. package/dist/types/components/config/cascaderPanelAttrConfig/config.d.ts +71 -0
  539. package/dist/types/components/config/checkboxAttrConfig/checkboxAttrConfig.vue.d.ts +24 -0
  540. package/dist/types/components/config/checkboxAttrConfig/config.d.ts +86 -0
  541. package/dist/types/components/config/datePickerAttrConfig/config.d.ts +72 -0
  542. package/dist/types/components/config/datePickerAttrConfig/datePickerAttrConfig.vue.d.ts +24 -0
  543. package/dist/types/components/config/inputAttrConfig/config.d.ts +94 -0
  544. package/dist/types/components/config/inputAttrConfig/inputAttrConfig.vue.d.ts +24 -0
  545. package/dist/types/components/config/inputAttrConfig/inputEventConfig.vue.d.ts +15 -0
  546. package/dist/types/components/config/inputNumberAttrConfig/config.d.ts +65 -0
  547. package/dist/types/components/config/inputNumberAttrConfig/inputNumberAttrConfig.vue.d.ts +24 -0
  548. package/dist/types/components/config/radioAttrConfig/config.d.ts +82 -0
  549. package/dist/types/components/config/radioAttrConfig/radioAttrConfig.vue.d.ts +24 -0
  550. package/dist/types/components/config/selectAttrConfig/config.d.ts +110 -0
  551. package/dist/types/components/config/selectAttrConfig/selectAttrConfig.vue.d.ts +24 -0
  552. package/dist/types/components/config/switchAttrConfig/config.d.ts +63 -0
  553. package/dist/types/components/config/switchAttrConfig/switchAttrConfig.vue.d.ts +24 -0
  554. package/dist/types/components/config/treeSelectAttrConfig/config.d.ts +97 -0
  555. package/dist/types/components/config/treeSelectAttrConfig/treeSelectAttrConfig.vue.d.ts +24 -0
  556. package/dist/types/components/config/type/formType.d.ts +20 -0
  557. package/dist/types/components/config/uploadAttrConfig/config.d.ts +64 -0
  558. package/dist/types/components/config/uploadAttrConfig/uploadAttrConfig.vue.d.ts +24 -0
  559. package/dist/types/components/iconSelector/index.vue.d.ts +88 -0
  560. package/dist/types/components/iconSelector/list.vue.d.ts +37 -0
  561. package/dist/types/components/svgIcon/index.vue.d.ts +27 -0
  562. package/dist/types/directive/authDirective.d.ts +8 -0
  563. package/dist/types/directive/customDirective.d.ts +15 -0
  564. package/dist/types/directive/index.d.ts +8 -0
  565. package/dist/types/hooks/index.d.ts +2 -0
  566. package/dist/types/hooks/useCrypto.d.ts +6 -0
  567. package/dist/types/hooks/useExpose.d.ts +24 -0
  568. package/dist/types/index.d.ts +1 -0
  569. package/dist/types/layout/component/aside.vue.d.ts +3 -0
  570. package/dist/types/layout/component/columnsAside.vue.d.ts +3 -0
  571. package/dist/types/layout/component/header.vue.d.ts +3 -0
  572. package/dist/types/layout/component/main.vue.d.ts +5 -0
  573. package/dist/types/layout/footer/index.vue.d.ts +3 -0
  574. package/dist/types/layout/index.vue.d.ts +3 -0
  575. package/dist/types/layout/logo/index.vue.d.ts +3 -0
  576. package/dist/types/layout/main/classic.vue.d.ts +3 -0
  577. package/dist/types/layout/main/columns.vue.d.ts +3 -0
  578. package/dist/types/layout/main/defaults.vue.d.ts +3 -0
  579. package/dist/types/layout/main/transverse.vue.d.ts +3 -0
  580. package/dist/types/layout/navBars/index.vue.d.ts +3 -0
  581. package/dist/types/layout/navBars/tagsView/contextmenu.vue.d.ts +27 -0
  582. package/dist/types/layout/navBars/tagsView/tagsView.vue.d.ts +3 -0
  583. package/dist/types/layout/navBars/topBar/index.vue.d.ts +3 -0
  584. package/dist/types/layout/navBars/topBar/search.vue.d.ts +5 -0
  585. package/dist/types/layout/navBars/topBar/user.vue.d.ts +3 -0
  586. package/dist/types/layout/navBars/topBar/userNews.vue.d.ts +3 -0
  587. package/dist/types/layout/navMenu/horizontal.vue.d.ts +42 -0
  588. package/dist/types/layout/navMenu/subItem.vue.d.ts +42 -0
  589. package/dist/types/layout/navMenu/vertical.vue.d.ts +42 -0
  590. package/dist/types/layout/routerView/iframes.vue.d.ts +33 -0
  591. package/dist/types/layout/routerView/link.vue.d.ts +3 -0
  592. package/dist/types/layout/routerView/parent.vue.d.ts +3 -0
  593. package/dist/types/main.d.ts +6 -0
  594. package/dist/types/plugins/index.d.ts +21 -0
  595. package/dist/types/router/backEnd.d.ts +58 -0
  596. package/dist/types/router/frontEnd.d.ts +61 -0
  597. package/dist/types/router/index.d.ts +22 -0
  598. package/dist/types/router/route.d.ts +56 -0
  599. package/dist/types/stores/index.d.ts +3 -0
  600. package/dist/types/stores/keepAliveNames.d.ts +16 -0
  601. package/dist/types/stores/requestOldRoutes.d.ts +8 -0
  602. package/dist/types/stores/routesList.d.ts +12 -0
  603. package/dist/types/stores/tagsViewRoutes.d.ts +10 -0
  604. package/dist/types/stores/themeConfig.d.ts +10 -0
  605. package/dist/types/stores/userInfo.d.ts +20 -0
  606. package/dist/types/types/auth.d.ts +73 -0
  607. package/dist/types/types/components.d.ts +28 -0
  608. package/dist/types/types/customData.d.ts +193 -0
  609. package/dist/types/types/form.d.ts +86 -0
  610. package/dist/types/types/formItem/autocomplete.d.ts +42 -0
  611. package/dist/types/types/formItem/button.d.ts +39 -0
  612. package/dist/types/types/formItem/checkbox.d.ts +79 -0
  613. package/dist/types/types/formItem/index.d.ts +8 -0
  614. package/dist/types/types/formItem/input.d.ts +64 -0
  615. package/dist/types/types/formItem/inputNumber.d.ts +40 -0
  616. package/dist/types/types/formItem/radio.d.ts +57 -0
  617. package/dist/types/types/formItem/selelct.d.ts +53 -0
  618. package/dist/types/types/formItem/treeSelect.d.ts +40 -0
  619. package/dist/types/types/index.d.ts +6 -0
  620. package/dist/types/types/system.d.ts +14 -0
  621. package/dist/types/utils/arrayOperation.d.ts +21 -0
  622. package/dist/types/utils/authFunction.d.ts +18 -0
  623. package/dist/types/utils/build.d.ts +12 -0
  624. package/dist/types/utils/common.d.ts +9 -0
  625. package/dist/types/utils/commonFunction.d.ts +18 -0
  626. package/dist/types/utils/download.d.ts +6 -0
  627. package/dist/types/utils/formatTime.d.ts +37 -0
  628. package/dist/types/utils/getDataType.d.ts +8 -0
  629. package/dist/types/utils/getStyleSheets.d.ts +11 -0
  630. package/dist/types/utils/index.d.ts +21 -0
  631. package/dist/types/utils/loading.d.ts +9 -0
  632. package/dist/types/utils/mitt.d.ts +2 -0
  633. package/dist/types/utils/other.d.ts +74 -0
  634. package/dist/types/utils/request/index.d.ts +2 -0
  635. package/dist/types/utils/request/interceptors/request/authorization.interceptor.d.ts +3 -0
  636. package/dist/types/utils/request/interceptors/request/index.d.ts +2 -0
  637. package/dist/types/utils/request/interceptors/request/result.type.interceptor.d.ts +8 -0
  638. package/dist/types/utils/request/interceptors/response/error-handler.interceptor.d.ts +3 -0
  639. package/dist/types/utils/request/interceptors/response/file-handler.interceptor.d.ts +3 -0
  640. package/dist/types/utils/request/interceptors/response/index.d.ts +2 -0
  641. package/dist/types/utils/request/request.d.ts +6 -0
  642. package/dist/types/utils/request2.d.ts +2 -0
  643. package/dist/types/utils/setIconfont.d.ts +11 -0
  644. package/dist/types/utils/showMessage.d.ts +2 -0
  645. package/dist/types/utils/showMessageBox.d.ts +2 -0
  646. package/dist/types/utils/showNotification.d.ts +2 -0
  647. package/dist/types/utils/showPopup/index.d.ts +34 -0
  648. package/dist/types/utils/showPopup/showPopup.vue.d.ts +44 -0
  649. package/dist/types/utils/storage.d.ts +75 -0
  650. package/dist/types/utils/theme.d.ts +13 -0
  651. package/dist/types/utils/toolsValidate.d.ts +149 -0
  652. package/dist/types/utils/watermark.d.ts +9 -0
  653. package/dist/types/views/config/buttonManagement/btnIndex.vue.d.ts +3 -0
  654. package/dist/types/views/config/buttonManagement/dialog.vue.d.ts +3 -0
  655. package/dist/types/views/config/buttonManagement/index.vue.d.ts +3 -0
  656. package/dist/types/views/config/dataAuth/dialog.vue.d.ts +31 -0
  657. package/dist/types/views/config/dataAuth/index.vue.d.ts +3 -0
  658. package/dist/types/views/config/dataAuth/useDataAuth.d.ts +11 -0
  659. package/dist/types/views/config/dataDict/components/dict/dictDialog.vue.d.ts +9 -0
  660. package/dist/types/views/config/dataDict/components/dictItem/dictItemDialog.vue.d.ts +75 -0
  661. package/dist/types/views/config/dataDict/index.vue.d.ts +3 -0
  662. package/dist/types/views/config/dataDict/useDataDict.d.ts +155 -0
  663. package/dist/types/views/config/fieldPool/components/dialog/index.vue.d.ts +3 -0
  664. package/dist/types/views/config/fieldPool/index.vue.d.ts +3 -0
  665. package/dist/types/views/config/fieldPool/useFieldPool.d.ts +9 -0
  666. package/dist/types/views/config/formSetting/components/hsBtn/src/hsAttrBtn.vue.d.ts +51 -0
  667. package/dist/types/views/config/formSetting/components/hsBtn/src/hsBtnConfigList.vue.d.ts +22 -0
  668. package/dist/types/views/config/formSetting/components/hsBtn/src/hsBtnItemConfig.vue.d.ts +19 -0
  669. package/dist/types/views/config/formSetting/components/hsBtn/src/hsBtnPanel.vue.d.ts +8 -0
  670. package/dist/types/views/config/formSetting/components/hsBtn/useAttrBtn.d.ts +14 -0
  671. package/dist/types/views/config/formSetting/components/hsBtn/useBtnConfigList.d.ts +8 -0
  672. package/dist/types/views/config/formSetting/components/hsBtn/useBtnItemConfig.d.ts +31 -0
  673. package/dist/types/views/config/formSetting/components/hsExpand/src/hsExpand.vue.d.ts +25 -0
  674. package/dist/types/views/config/formSetting/components/hsExpand/useExpand.d.ts +3 -0
  675. package/dist/types/views/config/formSetting/components/hsForm/src/contextmenu.vue.d.ts +36 -0
  676. package/dist/types/views/config/formSetting/components/hsForm/src/hsAttrForm.vue.d.ts +24 -0
  677. package/dist/types/views/config/formSetting/components/hsForm/src/hsFormConfigList.vue.d.ts +33 -0
  678. package/dist/types/views/config/formSetting/components/hsForm/src/hsFormPanel.vue.d.ts +31 -0
  679. package/dist/types/views/config/formSetting/components/hsForm/src/hsFormParse.vue.d.ts +8 -0
  680. package/dist/types/views/config/formSetting/components/hsForm/useAttrForm.d.ts +34 -0
  681. package/dist/types/views/config/formSetting/components/hsForm/useFormListConfig.d.ts +29 -0
  682. package/dist/types/views/config/formSetting/components/hsForm/useFormParse.d.ts +6 -0
  683. package/dist/types/views/config/formSetting/components/hsPageTree/configData.d.ts +50 -0
  684. package/dist/types/views/config/formSetting/components/hsPageTree/src/hsPageTree.vue.d.ts +64 -0
  685. package/dist/types/views/config/formSetting/components/hsPageTree/usePageTree.d.ts +12 -0
  686. package/dist/types/views/config/formSetting/components/hsSaveForm/saveFormConfig.d.ts +86 -0
  687. package/dist/types/views/config/formSetting/components/hsSaveForm/src/saveForm.vue.d.ts +52 -0
  688. package/dist/types/views/config/formSetting/components/hsSaveForm/useSaveForm.d.ts +25 -0
  689. package/dist/types/views/config/formSetting/components/selectConfig/config.d.ts +80 -0
  690. package/dist/types/views/config/formSetting/components/selectConfig/selectConfig.vue.d.ts +24 -0
  691. package/dist/types/views/config/formSetting/default/baseBtnConfig.d.ts +150 -0
  692. package/dist/types/views/config/formSetting/formConfig.vue.d.ts +23 -0
  693. package/dist/types/views/config/formSetting/index.vue.d.ts +3 -0
  694. package/dist/types/views/config/formSetting/useForm.d.ts +17 -0
  695. package/dist/types/views/config/formSetting/useFormConfig.d.ts +9 -0
  696. package/dist/types/views/config/pageElement/components/hsPanelItem/hsPanelItem.vue.d.ts +35 -0
  697. package/dist/types/views/config/pageElement/components/hsPanelItem/usePanelItem.d.ts +6 -0
  698. package/dist/types/views/config/pageElement/index.vue.d.ts +3 -0
  699. package/dist/types/views/config/pageElement/usePageElement.d.ts +108 -0
  700. package/dist/types/views/config/parseAPI/index.vue.d.ts +3 -0
  701. package/dist/types/views/config/table/index.vue.d.ts +3 -0
  702. package/dist/types/views/config/table/usePage.d.ts +14 -0
  703. package/dist/types/views/error/401.vue.d.ts +3 -0
  704. package/dist/types/views/error/404.vue.d.ts +3 -0
  705. package/dist/types/views/home/index.vue.d.ts +3 -0
  706. package/dist/types/views/login/component/account.vue.d.ts +3 -0
  707. package/dist/types/views/login/component/mobile.vue.d.ts +3 -0
  708. package/dist/types/views/login/component/scan.vue.d.ts +3 -0
  709. package/dist/types/views/login/index.vue.d.ts +3 -0
  710. package/dist/types/views/system/auth/index.vue.d.ts +3 -0
  711. package/dist/types/views/system/auth/useAuth.d.ts +140 -0
  712. package/dist/types/views/system/auth/utils.d.ts +8 -0
  713. package/dist/types/views/system/dept/dialog.vue.d.ts +9 -0
  714. package/dist/types/views/system/dept/index.vue.d.ts +3 -0
  715. package/dist/types/views/system/dic/dialog.vue.d.ts +9 -0
  716. package/dist/types/views/system/dic/index.vue.d.ts +3 -0
  717. package/dist/types/views/system/menu/dialog.vue.d.ts +34 -0
  718. package/dist/types/views/system/menu/index.vue.d.ts +3 -0
  719. package/dist/types/views/system/role/component/roleItem.vue.d.ts +3 -0
  720. package/dist/types/views/system/role/component/userSelect.vue.d.ts +9 -0
  721. package/dist/types/views/system/role/index.vue.d.ts +3 -0
  722. package/dist/types/views/system/user/dialog.vue.d.ts +9 -0
  723. package/dist/types/views/system/user/index.vue.d.ts +3 -0
  724. package/dist/types/views/test/form/index.vue.d.ts +3 -0
  725. package/dist/types/views/test/table/index.vue.d.ts +9 -0
  726. package/dist/types/views/test/test/index.vue.d.ts +3 -0
  727. package/dist/types/views/test/test/uploadAvatar.vue.d.ts +37 -0
  728. package/dist/types/views/test/test/useUpload.d.ts +3 -0
  729. package/dist/uploadAvatar-D2cwuRL4.mjs +1346 -0
  730. package/dist/uploadAvatar-D2cwuRL4.mjs.gz +0 -0
  731. package/dist/uploadAvatar-D564A-rC.js +7 -0
  732. package/dist/uploadAvatar-D564A-rC.js.gz +0 -0
  733. package/dist/user-9vWIB4Eh.js +1 -0
  734. package/dist/user-9vWIB4Eh.js.gz +0 -0
  735. package/dist/user-Cmk7njtr.mjs +291 -0
  736. package/dist/user-Cmk7njtr.mjs.gz +0 -0
  737. package/dist/userNews-CssK_xPF.mjs +61 -0
  738. package/dist/userNews-CssK_xPF.mjs.gz +0 -0
  739. package/dist/userNews-D4x4svqP.js +1 -0
  740. package/dist/userNews-D4x4svqP.js.gz +0 -0
  741. package/dist/userSelect-BY4DfNVy.mjs +4 -0
  742. package/dist/userSelect-oCTfuFFv.js +1 -0
  743. package/dist/userSelect.vue_vue_type_script_setup_true_lang-C0hRGhnK.js +1 -0
  744. package/dist/userSelect.vue_vue_type_script_setup_true_lang-C0hRGhnK.js.gz +0 -0
  745. package/dist/userSelect.vue_vue_type_script_setup_true_lang-Rmxq10yy.mjs +80 -0
  746. package/dist/userSelect.vue_vue_type_script_setup_true_lang-Rmxq10yy.mjs.gz +0 -0
  747. package/dist/vertical-BJ4JJk10.mjs +101 -0
  748. package/dist/vertical-BJ4JJk10.mjs.gz +0 -0
  749. package/dist/vertical-CNh2fQI2.js +1 -0
  750. package/dist/vertical-CNh2fQI2.js.gz +0 -0
  751. package/package.json +1 -1
@@ -0,0 +1,1346 @@
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-Bni5Yjpt.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-168a3964"]]), 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-71642b40"]]);
1344
+ export {
1345
+ dt as default
1346
+ };