yahee-components 0.0.29 → 0.0.30
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/dayjs.min.js +1 -1
- package/es/_virtual/lodash.js +1 -1
- package/es/api/server.js +1 -1
- package/es/api/tool.js +1 -1
- package/es/complex-search/complex-search.vue.js +159 -133
- package/es/complex-search/props.js +18 -0
- package/es/index.js +14 -12
- 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.vue.js +2 -2
- package/es/packages/components/api/log-server.js +1 -1
- 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 +1 -1
- package/es/packages/components/hooks/useImg.js +1 -1
- package/es/utils/translate.js +1 -1
- 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 +523 -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 +9 -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 +11 -0
- package/types/src/operation-log/operation-log.vue.d.ts +6 -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/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/core/Axios.js
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import d from "../utils.js";
|
|
2
|
-
import
|
|
2
|
+
import T from "../helpers/buildURL.js";
|
|
3
3
|
import b from "./InterceptorManager.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
const
|
|
10
|
-
class
|
|
4
|
+
import R from "./dispatchRequest.js";
|
|
5
|
+
import y from "./mergeConfig.js";
|
|
6
|
+
import P from "./buildFullPath.js";
|
|
7
|
+
import m from "../helpers/validator.js";
|
|
8
|
+
import C from "./AxiosHeaders.js";
|
|
9
|
+
const l = m.validators;
|
|
10
|
+
class E {
|
|
11
11
|
constructor(t) {
|
|
12
12
|
this.defaults = t, this.interceptors = {
|
|
13
13
|
request: new b(),
|
|
@@ -27,8 +27,8 @@ class k {
|
|
|
27
27
|
return await this._request(t, e);
|
|
28
28
|
} catch (s) {
|
|
29
29
|
if (s instanceof Error) {
|
|
30
|
-
let n;
|
|
31
|
-
Error.captureStackTrace ? Error.captureStackTrace(n
|
|
30
|
+
let n = {};
|
|
31
|
+
Error.captureStackTrace ? Error.captureStackTrace(n) : n = new Error();
|
|
32
32
|
const a = n.stack ? n.stack.replace(/^.+\n/, "") : "";
|
|
33
33
|
try {
|
|
34
34
|
s.stack ? a && !String(s.stack).endsWith(a.replace(/^.+\n.+\n/, "")) && (s.stack += `
|
|
@@ -40,18 +40,21 @@ class k {
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
_request(t, e) {
|
|
43
|
-
typeof t == "string" ? (e = e || {}, e.url = t) : e = t || {}, e =
|
|
43
|
+
typeof t == "string" ? (e = e || {}, e.url = t) : e = t || {}, e = y(this.defaults, e);
|
|
44
44
|
const { transitional: s, paramsSerializer: n, headers: a } = e;
|
|
45
|
-
s !== void 0 &&
|
|
46
|
-
silentJSONParsing:
|
|
47
|
-
forcedJSONParsing:
|
|
48
|
-
clarifyTimeoutError:
|
|
45
|
+
s !== void 0 && m.assertOptions(s, {
|
|
46
|
+
silentJSONParsing: l.transitional(l.boolean),
|
|
47
|
+
forcedJSONParsing: l.transitional(l.boolean),
|
|
48
|
+
clarifyTimeoutError: l.transitional(l.boolean)
|
|
49
49
|
}, !1), n != null && (d.isFunction(n) ? e.paramsSerializer = {
|
|
50
50
|
serialize: n
|
|
51
|
-
} :
|
|
52
|
-
encode:
|
|
53
|
-
serialize:
|
|
54
|
-
}, !0)),
|
|
51
|
+
} : m.assertOptions(n, {
|
|
52
|
+
encode: l.function,
|
|
53
|
+
serialize: l.function
|
|
54
|
+
}, !0)), m.assertOptions(e, {
|
|
55
|
+
baseUrl: l.spelling("baseURL"),
|
|
56
|
+
withXsrfToken: l.spelling("withXSRFToken")
|
|
57
|
+
}, !0), e.method = (e.method || this.defaults.method || "get").toLowerCase();
|
|
55
58
|
let f = a && d.merge(
|
|
56
59
|
a.common,
|
|
57
60
|
a[e.method]
|
|
@@ -61,52 +64,52 @@ class k {
|
|
|
61
64
|
(r) => {
|
|
62
65
|
delete a[r];
|
|
63
66
|
}
|
|
64
|
-
), e.headers =
|
|
67
|
+
), e.headers = C.concat(f, a);
|
|
65
68
|
const h = [];
|
|
66
|
-
let
|
|
69
|
+
let k = !0;
|
|
67
70
|
this.interceptors.request.forEach(function(i) {
|
|
68
|
-
typeof i.runWhen == "function" && i.runWhen(e) === !1 || (
|
|
71
|
+
typeof i.runWhen == "function" && i.runWhen(e) === !1 || (k = k && i.synchronous, h.unshift(i.fulfilled, i.rejected));
|
|
69
72
|
});
|
|
70
|
-
const
|
|
73
|
+
const c = [];
|
|
71
74
|
this.interceptors.response.forEach(function(i) {
|
|
72
|
-
|
|
75
|
+
c.push(i.fulfilled, i.rejected);
|
|
73
76
|
});
|
|
74
|
-
let
|
|
75
|
-
if (!
|
|
76
|
-
const r = [
|
|
77
|
-
for (r.unshift.apply(r, h), r.push.apply(r,
|
|
78
|
-
|
|
79
|
-
return
|
|
77
|
+
let u, o = 0, p;
|
|
78
|
+
if (!k) {
|
|
79
|
+
const r = [R.bind(this), void 0];
|
|
80
|
+
for (r.unshift.apply(r, h), r.push.apply(r, c), p = r.length, u = Promise.resolve(e); o < p; )
|
|
81
|
+
u = u.then(r[o++], r[o++]);
|
|
82
|
+
return u;
|
|
80
83
|
}
|
|
81
|
-
|
|
82
|
-
let
|
|
83
|
-
for (o = 0; o <
|
|
84
|
+
p = h.length;
|
|
85
|
+
let w = e;
|
|
86
|
+
for (o = 0; o < p; ) {
|
|
84
87
|
const r = h[o++], i = h[o++];
|
|
85
88
|
try {
|
|
86
|
-
|
|
87
|
-
} catch (
|
|
88
|
-
i.call(this,
|
|
89
|
+
w = r(w);
|
|
90
|
+
} catch (S) {
|
|
91
|
+
i.call(this, S);
|
|
89
92
|
break;
|
|
90
93
|
}
|
|
91
94
|
}
|
|
92
95
|
try {
|
|
93
|
-
|
|
96
|
+
u = R.call(this, w);
|
|
94
97
|
} catch (r) {
|
|
95
98
|
return Promise.reject(r);
|
|
96
99
|
}
|
|
97
|
-
for (o = 0,
|
|
98
|
-
|
|
99
|
-
return
|
|
100
|
+
for (o = 0, p = c.length; o < p; )
|
|
101
|
+
u = u.then(c[o++], c[o++]);
|
|
102
|
+
return u;
|
|
100
103
|
}
|
|
101
104
|
getUri(t) {
|
|
102
|
-
t =
|
|
103
|
-
const e =
|
|
104
|
-
return
|
|
105
|
+
t = y(this.defaults, t);
|
|
106
|
+
const e = P(t.baseURL, t.url);
|
|
107
|
+
return T(e, t.params, t.paramsSerializer);
|
|
105
108
|
}
|
|
106
109
|
}
|
|
107
110
|
d.forEach(["delete", "get", "head", "options"], function(t) {
|
|
108
|
-
|
|
109
|
-
return this.request(
|
|
111
|
+
E.prototype[t] = function(e, s) {
|
|
112
|
+
return this.request(y(s || {}, {
|
|
110
113
|
method: t,
|
|
111
114
|
url: e,
|
|
112
115
|
data: (s || {}).data
|
|
@@ -116,7 +119,7 @@ d.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
116
119
|
d.forEach(["post", "put", "patch"], function(t) {
|
|
117
120
|
function e(s) {
|
|
118
121
|
return function(a, f, h) {
|
|
119
|
-
return this.request(
|
|
122
|
+
return this.request(y(h || {}, {
|
|
120
123
|
method: t,
|
|
121
124
|
headers: s ? {
|
|
122
125
|
"Content-Type": "multipart/form-data"
|
|
@@ -126,8 +129,8 @@ d.forEach(["post", "put", "patch"], function(t) {
|
|
|
126
129
|
}));
|
|
127
130
|
};
|
|
128
131
|
}
|
|
129
|
-
|
|
132
|
+
E.prototype[t] = e(), E.prototype[t + "Form"] = e(!0);
|
|
130
133
|
});
|
|
131
134
|
export {
|
|
132
|
-
|
|
135
|
+
E as default
|
|
133
136
|
};
|
package/es/node_modules/.pnpm/{axios@1.7.7 → axios@1.7.9}/node_modules/axios/lib/core/mergeConfig.js
RENAMED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import i from "../utils.js";
|
|
2
2
|
import h from "./AxiosHeaders.js";
|
|
3
3
|
const c = (s) => s instanceof h ? { ...s } : s;
|
|
4
|
-
function C(s,
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
function d(t, e, r) {
|
|
8
|
-
return i.isPlainObject(t) && i.isPlainObject(e) ? i.merge.call({ caseless:
|
|
4
|
+
function C(s, a) {
|
|
5
|
+
a = a || {};
|
|
6
|
+
const u = {};
|
|
7
|
+
function d(t, e, r, o) {
|
|
8
|
+
return i.isPlainObject(t) && i.isPlainObject(e) ? i.merge.call({ caseless: o }, t, e) : i.isPlainObject(e) ? i.merge({}, e) : i.isArray(e) ? e.slice() : e;
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function l(t, e, r, o) {
|
|
11
11
|
if (i.isUndefined(e)) {
|
|
12
12
|
if (!i.isUndefined(t))
|
|
13
|
-
return d(void 0, t, r);
|
|
14
|
-
} else return d(t, e, r);
|
|
13
|
+
return d(void 0, t, r, o);
|
|
14
|
+
} else return d(t, e, r, o);
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function f(t, e) {
|
|
17
17
|
if (!i.isUndefined(e))
|
|
18
18
|
return d(void 0, e);
|
|
19
19
|
}
|
|
@@ -23,16 +23,16 @@ function C(s, o) {
|
|
|
23
23
|
return d(void 0, t);
|
|
24
24
|
} else return d(void 0, e);
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
if (r in
|
|
26
|
+
function m(t, e, r) {
|
|
27
|
+
if (r in a)
|
|
28
28
|
return d(t, e);
|
|
29
29
|
if (r in s)
|
|
30
30
|
return d(void 0, t);
|
|
31
31
|
}
|
|
32
32
|
const g = {
|
|
33
|
-
url:
|
|
34
|
-
method:
|
|
35
|
-
data:
|
|
33
|
+
url: f,
|
|
34
|
+
method: f,
|
|
35
|
+
data: f,
|
|
36
36
|
baseURL: n,
|
|
37
37
|
transformRequest: n,
|
|
38
38
|
transformResponse: n,
|
|
@@ -57,13 +57,13 @@ function C(s, o) {
|
|
|
57
57
|
cancelToken: n,
|
|
58
58
|
socketPath: n,
|
|
59
59
|
responseEncoding: n,
|
|
60
|
-
validateStatus:
|
|
61
|
-
headers: (t, e) =>
|
|
60
|
+
validateStatus: m,
|
|
61
|
+
headers: (t, e, r) => l(c(t), c(e), r, !0)
|
|
62
62
|
};
|
|
63
|
-
return i.forEach(Object.keys(Object.assign({}, s,
|
|
64
|
-
const r = g[e] ||
|
|
65
|
-
i.isUndefined(
|
|
66
|
-
}),
|
|
63
|
+
return i.forEach(Object.keys(Object.assign({}, s, a)), function(e) {
|
|
64
|
+
const r = g[e] || l, o = r(s[e], a[e], e);
|
|
65
|
+
i.isUndefined(o) && r !== m || (u[e] = o);
|
|
66
|
+
}), u;
|
|
67
67
|
}
|
|
68
68
|
export {
|
|
69
69
|
C as default
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import f from "../utils.js";
|
|
2
|
+
import d from "./AxiosURLSearchParams.js";
|
|
3
|
+
function l(e) {
|
|
4
|
+
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
5
|
+
}
|
|
6
|
+
function m(e, c, i) {
|
|
7
|
+
if (!c)
|
|
8
|
+
return e;
|
|
9
|
+
const t = i && i.encode || l;
|
|
10
|
+
f.isFunction(i) && (i = {
|
|
11
|
+
serialize: i
|
|
12
|
+
});
|
|
13
|
+
const n = i && i.serialize;
|
|
14
|
+
let r;
|
|
15
|
+
if (n ? r = n(c, i) : r = f.isURLSearchParams(c) ? c.toString() : new d(c, i).toString(t), r) {
|
|
16
|
+
const a = e.indexOf("#");
|
|
17
|
+
a !== -1 && (e = e.slice(0, a)), e += (e.indexOf("?") === -1 ? "?" : "&") + r;
|
|
18
|
+
}
|
|
19
|
+
return e;
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
m as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import o from "../platform/index.js";
|
|
2
|
+
const n = o.hasStandardBrowserEnv ? /* @__PURE__ */ ((r, e) => (t) => (t = new URL(t, o.origin), r.protocol === t.protocol && r.host === t.host && (e || r.port === t.port)))(
|
|
3
|
+
new URL(o.origin),
|
|
4
|
+
o.navigator && /(msie|trident)/i.test(o.navigator.userAgent)
|
|
5
|
+
) : () => !0;
|
|
6
|
+
export {
|
|
7
|
+
n as default
|
|
8
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { VERSION as w } from "../env/data.js";
|
|
2
|
+
import s from "../core/AxiosError.js";
|
|
3
|
+
const l = {};
|
|
4
|
+
["object", "boolean", "number", "function", "string", "symbol"].forEach((n, t) => {
|
|
5
|
+
l[n] = function(o) {
|
|
6
|
+
return typeof o === n || "a" + (t < 1 ? "n " : " ") + n;
|
|
7
|
+
};
|
|
8
|
+
});
|
|
9
|
+
const f = {};
|
|
10
|
+
l.transitional = function(t, i, o) {
|
|
11
|
+
function a(r, e) {
|
|
12
|
+
return "[Axios v" + w + "] Transitional option '" + r + "'" + e + (o ? ". " + o : "");
|
|
13
|
+
}
|
|
14
|
+
return (r, e, u) => {
|
|
15
|
+
if (t === !1)
|
|
16
|
+
throw new s(
|
|
17
|
+
a(e, " has been removed" + (i ? " in " + i : "")),
|
|
18
|
+
s.ERR_DEPRECATED
|
|
19
|
+
);
|
|
20
|
+
return i && !f[e] && (f[e] = !0, console.warn(
|
|
21
|
+
a(
|
|
22
|
+
e,
|
|
23
|
+
" has been deprecated since v" + i + " and will be removed in the near future"
|
|
24
|
+
)
|
|
25
|
+
)), t ? t(r, e, u) : !0;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
l.spelling = function(t) {
|
|
29
|
+
return (i, o) => (console.warn(`${o} is likely a misspelling of ${t}`), !0);
|
|
30
|
+
};
|
|
31
|
+
function b(n, t, i) {
|
|
32
|
+
if (typeof n != "object")
|
|
33
|
+
throw new s("options must be an object", s.ERR_BAD_OPTION_VALUE);
|
|
34
|
+
const o = Object.keys(n);
|
|
35
|
+
let a = o.length;
|
|
36
|
+
for (; a-- > 0; ) {
|
|
37
|
+
const r = o[a], e = t[r];
|
|
38
|
+
if (e) {
|
|
39
|
+
const u = n[r], c = u === void 0 || e(u, r, n);
|
|
40
|
+
if (c !== !0)
|
|
41
|
+
throw new s("option " + r + " must be " + c, s.ERR_BAD_OPTION_VALUE);
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
if (i !== !0)
|
|
45
|
+
throw new s("Unknown option " + r, s.ERR_BAD_OPTION);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
const m = {
|
|
49
|
+
assertOptions: b,
|
|
50
|
+
validators: l
|
|
51
|
+
};
|
|
52
|
+
export {
|
|
53
|
+
m as default
|
|
54
|
+
};
|
package/es/{packages/components → node_modules/.pnpm/lodash@4.17.21}/node_modules/lodash/lodash.js
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { commonjsGlobal as Jr } from "
|
|
2
|
-
import { __module as jt } from "
|
|
1
|
+
import { commonjsGlobal as Jr } from "../../../../../_virtual/_commonjsHelpers.js";
|
|
2
|
+
import { __module as jt } from "../../../../../_virtual/lodash2.js";
|
|
3
3
|
/**
|
|
4
4
|
* @license
|
|
5
5
|
* Lodash <https://lodash.com/>
|
|
@@ -107,7 +107,7 @@ const K = /* @__PURE__ */ b(j, [["render", J], ["__scopeId", "data-v-d3e37633"]]
|
|
|
107
107
|
r("button", {
|
|
108
108
|
class: "retry",
|
|
109
109
|
onClick: m[0] || (m[0] = //@ts-ignore
|
|
110
|
-
(...B) => i.emit
|
|
110
|
+
(...B) => i.emit(...B))
|
|
111
111
|
}, "retry")
|
|
112
112
|
])
|
|
113
113
|
];
|
|
@@ -14,8 +14,8 @@ import se from "./operation-log-dialog.vue.js";
|
|
|
14
14
|
import U from "../_virtual/dayjs.min.js";
|
|
15
15
|
import { M2 as r } from "../utils/translate.js";
|
|
16
16
|
import le from "../annex-upload/annex-upload.vue.js";
|
|
17
|
-
import ie from "../
|
|
18
|
-
/* empty css
|
|
17
|
+
import ie from "../node_modules/.pnpm/v3-infinite-loading@1.3.2/node_modules/v3-infinite-loading/lib/v3-infinite-loading.es.js";
|
|
18
|
+
/* empty css */
|
|
19
19
|
import { insertGlobalnotes as P, findGlobalNotes as re } from "../packages/components/api/log/index.js";
|
|
20
20
|
const de = { class: "yahee-operation-log" }, ce = { class: "d-flex jc-end" }, ue = { class: "content text-color-secondary" }, fe = { class: "date fontSize-12 pull-right text-color-a4" }, pe = { class: "name" }, me = { class: "name" }, ge = { class: "d-flex" }, ve = { class: "content text-color-secondary" }, he = { class: "date fontSize-12 text-color-a4" }, _e = {
|
|
21
21
|
key: 0,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import i from "../../../node_modules/.pnpm/axios@1.7.
|
|
1
|
+
import i from "../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/axios.js";
|
|
2
2
|
import { storage as m } from "../../../utils/storage.js";
|
|
3
3
|
import { ElMessageBox as s } from "element-plus";
|
|
4
4
|
import "element-plus/theme-chalk/src/base.scss";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import t from "../../../node_modules/.pnpm/axios@1.7.
|
|
1
|
+
import t from "../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/axios.js";
|
|
2
2
|
import { handleChangeRequestHeader as a, handleConfigureAuth as s, handleAuthError as n, handleGeneralError as o, handleNetworkError as u } from "./tool.js";
|
|
3
3
|
t.interceptors.request.use((e) => {
|
|
4
4
|
let r = a(e);
|
|
@@ -2,7 +2,7 @@ import { ElMessage as n } from "element-plus";
|
|
|
2
2
|
import "element-plus/theme-chalk/src/base.scss";
|
|
3
3
|
import "element-plus/theme-chalk/src/badge.scss";
|
|
4
4
|
import "element-plus/theme-chalk/src/message.scss";
|
|
5
|
-
import { AxiosHeaders as a } from "../../../node_modules/.pnpm/axios@1.7.
|
|
5
|
+
import { AxiosHeaders as a } from "../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/index.js";
|
|
6
6
|
const p = (e) => ({
|
|
7
7
|
...e,
|
|
8
8
|
timeout: 2e4
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import i from "../../../node_modules/.pnpm/axios@1.7.
|
|
1
|
+
import i from "../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/axios.js";
|
|
2
2
|
import { storage as l } from "../../../utils/storage.js";
|
|
3
3
|
import { ElMessageBox as a } from "element-plus";
|
|
4
4
|
import "element-plus/theme-chalk/src/base.scss";
|
|
@@ -7,7 +7,7 @@ function u(e, r = !1) {
|
|
|
7
7
|
} else return r ? `https://imgs.yaheecloud.com/${e}` : `https://imgs.yaheecloud.com/Small/${e}`;
|
|
8
8
|
}
|
|
9
9
|
function c(e) {
|
|
10
|
-
return e
|
|
10
|
+
return e.fileId ? `https://imgs.yaheecloud.com/${e.fileId}` : "";
|
|
11
11
|
}
|
|
12
12
|
export {
|
|
13
13
|
u as default,
|
package/es/utils/translate.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { sessionStorageProxy as u, storage as s } 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) => {
|
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 许可证。
|