el-plus 0.0.113 → 0.0.115
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/CHANGELOG.md +24 -0
- package/README.md +85 -85
- package/dist/index.css +1 -1
- package/dist/index.full.js +15 -5
- package/dist/index.full.min.js +4 -4
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +4 -4
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +15 -6
- package/docs/CHANGELOG.md +5 -5
- package/docs/api-examples.md +49 -49
- package/docs/components/attachment.md +118 -111
- package/docs/components/buttons.md +179 -179
- package/docs/components/custom-column.md +70 -70
- package/docs/components/date-picker-range.md +61 -61
- package/docs/components/dialog.md +104 -104
- package/docs/components/footer-info.md +101 -101
- package/docs/components/form.md +211 -211
- package/docs/components/header.md +117 -117
- package/docs/components/input.md +111 -111
- package/docs/components/link.md +63 -63
- package/docs/components/search-list-page.md +91 -91
- package/docs/components/select.md +249 -249
- package/docs/components/table.md +145 -145
- package/docs/components/title.md +70 -70
- package/docs/components/use-choose-dialog.md +114 -114
- package/docs/components/use-confirm-dialog.md +86 -86
- package/docs/components/use-form-dialog.md +85 -85
- package/docs/guide/markdown-examples.md +85 -85
- package/docs/hooks/use-navigation.md +131 -131
- package/docs/hooks/use-utils.md +162 -162
- package/docs/index.md +25 -25
- package/docs/overview.md +99 -99
- package/docs/pages/detail.md +66 -66
- package/docs/pages/list.md +74 -74
- package/docs/pages/router.md +151 -151
- package/es/components/attachment/index.d.ts +12 -2
- package/es/components/attachment/index.mjs +1 -1
- package/es/components/attachment/index.mjs.map +1 -1
- package/es/components/attachment/src/attachment.d.ts +6 -0
- package/es/components/attachment/src/attachment.mjs +7 -1
- package/es/components/attachment/src/attachment.mjs.map +1 -1
- package/es/components/attachment/src/attachment.vue.d.ts +5 -1
- package/es/components/attachment/src/attachment.vue2.mjs +7 -4
- package/es/components/attachment/src/attachment.vue2.mjs.map +1 -1
- package/es/components/attachment/src/use-attachment.mjs.map +1 -1
- package/es/components/buttons/index.mjs.map +1 -1
- package/es/components/buttons/src/buttons-vue.mjs.map +1 -1
- package/es/components/buttons/src/buttons.mjs.map +1 -1
- package/es/components/custom-column/index.mjs.map +1 -1
- package/es/components/custom-column/src/custom-column.mjs.map +1 -1
- package/es/components/custom-column/src/custom-column.vue2.mjs.map +1 -1
- package/es/components/date-picker-range/index.mjs.map +1 -1
- package/es/components/date-picker-range/src/date-picker-range.mjs.map +1 -1
- package/es/components/date-picker-range/src/date-picker-range.vue2.mjs.map +1 -1
- package/es/components/footer-info/index.mjs.map +1 -1
- package/es/components/footer-info/src/footer-info.mjs.map +1 -1
- package/es/components/footer-info/src/footer-info.vue2.mjs.map +1 -1
- package/es/components/form/index.mjs.map +1 -1
- package/es/components/form/src/form-item-vue.mjs.map +1 -1
- package/es/components/form/src/form-item.mjs.map +1 -1
- package/es/components/form/src/form.mjs.map +1 -1
- package/es/components/form/src/form.vue2.mjs.map +1 -1
- package/es/components/form/src/hooks/use-form-item.mjs.map +1 -1
- package/es/components/form/src/hooks/use-form.mjs.map +1 -1
- package/es/components/header/index.mjs.map +1 -1
- package/es/components/header/src/header.mjs.map +1 -1
- package/es/components/header/src/header.vue2.mjs.map +1 -1
- package/es/components/header/src/use-header.mjs.map +1 -1
- package/es/components/index.mjs +1 -1
- package/es/components/input/index.mjs.map +1 -1
- package/es/components/input/src/input.mjs.map +1 -1
- package/es/components/input/src/input.vue2.mjs.map +1 -1
- package/es/components/link/index.mjs.map +1 -1
- package/es/components/link/src/link.mjs.map +1 -1
- package/es/components/link/src/link.vue2.mjs.map +1 -1
- package/es/components/search-list-page/index.mjs.map +1 -1
- package/es/components/search-list-page/src/search-list-page.mjs.map +1 -1
- package/es/components/search-list-page/src/search-list-page.vue2.mjs.map +1 -1
- package/es/components/search-list-page/src/use-search-list-page.mjs.map +1 -1
- package/es/components/select/index.mjs.map +1 -1
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/select/src/select.vue2.mjs.map +1 -1
- package/es/components/select/src/use-select.mjs.map +1 -1
- package/es/components/table/index.mjs.map +1 -1
- package/es/components/table/src/table.mjs.map +1 -1
- package/es/components/table/src/table.vue2.mjs.map +1 -1
- package/es/components/table/src/use-table.mjs.map +1 -1
- package/es/components/title/index.mjs.map +1 -1
- package/es/components/title/src/title.mjs.map +1 -1
- package/es/components/title/src/title.vue2.mjs.map +1 -1
- package/es/components/title/src/use-title.mjs.map +1 -1
- package/es/components/uni-vue/index.mjs.map +1 -1
- package/es/components/uni-vue/src/uni-vue.mjs.map +1 -1
- package/es/components/uni-vue/src/uni-vue.vue2.mjs.map +1 -1
- package/es/components/uni-vue/src/use-uni-vue.mjs.map +1 -1
- package/es/components.mjs.map +1 -1
- package/es/directives/permission/index.mjs.map +1 -1
- package/es/directives/repeat-click/index.mjs.map +1 -1
- package/es/hooks/dialog/use-choose-dialog.mjs.map +1 -1
- package/es/hooks/dialog/use-confirm-dialog.mjs.map +1 -1
- package/es/hooks/dialog/use-dialog.mjs.map +1 -1
- package/es/hooks/dialog/use-form-dialog.mjs.map +1 -1
- package/es/hooks/use-locale.mjs.map +1 -1
- package/es/hooks/use-navigation.mjs.map +1 -1
- package/es/hooks/use-request.mjs.map +1 -1
- package/es/hooks/use-template-promise.mjs.map +1 -1
- package/es/hooks/use-utils.mjs.map +1 -1
- package/es/index.mjs +1 -1
- package/es/index.mjs.map +1 -1
- package/es/locale/lang/en.mjs.map +1 -1
- package/es/locale/lang/zh-cn.mjs.map +1 -1
- package/es/package.json.mjs +1 -1
- package/es/plugins/globalProperties.mjs.map +1 -1
- package/es/types/global.d.ts +30 -30
- package/es/types/index.d.ts +2 -2
- package/es/types/utils.d.ts +19 -19
- package/es/utils/bem.mjs.map +1 -1
- package/es/utils/cookie.mjs.map +1 -1
- package/es/utils/dom.mjs.map +1 -1
- package/es/utils/env.mjs.map +1 -1
- package/es/utils/file.mjs.map +1 -1
- package/es/utils/http/core/modules/interceptor.mjs.map +1 -1
- package/es/utils/http/core/modules/loading.mjs.map +1 -1
- package/es/utils/http/core/preset-interceptors.mjs.map +1 -1
- package/es/utils/http/core/request-client.mjs.map +1 -1
- package/es/utils/http/index.mjs.map +1 -1
- package/es/utils/mitt.mjs.map +1 -1
- package/es/utils/navigation.mjs.map +1 -1
- package/es/utils/props.mjs.map +1 -1
- package/es/utils/time.mjs.map +1 -1
- package/es/utils/utils.mjs.map +1 -1
- package/es/utils/with-install.mjs.map +1 -1
- package/global.d.ts +21 -21
- package/lib/components/attachment/index.d.ts +12 -2
- package/lib/components/attachment/index.js +1 -0
- package/lib/components/attachment/index.js.map +1 -1
- package/lib/components/attachment/src/attachment.d.ts +6 -0
- package/lib/components/attachment/src/attachment.js +7 -0
- package/lib/components/attachment/src/attachment.js.map +1 -1
- package/lib/components/attachment/src/attachment.vue.d.ts +5 -1
- package/lib/components/attachment/src/attachment.vue2.js +6 -3
- package/lib/components/attachment/src/attachment.vue2.js.map +1 -1
- package/lib/components/attachment/src/use-attachment.js.map +1 -1
- package/lib/components/buttons/index.js.map +1 -1
- package/lib/components/buttons/src/buttons-vue.js.map +1 -1
- package/lib/components/buttons/src/buttons.js.map +1 -1
- package/lib/components/custom-column/index.js.map +1 -1
- package/lib/components/custom-column/src/custom-column.js.map +1 -1
- package/lib/components/custom-column/src/custom-column.vue2.js.map +1 -1
- package/lib/components/date-picker-range/index.js.map +1 -1
- package/lib/components/date-picker-range/src/date-picker-range.js.map +1 -1
- package/lib/components/date-picker-range/src/date-picker-range.vue2.js.map +1 -1
- package/lib/components/footer-info/index.js.map +1 -1
- package/lib/components/footer-info/src/footer-info.js.map +1 -1
- package/lib/components/footer-info/src/footer-info.vue2.js.map +1 -1
- package/lib/components/form/index.js.map +1 -1
- package/lib/components/form/src/form-item-vue.js.map +1 -1
- package/lib/components/form/src/form-item.js.map +1 -1
- package/lib/components/form/src/form.js.map +1 -1
- package/lib/components/form/src/form.vue2.js.map +1 -1
- package/lib/components/form/src/hooks/use-form-item.js.map +1 -1
- package/lib/components/form/src/hooks/use-form.js.map +1 -1
- package/lib/components/header/index.js.map +1 -1
- package/lib/components/header/src/header.js.map +1 -1
- package/lib/components/header/src/header.vue2.js.map +1 -1
- package/lib/components/header/src/use-header.js.map +1 -1
- package/lib/components/index.js +1 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/input/index.js.map +1 -1
- package/lib/components/input/src/input.js.map +1 -1
- package/lib/components/input/src/input.vue2.js.map +1 -1
- package/lib/components/link/index.js.map +1 -1
- package/lib/components/link/src/link.js.map +1 -1
- package/lib/components/link/src/link.vue2.js.map +1 -1
- package/lib/components/search-list-page/index.js.map +1 -1
- package/lib/components/search-list-page/src/search-list-page.js.map +1 -1
- package/lib/components/search-list-page/src/search-list-page.vue2.js.map +1 -1
- package/lib/components/search-list-page/src/use-search-list-page.js.map +1 -1
- package/lib/components/select/index.js.map +1 -1
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/select/src/select.vue2.js.map +1 -1
- package/lib/components/select/src/use-select.js.map +1 -1
- package/lib/components/table/index.js.map +1 -1
- package/lib/components/table/src/table.js.map +1 -1
- package/lib/components/table/src/table.vue2.js.map +1 -1
- package/lib/components/table/src/use-table.js.map +1 -1
- package/lib/components/title/index.js.map +1 -1
- package/lib/components/title/src/title.js.map +1 -1
- package/lib/components/title/src/title.vue2.js.map +1 -1
- package/lib/components/title/src/use-title.js.map +1 -1
- package/lib/components/uni-vue/index.js.map +1 -1
- package/lib/components/uni-vue/src/uni-vue.js.map +1 -1
- package/lib/components/uni-vue/src/uni-vue.vue2.js.map +1 -1
- package/lib/components/uni-vue/src/use-uni-vue.js.map +1 -1
- package/lib/components.js.map +1 -1
- package/lib/directives/permission/index.js.map +1 -1
- package/lib/directives/repeat-click/index.js.map +1 -1
- package/lib/hooks/dialog/use-choose-dialog.js.map +1 -1
- package/lib/hooks/dialog/use-confirm-dialog.js.map +1 -1
- package/lib/hooks/dialog/use-dialog.js.map +1 -1
- package/lib/hooks/dialog/use-form-dialog.js.map +1 -1
- package/lib/hooks/use-locale.js.map +1 -1
- package/lib/hooks/use-navigation.js.map +1 -1
- package/lib/hooks/use-request.js.map +1 -1
- package/lib/hooks/use-template-promise.js.map +1 -1
- package/lib/hooks/use-utils.js.map +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/locale/lang/en.js.map +1 -1
- package/lib/locale/lang/zh-cn.js.map +1 -1
- package/lib/package.json.js +1 -1
- package/lib/plugins/globalProperties.js.map +1 -1
- package/lib/types/global.d.ts +30 -30
- package/lib/types/index.d.ts +2 -2
- package/lib/types/utils.d.ts +19 -19
- package/lib/utils/bem.js.map +1 -1
- package/lib/utils/cookie.js.map +1 -1
- package/lib/utils/dom.js.map +1 -1
- package/lib/utils/env.js.map +1 -1
- package/lib/utils/file.js.map +1 -1
- package/lib/utils/http/core/modules/interceptor.js.map +1 -1
- package/lib/utils/http/core/modules/loading.js.map +1 -1
- package/lib/utils/http/core/preset-interceptors.js.map +1 -1
- package/lib/utils/http/core/request-client.js.map +1 -1
- package/lib/utils/http/index.js.map +1 -1
- package/lib/utils/mitt.js.map +1 -1
- package/lib/utils/navigation.js.map +1 -1
- package/lib/utils/props.js.map +1 -1
- package/lib/utils/time.js.map +1 -1
- package/lib/utils/utils.js.map +1 -1
- package/lib/utils/with-install.js.map +1 -1
- package/package.json +1 -1
- package/theme-chalk/base.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/attachment.scss +39 -39
- package/theme-chalk/src/base.scss +2 -2
- package/theme-chalk/src/buttons.scss +22 -22
- package/theme-chalk/src/common/common.scss +7 -4
- package/theme-chalk/src/common/transition.scss +9 -9
- package/theme-chalk/src/custom-column.scss +55 -55
- package/theme-chalk/src/dialog.scss +62 -62
- package/theme-chalk/src/footer-info.scss +18 -18
- package/theme-chalk/src/form.scss +80 -72
- package/theme-chalk/src/header.scss +19 -19
- package/theme-chalk/src/index.scss +15 -15
- package/theme-chalk/src/link.scss +5 -5
- package/theme-chalk/src/mixins/config.scss +3 -3
- package/theme-chalk/src/mixins/mixins.scss +37 -37
- package/theme-chalk/src/search-list-page.scss +22 -22
- package/theme-chalk/src/select.scss +10 -10
- package/theme-chalk/src/table.scss +91 -91
- package/theme-chalk/src/tabs.scss +55 -55
- package/theme-chalk/src/title.scss +52 -52
- package/theme-chalk/src/uni-vue.scss +10 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-client.js","sources":["../../../../../../packages/utils/http/core/request-client.ts"],"sourcesContent":["import type { AxiosInstance, AxiosResponse } from 'axios'\nimport type {\n RequestClientConfig,\n RequestClientOptions,\n HttpSuccessResponse,\n} from './types'\nimport defu from 'defu'\nimport axios from 'axios'\n// import qs from 'qs'\nimport * as qs from 'qs'\nimport { isString } from '@vue/shared'\nimport { bindMethods } from '@el-plus/utils/utils'\nimport { InterceptorManager } from './modules/interceptor'\nfunction getParamsSerializer(\n paramsSerializer: RequestClientOptions['paramsSerializer'],\n) {\n if (isString(paramsSerializer)) {\n switch (paramsSerializer) {\n case 'brackets': {\n return (params: any) =>\n qs.stringify(params, { arrayFormat: 'brackets' })\n }\n case 'comma': {\n return (params: any) => qs.stringify(params, { arrayFormat: 'comma' })\n }\n case 'indices': {\n return (params: any) => qs.stringify(params, { arrayFormat: 'indices' })\n }\n case 'repeat': {\n return (params: any) => qs.stringify(params, { arrayFormat: 'repeat' })\n }\n }\n }\n return paramsSerializer\n}\n\nclass RequestClient {\n public readonly instance: AxiosInstance\n // 拦截器\n public addRequestInterceptor: InterceptorManager['addRequestInterceptor']\n public addResponseInterceptor: InterceptorManager['addResponseInterceptor']\n constructor(options: RequestClientOptions = {}) {\n // 合并默认配置和传入的配置\n const defaultConfig: RequestClientOptions = {\n headers: {\n 'Content-Type': 'application/json;charset=utf-8',\n },\n responseReturn: 'raw',\n // 默认超时时间10s\n timeout: 10_000,\n }\n const { ...axiosConfig } = options\n const requestConfig = defu(axiosConfig, defaultConfig)\n // requestConfig.paramsSerializer = getParamsSerializer(\n // requestConfig.paramsSerializer,\n // )\n this.instance = axios.create(requestConfig)\n\n bindMethods(this)\n\n // 实例化拦截器管理器\n const interceptorManager = new InterceptorManager(this.instance)\n this.addRequestInterceptor =\n interceptorManager.addRequestInterceptor.bind(interceptorManager)\n this.addResponseInterceptor =\n interceptorManager.addResponseInterceptor.bind(interceptorManager)\n }\n\n /**\n * DELETE请求方法\n */\n public delete<T = any, R = HttpSuccessResponse<T>>(\n url: string,\n data?: any,\n config?: RequestClientConfig,\n ): Promise<R> {\n return this.request<T>(url, {\n ...config,\n data,\n method: 'DELETE',\n }) as Promise<R>\n }\n\n /**\n * GET请求方法\n */\n public get<T = any, R = HttpSuccessResponse<T>>(\n url: string,\n params?: any,\n config?: RequestClientConfig,\n ): Promise<R> {\n return this.request<T>(url, {\n ...config,\n method: 'GET',\n params,\n }) as Promise<R>\n }\n\n /**\n * 获取基础URL\n */\n public getBaseUrl() {\n return this.instance.defaults.baseURL\n }\n\n /**\n * POST请求方法\n */\n public post<T = any, R = HttpSuccessResponse<T>>(\n url: string,\n data?: any,\n config?: RequestClientConfig,\n ): Promise<R> {\n return this.request(url, { ...config, data, method: 'POST' }) as Promise<R>\n }\n\n /**\n * PUT请求方法\n */\n public put<T = any, R = HttpSuccessResponse<T>>(\n url: string,\n data?: any,\n config?: RequestClientConfig,\n ): Promise<R> {\n return this.request(url, { ...config, data, method: 'PUT' }) as Promise<R>\n }\n\n /**\n * 通用的请求方法\n */\n public async request<T, R = HttpSuccessResponse<T>>(\n url: string,\n config: RequestClientConfig,\n ): Promise<R> {\n try {\n const response: AxiosResponse<R> = await this.instance({\n url,\n ...config,\n // ...(config.paramsSerializer\n // ? { paramsSerializer: getParamsSerializer(config.paramsSerializer) }\n // : {}),\n })\n return response as R\n } catch (error: any) {\n throw error.response ? error.response.data : error\n }\n }\n}\nexport { RequestClient }\n"],"names":["bindMethods","InterceptorManager"],"mappings":";;;;;;;AAoCA,MAAM,aAAA,CAAc;AAAA,EAKlB,WAAA,CAAY,OAAA,GAAgC,EAAC,EAAG;AAE9C,IAAA,MAAM,aAAA,GAAsC;AAAA,MAC1C,OAAA,EAAS;AAAA,QACP,cAAA,EAAgB;AAAA,OAClB;AAAA,MACA,cAAA,EAAgB,KAAA;AAAA;AAAA,MAEhB,OAAA,EAAS;AAAA,KACX;AACA,IAAA,MAAM,EAAE,GAAG,WAAA,EAAY,GAAI,OAAA;AAC3B,IAAA,MAAM,aAAA,GAAgB,IAAA,CAAK,WAAA,EAAa,aAAa,CAAA;AAIrD,IAAA,IAAA,CAAK,QAAA,GAAW,KAAA,CAAM,MAAA,CAAO,aAAa,CAAA;AAE1C,IAAAA,iBAAA,CAAY,IAAI,CAAA;AAGhB,IAAA,MAAM,kBAAA,GAAqB,IAAIC,8BAAA,CAAmB,IAAA,CAAK,QAAQ,CAAA;AAC/D,IAAA,IAAA,CAAK,qBAAA,GACH,kBAAA,CAAmB,qBAAA,CAAsB,IAAA,CAAK,kBAAkB,CAAA;AAClE,IAAA,IAAA,CAAK,sBAAA,GACH,kBAAA,CAAmB,sBAAA,CAAuB,IAAA,CAAK,kBAAkB,CAAA;AAAA,EACrE;AAAA;AAAA;AAAA;AAAA,EAKO,MAAA,CACL,GAAA,EACA,IAAA,EACA,MAAA,EACY;AACZ,IAAA,OAAO,IAAA,CAAK,QAAW,GAAA,EAAK;AAAA,MAC1B,GAAG,MAAA;AAAA,MACH,IAAA;AAAA,MACA,MAAA,EAAQ;AAAA,KACT,CAAA;AAAA,EACH;AAAA;AAAA;AAAA;AAAA,EAKO,GAAA,CACL,GAAA,EACA,MAAA,EACA,MAAA,EACY;AACZ,IAAA,OAAO,IAAA,CAAK,QAAW,GAAA,EAAK;AAAA,MAC1B,GAAG,MAAA;AAAA,MACH,MAAA,EAAQ,KAAA;AAAA,MACR;AAAA,KACD,CAAA;AAAA,EACH;AAAA;AAAA;AAAA;AAAA,EAKO,UAAA,GAAa;AAClB,IAAA,OAAO,IAAA,CAAK,SAAS,QAAA,CAAS,OAAA;AAAA,EAChC;AAAA;AAAA;AAAA;AAAA,EAKO,IAAA,CACL,GAAA,EACA,IAAA,EACA,MAAA,EACY;AACZ,IAAA,OAAO,IAAA,CAAK,QAAQ,GAAA,EAAK,EAAE,GAAG,MAAA,EAAQ,IAAA,EAAM,MAAA,EAAQ,MAAA,EAAQ,CAAA;AAAA,EAC9D;AAAA;AAAA;AAAA;AAAA,EAKO,GAAA,CACL,GAAA,EACA,IAAA,EACA,MAAA,EACY;AACZ,IAAA,OAAO,IAAA,CAAK,QAAQ,GAAA,EAAK,EAAE,GAAG,MAAA,EAAQ,IAAA,EAAM,MAAA,EAAQ,KAAA,EAAO,CAAA;AAAA,EAC7D;AAAA;AAAA;AAAA;AAAA,EAKA,MAAa,OAAA,CACX,GAAA,EACA,MAAA,EACY;AACZ,IAAA,IAAI;AACF,MAAA,MAAM,QAAA,GAA6B,MAAM,IAAA,CAAK,QAAA,CAAS;AAAA,QACrD,GAAA;AAAA,QACA,GAAG;AAAA;AAAA;AAAA;AAAA,OAIJ,CAAA;AACD,MAAA,OAAO,QAAA;AAAA,IACT,SAAS,KAAA,EAAY;AACnB,MAAA,MAAM,KAAA,CAAM,QAAA,GAAW,KAAA,CAAM,QAAA,CAAS,IAAA,GAAO,KAAA;AAAA,IAC/C;AAAA,EACF;AACF;;;;"}
|
|
1
|
+
{"version":3,"file":"request-client.js","sources":["../../../../../../packages/utils/http/core/request-client.ts"],"sourcesContent":["import type { AxiosInstance, AxiosResponse } from 'axios'\r\nimport type {\r\n RequestClientConfig,\r\n RequestClientOptions,\r\n HttpSuccessResponse,\r\n} from './types'\r\nimport defu from 'defu'\r\nimport axios from 'axios'\r\n// import qs from 'qs'\r\nimport * as qs from 'qs'\r\nimport { isString } from '@vue/shared'\r\nimport { bindMethods } from '@el-plus/utils/utils'\r\nimport { InterceptorManager } from './modules/interceptor'\r\nfunction getParamsSerializer(\r\n paramsSerializer: RequestClientOptions['paramsSerializer'],\r\n) {\r\n if (isString(paramsSerializer)) {\r\n switch (paramsSerializer) {\r\n case 'brackets': {\r\n return (params: any) =>\r\n qs.stringify(params, { arrayFormat: 'brackets' })\r\n }\r\n case 'comma': {\r\n return (params: any) => qs.stringify(params, { arrayFormat: 'comma' })\r\n }\r\n case 'indices': {\r\n return (params: any) => qs.stringify(params, { arrayFormat: 'indices' })\r\n }\r\n case 'repeat': {\r\n return (params: any) => qs.stringify(params, { arrayFormat: 'repeat' })\r\n }\r\n }\r\n }\r\n return paramsSerializer\r\n}\r\n\r\nclass RequestClient {\r\n public readonly instance: AxiosInstance\r\n // 拦截器\r\n public addRequestInterceptor: InterceptorManager['addRequestInterceptor']\r\n public addResponseInterceptor: InterceptorManager['addResponseInterceptor']\r\n constructor(options: RequestClientOptions = {}) {\r\n // 合并默认配置和传入的配置\r\n const defaultConfig: RequestClientOptions = {\r\n headers: {\r\n 'Content-Type': 'application/json;charset=utf-8',\r\n },\r\n responseReturn: 'raw',\r\n // 默认超时时间10s\r\n timeout: 10_000,\r\n }\r\n const { ...axiosConfig } = options\r\n const requestConfig = defu(axiosConfig, defaultConfig)\r\n // requestConfig.paramsSerializer = getParamsSerializer(\r\n // requestConfig.paramsSerializer,\r\n // )\r\n this.instance = axios.create(requestConfig)\r\n\r\n bindMethods(this)\r\n\r\n // 实例化拦截器管理器\r\n const interceptorManager = new InterceptorManager(this.instance)\r\n this.addRequestInterceptor =\r\n interceptorManager.addRequestInterceptor.bind(interceptorManager)\r\n this.addResponseInterceptor =\r\n interceptorManager.addResponseInterceptor.bind(interceptorManager)\r\n }\r\n\r\n /**\r\n * DELETE请求方法\r\n */\r\n public delete<T = any, R = HttpSuccessResponse<T>>(\r\n url: string,\r\n data?: any,\r\n config?: RequestClientConfig,\r\n ): Promise<R> {\r\n return this.request<T>(url, {\r\n ...config,\r\n data,\r\n method: 'DELETE',\r\n }) as Promise<R>\r\n }\r\n\r\n /**\r\n * GET请求方法\r\n */\r\n public get<T = any, R = HttpSuccessResponse<T>>(\r\n url: string,\r\n params?: any,\r\n config?: RequestClientConfig,\r\n ): Promise<R> {\r\n return this.request<T>(url, {\r\n ...config,\r\n method: 'GET',\r\n params,\r\n }) as Promise<R>\r\n }\r\n\r\n /**\r\n * 获取基础URL\r\n */\r\n public getBaseUrl() {\r\n return this.instance.defaults.baseURL\r\n }\r\n\r\n /**\r\n * POST请求方法\r\n */\r\n public post<T = any, R = HttpSuccessResponse<T>>(\r\n url: string,\r\n data?: any,\r\n config?: RequestClientConfig,\r\n ): Promise<R> {\r\n return this.request(url, { ...config, data, method: 'POST' }) as Promise<R>\r\n }\r\n\r\n /**\r\n * PUT请求方法\r\n */\r\n public put<T = any, R = HttpSuccessResponse<T>>(\r\n url: string,\r\n data?: any,\r\n config?: RequestClientConfig,\r\n ): Promise<R> {\r\n return this.request(url, { ...config, data, method: 'PUT' }) as Promise<R>\r\n }\r\n\r\n /**\r\n * 通用的请求方法\r\n */\r\n public async request<T, R = HttpSuccessResponse<T>>(\r\n url: string,\r\n config: RequestClientConfig,\r\n ): Promise<R> {\r\n try {\r\n const response: AxiosResponse<R> = await this.instance({\r\n url,\r\n ...config,\r\n // ...(config.paramsSerializer\r\n // ? { paramsSerializer: getParamsSerializer(config.paramsSerializer) }\r\n // : {}),\r\n })\r\n return response as R\r\n } catch (error: any) {\r\n throw error.response ? error.response.data : error\r\n }\r\n }\r\n}\r\nexport { RequestClient }\r\n"],"names":["bindMethods","InterceptorManager"],"mappings":";;;;;;;AAoCA,MAAM,aAAA,CAAc;AAAA,EAKlB,WAAA,CAAY,OAAA,GAAgC,EAAC,EAAG;AAE9C,IAAA,MAAM,aAAA,GAAsC;AAAA,MAC1C,OAAA,EAAS;AAAA,QACP,cAAA,EAAgB;AAAA,OAClB;AAAA,MACA,cAAA,EAAgB,KAAA;AAAA;AAAA,MAEhB,OAAA,EAAS;AAAA,KACX;AACA,IAAA,MAAM,EAAE,GAAG,WAAA,EAAY,GAAI,OAAA;AAC3B,IAAA,MAAM,aAAA,GAAgB,IAAA,CAAK,WAAA,EAAa,aAAa,CAAA;AAIrD,IAAA,IAAA,CAAK,QAAA,GAAW,KAAA,CAAM,MAAA,CAAO,aAAa,CAAA;AAE1C,IAAAA,iBAAA,CAAY,IAAI,CAAA;AAGhB,IAAA,MAAM,kBAAA,GAAqB,IAAIC,8BAAA,CAAmB,IAAA,CAAK,QAAQ,CAAA;AAC/D,IAAA,IAAA,CAAK,qBAAA,GACH,kBAAA,CAAmB,qBAAA,CAAsB,IAAA,CAAK,kBAAkB,CAAA;AAClE,IAAA,IAAA,CAAK,sBAAA,GACH,kBAAA,CAAmB,sBAAA,CAAuB,IAAA,CAAK,kBAAkB,CAAA;AAAA,EACrE;AAAA;AAAA;AAAA;AAAA,EAKO,MAAA,CACL,GAAA,EACA,IAAA,EACA,MAAA,EACY;AACZ,IAAA,OAAO,IAAA,CAAK,QAAW,GAAA,EAAK;AAAA,MAC1B,GAAG,MAAA;AAAA,MACH,IAAA;AAAA,MACA,MAAA,EAAQ;AAAA,KACT,CAAA;AAAA,EACH;AAAA;AAAA;AAAA;AAAA,EAKO,GAAA,CACL,GAAA,EACA,MAAA,EACA,MAAA,EACY;AACZ,IAAA,OAAO,IAAA,CAAK,QAAW,GAAA,EAAK;AAAA,MAC1B,GAAG,MAAA;AAAA,MACH,MAAA,EAAQ,KAAA;AAAA,MACR;AAAA,KACD,CAAA;AAAA,EACH;AAAA;AAAA;AAAA;AAAA,EAKO,UAAA,GAAa;AAClB,IAAA,OAAO,IAAA,CAAK,SAAS,QAAA,CAAS,OAAA;AAAA,EAChC;AAAA;AAAA;AAAA;AAAA,EAKO,IAAA,CACL,GAAA,EACA,IAAA,EACA,MAAA,EACY;AACZ,IAAA,OAAO,IAAA,CAAK,QAAQ,GAAA,EAAK,EAAE,GAAG,MAAA,EAAQ,IAAA,EAAM,MAAA,EAAQ,MAAA,EAAQ,CAAA;AAAA,EAC9D;AAAA;AAAA;AAAA;AAAA,EAKO,GAAA,CACL,GAAA,EACA,IAAA,EACA,MAAA,EACY;AACZ,IAAA,OAAO,IAAA,CAAK,QAAQ,GAAA,EAAK,EAAE,GAAG,MAAA,EAAQ,IAAA,EAAM,MAAA,EAAQ,KAAA,EAAO,CAAA;AAAA,EAC7D;AAAA;AAAA;AAAA;AAAA,EAKA,MAAa,OAAA,CACX,GAAA,EACA,MAAA,EACY;AACZ,IAAA,IAAI;AACF,MAAA,MAAM,QAAA,GAA6B,MAAM,IAAA,CAAK,QAAA,CAAS;AAAA,QACrD,GAAA;AAAA,QACA,GAAG;AAAA;AAAA;AAAA;AAAA,OAIJ,CAAA;AACD,MAAA,OAAO,QAAA;AAAA,IACT,SAAS,KAAA,EAAY;AACnB,MAAA,MAAM,KAAA,CAAM,QAAA,GAAW,KAAA,CAAM,QAAA,CAAS,IAAA,GAAO,KAAA;AAAA,IAC/C;AAAA,EACF;AACF;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../packages/utils/http/index.ts"],"sourcesContent":["import {\n defaultRequestInterceptor,\n defaultResponseInterceptor,\n errorMessageResponseInterceptor,\n} from './core/preset-interceptors'\nimport { RequestClient } from './core/request-client'\nimport { ElMessage } from 'element-plus'\n\nlet baseURL = '/vue-api'\nif (import.meta.env.DEV) {\n const urlParams = new URLSearchParams(window.location.search)\n const devProxy = urlParams.get('devProxy')\n baseURL = devProxy || '/sit-api'\n}\n\nconst client = new RequestClient({\n baseURL,\n responseReturn: 'body',\n timeout: 50_000,\n})\n\n/**\n * 重新认证逻辑\n */\nasync function doReAuthenticate() {\n let loginUrl = '/pc-vue/login'\n if (import.meta.env.DEV) {\n loginUrl = `${location.pathname}${location.search}#/login`\n }\n\n if (window.parent) {\n window.parent.location.href = loginUrl\n } else {\n window.location.href = loginUrl\n }\n}\n\n// 请求头处理\nclient.addRequestInterceptor(defaultRequestInterceptor())\n\n// 处理成功返回的响应数据格式\nclient.addResponseInterceptor(\n defaultResponseInterceptor({\n makeInfoMessage: (msg) => {\n ElMessage.error(msg)\n },\n }),\n)\n\n// 通用的错误处理,如果没有进入上面的错误处理逻辑,就会进入这里\nclient.addResponseInterceptor(\n errorMessageResponseInterceptor((msg: string, error) => {\n const responseData = error?.response?.data ?? {}\n const errorMessage = responseData?.error ?? responseData?.message ?? ''\n // 如果没有错误信息,则会根据状态码进行提示\n ElMessage.error({\n message: errorMessage || msg,\n onClose: () => {\n if (error?.response?.status === 401) {\n doReAuthenticate()\n }\n },\n })\n }),\n)\n\nexport const http = client\nexport * from './core/types'\n"],"names":["RequestClient","defaultRequestInterceptor","defaultResponseInterceptor","ElMessage","errorMessageResponseInterceptor"],"mappings":";;;;;;AAQA,IAAI,OAAA,GAAU,UAAA;AACd,IAAI,UAAgB,GAAA,EAAK;AACvB,EAAA,MAAM,SAAA,GAAY,IAAI,eAAA,CAAgB,MAAA,CAAO,SAAS,MAAM,CAAA;AAC5D,EAAA,MAAM,QAAA,GAAW,SAAA,CAAU,GAAA,CAAI,UAAU,CAAA;AACzC,EAAA,OAAA,GAAU,QAAA,IAAY,UAAA;AACxB;AAEA,MAAM,MAAA,GAAS,IAAIA,2BAAA,CAAc;AAAA,EAC/B,OAAA;AAAA,EACA,cAAA,EAAgB,MAAA;AAAA,EAChB,OAAA,EAAS;AACX,CAAC,CAAA;AAKD,eAAe,gBAAA,GAAmB;AAChC,EAAA,IAAI,QAAA,GAAW,eAAA;AACf,EAAA,IAAI,UAAgB,GAAA,EAAK;AACvB,IAAA,QAAA,GAAW,CAAA,EAAG,QAAA,CAAS,QAAQ,CAAA,EAAG,SAAS,MAAM,CAAA,OAAA,CAAA;AAAA,EACnD;AAEA,EAAA,IAAI,OAAO,MAAA,EAAQ;AACjB,IAAA,MAAA,CAAO,MAAA,CAAO,SAAS,IAAA,GAAO,QAAA;AAAA,EAChC,CAAA,MAAO;AACL,IAAA,MAAA,CAAO,SAAS,IAAA,GAAO,QAAA;AAAA,EACzB;AACF;AAGA,MAAA,CAAO,qBAAA,CAAsBC,8CAA2B,CAAA;AAGxD,MAAA,CAAO,sBAAA;AAAA,EACLC,6CAAA,CAA2B;AAAA,IACzB,eAAA,EAAiB,CAAC,GAAA,KAAQ;AACxB,MAAAC,qBAAA,CAAU,MAAM,GAAG,CAAA;AAAA,IACrB;AAAA,GACD;AACH,CAAA;AAGA,MAAA,CAAO,sBAAA;AAAA,EACLC,kDAAA,CAAgC,CAAC,GAAA,EAAa,KAAA,KAAU;AACtD,IAAA,MAAM,YAAA,GAAe,KAAA,EAAO,QAAA,EAAU,IAAA,IAAQ,EAAC;AAC/C,IAAA,MAAM,YAAA,GAAe,YAAA,EAAc,KAAA,IAAS,YAAA,EAAc,OAAA,IAAW,EAAA;AAErE,IAAAD,qBAAA,CAAU,KAAA,CAAM;AAAA,MACd,SAAS,YAAA,IAAgB,GAAA;AAAA,MACzB,SAAS,MAAM;AACb,QAAA,IAAI,KAAA,EAAO,QAAA,EAAU,MAAA,KAAW,GAAA,EAAK;AACnC,UAAA,gBAAA,EAAiB;AAAA,QACnB;AAAA,MACF;AAAA,KACD,CAAA;AAAA,EACH,CAAC;AACH,CAAA;AAEO,MAAM,IAAA,GAAO;;;;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../packages/utils/http/index.ts"],"sourcesContent":["import {\r\n defaultRequestInterceptor,\r\n defaultResponseInterceptor,\r\n errorMessageResponseInterceptor,\r\n} from './core/preset-interceptors'\r\nimport { RequestClient } from './core/request-client'\r\nimport { ElMessage } from 'element-plus'\r\n\r\nlet baseURL = '/vue-api'\r\nif (import.meta.env.DEV) {\r\n const urlParams = new URLSearchParams(window.location.search)\r\n const devProxy = urlParams.get('devProxy')\r\n baseURL = devProxy || '/sit-api'\r\n}\r\n\r\nconst client = new RequestClient({\r\n baseURL,\r\n responseReturn: 'body',\r\n timeout: 50_000,\r\n})\r\n\r\n/**\r\n * 重新认证逻辑\r\n */\r\nasync function doReAuthenticate() {\r\n let loginUrl = '/pc-vue/login'\r\n if (import.meta.env.DEV) {\r\n loginUrl = `${location.pathname}${location.search}#/login`\r\n }\r\n\r\n if (window.parent) {\r\n window.parent.location.href = loginUrl\r\n } else {\r\n window.location.href = loginUrl\r\n }\r\n}\r\n\r\n// 请求头处理\r\nclient.addRequestInterceptor(defaultRequestInterceptor())\r\n\r\n// 处理成功返回的响应数据格式\r\nclient.addResponseInterceptor(\r\n defaultResponseInterceptor({\r\n makeInfoMessage: (msg) => {\r\n ElMessage.error(msg)\r\n },\r\n }),\r\n)\r\n\r\n// 通用的错误处理,如果没有进入上面的错误处理逻辑,就会进入这里\r\nclient.addResponseInterceptor(\r\n errorMessageResponseInterceptor((msg: string, error) => {\r\n const responseData = error?.response?.data ?? {}\r\n const errorMessage = responseData?.error ?? responseData?.message ?? ''\r\n // 如果没有错误信息,则会根据状态码进行提示\r\n ElMessage.error({\r\n message: errorMessage || msg,\r\n onClose: () => {\r\n if (error?.response?.status === 401) {\r\n doReAuthenticate()\r\n }\r\n },\r\n })\r\n }),\r\n)\r\n\r\nexport const http = client\r\nexport * from './core/types'\r\n"],"names":["RequestClient","defaultRequestInterceptor","defaultResponseInterceptor","ElMessage","errorMessageResponseInterceptor"],"mappings":";;;;;;AAQA,IAAI,OAAA,GAAU,UAAA;AACd,IAAI,UAAgB,GAAA,EAAK;AACvB,EAAA,MAAM,SAAA,GAAY,IAAI,eAAA,CAAgB,MAAA,CAAO,SAAS,MAAM,CAAA;AAC5D,EAAA,MAAM,QAAA,GAAW,SAAA,CAAU,GAAA,CAAI,UAAU,CAAA;AACzC,EAAA,OAAA,GAAU,QAAA,IAAY,UAAA;AACxB;AAEA,MAAM,MAAA,GAAS,IAAIA,2BAAA,CAAc;AAAA,EAC/B,OAAA;AAAA,EACA,cAAA,EAAgB,MAAA;AAAA,EAChB,OAAA,EAAS;AACX,CAAC,CAAA;AAKD,eAAe,gBAAA,GAAmB;AAChC,EAAA,IAAI,QAAA,GAAW,eAAA;AACf,EAAA,IAAI,UAAgB,GAAA,EAAK;AACvB,IAAA,QAAA,GAAW,CAAA,EAAG,QAAA,CAAS,QAAQ,CAAA,EAAG,SAAS,MAAM,CAAA,OAAA,CAAA;AAAA,EACnD;AAEA,EAAA,IAAI,OAAO,MAAA,EAAQ;AACjB,IAAA,MAAA,CAAO,MAAA,CAAO,SAAS,IAAA,GAAO,QAAA;AAAA,EAChC,CAAA,MAAO;AACL,IAAA,MAAA,CAAO,SAAS,IAAA,GAAO,QAAA;AAAA,EACzB;AACF;AAGA,MAAA,CAAO,qBAAA,CAAsBC,8CAA2B,CAAA;AAGxD,MAAA,CAAO,sBAAA;AAAA,EACLC,6CAAA,CAA2B;AAAA,IACzB,eAAA,EAAiB,CAAC,GAAA,KAAQ;AACxB,MAAAC,qBAAA,CAAU,MAAM,GAAG,CAAA;AAAA,IACrB;AAAA,GACD;AACH,CAAA;AAGA,MAAA,CAAO,sBAAA;AAAA,EACLC,kDAAA,CAAgC,CAAC,GAAA,EAAa,KAAA,KAAU;AACtD,IAAA,MAAM,YAAA,GAAe,KAAA,EAAO,QAAA,EAAU,IAAA,IAAQ,EAAC;AAC/C,IAAA,MAAM,YAAA,GAAe,YAAA,EAAc,KAAA,IAAS,YAAA,EAAc,OAAA,IAAW,EAAA;AAErE,IAAAD,qBAAA,CAAU,KAAA,CAAM;AAAA,MACd,SAAS,YAAA,IAAgB,GAAA;AAAA,MACzB,SAAS,MAAM;AACb,QAAA,IAAI,KAAA,EAAO,QAAA,EAAU,MAAA,KAAW,GAAA,EAAK;AACnC,UAAA,gBAAA,EAAiB;AAAA,QACnB;AAAA,MACF;AAAA,KACD,CAAA;AAAA,EACH,CAAC;AACH,CAAA;AAEO,MAAM,IAAA,GAAO;;;;"}
|
package/lib/utils/mitt.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mitt.js","sources":["../../../../packages/utils/mitt.ts"],"sourcesContent":["import mitt, { Emitter, EventType, Handler } from 'mitt'\n\n// 扩展Emitter类型,添加asyncOn方法\n// interface ExtendedEmitter<T = Record<EventType, unknown>> extends Emitter<T> {\n// once: <T = any>(eventName: EventType) => Promise<T>\n// }\n// 1. 定义你的事件类型映射\ntype Events = {\n [key: string]: any\n}\ntype CustomEmitter<T extends Record<EventType, unknown>> = Emitter<T> & {\n once<K extends keyof T>(eventName: K): Promise<T[K]>\n}\nexport const bus = mitt<Events>() as CustomEmitter<Events>\nbus.once = (eventName) => {\n return new Promise((resolve) => {\n const handler: Handler<Events[typeof eventName]> = (payload) => {\n // 触发后立即注销,防止内存泄漏\n bus.off(eventName, handler)\n resolve(payload)\n }\n bus.on(eventName, handler)\n })\n}\n"],"names":[],"mappings":";;;;AAaO,MAAM,MAAM,IAAA;AACnB,GAAA,CAAI,IAAA,GAAO,CAAC,SAAA,KAAc;AACxB,EAAA,OAAO,IAAI,OAAA,CAAQ,CAAC,OAAA,KAAY;AAC9B,IAAA,MAAM,OAAA,GAA6C,CAAC,OAAA,KAAY;AAE9D,MAAA,GAAA,CAAI,GAAA,CAAI,WAAW,OAAO,CAAA;AAC1B,MAAA,OAAA,CAAQ,OAAO,CAAA;AAAA,IACjB,CAAA;AACA,IAAA,GAAA,CAAI,EAAA,CAAG,WAAW,OAAO,CAAA;AAAA,EAC3B,CAAC,CAAA;AACH,CAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"mitt.js","sources":["../../../../packages/utils/mitt.ts"],"sourcesContent":["import mitt, { Emitter, EventType, Handler } from 'mitt'\r\n\r\n// 扩展Emitter类型,添加asyncOn方法\r\n// interface ExtendedEmitter<T = Record<EventType, unknown>> extends Emitter<T> {\r\n// once: <T = any>(eventName: EventType) => Promise<T>\r\n// }\r\n// 1. 定义你的事件类型映射\r\ntype Events = {\r\n [key: string]: any\r\n}\r\ntype CustomEmitter<T extends Record<EventType, unknown>> = Emitter<T> & {\r\n once<K extends keyof T>(eventName: K): Promise<T[K]>\r\n}\r\nexport const bus = mitt<Events>() as CustomEmitter<Events>\r\nbus.once = (eventName) => {\r\n return new Promise((resolve) => {\r\n const handler: Handler<Events[typeof eventName]> = (payload) => {\r\n // 触发后立即注销,防止内存泄漏\r\n bus.off(eventName, handler)\r\n resolve(payload)\r\n }\r\n bus.on(eventName, handler)\r\n })\r\n}\r\n"],"names":[],"mappings":";;;;AAaO,MAAM,MAAM,IAAA;AACnB,GAAA,CAAI,IAAA,GAAO,CAAC,SAAA,KAAc;AACxB,EAAA,OAAO,IAAI,OAAA,CAAQ,CAAC,OAAA,KAAY;AAC9B,IAAA,MAAM,OAAA,GAA6C,CAAC,OAAA,KAAY;AAE9D,MAAA,GAAA,CAAI,GAAA,CAAI,WAAW,OAAO,CAAA;AAC1B,MAAA,OAAA,CAAQ,OAAO,CAAA;AAAA,IACjB,CAAA;AACA,IAAA,GAAA,CAAI,EAAA,CAAG,WAAW,OAAO,CAAA;AAAA,EAC3B,CAAC,CAAA;AACH,CAAA;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation.js","sources":["../../../../packages/utils/navigation.ts"],"sourcesContent":["import { useLocale } from '@el-plus/hooks/use-locale'\nconst { t } = useLocale()\n\nexport interface NavigationConfig {\n id?: number\n name?: string // 路由name\n title?: string // 标题\n url?: string\n query?: Record<string, string>\n}\nexport const gotoTaskTrace = (workflowId: string) => {\n const item: NavigationConfig = {\n id: Date.now(),\n name: t('ep.bpm.approvalLog'),\n url: `/bpm-pc/#/bpm/trace/taskTrace?pid=&aid=&wid=&tid=${workflowId}`,\n }\n if (window.parent && window.parent.openMenuSelect) {\n window.parent.openMenuSelect(item)\n } else {\n window.open(item.url)\n }\n}\n"],"names":["useLocale"],"mappings":";;;;AACA,MAAM,EAAE,CAAA,EAAE,GAAIA,mBAAA,EAAU;AASjB,MAAM,aAAA,GAAgB,CAAC,UAAA,KAAuB;AACnD,EAAA,MAAM,IAAA,GAAyB;AAAA,IAC7B,EAAA,EAAI,KAAK,GAAA,EAAI;AAAA,IACb,IAAA,EAAM,EAAE,oBAAoB,CAAA;AAAA,IAC5B,GAAA,EAAK,oDAAoD,UAAU,CAAA;AAAA,GACrE;AACA,EAAA,IAAI,MAAA,CAAO,MAAA,IAAU,MAAA,CAAO,MAAA,CAAO,cAAA,EAAgB;AACjD,IAAA,MAAA,CAAO,MAAA,CAAO,eAAe,IAAI,CAAA;AAAA,EACnC,CAAA,MAAO;AACL,IAAA,MAAA,CAAO,IAAA,CAAK,KAAK,GAAG,CAAA;AAAA,EACtB;AACF;;;;"}
|
|
1
|
+
{"version":3,"file":"navigation.js","sources":["../../../../packages/utils/navigation.ts"],"sourcesContent":["import { useLocale } from '@el-plus/hooks/use-locale'\r\nconst { t } = useLocale()\r\n\r\nexport interface NavigationConfig {\r\n id?: number\r\n name?: string // 路由name\r\n title?: string // 标题\r\n url?: string\r\n query?: Record<string, string>\r\n}\r\nexport const gotoTaskTrace = (workflowId: string) => {\r\n const item: NavigationConfig = {\r\n id: Date.now(),\r\n name: t('ep.bpm.approvalLog'),\r\n url: `/bpm-pc/#/bpm/trace/taskTrace?pid=&aid=&wid=&tid=${workflowId}`,\r\n }\r\n if (window.parent && window.parent.openMenuSelect) {\r\n window.parent.openMenuSelect(item)\r\n } else {\r\n window.open(item.url)\r\n }\r\n}\r\n"],"names":["useLocale"],"mappings":";;;;AACA,MAAM,EAAE,CAAA,EAAE,GAAIA,mBAAA,EAAU;AASjB,MAAM,aAAA,GAAgB,CAAC,UAAA,KAAuB;AACnD,EAAA,MAAM,IAAA,GAAyB;AAAA,IAC7B,EAAA,EAAI,KAAK,GAAA,EAAI;AAAA,IACb,IAAA,EAAM,EAAE,oBAAoB,CAAA;AAAA,IAC5B,GAAA,EAAK,oDAAoD,UAAU,CAAA;AAAA,GACrE;AACA,EAAA,IAAI,MAAA,CAAO,MAAA,IAAU,MAAA,CAAO,MAAA,CAAO,cAAA,EAAgB;AACjD,IAAA,MAAA,CAAO,MAAA,CAAO,eAAe,IAAI,CAAA;AAAA,EACnC,CAAA,MAAO;AACL,IAAA,MAAA,CAAO,IAAA,CAAK,KAAK,GAAG,CAAA;AAAA,EACtB;AACF;;;;"}
|
package/lib/utils/props.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.js","sources":["../../../../packages/utils/props.ts"],"sourcesContent":["import type { Api, ReqBefore, ReqAfter, Method } from '@el-plus/utils/http'\nimport type { PropType, SetupContext, MaybeRef, ExtractPropTypes } from 'vue'\nimport { useAttrs } from 'vue'\nexport const apiProps = {\n api: {\n type: [String, Function] as PropType<Api>,\n },\n method: {\n type: String as PropType<Method>,\n },\n reqData: {\n type: Object,\n },\n reqParams: {\n type: Object,\n },\n reqBefore: {\n type: Function as PropType<ReqBefore>,\n },\n reqAfter: {\n type: Function as PropType<ReqAfter>,\n },\n}\ntype IVisible = boolean | ((T: unknown) => boolean)\nexport const visibleProps = {\n show: {\n type: [Boolean, Function] as PropType<IVisible>,\n },\n hide: {\n type: [Boolean, Function] as PropType<IVisible>,\n },\n}\nexport type VisibleProps = ExtractPropTypes<typeof visibleProps>\nexport const prepareProps = <T extends Record<string, any>>( // eslint-disable-line @typescript-eslint/no-explicit-any\n props: T,\n excludeKeys: string[] = [],\n): Partial<T> => {\n return Object.keys(props).reduce((acc, key) => {\n if (!excludeKeys.includes(key)) {\n acc[key as keyof T] = props[key]\n }\n return acc\n }, {} as Partial<T>)\n}\n\nexport type IDisabled = boolean | ((...args: any[]) => boolean)\nexport const disabledProps = {\n disabled: {\n type: [Boolean, Function] as PropType<IDisabled>,\n },\n}\nexport type DisabledProps = ExtractPropTypes<typeof disabledProps>\nexport const prepareEvents = <T extends Record<string, unknown> | string[]>(\n emit: SetupContext<T>['emit'],\n eventKeys: string[],\n // (keyof T & string)[] = [],\n) => {\n return eventKeys.reduce(\n (acc, key) => {\n // 转换on+事件名\n let eventName\n if (key.startsWith('on')) {\n eventName = key\n } else {\n if (key.includes('-')) {\n eventName =\n 'on' +\n key\n .split('-')\n .map((word) => word.charAt(0).toUpperCase() + word.slice(1))\n .join('')\n } else {\n eventName = `on${key.charAt(0).toUpperCase()}${key.slice(1)}`\n }\n }\n acc[eventName] = (...args: unknown[]) => emit(key, ...args)\n return acc\n },\n {} as Record<string, unknown>,\n )\n}\n\nexport const prepareClassNames = () => {\n return useAttrs().class || ''\n}\nexport const prepareStyles = () => {\n return useAttrs().style || {}\n}\n"],"names":["useAttrs"],"mappings":";;;;AAGO,MAAM,QAAA,GAAW;AAAA,EACtB,GAAA,EAAK;AAAA,IACH,IAAA,EAAM,CAAC,MAAA,EAAQ,QAAQ;AAAA,GACzB;AAAA,EACA,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM;AAAA,GACR;AAAA,EACA,OAAA,EAAS;AAAA,IACP,IAAA,EAAM;AAAA,GACR;AAAA,EACA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM;AAAA,GACR;AAAA,EACA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM;AAAA,GACR;AAAA,EACA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM;AAAA;AAEV;AAEO,MAAM,YAAA,GAAe;AAAA,EAC1B,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM,CAAC,OAAA,EAAS,QAAQ;AAAA,GAC1B;AAAA,EACA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM,CAAC,OAAA,EAAS,QAAQ;AAAA;AAE5B;AAEO,MAAM,YAAA,GAAe,CAC1B,KAAA,EACA,WAAA,GAAwB,EAAC,KACV;AACf,EAAA,OAAO,OAAO,IAAA,CAAK,KAAK,EAAE,MAAA,CAAO,CAAC,KAAK,GAAA,KAAQ;AAC7C,IAAA,IAAI,CAAC,WAAA,CAAY,QAAA,CAAS,GAAG,CAAA,EAAG;AAC9B,MAAA,GAAA,CAAI,GAAc,CAAA,GAAI,KAAA,CAAM,GAAG,CAAA;AAAA,IACjC;AACA,IAAA,OAAO,GAAA;AAAA,EACT,CAAA,EAAG,EAAgB,CAAA;AACrB;AAGO,MAAM,aAAA,GAAgB;AAAA,EAC3B,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,CAAC,OAAA,EAAS,QAAQ;AAAA;AAE5B;AAEO,MAAM,aAAA,GAAgB,CAC3B,IAAA,EACA,SAAA,KAEG;AACH,EAAA,OAAO,SAAA,CAAU,MAAA;AAAA,IACf,CAAC,KAAK,GAAA,KAAQ;AAEZ,MAAA,IAAI,SAAA;AACJ,MAAA,IAAI,GAAA,CAAI,UAAA,CAAW,IAAI,CAAA,EAAG;AACxB,QAAA,SAAA,GAAY,GAAA;AAAA,MACd,CAAA,MAAO;AACL,QAAA,IAAI,GAAA,CAAI,QAAA,CAAS,GAAG,CAAA,EAAG;AACrB,UAAA,SAAA,GACE,IAAA,GACA,IACG,KAAA,CAAM,GAAG,EACT,GAAA,CAAI,CAAC,SAAS,IAAA,CAAK,MAAA,CAAO,CAAC,CAAA,CAAE,WAAA,KAAgB,IAAA,CAAK,KAAA,CAAM,CAAC,CAAC,CAAA,CAC1D,KAAK,EAAE,CAAA;AAAA,QACd,CAAA,MAAO;AACL,UAAA,SAAA,GAAY,CAAA,EAAA,EAAK,GAAA,CAAI,MAAA,CAAO,CAAC,CAAA,CAAE,WAAA,EAAa,CAAA,EAAG,GAAA,CAAI,KAAA,CAAM,CAAC,CAAC,CAAA,CAAA;AAAA,QAC7D;AAAA,MACF;AACA,MAAA,GAAA,CAAI,SAAS,CAAA,GAAI,CAAA,GAAI,SAAoB,IAAA,CAAK,GAAA,EAAK,GAAG,IAAI,CAAA;AAC1D,MAAA,OAAO,GAAA;AAAA,IACT,CAAA;AAAA,IACA;AAAC,GACH;AACF;AAEO,MAAM,oBAAoB,MAAM;AACrC,EAAA,OAAOA,YAAA,GAAW,KAAA,IAAS,EAAA;AAC7B;AACO,MAAM,gBAAgB,MAAM;AACjC,EAAA,OAAOA,YAAA,EAAS,CAAE,KAAA,IAAS,EAAC;AAC9B;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"props.js","sources":["../../../../packages/utils/props.ts"],"sourcesContent":["import type { Api, ReqBefore, ReqAfter, Method } from '@el-plus/utils/http'\r\nimport type { PropType, SetupContext, MaybeRef, ExtractPropTypes } from 'vue'\r\nimport { useAttrs } from 'vue'\r\nexport const apiProps = {\r\n api: {\r\n type: [String, Function] as PropType<Api>,\r\n },\r\n method: {\r\n type: String as PropType<Method>,\r\n },\r\n reqData: {\r\n type: Object,\r\n },\r\n reqParams: {\r\n type: Object,\r\n },\r\n reqBefore: {\r\n type: Function as PropType<ReqBefore>,\r\n },\r\n reqAfter: {\r\n type: Function as PropType<ReqAfter>,\r\n },\r\n}\r\ntype IVisible = boolean | ((T: unknown) => boolean)\r\nexport const visibleProps = {\r\n show: {\r\n type: [Boolean, Function] as PropType<IVisible>,\r\n },\r\n hide: {\r\n type: [Boolean, Function] as PropType<IVisible>,\r\n },\r\n}\r\nexport type VisibleProps = ExtractPropTypes<typeof visibleProps>\r\nexport const prepareProps = <T extends Record<string, any>>( // eslint-disable-line @typescript-eslint/no-explicit-any\r\n props: T,\r\n excludeKeys: string[] = [],\r\n): Partial<T> => {\r\n return Object.keys(props).reduce((acc, key) => {\r\n if (!excludeKeys.includes(key)) {\r\n acc[key as keyof T] = props[key]\r\n }\r\n return acc\r\n }, {} as Partial<T>)\r\n}\r\n\r\nexport type IDisabled = boolean | ((...args: any[]) => boolean)\r\nexport const disabledProps = {\r\n disabled: {\r\n type: [Boolean, Function] as PropType<IDisabled>,\r\n },\r\n}\r\nexport type DisabledProps = ExtractPropTypes<typeof disabledProps>\r\nexport const prepareEvents = <T extends Record<string, unknown> | string[]>(\r\n emit: SetupContext<T>['emit'],\r\n eventKeys: string[],\r\n // (keyof T & string)[] = [],\r\n) => {\r\n return eventKeys.reduce(\r\n (acc, key) => {\r\n // 转换on+事件名\r\n let eventName\r\n if (key.startsWith('on')) {\r\n eventName = key\r\n } else {\r\n if (key.includes('-')) {\r\n eventName =\r\n 'on' +\r\n key\r\n .split('-')\r\n .map((word) => word.charAt(0).toUpperCase() + word.slice(1))\r\n .join('')\r\n } else {\r\n eventName = `on${key.charAt(0).toUpperCase()}${key.slice(1)}`\r\n }\r\n }\r\n acc[eventName] = (...args: unknown[]) => emit(key, ...args)\r\n return acc\r\n },\r\n {} as Record<string, unknown>,\r\n )\r\n}\r\n\r\nexport const prepareClassNames = () => {\r\n return useAttrs().class || ''\r\n}\r\nexport const prepareStyles = () => {\r\n return useAttrs().style || {}\r\n}\r\n"],"names":["useAttrs"],"mappings":";;;;AAGO,MAAM,QAAA,GAAW;AAAA,EACtB,GAAA,EAAK;AAAA,IACH,IAAA,EAAM,CAAC,MAAA,EAAQ,QAAQ;AAAA,GACzB;AAAA,EACA,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM;AAAA,GACR;AAAA,EACA,OAAA,EAAS;AAAA,IACP,IAAA,EAAM;AAAA,GACR;AAAA,EACA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM;AAAA,GACR;AAAA,EACA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM;AAAA,GACR;AAAA,EACA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM;AAAA;AAEV;AAEO,MAAM,YAAA,GAAe;AAAA,EAC1B,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM,CAAC,OAAA,EAAS,QAAQ;AAAA,GAC1B;AAAA,EACA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM,CAAC,OAAA,EAAS,QAAQ;AAAA;AAE5B;AAEO,MAAM,YAAA,GAAe,CAC1B,KAAA,EACA,WAAA,GAAwB,EAAC,KACV;AACf,EAAA,OAAO,OAAO,IAAA,CAAK,KAAK,EAAE,MAAA,CAAO,CAAC,KAAK,GAAA,KAAQ;AAC7C,IAAA,IAAI,CAAC,WAAA,CAAY,QAAA,CAAS,GAAG,CAAA,EAAG;AAC9B,MAAA,GAAA,CAAI,GAAc,CAAA,GAAI,KAAA,CAAM,GAAG,CAAA;AAAA,IACjC;AACA,IAAA,OAAO,GAAA;AAAA,EACT,CAAA,EAAG,EAAgB,CAAA;AACrB;AAGO,MAAM,aAAA,GAAgB;AAAA,EAC3B,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,CAAC,OAAA,EAAS,QAAQ;AAAA;AAE5B;AAEO,MAAM,aAAA,GAAgB,CAC3B,IAAA,EACA,SAAA,KAEG;AACH,EAAA,OAAO,SAAA,CAAU,MAAA;AAAA,IACf,CAAC,KAAK,GAAA,KAAQ;AAEZ,MAAA,IAAI,SAAA;AACJ,MAAA,IAAI,GAAA,CAAI,UAAA,CAAW,IAAI,CAAA,EAAG;AACxB,QAAA,SAAA,GAAY,GAAA;AAAA,MACd,CAAA,MAAO;AACL,QAAA,IAAI,GAAA,CAAI,QAAA,CAAS,GAAG,CAAA,EAAG;AACrB,UAAA,SAAA,GACE,IAAA,GACA,IACG,KAAA,CAAM,GAAG,EACT,GAAA,CAAI,CAAC,SAAS,IAAA,CAAK,MAAA,CAAO,CAAC,CAAA,CAAE,WAAA,KAAgB,IAAA,CAAK,KAAA,CAAM,CAAC,CAAC,CAAA,CAC1D,KAAK,EAAE,CAAA;AAAA,QACd,CAAA,MAAO;AACL,UAAA,SAAA,GAAY,CAAA,EAAA,EAAK,GAAA,CAAI,MAAA,CAAO,CAAC,CAAA,CAAE,WAAA,EAAa,CAAA,EAAG,GAAA,CAAI,KAAA,CAAM,CAAC,CAAC,CAAA,CAAA;AAAA,QAC7D;AAAA,MACF;AACA,MAAA,GAAA,CAAI,SAAS,CAAA,GAAI,CAAA,GAAI,SAAoB,IAAA,CAAK,GAAA,EAAK,GAAG,IAAI,CAAA;AAC1D,MAAA,OAAO,GAAA;AAAA,IACT,CAAA;AAAA,IACA;AAAC,GACH;AACF;AAEO,MAAM,oBAAoB,MAAM;AACrC,EAAA,OAAOA,YAAA,GAAW,KAAA,IAAS,EAAA;AAC7B;AACO,MAAM,gBAAgB,MAAM;AACjC,EAAA,OAAOA,YAAA,EAAS,CAAE,KAAA,IAAS,EAAC;AAC9B;;;;;;;;;;"}
|
package/lib/utils/time.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time.js","sources":["../../../../packages/utils/time.ts"],"sourcesContent":["import dayjs from 'dayjs'\nexport const getUnifyTime = function (\n date: string | number | Date,\n format?: string,\n): string | number | null {\n if (!date) return date === 0 ? null : date\n if (format === 'date') {\n format = 'YYYY-MM-DD'\n } else if (format === 'time') {\n format = 'YYYY-MM-DD HH:mm:ss'\n }\n if (format === 's') return dayjs(date).startOf('day').valueOf()\n if (format === 'e') return dayjs(date).endOf('day').valueOf()\n return format ? dayjs(date).format(format) : dayjs(date).valueOf()\n}\nexport { dayjs }\n"],"names":[],"mappings":";;;;AACO,MAAM,YAAA,GAAe,SAC1B,IAAA,EACA,MAAA,EACwB;AACxB,EAAA,IAAI,CAAC,IAAA,EAAM,OAAO,IAAA,KAAS,IAAI,IAAA,GAAO,IAAA;AACtC,EAAA,IAAI,WAAW,MAAA,EAAQ;AACrB,IAAA,MAAA,GAAS,YAAA;AAAA,EACX,CAAA,MAAA,IAAW,WAAW,MAAA,EAAQ;AAC5B,IAAA,MAAA,GAAS,qBAAA;AAAA,EACX;AACA,EAAA,IAAI,MAAA,KAAW,KAAK,OAAO,KAAA,CAAM,IAAI,CAAA,CAAE,OAAA,CAAQ,KAAK,CAAA,CAAE,OAAA,EAAQ;AAC9D,EAAA,IAAI,MAAA,KAAW,KAAK,OAAO,KAAA,CAAM,IAAI,CAAA,CAAE,KAAA,CAAM,KAAK,CAAA,CAAE,OAAA,EAAQ;AAC5D,EAAA,OAAO,MAAA,GAAS,KAAA,CAAM,IAAI,CAAA,CAAE,MAAA,CAAO,MAAM,CAAA,GAAI,KAAA,CAAM,IAAI,CAAA,CAAE,OAAA,EAAQ;AACnE;;;;;"}
|
|
1
|
+
{"version":3,"file":"time.js","sources":["../../../../packages/utils/time.ts"],"sourcesContent":["import dayjs from 'dayjs'\r\nexport const getUnifyTime = function (\r\n date: string | number | Date,\r\n format?: string,\r\n): string | number | null {\r\n if (!date) return date === 0 ? null : date\r\n if (format === 'date') {\r\n format = 'YYYY-MM-DD'\r\n } else if (format === 'time') {\r\n format = 'YYYY-MM-DD HH:mm:ss'\r\n }\r\n if (format === 's') return dayjs(date).startOf('day').valueOf()\r\n if (format === 'e') return dayjs(date).endOf('day').valueOf()\r\n return format ? dayjs(date).format(format) : dayjs(date).valueOf()\r\n}\r\nexport { dayjs }\r\n"],"names":[],"mappings":";;;;AACO,MAAM,YAAA,GAAe,SAC1B,IAAA,EACA,MAAA,EACwB;AACxB,EAAA,IAAI,CAAC,IAAA,EAAM,OAAO,IAAA,KAAS,IAAI,IAAA,GAAO,IAAA;AACtC,EAAA,IAAI,WAAW,MAAA,EAAQ;AACrB,IAAA,MAAA,GAAS,YAAA;AAAA,EACX,CAAA,MAAA,IAAW,WAAW,MAAA,EAAQ;AAC5B,IAAA,MAAA,GAAS,qBAAA;AAAA,EACX;AACA,EAAA,IAAI,MAAA,KAAW,KAAK,OAAO,KAAA,CAAM,IAAI,CAAA,CAAE,OAAA,CAAQ,KAAK,CAAA,CAAE,OAAA,EAAQ;AAC9D,EAAA,IAAI,MAAA,KAAW,KAAK,OAAO,KAAA,CAAM,IAAI,CAAA,CAAE,KAAA,CAAM,KAAK,CAAA,CAAE,OAAA,EAAQ;AAC5D,EAAA,OAAO,MAAA,GAAS,KAAA,CAAM,IAAI,CAAA,CAAE,MAAA,CAAO,MAAM,CAAA,GAAI,KAAA,CAAM,IAAI,CAAA,CAAE,OAAA,EAAQ;AACnE;;;;;"}
|
package/lib/utils/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../../../../packages/utils/utils.ts"],"sourcesContent":["export const mergeListByKey = (defaultList, list, key = 'prop') => {\n // 合并默认按钮属性\n list.forEach((item) => {\n const defaultIndex = defaultList.findIndex(\n (item1) => item1[key] === item[key],\n )\n if (defaultIndex !== -1) {\n defaultList[defaultIndex] = {\n ...defaultList[defaultIndex],\n ...item,\n }\n }\n })\n const allList = defaultList.concat(list!)\n const mergeList = allList.reduce((arr, item) => {\n if (!Reflect.has(item, key) || !arr.some((obj) => obj[key] === item[key])) {\n arr.push(item)\n }\n return arr\n }, [])\n return mergeList\n}\n\nexport function bindMethods<T extends object>(instance: T): void {\n const prototype = Object.getPrototypeOf(instance)\n const propertyNames = Object.getOwnPropertyNames(prototype)\n\n propertyNames.forEach((propertyName) => {\n const descriptor = Object.getOwnPropertyDescriptor(prototype, propertyName)\n const propertyValue = instance[propertyName as keyof T]\n\n if (\n typeof propertyValue === 'function' &&\n propertyName !== 'constructor' &&\n descriptor &&\n !descriptor.get &&\n !descriptor.set\n ) {\n instance[propertyName as keyof T] = propertyValue.bind(instance)\n }\n })\n}\n"],"names":[],"mappings":";;AAAO,MAAM,cAAA,GAAiB,CAAC,WAAA,EAAa,IAAA,EAAM,MAAM,MAAA,KAAW;AAEjE,EAAA,IAAA,CAAK,OAAA,CAAQ,CAAC,IAAA,KAAS;AACrB,IAAA,MAAM,eAAe,WAAA,CAAY,SAAA;AAAA,MAC/B,CAAC,KAAA,KAAU,KAAA,CAAM,GAAG,CAAA,KAAM,KAAK,GAAG;AAAA,KACpC;AACA,IAAA,IAAI,iBAAiB,EAAA,EAAI;AACvB,MAAA,WAAA,CAAY,YAAY,CAAA,GAAI;AAAA,QAC1B,GAAG,YAAY,YAAY,CAAA;AAAA,QAC3B,GAAG;AAAA,OACL;AAAA,IACF;AAAA,EACF,CAAC,CAAA;AACD,EAAA,MAAM,OAAA,GAAU,WAAA,CAAY,MAAA,CAAO,IAAK,CAAA;AACxC,EAAA,MAAM,SAAA,GAAY,OAAA,CAAQ,MAAA,CAAO,CAAC,KAAK,IAAA,KAAS;AAC9C,IAAA,IAAI,CAAC,OAAA,CAAQ,GAAA,CAAI,IAAA,EAAM,GAAG,KAAK,CAAC,GAAA,CAAI,IAAA,CAAK,CAAC,QAAQ,GAAA,CAAI,GAAG,MAAM,IAAA,CAAK,GAAG,CAAC,CAAA,EAAG;AACzE,MAAA,GAAA,CAAI,KAAK,IAAI,CAAA;AAAA,IACf;AACA,IAAA,OAAO,GAAA;AAAA,EACT,CAAA,EAAG,EAAE,CAAA;AACL,EAAA,OAAO,SAAA;AACT;AAEO,SAAS,YAA8B,QAAA,EAAmB;AAC/D,EAAA,MAAM,SAAA,GAAY,MAAA,CAAO,cAAA,CAAe,QAAQ,CAAA;AAChD,EAAA,MAAM,aAAA,GAAgB,MAAA,CAAO,mBAAA,CAAoB,SAAS,CAAA;AAE1D,EAAA,aAAA,CAAc,OAAA,CAAQ,CAAC,YAAA,KAAiB;AACtC,IAAA,MAAM,UAAA,GAAa,MAAA,CAAO,wBAAA,CAAyB,SAAA,EAAW,YAAY,CAAA;AAC1E,IAAA,MAAM,aAAA,GAAgB,SAAS,YAAuB,CAAA;AAEtD,IAAA,IACE,OAAO,aAAA,KAAkB,UAAA,IACzB,YAAA,KAAiB,aAAA,IACjB,UAAA,IACA,CAAC,UAAA,CAAW,GAAA,IACZ,CAAC,UAAA,CAAW,GAAA,EACZ;AACA,MAAA,QAAA,CAAS,YAAuB,CAAA,GAAI,aAAA,CAAc,IAAA,CAAK,QAAQ,CAAA;AAAA,IACjE;AAAA,EACF,CAAC,CAAA;AACH;;;;;"}
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../../../../packages/utils/utils.ts"],"sourcesContent":["export const mergeListByKey = (defaultList, list, key = 'prop') => {\r\n // 合并默认按钮属性\r\n list.forEach((item) => {\r\n const defaultIndex = defaultList.findIndex(\r\n (item1) => item1[key] === item[key],\r\n )\r\n if (defaultIndex !== -1) {\r\n defaultList[defaultIndex] = {\r\n ...defaultList[defaultIndex],\r\n ...item,\r\n }\r\n }\r\n })\r\n const allList = defaultList.concat(list!)\r\n const mergeList = allList.reduce((arr, item) => {\r\n if (!Reflect.has(item, key) || !arr.some((obj) => obj[key] === item[key])) {\r\n arr.push(item)\r\n }\r\n return arr\r\n }, [])\r\n return mergeList\r\n}\r\n\r\nexport function bindMethods<T extends object>(instance: T): void {\r\n const prototype = Object.getPrototypeOf(instance)\r\n const propertyNames = Object.getOwnPropertyNames(prototype)\r\n\r\n propertyNames.forEach((propertyName) => {\r\n const descriptor = Object.getOwnPropertyDescriptor(prototype, propertyName)\r\n const propertyValue = instance[propertyName as keyof T]\r\n\r\n if (\r\n typeof propertyValue === 'function' &&\r\n propertyName !== 'constructor' &&\r\n descriptor &&\r\n !descriptor.get &&\r\n !descriptor.set\r\n ) {\r\n instance[propertyName as keyof T] = propertyValue.bind(instance)\r\n }\r\n })\r\n}\r\n"],"names":[],"mappings":";;AAAO,MAAM,cAAA,GAAiB,CAAC,WAAA,EAAa,IAAA,EAAM,MAAM,MAAA,KAAW;AAEjE,EAAA,IAAA,CAAK,OAAA,CAAQ,CAAC,IAAA,KAAS;AACrB,IAAA,MAAM,eAAe,WAAA,CAAY,SAAA;AAAA,MAC/B,CAAC,KAAA,KAAU,KAAA,CAAM,GAAG,CAAA,KAAM,KAAK,GAAG;AAAA,KACpC;AACA,IAAA,IAAI,iBAAiB,EAAA,EAAI;AACvB,MAAA,WAAA,CAAY,YAAY,CAAA,GAAI;AAAA,QAC1B,GAAG,YAAY,YAAY,CAAA;AAAA,QAC3B,GAAG;AAAA,OACL;AAAA,IACF;AAAA,EACF,CAAC,CAAA;AACD,EAAA,MAAM,OAAA,GAAU,WAAA,CAAY,MAAA,CAAO,IAAK,CAAA;AACxC,EAAA,MAAM,SAAA,GAAY,OAAA,CAAQ,MAAA,CAAO,CAAC,KAAK,IAAA,KAAS;AAC9C,IAAA,IAAI,CAAC,OAAA,CAAQ,GAAA,CAAI,IAAA,EAAM,GAAG,KAAK,CAAC,GAAA,CAAI,IAAA,CAAK,CAAC,QAAQ,GAAA,CAAI,GAAG,MAAM,IAAA,CAAK,GAAG,CAAC,CAAA,EAAG;AACzE,MAAA,GAAA,CAAI,KAAK,IAAI,CAAA;AAAA,IACf;AACA,IAAA,OAAO,GAAA;AAAA,EACT,CAAA,EAAG,EAAE,CAAA;AACL,EAAA,OAAO,SAAA;AACT;AAEO,SAAS,YAA8B,QAAA,EAAmB;AAC/D,EAAA,MAAM,SAAA,GAAY,MAAA,CAAO,cAAA,CAAe,QAAQ,CAAA;AAChD,EAAA,MAAM,aAAA,GAAgB,MAAA,CAAO,mBAAA,CAAoB,SAAS,CAAA;AAE1D,EAAA,aAAA,CAAc,OAAA,CAAQ,CAAC,YAAA,KAAiB;AACtC,IAAA,MAAM,UAAA,GAAa,MAAA,CAAO,wBAAA,CAAyB,SAAA,EAAW,YAAY,CAAA;AAC1E,IAAA,MAAM,aAAA,GAAgB,SAAS,YAAuB,CAAA;AAEtD,IAAA,IACE,OAAO,aAAA,KAAkB,UAAA,IACzB,YAAA,KAAiB,aAAA,IACjB,UAAA,IACA,CAAC,UAAA,CAAW,GAAA,IACZ,CAAC,UAAA,CAAW,GAAA,EACZ;AACA,MAAA,QAAA,CAAS,YAAuB,CAAA,GAAI,aAAA,CAAc,IAAA,CAAK,QAAQ,CAAA;AAAA,IACjE;AAAA,EACF,CAAC,CAAA;AACH;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with-install.js","sources":["../../../../packages/utils/with-install.ts"],"sourcesContent":["import type { Plugin, App, Component } from 'vue'\n\n// 绑定install,使得可以app.use注册为全局组件\ntype SFCWithInstall<T> = T & Plugin\nexport function withInstall<T extends Component>(comp: T) {\n ;(comp as SFCWithInstall<T>).install = (app: App) => {\n app.component((comp as { name: string }).name, comp)\n }\n return comp as SFCWithInstall<T>\n}\n"],"names":[],"mappings":";;AAIO,SAAS,YAAiC,IAAA,EAAS;AACvD,EAAC,IAAA,CAA2B,OAAA,GAAU,CAAC,GAAA,KAAa;AACnD,IAAA,GAAA,CAAI,SAAA,CAAW,IAAA,CAA0B,IAAA,EAAM,IAAI,CAAA;AAAA,EACrD,CAAA;AACA,EAAA,OAAO,IAAA;AACT;;;;"}
|
|
1
|
+
{"version":3,"file":"with-install.js","sources":["../../../../packages/utils/with-install.ts"],"sourcesContent":["import type { Plugin, App, Component } from 'vue'\r\n\r\n// 绑定install,使得可以app.use注册为全局组件\r\ntype SFCWithInstall<T> = T & Plugin\r\nexport function withInstall<T extends Component>(comp: T) {\r\n ;(comp as SFCWithInstall<T>).install = (app: App) => {\r\n app.component((comp as { name: string }).name, comp)\r\n }\r\n return comp as SFCWithInstall<T>\r\n}\r\n"],"names":[],"mappings":";;AAIO,SAAS,YAAiC,IAAA,EAAS;AACvD,EAAC,IAAA,CAA2B,OAAA,GAAU,CAAC,GAAA,KAAa;AACnD,IAAA,GAAA,CAAI,SAAA,CAAW,IAAA,CAA0B,IAAA,EAAM,IAAI,CAAA;AAAA,EACrD,CAAA;AACA,EAAA,OAAO,IAAA;AACT;;;;"}
|
package/package.json
CHANGED
package/theme-chalk/base.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.fade-enter-active,.fade-leave-active{transition:opacity .3s ease}.fade-enter-from,.fade-leave-to{opacity:0}body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
|
|
1
|
+
.fade-enter-active,.fade-leave-active{transition:opacity .3s ease}.fade-enter-from,.fade-leave-to{opacity:0}body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}:root{--el-disabled-text-color:#000}
|
package/theme-chalk/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.fade-enter-active,.fade-leave-active{transition:opacity .3s ease}.fade-enter-from,.fade-leave-to{opacity:0}body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}.ep-form{position:relative}.ep-form__fold{bottom:23px;color:#367ef5;cursor:pointer;font-size:14px;position:absolute;right:0;text-align:center;width:70px}.ep-form__fold:hover{text-decoration:underline}.ep-form.is-fold{padding-right:70px}.ep-form .el-form-item--small{margin-bottom:18px}.ep-form .el-form-item--small.is-hide-label .el-form-item__label{display:none}.ep-form .el-form-item--small .el-form-item__label{display:block;height:32px;line-height:32px;overflow:hidden;padding-left:18px;padding-right:6px;text-overflow:ellipsis;white-space:nowrap}.ep-form .el-form-item--small .el-form-item__content{font-size:13px;line-height:32px}.ep-form .el-form-item--small .el-form-item__content .el-input{font-size:13px;height:32px}.ep-form .el-form-item--small .el-form-item__content .el-textarea__inner{font-size:13px!important}.ep-form .el-form-item--small .el-form-item__content .el-select__wrapper{font-size:13px;line-height:32px;min-height:32px}.ep-form .el-form-item--small .el-form-item__content .el-date-editor .el-range-input{font-size:13px}.ep-form .el-form-item--small .el-form-item__content .ep-title{margin-bottom:-8px}.ep-table{width:100%}.ep-table__action-buttons{white-space:nowrap}.ep-table .el-table{font-size:13px}.ep-table .el-table .el-table__cell .is-edit{cursor:pointer}.ep-table .el-table .el-table__cell .is-edit:hover{color:#409eff}.ep-table .el-table .el-table__cell .is-edit .el-icon{vertical-align:-2px}.ep-table .el-table .el-table__cell.is-center .el-link{margin:0 auto;text-align:center}.ep-table .el-table .cell{line-height:30px}.ep-table .el-table thead tr th{height:42px}.ep-table .el-table thead tr th .cell{line-height:20px}.ep-table .el-table thead tr th .el-checkbox__inner{height:14px;width:14px}.ep-table .el-table td,.ep-table .el-table th{padding:3px 0}.ep-table .el-form-item__error{position:unset;text-align:left}.ep-table .el-form-item{margin-bottom:0}.ep-table .el-form-item .el-form-item__label{padding:0}.ep-table .el-pagination{margin-top:12px;--el-pagination-font-size:13px}.ep-table .el-pagination .el-select{--el-select-font-size:13px}.ep-table .el-pagination .el-select .el-select__wrapper{font-size:13px}.ep-button{height:32px;padding:9px 15px}.ep-button.el-button--text{padding:0}.ep-button.el-button+.el-button{margin-left:10px}.el-message-box .el-message-box__btns .el-button{font-size:12px}.ep-search-list-page__middle{overflow:hidden}.ep-search-list-page__middle-left{float:left}.ep-search-list-page__middle-left>.el-button{margin:16px 0}.ep-search-list-page__middle-right{float:right}.ep-search-list-page__middle-right .el-button{margin:16px 0}.ep-title{width:100%}.ep-title__header{line-height:50px;overflow:hidden}.ep-title__title{float:left;font-size:15px;font-weight:500}.ep-title__toggle{color:#409eff;cursor:pointer;display:inline-block;font-size:14px;font-weight:400;margin-left:10px;white-space:nowrap}.ep-title__toggle .el-icon{transition:transform .3s;vertical-align:-2px}.ep-title.is-expanded .ep-title__toggle .el-icon{transform:rotate(-180deg)}.ep-title__buttons{float:right}.ep-title__content{overflow:hidden;transition:max-height .3s ease-in-out}.ep-header{display:flex;flex-wrap:wrap}.ep-header>.el-button{margin-bottom:10px}.ep-header .el-page-header .el-page-header__left{margin-right:-10px;margin-top:4px}.ep-header .el-page-header .el-page-header__title{white-space:nowrap}.ep-template-promise{position:relative;z-index:8888888888888888}.ep-dialog{padding:20px 25px 30px}.ep-dialog .el-dialog__headerbtn{height:56px}.ep-dialog .el-dialog__headerbtn .el-dialog__close{transform:scale(1.3)}.ep-dialog .el-dialog__header{text-align:center}.ep-dialog .el-dialog__header .el-dialog__title{color:#505050;font-size:16px;font-weight:600;line-height:24px;margin:4px}.ep-dialog .el-dialog__body{padding:25px 0 0}.ep-dialog__footer button{font-size:12px}.ep-choose-dialog__selected-count{color:#409eff;float:left;font-size:16px;line-height:32px}.ep-confirm-dialog{padding-bottom:20px}.ep-confirm-dialog .ep-dialog__footer{padding-top:0}.ep-custom-column__dialog .el-dialog__body{text-align:center}.ep-custom-column__dialog .el-transfer{display:inline-block}.ep-custom-column__dialog .el-transfer-panel__footer{border-bottom:0;height:0}.ep-custom-column__dialog .el-transfer-panel{overflow:visible}.ep-custom-column__dialog .el-transfer__buttons button{width:100px}.ep-custom-column__dialog .el-transfer__buttons button span{font-size:13px}.ep-custom-column__operate{position:absolute;right:-100%;top:50%;transform:translate(calc(25% - 12px),32px)}.ep-custom-column__operate button{width:100px}.ep-custom-column__operate button span{font-size:13px}.no-cn__operate{transform:translate(calc(25% - 520px),32px)}.ep-link{font-size:13px}.ep-uni-vue{background:#fff}.ep-uni-vue__skeleton .el-skeleton__item{margin-top:10px}.ep-attachment__promise{width:100%}.ep-attachment__dialog--normal{background:none;position:static!important}.ep-attachment__dialog--normal .el-overlay-dialog{position:static}.ep-attachment__dialog--normal .el-overlay-dialog .el-dialog{margin:0;padding:0;width:auto!important}.ep-attachment__dialog--normal .el-overlay-dialog .el-dialog .el-dialog__header{display:none}.ep-attachment__dialog--normal .el-overlay-dialog .el-dialog .el-dialog__body{padding:0}.ep-attachment__handler{height:32px;padding:9px 15px}.ep-attachment__handler.el-button--text{padding:0}.ep-footer-info{color:#999;display:flex;font-size:12px;line-height:20px;margin-top:16px;padding-bottom:20px;width:100%}.ep-footer-info__item{margin-right:20px}.ep-tabs .el-tabs__header{height:32px;line-height:32px}.ep-tabs .el-tabs__header .el-tabs__nav{border:0}.ep-tabs .el-tabs__nav-wrap{margin-bottom:-2px}.ep-tabs .el-tabs__item{border:1px solid transparent!important;border-radius:2px 2px 0 0;color:#999;font-weight:500;height:32px;line-height:32px;margin-right:4px;margin-top:0!important}.ep-tabs .el-tabs__item:not(.is-active){background:#f2f2f2}.ep-tabs .el-tabs__item.is-active{border-color:#e4e7ed #e4e7ed #fff!important;color:#367ef5;margin-bottom:1px}.ep-tabs .el-tabs__item.is-active:before{background:#367ef5;border-radius:0 4px 4px 0;content:"";display:inline-block;height:14px;line-height:normal;margin-right:10px;text-align:left;vertical-align:middle;width:4px}.ep-select .el-select__wrapper.is-disabled{cursor:text}.ep-select .el-select__wrapper.is-disabled .el-select__selected-item{-webkit-user-select:initial;-moz-user-select:initial;user-select:auto}
|
|
1
|
+
.fade-enter-active,.fade-leave-active{transition:opacity .3s ease}.fade-enter-from,.fade-leave-to{opacity:0}body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}:root{--el-disabled-text-color:#000}.ep-form{position:relative}.ep-form__fold{bottom:23px;color:#367ef5;cursor:pointer;font-size:14px;position:absolute;right:0;text-align:center;width:70px}.ep-form__fold:hover{text-decoration:underline}.ep-form.is-fold{padding-right:70px}.ep-form .el-form-item--small{margin-bottom:18px}.ep-form .el-form-item--small.is-hide-label .el-form-item__label{display:none}.ep-form .el-form-item--small .el-form-item__label{display:block;height:32px;line-height:32px;overflow:hidden;padding-left:18px;padding-right:6px;text-overflow:ellipsis;white-space:nowrap}.ep-form .el-form-item--small .el-form-item__content{font-size:13px;line-height:32px}.ep-form .el-form-item--small .el-form-item__content .el-input{font-size:13px;height:32px}.ep-form .el-form-item--small .el-form-item__content .el-textarea__inner{font-size:13px!important}.ep-form .el-form-item--small .el-form-item__content .el-select__wrapper{font-size:13px;line-height:32px;min-height:32px}.ep-form .el-form-item--small .el-form-item__content .el-date-editor .el-range-input{font-size:13px}.ep-form .el-form-item--small .el-form-item__content .ep-title{margin-bottom:-8px}.ep-table{width:100%}.ep-table__action-buttons{white-space:nowrap}.ep-table .el-table{font-size:13px}.ep-table .el-table .el-table__cell .is-edit{cursor:pointer}.ep-table .el-table .el-table__cell .is-edit:hover{color:#409eff}.ep-table .el-table .el-table__cell .is-edit .el-icon{vertical-align:-2px}.ep-table .el-table .el-table__cell.is-center .el-link{margin:0 auto;text-align:center}.ep-table .el-table .cell{line-height:30px}.ep-table .el-table thead tr th{height:42px}.ep-table .el-table thead tr th .cell{line-height:20px}.ep-table .el-table thead tr th .el-checkbox__inner{height:14px;width:14px}.ep-table .el-table td,.ep-table .el-table th{padding:3px 0}.ep-table .el-form-item__error{position:unset;text-align:left}.ep-table .el-form-item{margin-bottom:0}.ep-table .el-form-item .el-form-item__label{padding:0}.ep-table .el-pagination{margin-top:12px;--el-pagination-font-size:13px}.ep-table .el-pagination .el-select{--el-select-font-size:13px}.ep-table .el-pagination .el-select .el-select__wrapper{font-size:13px}.ep-button{height:32px;padding:9px 15px}.ep-button.el-button--text{padding:0}.ep-button.el-button+.el-button{margin-left:10px}.el-message-box .el-message-box__btns .el-button{font-size:12px}.ep-search-list-page__middle{overflow:hidden}.ep-search-list-page__middle-left{float:left}.ep-search-list-page__middle-left>.el-button{margin:16px 0}.ep-search-list-page__middle-right{float:right}.ep-search-list-page__middle-right .el-button{margin:16px 0}.ep-title{width:100%}.ep-title__header{line-height:50px;overflow:hidden}.ep-title__title{float:left;font-size:15px;font-weight:500}.ep-title__toggle{color:#409eff;cursor:pointer;display:inline-block;font-size:14px;font-weight:400;margin-left:10px;white-space:nowrap}.ep-title__toggle .el-icon{transition:transform .3s;vertical-align:-2px}.ep-title.is-expanded .ep-title__toggle .el-icon{transform:rotate(-180deg)}.ep-title__buttons{float:right}.ep-title__content{overflow:hidden;transition:max-height .3s ease-in-out}.ep-header{display:flex;flex-wrap:wrap}.ep-header>.el-button{margin-bottom:10px}.ep-header .el-page-header .el-page-header__left{margin-right:-10px;margin-top:4px}.ep-header .el-page-header .el-page-header__title{white-space:nowrap}.ep-template-promise{position:relative;z-index:8888888888888888}.ep-dialog{padding:20px 25px 30px}.ep-dialog .el-dialog__headerbtn{height:56px}.ep-dialog .el-dialog__headerbtn .el-dialog__close{transform:scale(1.3)}.ep-dialog .el-dialog__header{text-align:center}.ep-dialog .el-dialog__header .el-dialog__title{color:#505050;font-size:16px;font-weight:600;line-height:24px;margin:4px}.ep-dialog .el-dialog__body{padding:25px 0 0}.ep-dialog__footer button{font-size:12px}.ep-choose-dialog__selected-count{color:#409eff;float:left;font-size:16px;line-height:32px}.ep-confirm-dialog{padding-bottom:20px}.ep-confirm-dialog .ep-dialog__footer{padding-top:0}.ep-custom-column__dialog .el-dialog__body{text-align:center}.ep-custom-column__dialog .el-transfer{display:inline-block}.ep-custom-column__dialog .el-transfer-panel__footer{border-bottom:0;height:0}.ep-custom-column__dialog .el-transfer-panel{overflow:visible}.ep-custom-column__dialog .el-transfer__buttons button{width:100px}.ep-custom-column__dialog .el-transfer__buttons button span{font-size:13px}.ep-custom-column__operate{position:absolute;right:-100%;top:50%;transform:translate(calc(25% - 12px),32px)}.ep-custom-column__operate button{width:100px}.ep-custom-column__operate button span{font-size:13px}.no-cn__operate{transform:translate(calc(25% - 520px),32px)}.ep-link{font-size:13px}.ep-uni-vue{background:#fff}.ep-uni-vue__skeleton .el-skeleton__item{margin-top:10px}.ep-attachment__promise{width:100%}.ep-attachment__dialog--normal{background:none;position:static!important}.ep-attachment__dialog--normal .el-overlay-dialog{position:static}.ep-attachment__dialog--normal .el-overlay-dialog .el-dialog{margin:0;padding:0;width:auto!important}.ep-attachment__dialog--normal .el-overlay-dialog .el-dialog .el-dialog__header{display:none}.ep-attachment__dialog--normal .el-overlay-dialog .el-dialog .el-dialog__body{padding:0}.ep-attachment__handler{height:32px;padding:9px 15px}.ep-attachment__handler.el-button--text{padding:0}.ep-footer-info{color:#999;display:flex;font-size:12px;line-height:20px;margin-top:16px;padding-bottom:20px;width:100%}.ep-footer-info__item{margin-right:20px}.ep-tabs .el-tabs__header{height:32px;line-height:32px}.ep-tabs .el-tabs__header .el-tabs__nav{border:0}.ep-tabs .el-tabs__nav-wrap{margin-bottom:-2px}.ep-tabs .el-tabs__item{border:1px solid transparent!important;border-radius:2px 2px 0 0;color:#999;font-weight:500;height:32px;line-height:32px;margin-right:4px;margin-top:0!important}.ep-tabs .el-tabs__item:not(.is-active){background:#f2f2f2}.ep-tabs .el-tabs__item.is-active{border-color:#e4e7ed #e4e7ed #fff!important;color:#367ef5;margin-bottom:1px}.ep-tabs .el-tabs__item.is-active:before{background:#367ef5;border-radius:0 4px 4px 0;content:"";display:inline-block;height:14px;line-height:normal;margin-right:10px;text-align:left;vertical-align:middle;width:4px}.ep-select .el-select__wrapper.is-disabled{cursor:text}.ep-select .el-select__wrapper.is-disabled .el-select__selected-item{-webkit-user-select:initial;-moz-user-select:initial;user-select:auto}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
@use 'mixins/mixins.scss' as *;
|
|
2
|
-
@use 'common/var.scss' as *;
|
|
3
|
-
|
|
4
|
-
@include b(attachment) {
|
|
5
|
-
@include e(promise) {
|
|
6
|
-
width:100%;
|
|
7
|
-
}
|
|
8
|
-
@include e(dialog) {
|
|
9
|
-
@include m(normal) {
|
|
10
|
-
background: none;
|
|
11
|
-
position: static !important;
|
|
12
|
-
|
|
13
|
-
.el-overlay-dialog {
|
|
14
|
-
position: static;
|
|
15
|
-
|
|
16
|
-
.el-dialog {
|
|
17
|
-
padding: 0;
|
|
18
|
-
margin: 0;
|
|
19
|
-
width: auto !important;
|
|
20
|
-
|
|
21
|
-
.el-dialog__header {
|
|
22
|
-
display: none;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.el-dialog__body {
|
|
26
|
-
padding: 0;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@include e(handler) {
|
|
34
|
-
padding: 9px 15px;
|
|
35
|
-
height: 32px;
|
|
36
|
-
&.el-button--text {
|
|
37
|
-
padding: 0;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
1
|
+
@use 'mixins/mixins.scss' as *;
|
|
2
|
+
@use 'common/var.scss' as *;
|
|
3
|
+
|
|
4
|
+
@include b(attachment) {
|
|
5
|
+
@include e(promise) {
|
|
6
|
+
width:100%;
|
|
7
|
+
}
|
|
8
|
+
@include e(dialog) {
|
|
9
|
+
@include m(normal) {
|
|
10
|
+
background: none;
|
|
11
|
+
position: static !important;
|
|
12
|
+
|
|
13
|
+
.el-overlay-dialog {
|
|
14
|
+
position: static;
|
|
15
|
+
|
|
16
|
+
.el-dialog {
|
|
17
|
+
padding: 0;
|
|
18
|
+
margin: 0;
|
|
19
|
+
width: auto !important;
|
|
20
|
+
|
|
21
|
+
.el-dialog__header {
|
|
22
|
+
display: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.el-dialog__body {
|
|
26
|
+
padding: 0;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@include e(handler) {
|
|
34
|
+
padding: 9px 15px;
|
|
35
|
+
height: 32px;
|
|
36
|
+
&.el-button--text {
|
|
37
|
+
padding: 0;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
40
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
@use 'common/var.scss' as *;
|
|
2
|
-
@use 'common/transition.scss';
|
|
1
|
+
@use 'common/var.scss' as *;
|
|
2
|
+
@use 'common/transition.scss';
|
|
3
3
|
@use 'common/common.scss';
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
@use 'mixins/mixins.scss' as *;
|
|
2
|
-
@use 'common/var.scss' as *;
|
|
3
|
-
|
|
4
|
-
@include b(button) {
|
|
5
|
-
padding: 9px 15px;
|
|
6
|
-
height: 32px;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
&.el-button--text {
|
|
10
|
-
padding: 0;
|
|
11
|
-
// border: 0;
|
|
12
|
-
// color: var(--el-button-hover-text-color)
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
&.el-button+.el-button {
|
|
16
|
-
margin-left: 10px;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
.el-message-box{
|
|
20
|
-
.el-message-box__btns .el-button{
|
|
21
|
-
font-size: 12px;
|
|
22
|
-
}
|
|
1
|
+
@use 'mixins/mixins.scss' as *;
|
|
2
|
+
@use 'common/var.scss' as *;
|
|
3
|
+
|
|
4
|
+
@include b(button) {
|
|
5
|
+
padding: 9px 15px;
|
|
6
|
+
height: 32px;
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
&.el-button--text {
|
|
10
|
+
padding: 0;
|
|
11
|
+
// border: 0;
|
|
12
|
+
// color: var(--el-button-hover-text-color)
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&.el-button+.el-button {
|
|
16
|
+
margin-left: 10px;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
.el-message-box{
|
|
20
|
+
.el-message-box__btns .el-button{
|
|
21
|
+
font-size: 12px;
|
|
22
|
+
}
|
|
23
23
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
.fade-enter-active,
|
|
2
|
-
.fade-leave-active {
|
|
3
|
-
transition: opacity 0.3s ease;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.fade-enter-from,
|
|
7
|
-
.fade-leave-to {
|
|
8
|
-
opacity: 0;
|
|
9
|
-
}
|
|
1
|
+
.fade-enter-active,
|
|
2
|
+
.fade-leave-active {
|
|
3
|
+
transition: opacity 0.3s ease;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.fade-enter-from,
|
|
7
|
+
.fade-leave-to {
|
|
8
|
+
opacity: 0;
|
|
9
|
+
}
|
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
@use 'mixins/mixins.scss' as *;
|
|
2
|
-
@use 'common/var.scss' as *;
|
|
3
|
-
|
|
4
|
-
@include b(custom-column) {
|
|
5
|
-
@include e(dialog) {
|
|
6
|
-
.el-dialog__body {
|
|
7
|
-
text-align: center;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.el-transfer {
|
|
11
|
-
display: inline-block;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.el-transfer-panel__footer {
|
|
15
|
-
border-bottom: 0;
|
|
16
|
-
height: 0;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.el-transfer-panel {
|
|
20
|
-
overflow: visible;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.el-transfer__buttons {
|
|
24
|
-
button {
|
|
25
|
-
width: 100px;
|
|
26
|
-
|
|
27
|
-
span {
|
|
28
|
-
font-size: 13px;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@include e(operate) {
|
|
36
|
-
position: absolute;
|
|
37
|
-
right: -100%;
|
|
38
|
-
top: 50%;
|
|
39
|
-
transform: translate(calc(25% - 12px), 32px);
|
|
40
|
-
|
|
41
|
-
button {
|
|
42
|
-
width: 100px;
|
|
43
|
-
|
|
44
|
-
span {
|
|
45
|
-
font-size: 13px;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.no-cn {
|
|
52
|
-
@include e(operate) {
|
|
53
|
-
transform: translate(calc(25% - 520px), 32px);
|
|
54
|
-
|
|
55
|
-
}
|
|
1
|
+
@use 'mixins/mixins.scss' as *;
|
|
2
|
+
@use 'common/var.scss' as *;
|
|
3
|
+
|
|
4
|
+
@include b(custom-column) {
|
|
5
|
+
@include e(dialog) {
|
|
6
|
+
.el-dialog__body {
|
|
7
|
+
text-align: center;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.el-transfer {
|
|
11
|
+
display: inline-block;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.el-transfer-panel__footer {
|
|
15
|
+
border-bottom: 0;
|
|
16
|
+
height: 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.el-transfer-panel {
|
|
20
|
+
overflow: visible;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.el-transfer__buttons {
|
|
24
|
+
button {
|
|
25
|
+
width: 100px;
|
|
26
|
+
|
|
27
|
+
span {
|
|
28
|
+
font-size: 13px;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@include e(operate) {
|
|
36
|
+
position: absolute;
|
|
37
|
+
right: -100%;
|
|
38
|
+
top: 50%;
|
|
39
|
+
transform: translate(calc(25% - 12px), 32px);
|
|
40
|
+
|
|
41
|
+
button {
|
|
42
|
+
width: 100px;
|
|
43
|
+
|
|
44
|
+
span {
|
|
45
|
+
font-size: 13px;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.no-cn {
|
|
52
|
+
@include e(operate) {
|
|
53
|
+
transform: translate(calc(25% - 520px), 32px);
|
|
54
|
+
|
|
55
|
+
}
|
|
56
56
|
}
|
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
@use 'mixins/mixins.scss' as *;
|
|
2
|
-
@use 'common/var.scss' as *;
|
|
3
|
-
.ep-template-promise{
|
|
4
|
-
z-index:8888888888888888;
|
|
5
|
-
position: relative;
|
|
6
|
-
}
|
|
7
|
-
@include b(dialog) {
|
|
8
|
-
padding: 20px 25px 30px;
|
|
9
|
-
|
|
10
|
-
.el-dialog__headerbtn {
|
|
11
|
-
height: 56px;
|
|
12
|
-
|
|
13
|
-
.el-dialog__close {
|
|
14
|
-
transform: scale(1.3);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.el-dialog__header {
|
|
19
|
-
text-align: center;
|
|
20
|
-
.el-dialog__title {
|
|
21
|
-
font-size: 16px;
|
|
22
|
-
font-weight: 600;
|
|
23
|
-
color: #505050;
|
|
24
|
-
margin: 4px;
|
|
25
|
-
line-height: 24px;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.el-dialog__body {
|
|
30
|
-
padding: 25px 0 0
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@include e(footer) {
|
|
34
|
-
// padding: 14px 0 0 0;
|
|
35
|
-
// text-align: right;
|
|
36
|
-
|
|
37
|
-
button {
|
|
38
|
-
font-size: 12px;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@include b(choose-dialog) {
|
|
45
|
-
@include e(selected-count) {
|
|
46
|
-
float: left;
|
|
47
|
-
color: $color-priamy;
|
|
48
|
-
line-height: 32px;
|
|
49
|
-
font-size: 16px;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
@include b(confirm-dialog) {
|
|
54
|
-
padding-bottom: 20px;
|
|
55
|
-
.ep-dialog__footer{
|
|
56
|
-
padding-top: 0;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
// .el-dialog--center{
|
|
60
|
-
// .el-dialog__footer{
|
|
61
|
-
// text-align: center;
|
|
62
|
-
// }
|
|
1
|
+
@use 'mixins/mixins.scss' as *;
|
|
2
|
+
@use 'common/var.scss' as *;
|
|
3
|
+
.ep-template-promise{
|
|
4
|
+
z-index:8888888888888888;
|
|
5
|
+
position: relative;
|
|
6
|
+
}
|
|
7
|
+
@include b(dialog) {
|
|
8
|
+
padding: 20px 25px 30px;
|
|
9
|
+
|
|
10
|
+
.el-dialog__headerbtn {
|
|
11
|
+
height: 56px;
|
|
12
|
+
|
|
13
|
+
.el-dialog__close {
|
|
14
|
+
transform: scale(1.3);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.el-dialog__header {
|
|
19
|
+
text-align: center;
|
|
20
|
+
.el-dialog__title {
|
|
21
|
+
font-size: 16px;
|
|
22
|
+
font-weight: 600;
|
|
23
|
+
color: #505050;
|
|
24
|
+
margin: 4px;
|
|
25
|
+
line-height: 24px;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.el-dialog__body {
|
|
30
|
+
padding: 25px 0 0
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@include e(footer) {
|
|
34
|
+
// padding: 14px 0 0 0;
|
|
35
|
+
// text-align: right;
|
|
36
|
+
|
|
37
|
+
button {
|
|
38
|
+
font-size: 12px;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@include b(choose-dialog) {
|
|
45
|
+
@include e(selected-count) {
|
|
46
|
+
float: left;
|
|
47
|
+
color: $color-priamy;
|
|
48
|
+
line-height: 32px;
|
|
49
|
+
font-size: 16px;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@include b(confirm-dialog) {
|
|
54
|
+
padding-bottom: 20px;
|
|
55
|
+
.ep-dialog__footer{
|
|
56
|
+
padding-top: 0;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
// .el-dialog--center{
|
|
60
|
+
// .el-dialog__footer{
|
|
61
|
+
// text-align: center;
|
|
62
|
+
// }
|
|
63
63
|
// }
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
@use 'mixins/mixins.scss' as *;
|
|
2
|
-
@use 'common/var.scss' as *;
|
|
3
|
-
|
|
4
|
-
@include b(footer-info) {
|
|
5
|
-
display: flex;
|
|
6
|
-
width: 100%;
|
|
7
|
-
margin-top: 16px;
|
|
8
|
-
padding-bottom: 20px;
|
|
9
|
-
color: #999;
|
|
10
|
-
font-size: 12px;
|
|
11
|
-
line-height: 20px;
|
|
12
|
-
|
|
13
|
-
@include e(item) {
|
|
14
|
-
margin-right: 20px;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
1
|
+
@use 'mixins/mixins.scss' as *;
|
|
2
|
+
@use 'common/var.scss' as *;
|
|
3
|
+
|
|
4
|
+
@include b(footer-info) {
|
|
5
|
+
display: flex;
|
|
6
|
+
width: 100%;
|
|
7
|
+
margin-top: 16px;
|
|
8
|
+
padding-bottom: 20px;
|
|
9
|
+
color: #999;
|
|
10
|
+
font-size: 12px;
|
|
11
|
+
line-height: 20px;
|
|
12
|
+
|
|
13
|
+
@include e(item) {
|
|
14
|
+
margin-right: 20px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
}
|