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.
- package/es/_virtual/_plugin-vue_export-helper.js +9 -0
- package/es/_virtual/dayjs.min.js +1 -1
- package/es/_virtual/lodash.js +1 -1
- package/es/annex-upload/annex-upload.vue.js +69 -154
- package/es/annex-upload/annex-upload.vue2.js +119 -2
- package/es/annex-upload/index.js +3 -3
- package/es/api/server.js +1 -1
- package/es/api/tool.js +2 -2
- package/es/complex-search/complex-search.vue.js +228 -256
- package/es/complex-search/complex-search.vue2.js +130 -2
- package/es/complex-search/index.js +5 -5
- package/es/complex-search/props.js +18 -0
- package/es/copy/copy.vue.js +39 -55
- package/es/copy/copy.vue2.js +34 -2
- package/es/copy/index.js +3 -3
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +158 -204
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +125 -2
- package/es/country-platform-shop-condition/style/index.css +3 -4
- package/es/drop-down-condition/drop-down-condition.vue.js +193 -211
- package/es/drop-down-condition/drop-down-condition.vue2.js +127 -2
- package/es/drop-down-condition/style/index.css +21 -12
- package/es/image-upload/image-upload.vue.js +76 -113
- package/es/image-upload/image-upload.vue2.js +91 -2
- package/es/image-upload/index.js +3 -3
- package/es/index.js +14 -12
- package/es/input/index.js +3 -3
- package/es/input/input.vue.js +17 -38
- package/es/input/input.vue2.js +33 -2
- package/es/left-condition/index.js +5 -5
- package/es/left-condition/left-condition-sub.vue.js +55 -86
- package/es/left-condition/left-condition-sub.vue2.js +76 -2
- package/es/left-condition/left-condition.vue.js +91 -209
- package/es/left-condition/left-condition.vue2.js +152 -2
- package/es/left-condition-enum/index.js +3 -3
- package/es/left-condition-enum/left-condition-enum.vue.js +19 -77
- package/es/left-condition-enum/left-condition-enum.vue2.js +69 -2
- package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/core/Axios.js +51 -48
- package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/core/mergeConfig.js +20 -20
- package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/env/data.js +1 -1
- package/es/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/buildURL.js +23 -0
- package/es/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/isURLSameOrigin.js +8 -0
- package/es/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/validator.js +54 -0
- package/es/{packages/components → node_modules/.pnpm/dayjs@1.11.13}/node_modules/dayjs/dayjs.min.js +1 -1
- package/es/{packages/components → node_modules/.pnpm/lodash@4.17.21}/node_modules/lodash/lodash.js +2 -2
- 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
- package/es/operation-log/operation-log-content.vue.js +78 -88
- package/es/operation-log/operation-log-content.vue2.js +35 -2
- package/es/operation-log/operation-log-dialog.vue.js +57 -68
- package/es/operation-log/operation-log-dialog.vue2.js +38 -2
- package/es/operation-log/operation-log-form.vue.js +132 -179
- package/es/operation-log/operation-log-form.vue2.js +100 -2
- package/es/operation-log/operation-log.vue.js +183 -221
- package/es/operation-log/operation-log.vue2.js +133 -2
- package/es/packages/components/api/log-server.js +5 -5
- package/es/packages/components/api/server.js +1 -1
- package/es/packages/components/api/tool.js +1 -1
- package/es/packages/components/api/upload-server.js +6 -6
- package/es/packages/components/hooks/useImg.js +8 -8
- package/es/style.css +24 -16
- package/es/utils/translate.js +14 -14
- package/lib/country-platform-shop-condition/style/index.css +3 -4
- package/lib/drop-down-condition/style/index.css +21 -12
- package/lib/style.css +24 -16
- package/package.json +1 -1
- package/readme.md +249 -0
- package/types/hooks/useClipboard.d.ts +7 -0
- package/types/hooks/useImg.d.ts +10 -0
- package/types/hooks/useImgPath.d.ts +5 -0
- package/types/hooks/useImport.d.ts +11 -0
- package/types/hooks/useUpload.d.ts +12 -0
- package/types/index.d.ts +6 -1341
- package/types/src/annex-upload/annex-upload.d.ts +30 -0
- package/types/src/annex-upload/annex-upload.vue.d.ts +451 -0
- package/types/src/annex-upload/index.d.ts +118 -0
- package/types/src/annex-upload/mimeType.d.ts +2 -0
- package/types/src/api/server.d.ts +6 -0
- package/types/src/api/tool.d.ts +6 -0
- package/types/src/api/types.d.ts +17 -0
- package/types/src/complex-search/complex-search.d.ts +24 -0
- package/types/src/complex-search/complex-search.vue.d.ts +20 -0
- package/types/src/complex-search/index.d.ts +24 -0
- package/types/src/complex-search/props.d.ts +65 -0
- package/types/src/components.d.ts +10 -0
- package/types/src/copy/copy.d.ts +12 -0
- package/types/src/copy/copy.vue.d.ts +22 -0
- package/types/src/copy/index.d.ts +32 -0
- package/types/src/country-platform-shop-condition/country-platform-shop-condition.d.ts +17 -0
- package/types/src/country-platform-shop-condition/country-platform-shop-condition.vue.d.ts +12 -0
- package/types/src/country-platform-shop-condition/index.d.ts +16 -0
- package/types/src/drop-down-condition/drop-down-condition.d.ts +6 -0
- package/types/src/drop-down-condition/drop-down-condition.vue.d.ts +26 -0
- package/types/src/drop-down-condition/index.d.ts +42 -0
- package/types/src/image-upload/image-upload.d.ts +26 -0
- package/types/src/image-upload/image-upload.vue.d.ts +44 -0
- package/types/src/image-upload/index.d.ts +91 -0
- package/types/src/index.d.ts +7 -0
- package/types/src/input/index.d.ts +16 -0
- package/types/src/input/input.d.ts +18 -0
- package/types/src/input/input.vue.d.ts +14 -0
- package/types/src/installs.d.ts +524 -0
- package/types/src/left-condition/index.d.ts +69 -0
- package/types/src/left-condition/left-condition-sub.vue.d.ts +41 -0
- package/types/src/left-condition/left-condition.d.ts +5 -0
- package/types/src/left-condition/left-condition.vue.d.ts +50 -0
- package/types/src/left-condition-enum/index.d.ts +161 -0
- package/types/src/left-condition-enum/left-condition-enum.d.ts +5 -0
- package/types/src/left-condition-enum/left-condition-enum.vue.d.ts +159 -0
- package/types/src/operation-log/index.d.ts +10 -0
- package/types/src/operation-log/operation-log-content.vue.d.ts +24 -0
- package/types/src/operation-log/operation-log-dialog.vue.d.ts +39 -0
- package/types/src/operation-log/operation-log-form.vue.d.ts +19 -0
- package/types/src/operation-log/operation-log.d.ts +12 -0
- package/types/src/operation-log/operation-log.vue.d.ts +7 -0
- package/types/src/shared/hello.d.ts +1 -0
- package/types/src/shared/index.d.ts +2 -0
- package/types/src/shared/typeCheck.d.ts +2 -0
- package/types/src/shared/types/InferVueDefaults.d.ts +7 -0
- package/types/src/shared/types/index.d.ts +1 -0
- package/types/src/static/CommonObject.d.ts +18 -0
- package/types/src/static/CommonVariables.d.ts +4 -0
- package/types/src/utils/config.d.ts +8 -0
- package/types/src/utils/const.d.ts +19 -0
- package/types/src/utils/functions.d.ts +1 -0
- package/types/src/utils/infer-vue-defaults.d.ts +7 -0
- package/types/src/utils/install.d.ts +8 -0
- package/types/src/utils/storage.d.ts +18 -0
- package/types/src/utils/style.d.ts +19 -0
- package/types/src/utils/to-kebab-case.d.ts +1 -0
- package/types/src/utils/translate.d.ts +5 -0
- package/types/src/utils/typescript.d.ts +5 -0
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/buildURL.js +0 -19
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -37
- package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/validator.js +0 -51
- package/lib/_virtual/_commonjsHelpers.js +0 -1
- package/lib/_virtual/dayjs.min.js +0 -1
- package/lib/_virtual/dayjs.min2.js +0 -1
- package/lib/_virtual/lodash.js +0 -1
- package/lib/_virtual/lodash2.js +0 -1
- package/lib/annex-upload/annex-upload.vue.js +0 -1
- package/lib/annex-upload/annex-upload.vue2.js +0 -1
- package/lib/annex-upload/index.js +0 -1
- package/lib/annex-upload/mimeType.js +0 -1
- package/lib/api/server.js +0 -1
- package/lib/api/tool.js +0 -1
- package/lib/complex-search/complex-search.vue.js +0 -1
- package/lib/complex-search/complex-search.vue2.js +0 -1
- package/lib/complex-search/index.js +0 -1
- package/lib/copy/copy.vue.js +0 -1
- package/lib/copy/copy.vue2.js +0 -1
- package/lib/copy/index.js +0 -1
- package/lib/country-platform-shop-condition/country-platform-shop-condition.vue.js +0 -1
- package/lib/country-platform-shop-condition/country-platform-shop-condition.vue2.js +0 -1
- package/lib/country-platform-shop-condition/index.js +0 -1
- package/lib/drop-down-condition/drop-down-condition.vue.js +0 -1
- package/lib/drop-down-condition/drop-down-condition.vue2.js +0 -1
- package/lib/drop-down-condition/index.js +0 -1
- package/lib/image-upload/image-upload.vue.js +0 -1
- package/lib/image-upload/image-upload.vue2.js +0 -1
- package/lib/image-upload/index.js +0 -1
- package/lib/index.js +0 -1
- package/lib/input/index.js +0 -1
- package/lib/input/input.vue.js +0 -1
- package/lib/input/input.vue2.js +0 -1
- package/lib/installs.js +0 -1
- package/lib/left-condition/index.js +0 -1
- package/lib/left-condition/left-condition-sub.vue.js +0 -1
- package/lib/left-condition/left-condition-sub.vue2.js +0 -1
- package/lib/left-condition/left-condition.vue.js +0 -1
- package/lib/left-condition/left-condition.vue2.js +0 -1
- package/lib/left-condition-enum/index.js +0 -1
- package/lib/left-condition-enum/left-condition-enum.vue.js +0 -1
- package/lib/left-condition-enum/left-condition-enum.vue2.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/index.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/adapters.js +0 -3
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/fetch.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/xhr.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/axios.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/CancelToken.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/CanceledError.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/isCancel.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/Axios.js +0 -2
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/AxiosError.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/AxiosHeaders.js +0 -2
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/InterceptorManager.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/buildFullPath.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/dispatchRequest.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/mergeConfig.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/settle.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/transformData.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/defaults/index.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/defaults/transitional.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/env/data.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/bind.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/buildURL.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/combineURLs.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/composeSignals.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/cookies.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/formDataToJSON.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isAxiosError.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/null.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/parseHeaders.js +0 -2
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/parseProtocol.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/progressEventReducer.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/resolveConfig.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/speedometer.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/spread.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/throttle.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/toFormData.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/trackStream.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/validator.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/index.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/common/utils.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/index.js +0 -1
- package/lib/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/utils.js +0 -1
- package/lib/operation-log/index.js +0 -1
- package/lib/operation-log/operation-log-content.vue.js +0 -1
- package/lib/operation-log/operation-log-content.vue2.js +0 -1
- package/lib/operation-log/operation-log-dialog.vue.js +0 -1
- package/lib/operation-log/operation-log-dialog.vue2.js +0 -1
- package/lib/operation-log/operation-log-form.vue.js +0 -1
- package/lib/operation-log/operation-log-form.vue2.js +0 -1
- package/lib/operation-log/operation-log.vue.js +0 -1
- package/lib/operation-log/operation-log.vue2.js +0 -1
- package/lib/packages/components/api/log/index.js +0 -1
- package/lib/packages/components/api/log-server.js +0 -1
- package/lib/packages/components/api/server.js +0 -1
- package/lib/packages/components/api/tool.js +0 -1
- package/lib/packages/components/api/upload-server.js +0 -1
- package/lib/packages/components/assets/images/errorimg.png.js +0 -1
- package/lib/packages/components/assets/images/excel.png.js +0 -1
- package/lib/packages/components/assets/images/file-word.png.js +0 -1
- package/lib/packages/components/assets/images/pdf.png.js +0 -1
- package/lib/packages/components/assets/images/ppt.png.js +0 -1
- package/lib/packages/components/assets/images/vue.svg.js +0 -1
- package/lib/packages/components/hooks/useClipboard.js +0 -1
- package/lib/packages/components/hooks/useImg.js +0 -1
- package/lib/packages/components/hooks/useImgPath.js +0 -1
- package/lib/packages/components/hooks/useImport.js +0 -1
- package/lib/packages/components/hooks/useUpload.js +0 -1
- package/lib/packages/components/node_modules/dayjs/dayjs.min.js +0 -1
- package/lib/packages/components/node_modules/element-plus/es/locale/lang/zh-cn.js +0 -1
- package/lib/packages/components/node_modules/lodash/lodash.js +0 -27
- package/lib/packages/components/node_modules/v3-infinite-loading/lib/v3-infinite-loading.es.js +0 -1
- package/lib/static/CommonObject.js +0 -1
- package/lib/utils/config.js +0 -1
- package/lib/utils/const.js +0 -1
- package/lib/utils/install.js +0 -1
- package/lib/utils/storage.js +0 -1
- package/lib/utils/style.js +0 -1
- package/lib/utils/translate.js +0 -1
- package/lib/yahee-components.css +0 -1
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/index.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/adapters/adapters.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/adapters/fetch.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/adapters/xhr.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/axios.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/cancel/CancelToken.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/cancel/CanceledError.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/cancel/isCancel.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/core/AxiosError.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/core/AxiosHeaders.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/core/InterceptorManager.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/core/buildFullPath.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/core/dispatchRequest.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/core/settle.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/core/transformData.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/defaults/index.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/defaults/transitional.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/bind.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/combineURLs.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/composeSignals.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/cookies.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/formDataToJSON.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/isAxiosError.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/null.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/parseHeaders.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/parseProtocol.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/progressEventReducer.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/resolveConfig.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/speedometer.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/spread.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/throttle.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/toFormData.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/helpers/trackStream.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/platform/browser/index.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/platform/common/utils.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/platform/index.js +0 -0
- /package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/utils.js +0 -0
- /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
package/es/style.css
CHANGED
|
@@ -103,15 +103,11 @@
|
|
|
103
103
|
height: 22px;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
.yahee-drop-down-condition {
|
|
107
|
-
/* 滚动槽 */
|
|
108
|
-
/* 滚动条滑块 */
|
|
109
|
-
}
|
|
110
106
|
.yahee-drop-down-condition .checkbox {
|
|
111
107
|
margin-top: 5px;
|
|
112
108
|
}
|
|
113
109
|
.yahee-drop-down-condition .custom-total-button {
|
|
114
|
-
margin-right:
|
|
110
|
+
margin-right: 5px;
|
|
115
111
|
padding: 1px 4px;
|
|
116
112
|
height: 22px;
|
|
117
113
|
}
|
|
@@ -119,39 +115,52 @@
|
|
|
119
115
|
display: flex;
|
|
120
116
|
flex-direction: column;
|
|
121
117
|
}
|
|
122
|
-
|
|
118
|
+
|
|
119
|
+
.scrollable-container {
|
|
123
120
|
max-height: 700px;
|
|
124
121
|
overflow-y: auto;
|
|
125
122
|
display: flex;
|
|
126
123
|
flex-direction: column;
|
|
127
124
|
}
|
|
128
|
-
|
|
125
|
+
|
|
126
|
+
.scrollable-container::-webkit-scrollbar {
|
|
129
127
|
width: 5px;
|
|
130
128
|
}
|
|
131
|
-
|
|
129
|
+
|
|
130
|
+
/* 滚动槽 */
|
|
131
|
+
.scrollable-container::-webkit-scrollbar-track {
|
|
132
132
|
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
|
|
133
133
|
border-radius: 10px;
|
|
134
134
|
}
|
|
135
|
-
|
|
135
|
+
|
|
136
|
+
/* 滚动条滑块 */
|
|
137
|
+
.scrollable-container::-webkit-scrollbar-thumb {
|
|
136
138
|
border-radius: 10px;
|
|
137
139
|
background: rgba(0, 0, 0, 0.1);
|
|
138
140
|
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
|
|
139
141
|
}
|
|
140
142
|
|
|
143
|
+
.el-button + .el-button.custom-dropdown-button {
|
|
144
|
+
margin-left: 5px;
|
|
145
|
+
}
|
|
146
|
+
|
|
141
147
|
.custom-dropdown .checkbox {
|
|
142
148
|
margin-top: 5px;
|
|
143
149
|
}
|
|
144
|
-
.custom-dropdown .custom-button {
|
|
150
|
+
.custom-dropdown .custom-dropdown-button {
|
|
145
151
|
margin-right: 0;
|
|
146
152
|
padding: 1px 4px;
|
|
147
153
|
min-height: 22px;
|
|
148
154
|
height: 22px;
|
|
149
|
-
margin-left: 5px;
|
|
150
155
|
}
|
|
151
|
-
.custom-dropdown .custom-button.inner-el-button {
|
|
156
|
+
.custom-dropdown .custom-dropdown-button.inner-el-button {
|
|
152
157
|
margin-top: 5px;
|
|
153
158
|
}
|
|
154
159
|
|
|
160
|
+
.custom-dropdown-checkbox-group {
|
|
161
|
+
margin-right: 10px;
|
|
162
|
+
}
|
|
163
|
+
|
|
155
164
|
.custom-popover .checkbox-group {
|
|
156
165
|
margin: 5px;
|
|
157
166
|
width: 100%;
|
|
@@ -179,7 +188,6 @@
|
|
|
179
188
|
}
|
|
180
189
|
.custom-popover .popover-table td span {
|
|
181
190
|
display: block;
|
|
182
|
-
border: 1px solid transparent;
|
|
183
191
|
}
|
|
184
192
|
.custom-popover .custom-total-button {
|
|
185
193
|
margin-right: 0;
|
|
@@ -196,15 +204,15 @@
|
|
|
196
204
|
color: blue;
|
|
197
205
|
}
|
|
198
206
|
.yahee-country-platform-shop-condition .custom-total-button {
|
|
199
|
-
margin-right:
|
|
207
|
+
margin-right: 5px;
|
|
200
208
|
padding: 1px 4px;
|
|
201
209
|
height: 22px;
|
|
202
210
|
}
|
|
203
211
|
.yahee-country-platform-shop-condition .custom-button {
|
|
204
212
|
min-height: 22px;
|
|
205
|
-
min-width:
|
|
213
|
+
min-width: 48px;
|
|
206
214
|
height: 22px;
|
|
207
|
-
margin:
|
|
215
|
+
margin: 0 5px 0 0;
|
|
208
216
|
}
|
|
209
217
|
.yahee-country-platform-shop-condition .custom-button.inner-el-button {
|
|
210
218
|
margin-top: 5px;
|
package/es/utils/translate.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { sessionStorageProxy as
|
|
1
|
+
import { sessionStorageProxy as g, storage as l } from "./storage.js";
|
|
2
2
|
import m from "../_virtual/lodash.js";
|
|
3
|
-
import h from "../node_modules/.pnpm/axios@1.7.
|
|
3
|
+
import h from "../node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/axios.js";
|
|
4
4
|
import { i18nType as c } from "../static/CommonObject.js";
|
|
5
5
|
import { Get as y } from "../api/server.js";
|
|
6
6
|
const T = (e) => {
|
|
7
7
|
var i;
|
|
8
|
-
const t =
|
|
8
|
+
const t = g.get("employee") || {}, o = d(e);
|
|
9
9
|
if (o === 0) return e;
|
|
10
|
-
const n =
|
|
10
|
+
const n = g.get(`translate${t.Language}`) || {};
|
|
11
11
|
if (m.isEmpty(n) || t.Language === "zh-CN" || !/[\u4e00-\u9fa5]/.test(e)) return e;
|
|
12
|
-
const
|
|
13
|
-
if (
|
|
14
|
-
return
|
|
12
|
+
const s = n[o];
|
|
13
|
+
if (s)
|
|
14
|
+
return s;
|
|
15
15
|
{
|
|
16
16
|
const r = ((i = localStorage.getItem("localStorageListId")) == null ? void 0 : i.split(",")) || [];
|
|
17
17
|
if (r.includes(o.toString()))
|
|
@@ -21,8 +21,8 @@ const T = (e) => {
|
|
|
21
21
|
projectId: "place-order",
|
|
22
22
|
id: o,
|
|
23
23
|
cn: e
|
|
24
|
-
},
|
|
25
|
-
return console.log(
|
|
24
|
+
}, u = "http://api-tools-test.yahee.com.cn:81/api/translation/addTranslate";
|
|
25
|
+
return console.log(u, "url"), h.post(u, p, { withCredentials: !0 }).then((f) => {
|
|
26
26
|
f.data.code;
|
|
27
27
|
}), e;
|
|
28
28
|
}
|
|
@@ -37,14 +37,14 @@ function d(e) {
|
|
|
37
37
|
return t;
|
|
38
38
|
}
|
|
39
39
|
function $(e, t = "") {
|
|
40
|
-
const o =
|
|
40
|
+
const o = l.get("totalEmployees");
|
|
41
41
|
if (!e || m.isEmpty(o)) return t;
|
|
42
|
-
const n =
|
|
42
|
+
const n = g.get("employee");
|
|
43
43
|
if (n.Language === c.CN) return t;
|
|
44
44
|
const a = o[e];
|
|
45
|
-
return a ? n.Language === c.CN ? a.name || t : a.enName || "" : (E(e).then((
|
|
46
|
-
const i =
|
|
47
|
-
return r ? (i[e] = r,
|
|
45
|
+
return a ? n.Language === c.CN ? a.name || t : a.enName || "" : (E(e).then((s) => {
|
|
46
|
+
const i = l.get("totalEmployees") || {}, r = s.data[0];
|
|
47
|
+
return r ? (i[e] = r, l.setWithExpireTime("totalEmployees", i, 3600 * 1e3), n.Language === c.CN ? r.name || "" : r.enName || "") : t;
|
|
48
48
|
}), t);
|
|
49
49
|
}
|
|
50
50
|
function E(e) {
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
}
|
|
26
26
|
.custom-popover .popover-table td span {
|
|
27
27
|
display: block;
|
|
28
|
-
border: 1px solid transparent;
|
|
29
28
|
}
|
|
30
29
|
.custom-popover .custom-total-button {
|
|
31
30
|
margin-right: 0;
|
|
@@ -42,15 +41,15 @@
|
|
|
42
41
|
color: blue;
|
|
43
42
|
}
|
|
44
43
|
.yahee-country-platform-shop-condition .custom-total-button {
|
|
45
|
-
margin-right:
|
|
44
|
+
margin-right: 5px;
|
|
46
45
|
padding: 1px 4px;
|
|
47
46
|
height: 22px;
|
|
48
47
|
}
|
|
49
48
|
.yahee-country-platform-shop-condition .custom-button {
|
|
50
49
|
min-height: 22px;
|
|
51
|
-
min-width:
|
|
50
|
+
min-width: 48px;
|
|
52
51
|
height: 22px;
|
|
53
|
-
margin:
|
|
52
|
+
margin: 0 5px 0 0;
|
|
54
53
|
}
|
|
55
54
|
.yahee-country-platform-shop-condition .custom-button.inner-el-button {
|
|
56
55
|
margin-top: 5px;
|
|
@@ -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:
|
|
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
|
-
|
|
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
|
-
|
|
21
|
+
|
|
22
|
+
.scrollable-container::-webkit-scrollbar {
|
|
25
23
|
width: 5px;
|
|
26
24
|
}
|
|
27
|
-
|
|
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
|
-
|
|
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
|
}
|
package/lib/style.css
CHANGED
|
@@ -103,15 +103,11 @@
|
|
|
103
103
|
height: 22px;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
.yahee-drop-down-condition {
|
|
107
|
-
/* 滚动槽 */
|
|
108
|
-
/* 滚动条滑块 */
|
|
109
|
-
}
|
|
110
106
|
.yahee-drop-down-condition .checkbox {
|
|
111
107
|
margin-top: 5px;
|
|
112
108
|
}
|
|
113
109
|
.yahee-drop-down-condition .custom-total-button {
|
|
114
|
-
margin-right:
|
|
110
|
+
margin-right: 5px;
|
|
115
111
|
padding: 1px 4px;
|
|
116
112
|
height: 22px;
|
|
117
113
|
}
|
|
@@ -119,39 +115,52 @@
|
|
|
119
115
|
display: flex;
|
|
120
116
|
flex-direction: column;
|
|
121
117
|
}
|
|
122
|
-
|
|
118
|
+
|
|
119
|
+
.scrollable-container {
|
|
123
120
|
max-height: 700px;
|
|
124
121
|
overflow-y: auto;
|
|
125
122
|
display: flex;
|
|
126
123
|
flex-direction: column;
|
|
127
124
|
}
|
|
128
|
-
|
|
125
|
+
|
|
126
|
+
.scrollable-container::-webkit-scrollbar {
|
|
129
127
|
width: 5px;
|
|
130
128
|
}
|
|
131
|
-
|
|
129
|
+
|
|
130
|
+
/* 滚动槽 */
|
|
131
|
+
.scrollable-container::-webkit-scrollbar-track {
|
|
132
132
|
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
|
|
133
133
|
border-radius: 10px;
|
|
134
134
|
}
|
|
135
|
-
|
|
135
|
+
|
|
136
|
+
/* 滚动条滑块 */
|
|
137
|
+
.scrollable-container::-webkit-scrollbar-thumb {
|
|
136
138
|
border-radius: 10px;
|
|
137
139
|
background: rgba(0, 0, 0, 0.1);
|
|
138
140
|
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
|
|
139
141
|
}
|
|
140
142
|
|
|
143
|
+
.el-button + .el-button.custom-dropdown-button {
|
|
144
|
+
margin-left: 5px;
|
|
145
|
+
}
|
|
146
|
+
|
|
141
147
|
.custom-dropdown .checkbox {
|
|
142
148
|
margin-top: 5px;
|
|
143
149
|
}
|
|
144
|
-
.custom-dropdown .custom-button {
|
|
150
|
+
.custom-dropdown .custom-dropdown-button {
|
|
145
151
|
margin-right: 0;
|
|
146
152
|
padding: 1px 4px;
|
|
147
153
|
min-height: 22px;
|
|
148
154
|
height: 22px;
|
|
149
|
-
margin-left: 5px;
|
|
150
155
|
}
|
|
151
|
-
.custom-dropdown .custom-button.inner-el-button {
|
|
156
|
+
.custom-dropdown .custom-dropdown-button.inner-el-button {
|
|
152
157
|
margin-top: 5px;
|
|
153
158
|
}
|
|
154
159
|
|
|
160
|
+
.custom-dropdown-checkbox-group {
|
|
161
|
+
margin-right: 10px;
|
|
162
|
+
}
|
|
163
|
+
|
|
155
164
|
.custom-popover .checkbox-group {
|
|
156
165
|
margin: 5px;
|
|
157
166
|
width: 100%;
|
|
@@ -179,7 +188,6 @@
|
|
|
179
188
|
}
|
|
180
189
|
.custom-popover .popover-table td span {
|
|
181
190
|
display: block;
|
|
182
|
-
border: 1px solid transparent;
|
|
183
191
|
}
|
|
184
192
|
.custom-popover .custom-total-button {
|
|
185
193
|
margin-right: 0;
|
|
@@ -196,15 +204,15 @@
|
|
|
196
204
|
color: blue;
|
|
197
205
|
}
|
|
198
206
|
.yahee-country-platform-shop-condition .custom-total-button {
|
|
199
|
-
margin-right:
|
|
207
|
+
margin-right: 5px;
|
|
200
208
|
padding: 1px 4px;
|
|
201
209
|
height: 22px;
|
|
202
210
|
}
|
|
203
211
|
.yahee-country-platform-shop-condition .custom-button {
|
|
204
212
|
min-height: 22px;
|
|
205
|
-
min-width:
|
|
213
|
+
min-width: 48px;
|
|
206
214
|
height: 22px;
|
|
207
|
-
margin:
|
|
215
|
+
margin: 0 5px 0 0;
|
|
208
216
|
}
|
|
209
217
|
.yahee-country-platform-shop-condition .custom-button.inner-el-button {
|
|
210
218
|
margin-top: 5px;
|
package/package.json
CHANGED
package/readme.md
ADDED
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
# yahee-components Library
|
|
2
|
+
|
|
3
|
+
深圳前海亚讯公司,使用 Vue 3 和 Vite 构建的前端组件库。它结合 TypeScript 提供类型支持,并集成了 prettier+husky+lint-staged 以确保代码质量。
|
|
4
|
+
|
|
5
|
+
## 目录
|
|
6
|
+
|
|
7
|
+
- [特性](#特性)
|
|
8
|
+
- [安装](#安装)
|
|
9
|
+
- [快速开始](#快速开始)
|
|
10
|
+
- [组件](#组件)
|
|
11
|
+
- [开发指南](#开发指南)
|
|
12
|
+
- [代码规范](#代码规范)
|
|
13
|
+
- [文档](#文档)
|
|
14
|
+
- [常见问题](#常见问题)
|
|
15
|
+
- [贡献](#贡献)
|
|
16
|
+
- [许可证](#许可证)
|
|
17
|
+
|
|
18
|
+
## 特性
|
|
19
|
+
|
|
20
|
+
- **现代化技术栈**:基于 Vue 3 和 Vite,支持快速开发。
|
|
21
|
+
- **TypeScript 支持**:提供类型安全。
|
|
22
|
+
- **代码质量保障**:使用 ESLint、Prettier 和 lint-staged。
|
|
23
|
+
- **易于集成**:与现有项目无缝结合。
|
|
24
|
+
|
|
25
|
+
## 安装
|
|
26
|
+
|
|
27
|
+
使用 npm 安装:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npm install yahee-components
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
或使用 Yarn:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
yarn add yahee-components
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## 快速开始
|
|
40
|
+
|
|
41
|
+
在你的 Vue 项目中引入并使用组件:
|
|
42
|
+
|
|
43
|
+
```javascript
|
|
44
|
+
import { YaheeComplexSearch } from 'yahee-components';
|
|
45
|
+
import 'yahee-components/es/style.css';
|
|
46
|
+
<template>
|
|
47
|
+
<YaheeComplexSearch
|
|
48
|
+
:show-within-filter-checkbox="true"
|
|
49
|
+
:show-patch-search="true"
|
|
50
|
+
:placeholder-text="`${M2('PD单号')}/${M2('SKU')}/${M2('SKU别名')}`"
|
|
51
|
+
:show-select="false"
|
|
52
|
+
:search-item="searchItem"
|
|
53
|
+
@filter-change-grandson="filterChangeGrandson"
|
|
54
|
+
/>
|
|
55
|
+
</template>
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## 组件
|
|
59
|
+
|
|
60
|
+
### YaheeAnnexUpload
|
|
61
|
+
|
|
62
|
+
文件上传组件,支持文件类型、文件数量、文件大小、文件单位等参数自定义
|
|
63
|
+
|
|
64
|
+
```html
|
|
65
|
+
<template>
|
|
66
|
+
<yahee-annex-upload
|
|
67
|
+
v-model="fileValue"
|
|
68
|
+
:accept=".gif,.jpg,.png,.doc,.docx,.pdf,.xls,.xlsx"
|
|
69
|
+
:limit="1"
|
|
70
|
+
:fileSize="20"
|
|
71
|
+
:fileSizeUnit="mb"
|
|
72
|
+
/>
|
|
73
|
+
</template>
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### YaheeComplexSearch
|
|
77
|
+
|
|
78
|
+
复杂搜索组件,支持是否展示多选下拉框、是否展示批量搜索、是否在筛选条件内搜索等参数自定义,并emit筛选条件给父组件监听以完成筛选
|
|
79
|
+
|
|
80
|
+
```html
|
|
81
|
+
<template>
|
|
82
|
+
<yahee-complex-search
|
|
83
|
+
:show-within-filter-checkbox="true"
|
|
84
|
+
:show-patch-search="true"
|
|
85
|
+
:show-select="false"
|
|
86
|
+
:search-item="searchItem"
|
|
87
|
+
@filter-change-grandson="filterChange"
|
|
88
|
+
/>
|
|
89
|
+
</template>
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### YaheeCountryPlatformShopCondition
|
|
93
|
+
|
|
94
|
+
销量等级二维筛选组件。
|
|
95
|
+
|
|
96
|
+
```html
|
|
97
|
+
<template>
|
|
98
|
+
<yahee-country-platform-shop-condition
|
|
99
|
+
:xy-filters="filterList"
|
|
100
|
+
filter-key="saleLevels"
|
|
101
|
+
@filter-change="filterChange"
|
|
102
|
+
/>
|
|
103
|
+
</template>
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### YaheeImageUpload
|
|
107
|
+
|
|
108
|
+
图片上传组件,支持图片大小、图片单位等参数自定义
|
|
109
|
+
|
|
110
|
+
```html
|
|
111
|
+
<template>
|
|
112
|
+
<yahee-image-upload v-model="imageValue" />
|
|
113
|
+
</template>
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### YaheeCopy
|
|
117
|
+
|
|
118
|
+
复制组件
|
|
119
|
+
|
|
120
|
+
```html
|
|
121
|
+
<template>
|
|
122
|
+
<yahee-copy content="121212">复制</yahee-copy>
|
|
123
|
+
</template>
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
### YaheeDropdownCondition
|
|
127
|
+
|
|
128
|
+
下拉筛选项组件,支持传入父组件函数,用以接受选择的筛选项参数
|
|
129
|
+
|
|
130
|
+
```html
|
|
131
|
+
<template>
|
|
132
|
+
<yahee-drop-down-condition
|
|
133
|
+
filter-key="series"
|
|
134
|
+
enum-entity="category-series"
|
|
135
|
+
@filter-change="filterChange"
|
|
136
|
+
/>
|
|
137
|
+
</template>
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### YaheeLeftCondition
|
|
141
|
+
|
|
142
|
+
普通单选筛选项组件,支持传入父组件函数,用以接受选择的筛选项参数
|
|
143
|
+
|
|
144
|
+
```html
|
|
145
|
+
<template>
|
|
146
|
+
<YaheeLeftCondition
|
|
147
|
+
ref="bigGroupRef"
|
|
148
|
+
:select-list="categoryManagers"
|
|
149
|
+
:all-is-empty="true"
|
|
150
|
+
filter-key="categoryManager"
|
|
151
|
+
@filter-change="filterChange"
|
|
152
|
+
/>
|
|
153
|
+
</template>
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### YaheeLeftConditionEnum
|
|
157
|
+
|
|
158
|
+
普通单选筛选项组件,与上面组件不同的是,选项内容通过接口进行查询,同时也支持传入父组件函数,用以接受选择的筛选项参数
|
|
159
|
+
|
|
160
|
+
```html
|
|
161
|
+
<template>
|
|
162
|
+
<YaheeLeftConditionEnum
|
|
163
|
+
enum-entity="country"
|
|
164
|
+
filter-key="country"
|
|
165
|
+
:all-is-empty="true"
|
|
166
|
+
:init-filters="initFilters"
|
|
167
|
+
@filter-change="filterChange"
|
|
168
|
+
/>
|
|
169
|
+
</template>
|
|
170
|
+
```
|
|
171
|
+
### YaheeOperationLog
|
|
172
|
+
|
|
173
|
+
操作日志组件,支持下拉加载,通过业务参数获取不同操作日志
|
|
174
|
+
|
|
175
|
+
```html
|
|
176
|
+
<template>
|
|
177
|
+
<YaheeLeftConditionEnum
|
|
178
|
+
enum-entity="country"
|
|
179
|
+
filter-key="country"
|
|
180
|
+
:all-is-empty="true"
|
|
181
|
+
:init-filters="initFilters"
|
|
182
|
+
@filter-change="filterChange"
|
|
183
|
+
/>
|
|
184
|
+
</template>
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
## 开发指南
|
|
188
|
+
|
|
189
|
+
### 本地开发
|
|
190
|
+
|
|
191
|
+
克隆仓库并安装依赖:
|
|
192
|
+
|
|
193
|
+
```bash
|
|
194
|
+
git clone
|
|
195
|
+
cd your-local-download-directory
|
|
196
|
+
pnpm install
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
启动开发服务器:
|
|
200
|
+
|
|
201
|
+
```bash
|
|
202
|
+
yarn dev
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
### 构建
|
|
206
|
+
|
|
207
|
+
构建生产版本:
|
|
208
|
+
|
|
209
|
+
```bash
|
|
210
|
+
cd packages/components
|
|
211
|
+
npm run build
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
### 发布
|
|
215
|
+
|
|
216
|
+
登录npm后
|
|
217
|
+
|
|
218
|
+
```bash
|
|
219
|
+
npm publish --access public
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
## 代码规范
|
|
223
|
+
|
|
224
|
+
- 使用 ESLint 和 Prettier 格式化代码。
|
|
225
|
+
- 提交前使用 lint-staged 进行检查。
|
|
226
|
+
|
|
227
|
+
## 文档
|
|
228
|
+
|
|
229
|
+
详细的 API 文档请参阅项目内docs文件夹下的文档。
|
|
230
|
+
|
|
231
|
+
## 常见问题
|
|
232
|
+
|
|
233
|
+
### 如何报告问题?
|
|
234
|
+
|
|
235
|
+
请联系维护人menglingnan/zhangyujiao/smithshi提交问题。
|
|
236
|
+
|
|
237
|
+
## 贡献
|
|
238
|
+
|
|
239
|
+
欢迎贡献!请确保遵循以下步骤:
|
|
240
|
+
|
|
241
|
+
1. Fork 仓库
|
|
242
|
+
2. 创建你的特性分支 (`git checkout -b feature/AmazingFeature`)
|
|
243
|
+
3. 提交更改 (`git commit -m 'Add some AmazingFeature'`)
|
|
244
|
+
4. 推送到分支 (`git push origin feature/AmazingFeature`)
|
|
245
|
+
5. 打开一个 Pull Request
|
|
246
|
+
|
|
247
|
+
## 许可证
|
|
248
|
+
|
|
249
|
+
该项目采用 MIT 许可证。
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const useIsImg: (file: File) => boolean;
|
|
2
|
+
/**
|
|
3
|
+
* 上传文件
|
|
4
|
+
* @param fileType
|
|
5
|
+
* @param file
|
|
6
|
+
* @param callback
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export declare const useUpload: (fileType: string, file: File, progressCallback?: any) => Promise<{
|
|
10
|
+
id: string;
|
|
11
|
+
url: string;
|
|
12
|
+
}>;
|