yahee-components 0.0.29 → 0.0.31

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 (304) hide show
  1. package/es/_virtual/_plugin-vue_export-helper.js +9 -0
  2. package/es/_virtual/dayjs.min.js +1 -1
  3. package/es/_virtual/lodash.js +1 -1
  4. package/es/annex-upload/annex-upload.vue.js +69 -154
  5. package/es/annex-upload/annex-upload.vue2.js +119 -2
  6. package/es/annex-upload/index.js +3 -3
  7. package/es/api/server.js +1 -1
  8. package/es/api/tool.js +2 -2
  9. package/es/complex-search/complex-search.vue.js +228 -256
  10. package/es/complex-search/complex-search.vue2.js +130 -2
  11. package/es/complex-search/index.js +5 -5
  12. package/es/complex-search/props.js +18 -0
  13. package/es/copy/copy.vue.js +39 -55
  14. package/es/copy/copy.vue2.js +34 -2
  15. package/es/copy/index.js +3 -3
  16. package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +158 -204
  17. package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +125 -2
  18. package/es/country-platform-shop-condition/style/index.css +3 -4
  19. package/es/drop-down-condition/drop-down-condition.vue.js +193 -211
  20. package/es/drop-down-condition/drop-down-condition.vue2.js +127 -2
  21. package/es/drop-down-condition/style/index.css +21 -12
  22. package/es/image-upload/image-upload.vue.js +76 -113
  23. package/es/image-upload/image-upload.vue2.js +91 -2
  24. package/es/image-upload/index.js +3 -3
  25. package/es/index.js +14 -12
  26. package/es/input/index.js +3 -3
  27. package/es/input/input.vue.js +17 -38
  28. package/es/input/input.vue2.js +33 -2
  29. package/es/left-condition/index.js +5 -5
  30. package/es/left-condition/left-condition-sub.vue.js +55 -86
  31. package/es/left-condition/left-condition-sub.vue2.js +76 -2
  32. package/es/left-condition/left-condition.vue.js +91 -209
  33. package/es/left-condition/left-condition.vue2.js +152 -2
  34. package/es/left-condition-enum/index.js +3 -3
  35. package/es/left-condition-enum/left-condition-enum.vue.js +19 -77
  36. package/es/left-condition-enum/left-condition-enum.vue2.js +69 -2
  37. package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/core/Axios.js +51 -48
  38. package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/core/mergeConfig.js +20 -20
  39. package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/env/data.js +1 -1
  40. package/es/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/buildURL.js +23 -0
  41. package/es/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/isURLSameOrigin.js +8 -0
  42. package/es/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/validator.js +54 -0
  43. package/es/{packages/components → node_modules/.pnpm/dayjs@1.11.13}/node_modules/dayjs/dayjs.min.js +1 -1
  44. package/es/{packages/components → node_modules/.pnpm/lodash@4.17.21}/node_modules/lodash/lodash.js +2 -2
  45. package/es/{packages/components → node_modules/.pnpm/v3-infinite-loading@1.3.2}/node_modules/v3-infinite-loading/lib/v3-infinite-loading.es.js +1 -1
  46. package/es/operation-log/operation-log-content.vue.js +78 -88
  47. package/es/operation-log/operation-log-content.vue2.js +35 -2
  48. package/es/operation-log/operation-log-dialog.vue.js +57 -68
  49. package/es/operation-log/operation-log-dialog.vue2.js +38 -2
  50. package/es/operation-log/operation-log-form.vue.js +132 -179
  51. package/es/operation-log/operation-log-form.vue2.js +100 -2
  52. package/es/operation-log/operation-log.vue.js +183 -221
  53. package/es/operation-log/operation-log.vue2.js +133 -2
  54. package/es/packages/components/api/log-server.js +5 -5
  55. package/es/packages/components/api/server.js +1 -1
  56. package/es/packages/components/api/tool.js +1 -1
  57. package/es/packages/components/api/upload-server.js +6 -6
  58. package/es/packages/components/hooks/useImg.js +8 -8
  59. package/es/style.css +24 -16
  60. package/es/utils/translate.js +14 -14
  61. package/lib/country-platform-shop-condition/style/index.css +3 -4
  62. package/lib/drop-down-condition/style/index.css +21 -12
  63. package/lib/style.css +24 -16
  64. package/package.json +1 -1
  65. package/readme.md +249 -0
  66. package/types/hooks/useClipboard.d.ts +7 -0
  67. package/types/hooks/useImg.d.ts +10 -0
  68. package/types/hooks/useImgPath.d.ts +5 -0
  69. package/types/hooks/useImport.d.ts +11 -0
  70. package/types/hooks/useUpload.d.ts +12 -0
  71. package/types/index.d.ts +6 -1341
  72. package/types/src/annex-upload/annex-upload.d.ts +30 -0
  73. package/types/src/annex-upload/annex-upload.vue.d.ts +451 -0
  74. package/types/src/annex-upload/index.d.ts +118 -0
  75. package/types/src/annex-upload/mimeType.d.ts +2 -0
  76. package/types/src/api/server.d.ts +6 -0
  77. package/types/src/api/tool.d.ts +6 -0
  78. package/types/src/api/types.d.ts +17 -0
  79. package/types/src/complex-search/complex-search.d.ts +24 -0
  80. package/types/src/complex-search/complex-search.vue.d.ts +20 -0
  81. package/types/src/complex-search/index.d.ts +24 -0
  82. package/types/src/complex-search/props.d.ts +65 -0
  83. package/types/src/components.d.ts +10 -0
  84. package/types/src/copy/copy.d.ts +12 -0
  85. package/types/src/copy/copy.vue.d.ts +22 -0
  86. package/types/src/copy/index.d.ts +32 -0
  87. package/types/src/country-platform-shop-condition/country-platform-shop-condition.d.ts +17 -0
  88. package/types/src/country-platform-shop-condition/country-platform-shop-condition.vue.d.ts +12 -0
  89. package/types/src/country-platform-shop-condition/index.d.ts +16 -0
  90. package/types/src/drop-down-condition/drop-down-condition.d.ts +6 -0
  91. package/types/src/drop-down-condition/drop-down-condition.vue.d.ts +26 -0
  92. package/types/src/drop-down-condition/index.d.ts +42 -0
  93. package/types/src/image-upload/image-upload.d.ts +26 -0
  94. package/types/src/image-upload/image-upload.vue.d.ts +44 -0
  95. package/types/src/image-upload/index.d.ts +91 -0
  96. package/types/src/index.d.ts +7 -0
  97. package/types/src/input/index.d.ts +16 -0
  98. package/types/src/input/input.d.ts +18 -0
  99. package/types/src/input/input.vue.d.ts +14 -0
  100. package/types/src/installs.d.ts +524 -0
  101. package/types/src/left-condition/index.d.ts +69 -0
  102. package/types/src/left-condition/left-condition-sub.vue.d.ts +41 -0
  103. package/types/src/left-condition/left-condition.d.ts +5 -0
  104. package/types/src/left-condition/left-condition.vue.d.ts +50 -0
  105. package/types/src/left-condition-enum/index.d.ts +161 -0
  106. package/types/src/left-condition-enum/left-condition-enum.d.ts +5 -0
  107. package/types/src/left-condition-enum/left-condition-enum.vue.d.ts +159 -0
  108. package/types/src/operation-log/index.d.ts +10 -0
  109. package/types/src/operation-log/operation-log-content.vue.d.ts +24 -0
  110. package/types/src/operation-log/operation-log-dialog.vue.d.ts +39 -0
  111. package/types/src/operation-log/operation-log-form.vue.d.ts +19 -0
  112. package/types/src/operation-log/operation-log.d.ts +12 -0
  113. package/types/src/operation-log/operation-log.vue.d.ts +7 -0
  114. package/types/src/shared/hello.d.ts +1 -0
  115. package/types/src/shared/index.d.ts +2 -0
  116. package/types/src/shared/typeCheck.d.ts +2 -0
  117. package/types/src/shared/types/InferVueDefaults.d.ts +7 -0
  118. package/types/src/shared/types/index.d.ts +1 -0
  119. package/types/src/static/CommonObject.d.ts +18 -0
  120. package/types/src/static/CommonVariables.d.ts +4 -0
  121. package/types/src/utils/config.d.ts +8 -0
  122. package/types/src/utils/const.d.ts +19 -0
  123. package/types/src/utils/functions.d.ts +1 -0
  124. package/types/src/utils/infer-vue-defaults.d.ts +7 -0
  125. package/types/src/utils/install.d.ts +8 -0
  126. package/types/src/utils/storage.d.ts +18 -0
  127. package/types/src/utils/style.d.ts +19 -0
  128. package/types/src/utils/to-kebab-case.d.ts +1 -0
  129. package/types/src/utils/translate.d.ts +5 -0
  130. package/types/src/utils/typescript.d.ts +5 -0
  131. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/buildURL.js +0 -19
  132. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -37
  133. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/validator.js +0 -51
  134. package/lib/_virtual/_commonjsHelpers.js +0 -1
  135. package/lib/_virtual/dayjs.min.js +0 -1
  136. package/lib/_virtual/dayjs.min2.js +0 -1
  137. package/lib/_virtual/lodash.js +0 -1
  138. package/lib/_virtual/lodash2.js +0 -1
  139. package/lib/annex-upload/annex-upload.vue.js +0 -1
  140. package/lib/annex-upload/annex-upload.vue2.js +0 -1
  141. package/lib/annex-upload/index.js +0 -1
  142. package/lib/annex-upload/mimeType.js +0 -1
  143. package/lib/api/server.js +0 -1
  144. package/lib/api/tool.js +0 -1
  145. package/lib/complex-search/complex-search.vue.js +0 -1
  146. package/lib/complex-search/complex-search.vue2.js +0 -1
  147. package/lib/complex-search/index.js +0 -1
  148. package/lib/copy/copy.vue.js +0 -1
  149. package/lib/copy/copy.vue2.js +0 -1
  150. package/lib/copy/index.js +0 -1
  151. package/lib/country-platform-shop-condition/country-platform-shop-condition.vue.js +0 -1
  152. package/lib/country-platform-shop-condition/country-platform-shop-condition.vue2.js +0 -1
  153. package/lib/country-platform-shop-condition/index.js +0 -1
  154. package/lib/drop-down-condition/drop-down-condition.vue.js +0 -1
  155. package/lib/drop-down-condition/drop-down-condition.vue2.js +0 -1
  156. package/lib/drop-down-condition/index.js +0 -1
  157. package/lib/image-upload/image-upload.vue.js +0 -1
  158. package/lib/image-upload/image-upload.vue2.js +0 -1
  159. package/lib/image-upload/index.js +0 -1
  160. package/lib/index.js +0 -1
  161. package/lib/input/index.js +0 -1
  162. package/lib/input/input.vue.js +0 -1
  163. package/lib/input/input.vue2.js +0 -1
  164. package/lib/installs.js +0 -1
  165. package/lib/left-condition/index.js +0 -1
  166. package/lib/left-condition/left-condition-sub.vue.js +0 -1
  167. package/lib/left-condition/left-condition-sub.vue2.js +0 -1
  168. package/lib/left-condition/left-condition.vue.js +0 -1
  169. package/lib/left-condition/left-condition.vue2.js +0 -1
  170. package/lib/left-condition-enum/index.js +0 -1
  171. package/lib/left-condition-enum/left-condition-enum.vue.js +0 -1
  172. package/lib/left-condition-enum/left-condition-enum.vue2.js +0 -1
  173. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/index.js +0 -1
  174. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/adapters.js +0 -3
  175. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/fetch.js +0 -1
  176. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/xhr.js +0 -1
  177. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/axios.js +0 -1
  178. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/CancelToken.js +0 -1
  179. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/CanceledError.js +0 -1
  180. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/isCancel.js +0 -1
  181. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/Axios.js +0 -2
  182. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/AxiosError.js +0 -1
  183. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/AxiosHeaders.js +0 -2
  184. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/InterceptorManager.js +0 -1
  185. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/buildFullPath.js +0 -1
  186. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/dispatchRequest.js +0 -1
  187. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/mergeConfig.js +0 -1
  188. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/settle.js +0 -1
  189. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/transformData.js +0 -1
  190. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/defaults/index.js +0 -1
  191. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/defaults/transitional.js +0 -1
  192. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/env/data.js +0 -1
  193. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -1
  194. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -1
  195. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/bind.js +0 -1
  196. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/buildURL.js +0 -1
  197. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/combineURLs.js +0 -1
  198. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/composeSignals.js +0 -1
  199. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/cookies.js +0 -1
  200. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/formDataToJSON.js +0 -1
  201. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -1
  202. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isAxiosError.js +0 -1
  203. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -1
  204. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/null.js +0 -1
  205. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/parseHeaders.js +0 -2
  206. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/parseProtocol.js +0 -1
  207. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/progressEventReducer.js +0 -1
  208. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/resolveConfig.js +0 -1
  209. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/speedometer.js +0 -1
  210. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/spread.js +0 -1
  211. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/throttle.js +0 -1
  212. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/toFormData.js +0 -1
  213. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -1
  214. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/trackStream.js +0 -1
  215. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/validator.js +0 -1
  216. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -1
  217. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -1
  218. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -1
  219. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/index.js +0 -1
  220. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/common/utils.js +0 -1
  221. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/index.js +0 -1
  222. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/utils.js +0 -1
  223. package/lib/operation-log/index.js +0 -1
  224. package/lib/operation-log/operation-log-content.vue.js +0 -1
  225. package/lib/operation-log/operation-log-content.vue2.js +0 -1
  226. package/lib/operation-log/operation-log-dialog.vue.js +0 -1
  227. package/lib/operation-log/operation-log-dialog.vue2.js +0 -1
  228. package/lib/operation-log/operation-log-form.vue.js +0 -1
  229. package/lib/operation-log/operation-log-form.vue2.js +0 -1
  230. package/lib/operation-log/operation-log.vue.js +0 -1
  231. package/lib/operation-log/operation-log.vue2.js +0 -1
  232. package/lib/packages/components/api/log/index.js +0 -1
  233. package/lib/packages/components/api/log-server.js +0 -1
  234. package/lib/packages/components/api/server.js +0 -1
  235. package/lib/packages/components/api/tool.js +0 -1
  236. package/lib/packages/components/api/upload-server.js +0 -1
  237. package/lib/packages/components/assets/images/errorimg.png.js +0 -1
  238. package/lib/packages/components/assets/images/excel.png.js +0 -1
  239. package/lib/packages/components/assets/images/file-word.png.js +0 -1
  240. package/lib/packages/components/assets/images/pdf.png.js +0 -1
  241. package/lib/packages/components/assets/images/ppt.png.js +0 -1
  242. package/lib/packages/components/assets/images/vue.svg.js +0 -1
  243. package/lib/packages/components/hooks/useClipboard.js +0 -1
  244. package/lib/packages/components/hooks/useImg.js +0 -1
  245. package/lib/packages/components/hooks/useImgPath.js +0 -1
  246. package/lib/packages/components/hooks/useImport.js +0 -1
  247. package/lib/packages/components/hooks/useUpload.js +0 -1
  248. package/lib/packages/components/node_modules/dayjs/dayjs.min.js +0 -1
  249. package/lib/packages/components/node_modules/element-plus/es/locale/lang/zh-cn.js +0 -1
  250. package/lib/packages/components/node_modules/lodash/lodash.js +0 -27
  251. package/lib/packages/components/node_modules/v3-infinite-loading/lib/v3-infinite-loading.es.js +0 -1
  252. package/lib/static/CommonObject.js +0 -1
  253. package/lib/utils/config.js +0 -1
  254. package/lib/utils/const.js +0 -1
  255. package/lib/utils/install.js +0 -1
  256. package/lib/utils/storage.js +0 -1
  257. package/lib/utils/style.js +0 -1
  258. package/lib/utils/translate.js +0 -1
  259. package/lib/yahee-components.css +0 -1
  260. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/index.js +0 -0
  261. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/adapters/adapters.js +0 -0
  262. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/adapters/fetch.js +0 -0
  263. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/adapters/xhr.js +0 -0
  264. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/axios.js +0 -0
  265. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/cancel/CancelToken.js +0 -0
  266. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/cancel/CanceledError.js +0 -0
  267. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/cancel/isCancel.js +0 -0
  268. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/core/AxiosError.js +0 -0
  269. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/core/AxiosHeaders.js +0 -0
  270. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/core/InterceptorManager.js +0 -0
  271. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/core/buildFullPath.js +0 -0
  272. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/core/dispatchRequest.js +0 -0
  273. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/core/settle.js +0 -0
  274. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/core/transformData.js +0 -0
  275. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/defaults/index.js +0 -0
  276. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/defaults/transitional.js +0 -0
  277. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -0
  278. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -0
  279. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/bind.js +0 -0
  280. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/combineURLs.js +0 -0
  281. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/composeSignals.js +0 -0
  282. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/cookies.js +0 -0
  283. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/formDataToJSON.js +0 -0
  284. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -0
  285. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/isAxiosError.js +0 -0
  286. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/null.js +0 -0
  287. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/parseHeaders.js +0 -0
  288. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/parseProtocol.js +0 -0
  289. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/progressEventReducer.js +0 -0
  290. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/resolveConfig.js +0 -0
  291. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/speedometer.js +0 -0
  292. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/spread.js +0 -0
  293. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/throttle.js +0 -0
  294. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/toFormData.js +0 -0
  295. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -0
  296. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/trackStream.js +0 -0
  297. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -0
  298. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -0
  299. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -0
  300. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/platform/browser/index.js +0 -0
  301. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/platform/common/utils.js +0 -0
  302. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/platform/index.js +0 -0
  303. /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/utils.js +0 -0
  304. /package/es/{packages/components → node_modules/.pnpm/element-plus@2.9.1_vue@3.5.13_typescript@5.7.2_}/node_modules/element-plus/es/locale/lang/zh-cn.js +0 -0
@@ -1,4 +1,129 @@
1
- import f from "./drop-down-condition.vue.js";
1
+ import { defineComponent as U, ref as f, reactive as C, toRefs as Y, watch as $, onMounted as z } from "vue";
2
+ import n from "../_virtual/lodash.js";
3
+ import { stylesUtils as S } from "../utils/style.js";
4
+ import { storage as L } from "../utils/storage.js";
5
+ import { M2 as H } from "../utils/translate.js";
6
+ import { ElButton as J, ElCheckbox as Q, ElCheckboxGroup as X, ElDropdown as Z } from "element-plus";
7
+ import "element-plus/theme-chalk/src/base.scss";
8
+ import "element-plus/theme-chalk/src/button.scss";
9
+ import "element-plus/theme-chalk/src/checkbox.scss";
10
+ import "element-plus/theme-chalk/src/checkbox-group.scss";
11
+ import "element-plus/theme-chalk/src/button-group.scss";
12
+ import "element-plus/theme-chalk/src/popper.scss";
13
+ import "element-plus/theme-chalk/src/scrollbar.scss";
14
+ import "element-plus/theme-chalk/src/dropdown.scss";
15
+ const de = /* @__PURE__ */ U({
16
+ name: "YaheeDropDownCondition",
17
+ __name: "drop-down-condition",
18
+ props: {
19
+ filterList: { type: Array, required: !1 },
20
+ totalCount: { type: Number, required: !1 },
21
+ level1Count: { type: Array, required: !1 },
22
+ level2Count: { type: Array, required: !1 },
23
+ filterKey: { type: String, required: !0 },
24
+ enumEntity: { type: String, required: !0 },
25
+ noNeedRefreshNumFilterName: { type: String, required: !1 },
26
+ initFilters: { type: Function, required: !1 }
27
+ },
28
+ emits: ["filterChange", "setNoNeedRefreshNumFilterName"],
29
+ setup(B, { expose: R, emit: K }) {
30
+ R();
31
+ const M = f(), l = C({});
32
+ let g = C({});
33
+ const s = C({}), i = C({}), a = f(!0), c = B, N = K, { filterKey: p, filterList: b, totalCount: d, level1Count: m, level2Count: v, noNeedRefreshNumFilterName: x } = Y(c), _ = f(n.get(d, "value", 0)), F = f(n.get(m, "value", [])), q = f(n.get(v, "value", [])), u = f();
34
+ b.value && (u.value = [...b.value]);
35
+ function O(e) {
36
+ const { text: t, value: r } = e, o = l[t];
37
+ n.isNil(o) || n.isEmpty(o) ? l[t] = [r] : l[t] = [], i[t] = !i[t], i[t] ? (A(t), s[t] = S.getBackgroundColor(!0), a.value = !1) : (j(t), s[e.text] = {}, a.value = !0), a.value = h(), y();
38
+ }
39
+ function h() {
40
+ const e = u.value.filter((o) => !n.isEmpty(o.subs)).flatMap((o) => o.subs).length, t = u.value.filter((o) => n.isEmpty(o.subs)).length;
41
+ return Object.values(l).map((o) => o.length).reduce((o, k) => o + k, 0) === e + t || n.isEmpty(Object.values(l).flat());
42
+ }
43
+ function G(e) {
44
+ n.isEmpty(l[e.text]) ? (s[e.text] = {}, i[e.text] = !1) : l[e.text].length === n.get(e, "subs.length", 1) ? (s[e.text] = S.getBackgroundColor(!0), i[e.text] = !0) : s[e.text] = {
45
+ backgroundColor: "#0F7535",
46
+ color: "#fff",
47
+ borderColor: "#0F7535"
48
+ }, a.value = h(), y();
49
+ }
50
+ function I() {
51
+ a.value = h(), y();
52
+ }
53
+ function y() {
54
+ N("setNoNeedRefreshNumFilterName", p.value);
55
+ }
56
+ function P() {
57
+ a.value = !0;
58
+ for (const e in s)
59
+ s[e] = {};
60
+ for (const e in l)
61
+ delete l[e];
62
+ for (const e in i)
63
+ delete i[e];
64
+ E();
65
+ }
66
+ const T = (e) => S.getBackgroundColor(e);
67
+ function V(e) {
68
+ if (e)
69
+ g = n.cloneDeep(l);
70
+ else {
71
+ if (n.isEqual(g, l))
72
+ return;
73
+ E();
74
+ }
75
+ }
76
+ function E() {
77
+ N("filterChange", [
78
+ {
79
+ filterKey: p.value,
80
+ checkedValues: Object.values(l).flat()
81
+ }
82
+ ]);
83
+ }
84
+ function A(e) {
85
+ const t = u.value.find((r) => r.text === e);
86
+ t && t.subs && (l[e] = t.subs.map((r) => r.value));
87
+ }
88
+ function j(e) {
89
+ l[e] = [];
90
+ }
91
+ function w() {
92
+ const e = `filter-key-${c.enumEntity}`, t = L.getWithExpireTime(e);
93
+ t ? u.value = t : (console.log(c.enumEntity), c.initFilters(c.enumEntity).then((r) => {
94
+ console.log(r), u.value = r.data, L.setWithExpireTime(e, u.value, 1200 * 1e3), console.log(u.value);
95
+ }).catch((r) => {
96
+ console.log(r);
97
+ }));
98
+ }
99
+ $(
100
+ [() => d.value, () => m.value, () => v.value],
101
+ ([e, t, r], [o, k, W]) => {
102
+ console.log(e, t, r), console.log(o, k, W), (!x.value || !n.eq(x.value, p.value)) && (_.value = d.value, F.value = m.value, q.value = v.value);
103
+ }
104
+ ), z(() => {
105
+ w();
106
+ });
107
+ const D = { dropdown1: M, totalCheckBoxStatus: l, get judgeChange() {
108
+ return g;
109
+ }, set judgeChange(e) {
110
+ g = e;
111
+ }, selectedStyles: s, selectedAllStatus: i, isSelectedAll: a, props: c, emit: N, filterKey: p, filterList: b, totalCount: d, level1Count: m, level2Count: v, noNeedRefreshNumFilterName: x, totalNum: _, level1Num: F, level2Num: q, selectList: u, onClick: O, getIsNeedSelectAll: h, changeCheckbox: G, singleChangeCheckbox: I, setNoNeedRefreshNumFilterName: y, selectAll: P, getDefaultSelectedAllStyle: T, handleVisible: V, updateParentForm: E, selectAllCheckboxes: A, deSelectCheckboxes: j, initData: w, get _() {
112
+ return n;
113
+ }, get M2() {
114
+ return H;
115
+ }, get ElButton() {
116
+ return J;
117
+ }, get ElCheckbox() {
118
+ return Q;
119
+ }, get ElCheckboxGroup() {
120
+ return X;
121
+ }, get ElDropdown() {
122
+ return Z;
123
+ } };
124
+ return Object.defineProperty(D, "__isScriptSetup", { enumerable: !1, value: !0 }), D;
125
+ }
126
+ });
2
127
  export {
3
- f as default
128
+ de as default
4
129
  };
@@ -1,13 +1,9 @@
1
1
  @charset "UTF-8";
2
- .yahee-drop-down-condition {
3
- /* 滚动槽 */
4
- /* 滚动条滑块 */
5
- }
6
2
  .yahee-drop-down-condition .checkbox {
7
3
  margin-top: 5px;
8
4
  }
9
5
  .yahee-drop-down-condition .custom-total-button {
10
- margin-right: 0;
6
+ margin-right: 5px;
11
7
  padding: 1px 4px;
12
8
  height: 22px;
13
9
  }
@@ -15,35 +11,48 @@
15
11
  display: flex;
16
12
  flex-direction: column;
17
13
  }
18
- .yahee-drop-down-condition .scrollable-container {
14
+
15
+ .scrollable-container {
19
16
  max-height: 700px;
20
17
  overflow-y: auto;
21
18
  display: flex;
22
19
  flex-direction: column;
23
20
  }
24
- .yahee-drop-down-condition .scrollable-container::-webkit-scrollbar {
21
+
22
+ .scrollable-container::-webkit-scrollbar {
25
23
  width: 5px;
26
24
  }
27
- .yahee-drop-down-condition .scrollable-container::-webkit-scrollbar-track {
25
+
26
+ /* 滚动槽 */
27
+ .scrollable-container::-webkit-scrollbar-track {
28
28
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
29
29
  border-radius: 10px;
30
30
  }
31
- .yahee-drop-down-condition .scrollable-container::-webkit-scrollbar-thumb {
31
+
32
+ /* 滚动条滑块 */
33
+ .scrollable-container::-webkit-scrollbar-thumb {
32
34
  border-radius: 10px;
33
35
  background: rgba(0, 0, 0, 0.1);
34
36
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
35
37
  }
36
38
 
39
+ .el-button + .el-button.custom-dropdown-button {
40
+ margin-left: 5px;
41
+ }
42
+
37
43
  .custom-dropdown .checkbox {
38
44
  margin-top: 5px;
39
45
  }
40
- .custom-dropdown .custom-button {
46
+ .custom-dropdown .custom-dropdown-button {
41
47
  margin-right: 0;
42
48
  padding: 1px 4px;
43
49
  min-height: 22px;
44
50
  height: 22px;
45
- margin-left: 5px;
46
51
  }
47
- .custom-dropdown .custom-button.inner-el-button {
52
+ .custom-dropdown .custom-dropdown-button.inner-el-button {
48
53
  margin-top: 5px;
54
+ }
55
+
56
+ .custom-dropdown-checkbox-group {
57
+ margin-right: 10px;
49
58
  }
@@ -1,177 +1,140 @@
1
- import { defineComponent as U, ref as g, onMounted as B, getCurrentInstance as N, openBlock as d, createElementBlock as p, Fragment as F, withDirectives as D, createVNode as a, unref as t, normalizeStyle as L, withCtx as o, renderSlot as M, createElementVNode as n, createTextVNode as $, withModifiers as I, createCommentVNode as b, createBlock as P } from "vue";
2
- import w from "../packages/components/hooks/useImg.js";
3
- import { useIsImg as T, useUpload as j } from "../packages/components/hooks/useUpload.js";
4
- import { vLoading as S, ElUpload as A, ElImage as G, ElIcon as c, ElDialog as x, ElMessage as h } from "element-plus";
5
- import "element-plus/theme-chalk/src/base.scss";
6
- import "element-plus/theme-chalk/src/upload.scss";
7
- import "element-plus/theme-chalk/src/progress.scss";
8
- import "element-plus/theme-chalk/src/dialog.scss";
9
- import "element-plus/theme-chalk/src/overlay.scss";
10
- import "element-plus/theme-chalk/src/image.scss";
11
- import "element-plus/theme-chalk/src/image-viewer.scss";
12
- import "element-plus/theme-chalk/src/badge.scss";
13
- import "element-plus/theme-chalk/src/message.scss";
14
- import { Delete as R, Plus as Y, CircleCloseFilled as _ } from "@element-plus/icons-vue";
15
- const q = { class: "yahee-image-upload" }, H = {
1
+ import f from "./image-upload.vue2.js";
2
+ import { openBlock as t, createElementBlock as s, Fragment as u, withDirectives as h, createVNode as o, normalizeStyle as E, withCtx as i, renderSlot as _, createElementVNode as n, createTextVNode as v, withModifiers as c, createCommentVNode as w, createBlock as V } from "vue";
3
+ import y from "../_virtual/_plugin-vue_export-helper.js";
4
+ const I = { class: "yahee-image-upload" }, k = {
16
5
  key: 0,
17
6
  style: { width: "100%", height: "100%" }
18
- }, J = ["src"], de = /* @__PURE__ */ U({
19
- name: "YaheeImageUpload",
20
- __name: "image-upload",
21
- props: {
22
- modelValue: { default: () => ({ index: 0, fileId: "", fileName: "" }) },
23
- showDelete: { type: Boolean, default: !0 },
24
- zoom: { default: 1 },
25
- imgSize: { default: () => ({ width: 80, height: 80 }) },
26
- limitImgSize: { type: Boolean, default: !0 },
27
- limitFileSize: { type: Boolean, default: !0 },
28
- fileSize: { default: 50 },
29
- fileSizeUnit: { default: "kb" },
30
- fileType: { default: "105" }
31
- },
32
- emits: ["update:modelValue", "change"],
33
- setup(y, { emit: V }) {
34
- const s = y, f = V, u = g(!1), C = (e) => {
35
- if (!T(e.raw)) {
36
- h.error("只能选择图片格式文件!");
37
- return;
38
- }
39
- if (s.limitFileSize) {
40
- let l = e.size;
41
- if (s.fileSizeUnit.toLowerCase() == "kb" ? l = e.size / 1024 : l = e.size / 1024 / 1024, !(l < s.fileSize)) {
42
- h.error(`图片大小不能超过 ${s.fileSize}${s.fileSizeUnit}!`);
43
- return;
44
- }
45
- }
46
- u.value = !0, j(s.fileType, e.raw).then((l) => {
47
- const r = {
48
- fileName: e.name,
49
- fileId: l[0],
50
- index: 0
51
- };
52
- f("update:modelValue", r), f("change", {
53
- fileName: e.name,
54
- fileId: l[0],
55
- index: 0
56
- }), u.value = !1;
57
- }).catch((l) => {
58
- h.error("update image error", l), u.value = !1;
59
- });
60
- }, k = () => {
61
- f("update:modelValue", "");
62
- }, z = g(""), m = g(!1), E = () => {
63
- var e;
64
- z.value = w((e = s.modelValue) == null ? void 0 : e.fileId, !0), m.value = !0;
65
- };
66
- return B(() => {
67
- var i;
68
- const e = (i = N()) == null ? void 0 : i.appContext.app;
69
- e && e.directive("loading", S);
70
- }), (e, i) => (d(), p(F, null, [
71
- D((d(), p("div", q, [
72
- a(t(A), {
7
+ }, C = ["src"];
8
+ function p(g, l, a, e, z, x) {
9
+ return t(), s(
10
+ u,
11
+ null,
12
+ [
13
+ h((t(), s("div", I, [
14
+ o(e.ElUpload, {
73
15
  class: "picture-uploader",
74
16
  action: "#",
75
- style: L({ width: e.imgSize.width * e.zoom + "px", height: e.imgSize.height * e.zoom + "px" }),
17
+ style: E({ width: a.imgSize.width * a.zoom + "px", height: a.imgSize.height * a.zoom + "px" }),
76
18
  "show-file-list": !1,
77
19
  multiple: !1,
78
20
  "auto-upload": !1,
79
21
  accept: "image/jpeg,image/jpg,image/gif,image/png",
80
- "on-change": C
22
+ "on-change": e.handleUploadChange
81
23
  }, {
82
- default: o(() => {
83
- var l;
24
+ default: i(() => {
25
+ var d;
84
26
  return [
85
- M(e.$slots, "default", {
86
- value: (l = e.modelValue) == null ? void 0 : l.fileId
27
+ _(g.$slots, "default", {
28
+ value: (d = a.modelValue) == null ? void 0 : d.fileId
87
29
  }, () => {
88
- var r, v;
30
+ var m, r;
89
31
  return [
90
- (r = e.modelValue) != null && r.fileId ? (d(), p("div", H, [
91
- a(t(G), {
32
+ (m = a.modelValue) != null && m.fileId ? (t(), s("div", k, [
33
+ o(e.ElImage, {
92
34
  class: "picture",
93
- src: t(w)((v = e.modelValue) == null ? void 0 : v.fileId)
35
+ src: e.useImage((r = a.modelValue) == null ? void 0 : r.fileId)
94
36
  }, {
95
- error: o(() => i[2] || (i[2] = [
96
- n("div", { style: { display: "none" } }, null, -1)
37
+ error: i(() => l[2] || (l[2] = [
38
+ n(
39
+ "div",
40
+ { style: { display: "none" } },
41
+ null,
42
+ -1
43
+ /* HOISTED */
44
+ )
97
45
  ])),
98
- placeholder: o(() => i[3] || (i[3] = [
99
- n("div", { class: "image-slot" }, [
100
- $("Loading"),
101
- n("span", { class: "dot" }, "...")
102
- ], -1)
46
+ placeholder: i(() => l[3] || (l[3] = [
47
+ n(
48
+ "div",
49
+ { class: "image-slot" },
50
+ [
51
+ v("Loading"),
52
+ n("span", { class: "dot" }, "...")
53
+ ],
54
+ -1
55
+ /* HOISTED */
56
+ )
103
57
  ])),
104
58
  _: 1
59
+ /* STABLE */
105
60
  }, 8, ["src"]),
106
61
  n("span", {
107
62
  class: "upload-actions",
108
- onClick: I(E, ["stop"])
63
+ onClick: c(e.handleFilePreview, ["stop"])
109
64
  }, [
110
- e.showDelete ? (d(), p("span", {
65
+ a.showDelete ? (t(), s("span", {
111
66
  key: 0,
112
67
  class: "upload-delete",
113
- onClick: I(k, ["stop"])
68
+ onClick: c(e.handleFileRemove, ["stop"])
114
69
  }, [
115
- a(t(c), {
70
+ o(e.ElIcon, {
116
71
  size: 20,
117
72
  color: "#ff1e1e"
118
73
  }, {
119
- default: o(() => [
120
- a(t(R))
74
+ default: i(() => [
75
+ o(e.Delete)
121
76
  ]),
122
77
  _: 1
78
+ /* STABLE */
123
79
  })
124
- ])) : b("", !0)
80
+ ])) : w("v-if", !0)
125
81
  ])
126
- ])) : (d(), P(t(c), {
82
+ ])) : (t(), V(e.ElIcon, {
127
83
  key: 1,
128
84
  class: "picture-uploader-icon",
129
85
  size: 20
130
86
  }, {
131
- default: o(() => [
132
- a(t(Y))
87
+ default: i(() => [
88
+ o(e.Plus)
133
89
  ]),
134
90
  _: 1
91
+ /* STABLE */
135
92
  }))
136
93
  ];
137
94
  })
138
95
  ];
139
96
  }),
140
97
  _: 3
98
+ /* FORWARDED */
141
99
  }, 8, ["style"])
142
100
  ])), [
143
- [t(S), u.value]
101
+ [e.vLoading, e.loading]
144
102
  ]),
145
- a(t(x), {
146
- modelValue: m.value,
147
- "onUpdate:modelValue": i[1] || (i[1] = (l) => m.value = l),
103
+ o(e.ElDialog, {
104
+ modelValue: e.dialogVisible,
105
+ "onUpdate:modelValue": l[1] || (l[1] = (d) => e.dialogVisible = d),
148
106
  "show-close": !1
149
107
  }, {
150
- header: o(() => [
151
- a(t(c), {
108
+ header: i(() => [
109
+ o(e.ElIcon, {
152
110
  size: 40,
153
111
  color: "#a4a4a4",
154
112
  class: "pull-right marginB6",
155
- onClick: i[0] || (i[0] = (l) => m.value = !1)
113
+ onClick: l[0] || (l[0] = (d) => e.dialogVisible = !1)
156
114
  }, {
157
- default: o(() => [
158
- a(t(_))
115
+ default: i(() => [
116
+ o(e.CircleCloseFilled)
159
117
  ]),
160
118
  _: 1
119
+ /* STABLE */
161
120
  })
162
121
  ]),
163
- default: o(() => [
122
+ default: i(() => [
164
123
  n("img", {
165
124
  style: { width: "100%" },
166
- src: z.value,
125
+ src: e.dialogImageUrl,
167
126
  alt: "Preview Image"
168
- }, null, 8, J)
127
+ }, null, 8, C)
169
128
  ]),
170
129
  _: 1
130
+ /* STABLE */
171
131
  }, 8, ["modelValue"])
172
- ], 64));
173
- }
174
- });
132
+ ],
133
+ 64
134
+ /* STABLE_FRAGMENT */
135
+ );
136
+ }
137
+ const b = /* @__PURE__ */ y(f, [["render", p], ["__file", "E:/工作/项目代码/common_componentsweb/packages/components/src/image-upload/image-upload.vue"]]);
175
138
  export {
176
- de as default
139
+ b as default
177
140
  };
@@ -1,4 +1,93 @@
1
- import f from "./image-upload.vue.js";
1
+ import { defineComponent as y, ref as o, onMounted as v, getCurrentInstance as E } from "vue";
2
+ import p from "../packages/components/hooks/useImg.js";
3
+ import { useIsImg as _, useUpload as b } from "../packages/components/hooks/useUpload.js";
4
+ import { vLoading as f, ElUpload as q, ElDialog as C, ElIcon as U, ElImage as w, ElMessage as u } from "element-plus";
5
+ import "element-plus/theme-chalk/src/base.scss";
6
+ import "element-plus/theme-chalk/src/upload.scss";
7
+ import "element-plus/theme-chalk/src/progress.scss";
8
+ import "element-plus/theme-chalk/src/dialog.scss";
9
+ import "element-plus/theme-chalk/src/overlay.scss";
10
+ import "element-plus/theme-chalk/src/image.scss";
11
+ import "element-plus/theme-chalk/src/image-viewer.scss";
12
+ import "element-plus/theme-chalk/src/badge.scss";
13
+ import "element-plus/theme-chalk/src/message.scss";
14
+ import { Delete as x, Plus as F, CircleCloseFilled as V } from "@element-plus/icons-vue";
15
+ const Y = /* @__PURE__ */ y({
16
+ name: "YaheeImageUpload",
17
+ __name: "image-upload",
18
+ props: {
19
+ modelValue: { type: Object, required: !0, default: () => ({ index: 0, fileId: "", fileName: "" }) },
20
+ showDelete: { type: Boolean, required: !1, default: !0 },
21
+ zoom: { type: Number, required: !1, default: 1 },
22
+ imgSize: { type: Object, required: !1, default: () => ({ width: 80, height: 80 }) },
23
+ limitImgSize: { type: Boolean, required: !1, default: !0 },
24
+ limitFileSize: { type: Boolean, required: !1, default: !0 },
25
+ fileSize: { type: Number, required: !1, default: 50 },
26
+ fileSizeUnit: { type: String, required: !1, default: "kb" },
27
+ fileType: { type: String, required: !1, default: "105" }
28
+ },
29
+ emits: ["update:modelValue", "change"],
30
+ setup(g, { expose: c, emit: I }) {
31
+ c();
32
+ const t = g, r = I, l = o(!1), z = (e) => {
33
+ if (!_(e.raw)) {
34
+ u.error("只能选择图片格式文件!");
35
+ return;
36
+ }
37
+ if (t.limitFileSize) {
38
+ let i = e.size;
39
+ if (t.fileSizeUnit.toLowerCase() == "kb" ? i = e.size / 1024 : i = e.size / 1024 / 1024, !(i < t.fileSize)) {
40
+ u.error(`图片大小不能超过 ${t.fileSize}${t.fileSizeUnit}!`);
41
+ return;
42
+ }
43
+ }
44
+ l.value = !0, b(t.fileType, e.raw).then((i) => {
45
+ const m = {
46
+ fileName: e.name,
47
+ fileId: i[0],
48
+ index: 0
49
+ };
50
+ r("update:modelValue", m), r("change", {
51
+ fileName: e.name,
52
+ fileId: i[0],
53
+ index: 0
54
+ }), l.value = !1;
55
+ }).catch((i) => {
56
+ u.error("update image error", i), l.value = !1;
57
+ });
58
+ }, S = () => {
59
+ r("update:modelValue", "");
60
+ }, n = o(""), s = o(!1), h = () => {
61
+ var e;
62
+ n.value = p((e = t.modelValue) == null ? void 0 : e.fileId, !0), s.value = !0;
63
+ };
64
+ v(() => {
65
+ var a;
66
+ const e = (a = E()) == null ? void 0 : a.appContext.app;
67
+ e && e.directive("loading", f);
68
+ });
69
+ const d = { props: t, emits: r, loading: l, handleUploadChange: z, handleFileRemove: S, dialogImageUrl: n, dialogVisible: s, handleFilePreview: h, get useImage() {
70
+ return p;
71
+ }, get ElUpload() {
72
+ return q;
73
+ }, get ElDialog() {
74
+ return C;
75
+ }, get ElIcon() {
76
+ return U;
77
+ }, get ElImage() {
78
+ return w;
79
+ }, get vLoading() {
80
+ return f;
81
+ }, get Delete() {
82
+ return x;
83
+ }, get Plus() {
84
+ return F;
85
+ }, get CircleCloseFilled() {
86
+ return V;
87
+ } };
88
+ return Object.defineProperty(d, "__isScriptSetup", { enumerable: !1, value: !0 }), d;
89
+ }
90
+ });
2
91
  export {
3
- f as default
92
+ Y as default
4
93
  };
@@ -1,7 +1,7 @@
1
1
  import { withInstall as a } from "../utils/install.js";
2
2
  import o from "./image-upload.vue.js";
3
- const e = a(o);
3
+ const m = a(o);
4
4
  export {
5
- e as YaheeImageUpload,
6
- e as default
5
+ m as YaheeImageUpload,
6
+ m as default
7
7
  };
package/es/index.js CHANGED
@@ -2,30 +2,32 @@ import { makeInstaller as e } from "./utils/install.js";
2
2
  import r from "./installs.js";
3
3
  import { config as t } from "./utils/config.js";
4
4
  import { YaheeInput as l } from "./input/index.js";
5
- import { YaheeComplexSearch as C } from "./complex-search/index.js";
5
+ import { YaheeComplexSearch as Y } from "./complex-search/index.js";
6
6
  import { YaheeCopy as s } from "./copy/index.js";
7
7
  import { YaheeImageUpload as c } from "./image-upload/index.js";
8
8
  import { YaheeAnnexUpload as I } from "./annex-upload/index.js";
9
- import { YaheeOperationLog as y } from "./operation-log/index.js";
10
- import { YaheeCountryPlatformShopCondition as S } from "./country-platform-shop-condition/index.js";
11
- import { YaheeLeftCondition as b } from "./left-condition/index.js";
12
- import { YaheeLeftConditionEnum as w } from "./left-condition-enum/index.js";
13
- import { YaheeDropDownCondition as E } from "./drop-down-condition/index.js";
9
+ import { YaheeOperationLog as S } from "./operation-log/index.js";
10
+ import { YaheeCountryPlatformShopCondition as D } from "./country-platform-shop-condition/index.js";
11
+ import { YaheeLeftCondition as U } from "./left-condition/index.js";
12
+ import { YaheeLeftConditionEnum as k } from "./left-condition-enum/index.js";
13
+ import { YaheeDropDownCondition as A } from "./drop-down-condition/index.js";
14
+ import { defaultComplexSearchProps as G } from "./complex-search/props.js";
14
15
  const { setConfig: n } = t(), m = e([...r]);
15
16
  function i(o) {
16
17
  n(o);
17
18
  }
18
19
  export {
19
20
  I as YaheeAnnexUpload,
20
- C as YaheeComplexSearch,
21
+ Y as YaheeComplexSearch,
21
22
  s as YaheeCopy,
22
- S as YaheeCountryPlatformShopCondition,
23
- E as YaheeDropDownCondition,
23
+ D as YaheeCountryPlatformShopCondition,
24
+ A as YaheeDropDownCondition,
24
25
  c as YaheeImageUpload,
25
26
  l as YaheeInput,
26
- b as YaheeLeftCondition,
27
- w as YaheeLeftConditionEnum,
28
- y as YaheeOperationLog,
27
+ U as YaheeLeftCondition,
28
+ k as YaheeLeftConditionEnum,
29
+ S as YaheeOperationLog,
29
30
  m as default,
31
+ G as defaultComplexSearchProps,
30
32
  i as useGlobalConfig
31
33
  };
package/es/input/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { withInstall as t } from "../utils/install.js";
2
2
  import o from "./input.vue.js";
3
- const r = t(o);
3
+ const a = t(o);
4
4
  export {
5
- r as YaheeInput,
6
- r as default
5
+ a as YaheeInput,
6
+ a as default
7
7
  };