yahee-components 0.0.5

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 (229) hide show
  1. package/es/_virtual/_commonjsHelpers.js +8 -0
  2. package/es/_virtual/_plugin-vue_export-helper.js +9 -0
  3. package/es/_virtual/dayjs.min.js +4 -0
  4. package/es/_virtual/lodash.js +4 -0
  5. package/es/annex-upload/annex-upload.vue.js +158 -0
  6. package/es/annex-upload/annex-upload.vue2.js +4 -0
  7. package/es/annex-upload/index.js +7 -0
  8. package/es/annex-upload/mimeType.js +822 -0
  9. package/es/annex-upload/style/index.css +7 -0
  10. package/es/comprehensive-search/comprehensive-search.vue.js +234 -0
  11. package/es/comprehensive-search/comprehensive-search.vue2.js +4 -0
  12. package/es/comprehensive-search/index.js +7 -0
  13. package/es/comprehensive-search/style/index.css +24 -0
  14. package/es/copy/copy.vue.js +57 -0
  15. package/es/copy/copy.vue2.js +4 -0
  16. package/es/copy/index.js +7 -0
  17. package/es/copy/style/index.css +10 -0
  18. package/es/image-upload/image-upload.vue.js +176 -0
  19. package/es/image-upload/image-upload.vue2.js +4 -0
  20. package/es/image-upload/index.js +7 -0
  21. package/es/image-upload/style/index.css +33 -0
  22. package/es/index.js +18 -0
  23. package/es/input/index.js +7 -0
  24. package/es/input/input.vue.js +40 -0
  25. package/es/input/input.vue2.js +4 -0
  26. package/es/input/style/index.css +3 -0
  27. package/es/installs.js +17 -0
  28. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/adapters.js +53 -0
  29. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/fetch.js +141 -0
  30. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/xhr.js +71 -0
  31. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/axios.js +46 -0
  32. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/CancelToken.js +77 -0
  33. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/CanceledError.js +11 -0
  34. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/isCancel.js +6 -0
  35. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/Axios.js +133 -0
  36. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/AxiosError.js +54 -0
  37. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/AxiosHeaders.js +173 -0
  38. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/InterceptorManager.js +58 -0
  39. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/buildFullPath.js +8 -0
  40. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/dispatchRequest.js +31 -0
  41. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/mergeConfig.js +70 -0
  42. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/settle.js +14 -0
  43. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/transformData.js +13 -0
  44. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/defaults/index.js +89 -0
  45. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/defaults/transitional.js +8 -0
  46. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/env/data.js +4 -0
  47. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +33 -0
  48. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/HttpStatusCode.js +71 -0
  49. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/bind.js +8 -0
  50. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/buildURL.js +19 -0
  51. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/combineURLs.js +6 -0
  52. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/composeSignals.js +30 -0
  53. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/cookies.js +32 -0
  54. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/formDataToJSON.js +31 -0
  55. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isAbsoluteURL.js +6 -0
  56. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isAxiosError.js +7 -0
  57. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isURLSameOrigin.js +37 -0
  58. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/null.js +4 -0
  59. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/parseHeaders.js +30 -0
  60. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/parseProtocol.js +7 -0
  61. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/progressEventReducer.js +35 -0
  62. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/resolveConfig.js +33 -0
  63. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/speedometer.js +19 -0
  64. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/spread.js +8 -0
  65. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/throttle.js +15 -0
  66. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/toFormData.js +83 -0
  67. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/toURLEncodedForm.js +13 -0
  68. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/trackStream.js +63 -0
  69. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/validator.js +51 -0
  70. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/Blob.js +4 -0
  71. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/FormData.js +4 -0
  72. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +5 -0
  73. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/index.js +15 -0
  74. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/common/utils.js +9 -0
  75. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/index.js +9 -0
  76. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/utils.js +233 -0
  77. package/es/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js +282 -0
  78. package/es/node_modules/.pnpm/element-plus@2.8.3_vue@3.5.4_typescript@5.6.2_/node_modules/element-plus/es/locale/lang/zh-cn.js +181 -0
  79. package/es/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js +3677 -0
  80. package/es/node_modules/.pnpm/v3-infinite-loading@1.3.2/node_modules/v3-infinite-loading/lib/v3-infinite-loading.es.js +120 -0
  81. package/es/operation-log/index.js +7 -0
  82. package/es/operation-log/operation-log-content.vue.js +100 -0
  83. package/es/operation-log/operation-log-content.vue2.js +4 -0
  84. package/es/operation-log/operation-log-dialog.vue.js +70 -0
  85. package/es/operation-log/operation-log-dialog.vue2.js +4 -0
  86. package/es/operation-log/operation-log-form.vue.js +7 -0
  87. package/es/operation-log/operation-log-form.vue2.js +181 -0
  88. package/es/operation-log/operation-log.vue.js +231 -0
  89. package/es/operation-log/operation-log.vue2.js +4 -0
  90. package/es/operation-log/style/index.css +220 -0
  91. package/es/packages/components/api/log-server.js +54 -0
  92. package/es/packages/components/api/remarkApi.js +15 -0
  93. package/es/packages/components/api/requestRemark.js +47 -0
  94. package/es/packages/components/api/requestTools.js +62 -0
  95. package/es/packages/components/assets/images/errorimg.png.js +4 -0
  96. package/es/packages/components/assets/images/excel.png.js +4 -0
  97. package/es/packages/components/assets/images/file-word.png.js +4 -0
  98. package/es/packages/components/assets/images/pdf.png.js +4 -0
  99. package/es/packages/components/assets/images/ppt.png.js +4 -0
  100. package/es/packages/components/assets/images/vue.svg.js +4 -0
  101. package/es/packages/components/hooks/useClipboard.js +28 -0
  102. package/es/packages/components/hooks/useImg.js +15 -0
  103. package/es/packages/components/hooks/useImgPath.js +14 -0
  104. package/es/packages/components/hooks/useImport.js +31 -0
  105. package/es/packages/components/hooks/useUpload.js +24 -0
  106. package/es/style.css +1090 -0
  107. package/es/styles/custom.css +83 -0
  108. package/es/styles/globals.css +697 -0
  109. package/es/styles/index.css +787 -0
  110. package/es/styles/variables.css +32 -0
  111. package/es/utils/install.js +13 -0
  112. package/es/utils/storage.js +52 -0
  113. package/es/utils/translate.js +38 -0
  114. package/global.d.ts +10 -0
  115. package/lib/_virtual/_commonjsHelpers.js +1 -0
  116. package/lib/_virtual/_plugin-vue_export-helper.js +1 -0
  117. package/lib/_virtual/dayjs.min.js +1 -0
  118. package/lib/_virtual/lodash.js +1 -0
  119. package/lib/annex-upload/annex-upload.vue.js +1 -0
  120. package/lib/annex-upload/annex-upload.vue2.js +1 -0
  121. package/lib/annex-upload/index.js +1 -0
  122. package/lib/annex-upload/mimeType.js +1 -0
  123. package/lib/annex-upload/style/index.css +7 -0
  124. package/lib/comprehensive-search/comprehensive-search.vue.js +1 -0
  125. package/lib/comprehensive-search/comprehensive-search.vue2.js +1 -0
  126. package/lib/comprehensive-search/index.js +1 -0
  127. package/lib/comprehensive-search/style/index.css +24 -0
  128. package/lib/copy/copy.vue.js +1 -0
  129. package/lib/copy/copy.vue2.js +1 -0
  130. package/lib/copy/index.js +1 -0
  131. package/lib/copy/style/index.css +10 -0
  132. package/lib/image-upload/image-upload.vue.js +1 -0
  133. package/lib/image-upload/image-upload.vue2.js +1 -0
  134. package/lib/image-upload/index.js +1 -0
  135. package/lib/image-upload/style/index.css +33 -0
  136. package/lib/index.js +1 -0
  137. package/lib/input/index.js +1 -0
  138. package/lib/input/input.vue.js +1 -0
  139. package/lib/input/input.vue2.js +1 -0
  140. package/lib/input/style/index.css +3 -0
  141. package/lib/installs.js +1 -0
  142. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/adapters.js +3 -0
  143. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/fetch.js +1 -0
  144. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/xhr.js +1 -0
  145. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/axios.js +1 -0
  146. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/CancelToken.js +1 -0
  147. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/CanceledError.js +1 -0
  148. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/isCancel.js +1 -0
  149. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/Axios.js +2 -0
  150. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/AxiosError.js +1 -0
  151. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/AxiosHeaders.js +2 -0
  152. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/InterceptorManager.js +1 -0
  153. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/buildFullPath.js +1 -0
  154. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/dispatchRequest.js +1 -0
  155. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/mergeConfig.js +1 -0
  156. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/settle.js +1 -0
  157. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/transformData.js +1 -0
  158. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/defaults/index.js +1 -0
  159. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/defaults/transitional.js +1 -0
  160. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/env/data.js +1 -0
  161. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +1 -0
  162. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/HttpStatusCode.js +1 -0
  163. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/bind.js +1 -0
  164. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/buildURL.js +1 -0
  165. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/combineURLs.js +1 -0
  166. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/composeSignals.js +1 -0
  167. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/cookies.js +1 -0
  168. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/formDataToJSON.js +1 -0
  169. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isAbsoluteURL.js +1 -0
  170. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isAxiosError.js +1 -0
  171. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isURLSameOrigin.js +1 -0
  172. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/null.js +1 -0
  173. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/parseHeaders.js +2 -0
  174. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/parseProtocol.js +1 -0
  175. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/progressEventReducer.js +1 -0
  176. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/resolveConfig.js +1 -0
  177. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/speedometer.js +1 -0
  178. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/spread.js +1 -0
  179. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/throttle.js +1 -0
  180. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/toFormData.js +1 -0
  181. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/toURLEncodedForm.js +1 -0
  182. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/trackStream.js +1 -0
  183. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/validator.js +1 -0
  184. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/Blob.js +1 -0
  185. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/FormData.js +1 -0
  186. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +1 -0
  187. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/index.js +1 -0
  188. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/common/utils.js +1 -0
  189. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/index.js +1 -0
  190. package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/utils.js +1 -0
  191. package/lib/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js +1 -0
  192. package/lib/node_modules/.pnpm/element-plus@2.8.3_vue@3.5.4_typescript@5.6.2_/node_modules/element-plus/es/locale/lang/zh-cn.js +1 -0
  193. package/lib/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js +27 -0
  194. package/lib/node_modules/.pnpm/v3-infinite-loading@1.3.2/node_modules/v3-infinite-loading/lib/v3-infinite-loading.es.js +1 -0
  195. package/lib/operation-log/index.js +1 -0
  196. package/lib/operation-log/operation-log-content.vue.js +1 -0
  197. package/lib/operation-log/operation-log-content.vue2.js +1 -0
  198. package/lib/operation-log/operation-log-dialog.vue.js +1 -0
  199. package/lib/operation-log/operation-log-dialog.vue2.js +1 -0
  200. package/lib/operation-log/operation-log-form.vue.js +1 -0
  201. package/lib/operation-log/operation-log-form.vue2.js +1 -0
  202. package/lib/operation-log/operation-log.vue.js +1 -0
  203. package/lib/operation-log/operation-log.vue2.js +1 -0
  204. package/lib/operation-log/style/index.css +220 -0
  205. package/lib/packages/components/api/log-server.js +1 -0
  206. package/lib/packages/components/api/remarkApi.js +1 -0
  207. package/lib/packages/components/api/requestRemark.js +1 -0
  208. package/lib/packages/components/api/requestTools.js +1 -0
  209. package/lib/packages/components/assets/images/errorimg.png.js +1 -0
  210. package/lib/packages/components/assets/images/excel.png.js +1 -0
  211. package/lib/packages/components/assets/images/file-word.png.js +1 -0
  212. package/lib/packages/components/assets/images/pdf.png.js +1 -0
  213. package/lib/packages/components/assets/images/ppt.png.js +1 -0
  214. package/lib/packages/components/assets/images/vue.svg.js +1 -0
  215. package/lib/packages/components/hooks/useClipboard.js +1 -0
  216. package/lib/packages/components/hooks/useImg.js +1 -0
  217. package/lib/packages/components/hooks/useImgPath.js +1 -0
  218. package/lib/packages/components/hooks/useImport.js +1 -0
  219. package/lib/packages/components/hooks/useUpload.js +1 -0
  220. package/lib/style.css +1090 -0
  221. package/lib/styles/custom.css +83 -0
  222. package/lib/styles/globals.css +697 -0
  223. package/lib/styles/index.css +787 -0
  224. package/lib/styles/variables.css +32 -0
  225. package/lib/utils/install.js +1 -0
  226. package/lib/utils/storage.js +1 -0
  227. package/lib/utils/translate.js +1 -0
  228. package/package.json +44 -0
  229. package/types/index.d.ts +1204 -0
@@ -0,0 +1,7 @@
1
+ .yahee-annex-upload .el-upload .el-button {
2
+ --el-button-size: 24px;
3
+ border-radius: calc(var(--el-border-radius-base) - 1px);
4
+ font-size: 12px;
5
+ height: var(--el-button-size);
6
+ padding: 5px 11px;
7
+ }
@@ -0,0 +1,234 @@
1
+ import { defineComponent as M, toRefs as Q, ref as n, openBlock as r, createBlock as c, unref as e, withCtx as o, createElementVNode as V, createVNode as t, withKeys as W, createElementBlock as v, Fragment as b, renderList as E, createTextVNode as p, toDisplayString as i, createCommentVNode as k } from "vue";
2
+ import m from "../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js";
3
+ import { ElConfigProvider as X, ElInput as w, ElSelect as x, ElOption as F, ElIcon as Y, ElCheckbox as j, ElLink as G, ElDialog as J, ElButton as B, ElForm as Z, ElRow as P, ElFormItem as T, ElMessage as $ } from "element-plus";
4
+ import "element-plus/theme-chalk/src/base.scss";
5
+ import "element-plus/theme-chalk/src/input.scss";
6
+ import "element-plus/theme-chalk/src/checkbox.scss";
7
+ import "element-plus/theme-chalk/src/tag.scss";
8
+ import "element-plus/theme-chalk/src/option.scss";
9
+ import "element-plus/theme-chalk/src/option-group.scss";
10
+ import "element-plus/theme-chalk/src/scrollbar.scss";
11
+ import "element-plus/theme-chalk/src/popper.scss";
12
+ import "element-plus/theme-chalk/src/select.scss";
13
+ import "element-plus/theme-chalk/src/dialog.scss";
14
+ import "element-plus/theme-chalk/src/overlay.scss";
15
+ import "element-plus/theme-chalk/src/form.scss";
16
+ import "element-plus/theme-chalk/src/form-item.scss";
17
+ import "element-plus/theme-chalk/src/row.scss";
18
+ import "element-plus/theme-chalk/src/button.scss";
19
+ import "element-plus/theme-chalk/src/link.scss";
20
+ import "element-plus/theme-chalk/src/config-provider.scss";
21
+ import "element-plus/theme-chalk/src/badge.scss";
22
+ import "element-plus/theme-chalk/src/message.scss";
23
+ import { Search as ee } from "@element-plus/icons-vue";
24
+ import le from "../node_modules/.pnpm/element-plus@2.8.3_vue@3.5.4_typescript@5.6.2_/node_modules/element-plus/es/locale/lang/zh-cn.js";
25
+ const ae = { class: "yahee-comporehensive-search" }, oe = {
26
+ key: 0,
27
+ class: "search-type-checkbox"
28
+ }, te = { class: "dialog-footer" }, Pe = /* @__PURE__ */ M({
29
+ name: "YaheeComprehensiveSearch",
30
+ __name: "comprehensive-search",
31
+ props: {
32
+ dealSearch: { type: Function, default: m.noop },
33
+ confirmSearch: { type: Function, default: m.noop },
34
+ pasteFormat: { type: Function, default: m.noop },
35
+ isInSearchChange: { type: Function, default: m.noop },
36
+ defaultSearch: { default: "" },
37
+ options: { default: () => [] },
38
+ placeholderText: { default: "" },
39
+ showPatchSearch: { type: Boolean, default: !1 },
40
+ showPatchCheckbox: { type: Boolean }
41
+ },
42
+ setup(_) {
43
+ const I = le, U = _, {
44
+ dealSearch: L,
45
+ defaultSearch: z,
46
+ pasteFormat: y,
47
+ confirmSearch: N,
48
+ isInSearchChange: R,
49
+ options: C,
50
+ showPatchSearch: D,
51
+ showPatchCheckbox: q
52
+ } = Q(U), h = n(z.value), u = n(""), g = n(!1), H = n(!1), d = n(!1), s = n({ searchType: "WHOLE_SEARCH", searchContent: "" }), K = {
53
+ selectedSearchType: [{ required: !0, message: "请输入查询类型", trigger: "blur" }],
54
+ searchContent: [{ required: !0, message: "请输入查询内容", trigger: "blur" }]
55
+ };
56
+ function O() {
57
+ d.value = !0;
58
+ }
59
+ function S() {
60
+ d.value = !1;
61
+ }
62
+ const f = () => {
63
+ if (!u.value) {
64
+ $.warning("请输入搜索关键字");
65
+ return;
66
+ }
67
+ L.value(h.value, u.value);
68
+ };
69
+ return (A, l) => (r(), c(e(X), { locale: e(I) }, {
70
+ default: o(() => [
71
+ V("div", ae, [
72
+ t(e(w), {
73
+ modelValue: u.value,
74
+ "onUpdate:modelValue": l[1] || (l[1] = (a) => u.value = a),
75
+ placeholder: A.placeholderText,
76
+ class: "input-with-select",
77
+ clearable: "",
78
+ maxlength: "30",
79
+ onChange: f,
80
+ onKeyup: W(f, ["enter"]),
81
+ onPaste: e(y)
82
+ }, {
83
+ prepend: o(() => [
84
+ t(e(x), {
85
+ modelValue: h.value,
86
+ "onUpdate:modelValue": l[0] || (l[0] = (a) => h.value = a),
87
+ size: "small",
88
+ class: "custom-select"
89
+ }, {
90
+ default: o(() => [
91
+ (r(!0), v(b, null, E(e(C), (a) => (r(), c(e(F), {
92
+ key: a.label,
93
+ label: a.label,
94
+ value: a.value
95
+ }, null, 8, ["label", "value"]))), 128))
96
+ ]),
97
+ _: 1
98
+ }, 8, ["modelValue"])
99
+ ]),
100
+ append: o(() => [
101
+ t(e(Y), {
102
+ size: "12",
103
+ color: "#3366cc",
104
+ style: { cursor: "pointer" },
105
+ class: "icon-cusor",
106
+ onClick: f
107
+ }, {
108
+ default: o(() => [
109
+ t(e(ee))
110
+ ]),
111
+ _: 1
112
+ })
113
+ ]),
114
+ _: 1
115
+ }, 8, ["modelValue", "placeholder", "onPaste"]),
116
+ e(q) ? (r(), v("div", oe, [
117
+ t(e(j), {
118
+ modelValue: g.value,
119
+ "onUpdate:modelValue": l[2] || (l[2] = (a) => g.value = a),
120
+ onChange: e(R)
121
+ }, {
122
+ default: o(() => l[6] || (l[6] = [
123
+ p(i("在筛选条件内查询"))
124
+ ])),
125
+ _: 1
126
+ }, 8, ["modelValue", "onChange"]),
127
+ e(D) ? (r(), c(e(G), {
128
+ key: 0,
129
+ type: "primary",
130
+ onClick: O
131
+ }, {
132
+ default: o(() => l[7] || (l[7] = [
133
+ p(i("批量查询"))
134
+ ])),
135
+ _: 1
136
+ })) : k("", !0)
137
+ ])) : k("", !0)
138
+ ]),
139
+ t(e(J), {
140
+ modelValue: d.value,
141
+ "onUpdate:modelValue": l[5] || (l[5] = (a) => d.value = a),
142
+ title: "批量查询",
143
+ width: "30%",
144
+ "before-close": S,
145
+ "append-to-body": !0,
146
+ draggable: ""
147
+ }, {
148
+ footer: o(() => [
149
+ V("div", te, [
150
+ t(e(B), {
151
+ type: "primary",
152
+ loading: H.value,
153
+ onClick: e(N)
154
+ }, {
155
+ default: o(() => l[8] || (l[8] = [
156
+ p(i("确认"))
157
+ ])),
158
+ _: 1
159
+ }, 8, ["loading", "onClick"]),
160
+ t(e(B), { onClick: S }, {
161
+ default: o(() => l[9] || (l[9] = [
162
+ p(i("关闭"))
163
+ ])),
164
+ _: 1
165
+ })
166
+ ])
167
+ ]),
168
+ default: o(() => [
169
+ t(e(Z), {
170
+ ref: "batchSearchFormRef",
171
+ model: s.value,
172
+ rules: K
173
+ }, {
174
+ default: o(() => [
175
+ t(e(P), { class: "row-class" }, {
176
+ default: o(() => [
177
+ t(e(T), { prop: "searchType" }, {
178
+ default: o(() => [
179
+ t(e(x), {
180
+ modelValue: s.value.searchType,
181
+ "onUpdate:modelValue": l[3] || (l[3] = (a) => s.value.searchType = a),
182
+ size: "small",
183
+ class: "custom-select"
184
+ }, {
185
+ default: o(() => [
186
+ (r(!0), v(b, null, E(e(C), (a) => (r(), c(e(F), {
187
+ key: a.label,
188
+ label: a.label,
189
+ value: a.value
190
+ }, null, 8, ["label", "value"]))), 128))
191
+ ]),
192
+ _: 1
193
+ }, 8, ["modelValue"])
194
+ ]),
195
+ _: 1
196
+ })
197
+ ]),
198
+ _: 1
199
+ }),
200
+ t(e(P), { class: "row-class" }, {
201
+ default: o(() => [
202
+ t(e(T), {
203
+ prop: "searchContent",
204
+ style: { width: "100%" }
205
+ }, {
206
+ default: o(() => [
207
+ t(e(w), {
208
+ modelValue: s.value.searchContent,
209
+ "onUpdate:modelValue": l[4] || (l[4] = (a) => s.value.searchContent = a),
210
+ placeholder: "请输入批量查询内容,从EXCEL复制可自动替换为`,`",
211
+ type: "textarea",
212
+ rows: 5,
213
+ onPaste: e(y)
214
+ }, null, 8, ["modelValue", "onPaste"])
215
+ ]),
216
+ _: 1
217
+ })
218
+ ]),
219
+ _: 1
220
+ })
221
+ ]),
222
+ _: 1
223
+ }, 8, ["model"])
224
+ ]),
225
+ _: 1
226
+ }, 8, ["modelValue"])
227
+ ]),
228
+ _: 1
229
+ }, 8, ["locale"]));
230
+ }
231
+ });
232
+ export {
233
+ Pe as default
234
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./comprehensive-search.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,7 @@
1
+ import { withInstall as e } from "../utils/install.js";
2
+ import o from "./comprehensive-search.vue.js";
3
+ const a = e(o);
4
+ export {
5
+ a as YaheeComprehensiveSearch,
6
+ a as default
7
+ };
@@ -0,0 +1,24 @@
1
+ .yahee-comporehensive-search .input-with-select {
2
+ width: 83%;
3
+ border-radius: 0;
4
+ height: 24px;
5
+ }
6
+ .yahee-comporehensive-search .custom-select {
7
+ width: 95px;
8
+ background-color: white;
9
+ }
10
+ .yahee-comporehensive-search :deep(.custom-button + .custom-button) {
11
+ margin-left: 5px;
12
+ }
13
+ .yahee-comporehensive-search :deep(.custom-button) {
14
+ padding: 1px 4px;
15
+ height: 22px;
16
+ }
17
+ .yahee-comporehensive-search .icon-cursor {
18
+ cursor: pointer;
19
+ }
20
+ .yahee-comporehensive-search .search-type-checkbox {
21
+ display: flex;
22
+ justify-content: space-between;
23
+ width: 83%;
24
+ }
@@ -0,0 +1,57 @@
1
+ import { defineComponent as l, openBlock as a, createElementBlock as m, createVNode as e, unref as o, withCtx as t, createElementVNode as i, renderSlot as f } from "vue";
2
+ import { ElTooltip as u, ElIcon as d, ElMessage as _ } from "element-plus";
3
+ import "element-plus/theme-chalk/src/base.scss";
4
+ import "element-plus/theme-chalk/src/tooltip.scss";
5
+ import "element-plus/theme-chalk/src/popper.scss";
6
+ import "element-plus/theme-chalk/src/badge.scss";
7
+ import "element-plus/theme-chalk/src/message.scss";
8
+ import { DocumentCopy as h } from "@element-plus/icons-vue";
9
+ import { useClipboard as y } from "../packages/components/hooks/useClipboard.js";
10
+ const C = { class: "yahee-copy" }, z = /* @__PURE__ */ l({
11
+ name: "YaheeCopy",
12
+ __name: "copy",
13
+ props: {
14
+ content: { default: "" },
15
+ message: { default: "复制成功" }
16
+ },
17
+ setup(c) {
18
+ const s = c, { copyUrl: r } = y(), p = () => {
19
+ r(s.content), _({
20
+ message: s.message,
21
+ type: "success"
22
+ });
23
+ };
24
+ return (n, g) => (a(), m("div", C, [
25
+ e(o(u), {
26
+ placement: "right",
27
+ effect: "light",
28
+ offset: -5,
29
+ "show-arrow": !1,
30
+ "popper-class": "custom-popper-class"
31
+ }, {
32
+ content: t(() => [
33
+ e(o(d), {
34
+ color: "#3366cc",
35
+ size: "18",
36
+ class: "icon",
37
+ onClick: p
38
+ }, {
39
+ default: t(() => [
40
+ e(o(h))
41
+ ]),
42
+ _: 1
43
+ })
44
+ ]),
45
+ default: t(() => [
46
+ i("div", null, [
47
+ f(n.$slots, "default")
48
+ ])
49
+ ]),
50
+ _: 3
51
+ })
52
+ ]));
53
+ }
54
+ });
55
+ export {
56
+ z as default
57
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./copy.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,7 @@
1
+ import { withInstall as o } from "../utils/install.js";
2
+ import t from "./copy.vue.js";
3
+ const r = o(t);
4
+ export {
5
+ r as YaheeCopy,
6
+ r as default
7
+ };
@@ -0,0 +1,10 @@
1
+ .yahee-copy {
2
+ width: 110px;
3
+ }
4
+ .yahee-copy .custom-popper-class {
5
+ background: transparent !important;
6
+ border: none !important;
7
+ }
8
+ .yahee-copy .custom-popper-class .icon {
9
+ cursor: pointer;
10
+ }
@@ -0,0 +1,176 @@
1
+ import { defineComponent as U, ref as c, resolveDirective as B, openBlock as d, createElementBlock as p, Fragment as N, withDirectives as D, createVNode as t, unref as i, normalizeStyle as F, withCtx as s, renderSlot as L, createElementVNode as n, createTextVNode as M, withModifiers as w, createCommentVNode as $, createBlock as b } from "vue";
2
+ import S from "../packages/components/hooks/useImg.js";
3
+ import { useIsImg as P, useUpload as T } from "../packages/components/hooks/useUpload.js";
4
+ import { ElUpload as _, ElImage as j, ElIcon as g, ElDialog as A, 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 G, Plus as R, CircleCloseFilled as Y } from "@element-plus/icons-vue";
15
+ const q = { class: "yahee-image-upload" }, x = {
16
+ key: 0,
17
+ style: { width: "100%", height: "100%" }
18
+ }, H = ["src"], re = /* @__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 r = y, f = V, m = c(!1), k = (e) => {
35
+ if (!P(e.raw)) {
36
+ h.error("只能选择图片格式文件!");
37
+ return;
38
+ }
39
+ if (r.limitFileSize) {
40
+ let l = e.size;
41
+ if (r.fileSizeUnit.toLowerCase() == "kb" ? l = e.size / 1024 : l = e.size / 1024 / 1024, !(l < r.fileSize)) {
42
+ h.error(`图片大小不能超过 ${r.fileSize}${r.fileSizeUnit}!`);
43
+ return;
44
+ }
45
+ }
46
+ m.value = !0, T(r.fileType, e.raw).then((l) => {
47
+ const o = {
48
+ fileName: e.name,
49
+ fileId: l[0],
50
+ index: 0
51
+ };
52
+ f("update:modelValue", o), f("change", {
53
+ fileName: e.name,
54
+ fileId: l[0],
55
+ index: 0
56
+ }), m.value = !1;
57
+ }).catch((l) => {
58
+ h.error("update image error", l), m.value = !1;
59
+ });
60
+ }, C = () => {
61
+ f("update:modelValue", "");
62
+ }, z = c(""), u = c(!1), E = () => {
63
+ var e;
64
+ z.value = S((e = r.modelValue) == null ? void 0 : e.fileId, !0), u.value = !0;
65
+ };
66
+ return (e, a) => {
67
+ const l = B("loading");
68
+ return d(), p(N, null, [
69
+ D((d(), p("div", q, [
70
+ t(i(_), {
71
+ class: "picture-uploader",
72
+ action: "#",
73
+ style: F({ width: e.imgSize.width * e.zoom + "px", height: e.imgSize.height * e.zoom + "px" }),
74
+ "show-file-list": !1,
75
+ multiple: !1,
76
+ "auto-upload": !1,
77
+ accept: "image/jpeg,image/jpg,image/gif,image/png",
78
+ "on-change": k
79
+ }, {
80
+ default: s(() => {
81
+ var o;
82
+ return [
83
+ L(e.$slots, "default", {
84
+ value: (o = e.modelValue) == null ? void 0 : o.fileId
85
+ }, () => {
86
+ var v, I;
87
+ return [
88
+ (v = e.modelValue) != null && v.fileId ? (d(), p("div", x, [
89
+ t(i(j), {
90
+ class: "picture",
91
+ src: i(S)((I = e.modelValue) == null ? void 0 : I.fileId)
92
+ }, {
93
+ error: s(() => a[2] || (a[2] = [
94
+ n("div", { style: { display: "none" } }, null, -1)
95
+ ])),
96
+ placeholder: s(() => a[3] || (a[3] = [
97
+ n("div", { class: "image-slot" }, [
98
+ M("Loading"),
99
+ n("span", { class: "dot" }, "...")
100
+ ], -1)
101
+ ])),
102
+ _: 1
103
+ }, 8, ["src"]),
104
+ n("span", {
105
+ class: "upload-actions",
106
+ onClick: w(E, ["stop"])
107
+ }, [
108
+ e.showDelete ? (d(), p("span", {
109
+ key: 0,
110
+ class: "upload-delete",
111
+ onClick: w(C, ["stop"])
112
+ }, [
113
+ t(i(g), {
114
+ size: 20,
115
+ color: "#ff1e1e"
116
+ }, {
117
+ default: s(() => [
118
+ t(i(G))
119
+ ]),
120
+ _: 1
121
+ })
122
+ ])) : $("", !0)
123
+ ])
124
+ ])) : (d(), b(i(g), {
125
+ key: 1,
126
+ class: "picture-uploader-icon",
127
+ size: 20
128
+ }, {
129
+ default: s(() => [
130
+ t(i(R))
131
+ ]),
132
+ _: 1
133
+ }))
134
+ ];
135
+ })
136
+ ];
137
+ }),
138
+ _: 3
139
+ }, 8, ["style"])
140
+ ])), [
141
+ [l, m.value]
142
+ ]),
143
+ t(i(A), {
144
+ modelValue: u.value,
145
+ "onUpdate:modelValue": a[1] || (a[1] = (o) => u.value = o),
146
+ "show-close": !1
147
+ }, {
148
+ header: s(() => [
149
+ t(i(g), {
150
+ size: 40,
151
+ color: "#a4a4a4",
152
+ class: "pull-right marginB6",
153
+ onClick: a[0] || (a[0] = (o) => u.value = !1)
154
+ }, {
155
+ default: s(() => [
156
+ t(i(Y))
157
+ ]),
158
+ _: 1
159
+ })
160
+ ]),
161
+ default: s(() => [
162
+ n("img", {
163
+ style: { width: "100%" },
164
+ src: z.value,
165
+ alt: "Preview Image"
166
+ }, null, 8, H)
167
+ ]),
168
+ _: 1
169
+ }, 8, ["modelValue"])
170
+ ], 64);
171
+ };
172
+ }
173
+ });
174
+ export {
175
+ re as default
176
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./image-upload.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,7 @@
1
+ import { withInstall as a } from "../utils/install.js";
2
+ import o from "./image-upload.vue.js";
3
+ const e = a(o);
4
+ export {
5
+ e as YaheeImageUpload,
6
+ e as default
7
+ };
@@ -0,0 +1,33 @@
1
+ .yahee-image-upload .el-upload {
2
+ height: 100%;
3
+ width: 100%;
4
+ border: 1px dashed #d9d9d9;
5
+ border-radius: 6px;
6
+ cursor: pointer;
7
+ position: relative;
8
+ overflow: hidden;
9
+ }
10
+ .yahee-image-upload .el-upload:hover {
11
+ border: 1px dashed blue;
12
+ }
13
+ .yahee-image-upload .picture {
14
+ width: 100%;
15
+ }
16
+ .yahee-image-upload .picture-uploader {
17
+ position: relative;
18
+ }
19
+ .yahee-image-upload .upload-actions {
20
+ position: absolute;
21
+ width: 100%;
22
+ height: 100%;
23
+ left: 0;
24
+ top: 0;
25
+ padding: 2px;
26
+ }
27
+ .yahee-image-upload .picture-uploader-icon {
28
+ height: 100%;
29
+ width: 100%;
30
+ font-size: 28px;
31
+ color: #8c939d;
32
+ text-align: center;
33
+ }
package/es/index.js ADDED
@@ -0,0 +1,18 @@
1
+ import { makeInstaller as e } from "./utils/install.js";
2
+ import o from "./installs.js";
3
+ import { YaheeInput as f } from "./input/index.js";
4
+ import { YaheeComprehensiveSearch as x } from "./comprehensive-search/index.js";
5
+ import { YaheeCopy as l } from "./copy/index.js";
6
+ import { YaheeImageUpload as s } from "./image-upload/index.js";
7
+ import { YaheeAnnexUpload as d } from "./annex-upload/index.js";
8
+ import { YaheeOperationLog as c } from "./operation-log/index.js";
9
+ const p = e([...o]);
10
+ export {
11
+ d as YaheeAnnexUpload,
12
+ x as YaheeComprehensiveSearch,
13
+ l as YaheeCopy,
14
+ s as YaheeImageUpload,
15
+ f as YaheeInput,
16
+ c as YaheeOperationLog,
17
+ p as default
18
+ };
@@ -0,0 +1,7 @@
1
+ import { withInstall as t } from "../utils/install.js";
2
+ import o from "./input.vue.js";
3
+ const r = t(o);
4
+ export {
5
+ r as YaheeInput,
6
+ r as default
7
+ };
@@ -0,0 +1,40 @@
1
+ import { defineComponent as i, computed as r, ref as f, openBlock as c, createElementBlock as V, createVNode as _, unref as b } from "vue";
2
+ import { ElInput as v } from "element-plus";
3
+ import "element-plus/theme-chalk/src/base.scss";
4
+ import "element-plus/theme-chalk/src/input.scss";
5
+ const x = { class: "yahee-input" }, E = /* @__PURE__ */ i({
6
+ name: "YaheeInput",
7
+ __name: "input",
8
+ props: {
9
+ modelValue: { default: "" },
10
+ disabled: { type: Boolean, default: !1 }
11
+ },
12
+ emits: ["update:modelValue"],
13
+ setup(u, { expose: n, emit: d }) {
14
+ const p = d, t = u, o = r({
15
+ get: () => t.modelValue,
16
+ set: (e) => {
17
+ p("update:modelValue", e);
18
+ }
19
+ }), l = f();
20
+ function s() {
21
+ var e;
22
+ (e = l.value) == null || e.focus();
23
+ }
24
+ return n({
25
+ focus: s
26
+ }), (e, a) => (c(), V("div", x, [
27
+ _(b(v), {
28
+ ref_key: "inputRef",
29
+ ref: l,
30
+ modelValue: o.value,
31
+ "onUpdate:modelValue": a[0] || (a[0] = (m) => o.value = m),
32
+ type: "text",
33
+ disabled: t.disabled
34
+ }, null, 8, ["modelValue", "disabled"])
35
+ ]));
36
+ }
37
+ });
38
+ export {
39
+ E as default
40
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./input.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,3 @@
1
+ .yahee-input .el-input {
2
+ border: 1px solid red;
3
+ }