el-plus 0.0.118 → 0.0.119
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 +12 -0
- package/dist/index.css +1 -1
- package/dist/index.full.js +42 -31
- 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 +42 -31
- package/es/components/footer-info/src/footer-info.mjs +17 -6
- package/es/components/footer-info/src/footer-info.mjs.map +1 -1
- package/es/locale/lang/en.d.ts +9 -0
- package/es/locale/lang/en.mjs +9 -0
- package/es/locale/lang/en.mjs.map +1 -1
- package/es/locale/lang/zh-cn.d.ts +9 -0
- package/es/locale/lang/zh-cn.mjs +9 -0
- package/es/locale/lang/zh-cn.mjs.map +1 -1
- package/es/package.json.mjs +1 -1
- package/es/utils/file.mjs +5 -3
- package/es/utils/file.mjs.map +1 -1
- package/lib/components/footer-info/src/footer-info.js +17 -6
- package/lib/components/footer-info/src/footer-info.js.map +1 -1
- package/lib/locale/lang/en.d.ts +9 -0
- package/lib/locale/lang/en.js +9 -0
- package/lib/locale/lang/en.js.map +1 -1
- package/lib/locale/lang/zh-cn.d.ts +9 -0
- package/lib/locale/lang/zh-cn.js +9 -0
- package/lib/locale/lang/zh-cn.js.map +1 -1
- package/lib/package.json.js +1 -1
- package/lib/utils/file.js +5 -3
- package/lib/utils/file.js.map +1 -1
- package/package.json +1 -1
- package/theme-chalk/footer-info.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/footer-info.scss +3 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.js","sources":["../../../../../packages/locale/lang/en.ts"],"sourcesContent":["export default {\r\n name: 'en',\r\n ep: {\r\n dialog: {\r\n cancel: 'Cancel',\r\n confirm: 'OK',\r\n title: 'Prompt',\r\n },\r\n buttons: {\r\n cancel: 'Cancel',\r\n confirm: 'Confirm',\r\n secondConfirm: 'Are you sure to',\r\n secondConfirmEnd: '',\r\n prompt: 'prompt',\r\n },\r\n input: {\r\n placeholder: 'Please enter',\r\n },\r\n datePickerRange: {\r\n lastWeek: 'Last week',\r\n lastMonth: 'Last month',\r\n lastThreeMonth: 'Last three months',\r\n startTime: 'Start time',\r\n endTime: 'End time',\r\n },\r\n formItem: {\r\n required: 'Cannot be empty',\r\n },\r\n form: {\r\n more: 'More',\r\n collapse: 'Collapse',\r\n },\r\n header: {\r\n save: 'Save',\r\n edit: 'Edit',\r\n cancel: 'Cancel',\r\n refresh: 'Refresh',\r\n approvalLog: 'Approval log',\r\n },\r\n searchListPage: {\r\n add: 'Add',\r\n templateDownload: 'Template download',\r\n import: 'Import',\r\n export: 'Export',\r\n search: 'Search',\r\n clear: 'Clear',\r\n },\r\n table: {\r\n select: 'Select',\r\n serialNumber: 'No.',\r\n operation: 'Operation',\r\n },\r\n title: {\r\n collapse: 'Collapse',\r\n expand: 'Expand',\r\n },\r\n chooseDialog: {\r\n selected: 'Selected',\r\n unit: '',\r\n },\r\n customColumn: {\r\n columnSettings: 'Column settings',\r\n defineColumn: 'Define column',\r\n hiddenField: 'Hidden field',\r\n visibleField: 'Display field',\r\n moveLeft: 'Move left',\r\n moveRight: 'Move right',\r\n moveUp: 'Move up',\r\n moveDown: 'Move down',\r\n },\r\n bpm: {\r\n approvalLog: 'Approval log',\r\n },\r\n loading: {\r\n loading: 'Loading...',\r\n },\r\n http: {\r\n networkError: 'Network error, please check your connection and try again',\r\n timeout: 'Request timeout, please try again later',\r\n requestError: 'Request error. Please check your input and try again',\r\n authExpired: 'Login authentication expired, please log in again',\r\n forbidden:\r\n 'Access forbidden, you do not have permission to access this resource',\r\n notFound: 'Not found, the requested resource does not exist',\r\n serverError: 'Internal server error, please try again later',\r\n },\r\n attachment: {\r\n addAttachment: 'Add attachment',\r\n manageAttachment: 'Attachment management',\r\n operation: 'Operation',\r\n download: 'Download',\r\n delete: 'Delete',\r\n attachmentType: 'Attachment type',\r\n fileName: 'File name',\r\n creator: 'Creator',\r\n createTime: 'Create time',\r\n description: 'Description',\r\n },\r\n },\r\n}\r\n"],"names":[],"mappings":";;;;AAAA,SAAe;AAAA,EACb,IAAA,EAAM,IAAA;AAAA,EACN,EAAA,EAAI;AAAA,IACF,MAAA,EAAQ;AAAA,MACN,MAAA,EAAQ,QAAA;AAAA,MACR,OAAA,EAAS,IAAA;AAAA,MACT,KAAA,EAAO;AAAA,KACT;AAAA,IACA,OAAA,EAAS;AAAA,MACP,MAAA,EAAQ,QAAA;AAAA,MACR,OAAA,EAAS,SAAA;AAAA,MACT,aAAA,EAAe,iBAAA;AAAA,MACf,gBAAA,EAAkB,EAAA;AAAA,MAClB,MAAA,EAAQ;AAAA,KACV;AAAA,IACA,KAAA,EAAO;AAAA,MACL,WAAA,EAAa;AAAA,KACf;AAAA,IACA,eAAA,EAAiB;AAAA,MACf,QAAA,EAAU,WAAA;AAAA,MACV,SAAA,EAAW,YAAA;AAAA,MACX,cAAA,EAAgB,mBAAA;AAAA,MAChB,SAAA,EAAW,YAAA;AAAA,MACX,OAAA,EAAS;AAAA,KACX;AAAA,IACA,QAAA,EAAU;AAAA,MACR,QAAA,EAAU;AAAA,KACZ;AAAA,IACA,IAAA,EAAM;AAAA,MACJ,IAAA,EAAM,MAAA;AAAA,MACN,QAAA,EAAU;AAAA,KACZ;AAAA,IACA,MAAA,EAAQ;AAAA,MACN,IAAA,EAAM,MAAA;AAAA,MACN,IAAA,EAAM,MAAA;AAAA,MACN,MAAA,EAAQ,QAAA;AAAA,MACR,OAAA,EAAS,SAAA;AAAA,MACT,WAAA,EAAa;AAAA,KACf;AAAA,IACA,cAAA,EAAgB;AAAA,MACd,GAAA,EAAK,KAAA;AAAA,MACL,gBAAA,EAAkB,mBAAA;AAAA,MAClB,MAAA,EAAQ,QAAA;AAAA,MACR,MAAA,EAAQ,QAAA;AAAA,MACR,MAAA,EAAQ,QAAA;AAAA,MACR,KAAA,EAA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Aa;AAAA;
|
|
1
|
+
{"version":3,"file":"en.js","sources":["../../../../../packages/locale/lang/en.ts"],"sourcesContent":["export default {\r\n name: 'en',\r\n ep: {\r\n dialog: {\r\n cancel: 'Cancel',\r\n confirm: 'OK',\r\n title: 'Prompt',\r\n },\r\n buttons: {\r\n cancel: 'Cancel',\r\n confirm: 'Confirm',\r\n secondConfirm: 'Are you sure to',\r\n secondConfirmEnd: '',\r\n prompt: 'prompt',\r\n },\r\n input: {\r\n placeholder: 'Please enter',\r\n },\r\n datePickerRange: {\r\n lastWeek: 'Last week',\r\n lastMonth: 'Last month',\r\n lastThreeMonth: 'Last three months',\r\n startTime: 'Start time',\r\n endTime: 'End time',\r\n },\r\n formItem: {\r\n required: 'Cannot be empty',\r\n },\r\n form: {\r\n more: 'More',\r\n collapse: 'Collapse',\r\n },\r\n header: {\r\n save: 'Save',\r\n edit: 'Edit',\r\n cancel: 'Cancel',\r\n refresh: 'Refresh',\r\n approvalLog: 'Approval log',\r\n },\r\n searchListPage: {\r\n add: 'Add',\r\n templateDownload: 'Template download',\r\n import: 'Import',\r\n export: 'Export',\r\n search: 'Search',\r\n clear: 'Clear',\r\n },\r\n table: {\r\n select: 'Select',\r\n serialNumber: 'No.',\r\n operation: 'Operation',\r\n },\r\n title: {\r\n collapse: 'Collapse',\r\n expand: 'Expand',\r\n },\r\n chooseDialog: {\r\n selected: 'Selected',\r\n unit: '',\r\n },\r\n customColumn: {\r\n columnSettings: 'Column settings',\r\n defineColumn: 'Define column',\r\n hiddenField: 'Hidden field',\r\n visibleField: 'Display field',\r\n moveLeft: 'Move left',\r\n moveRight: 'Move right',\r\n moveUp: 'Move up',\r\n moveDown: 'Move down',\r\n },\r\n bpm: {\r\n approvalLog: 'Approval log',\r\n },\r\n loading: {\r\n loading: 'Loading...',\r\n },\r\n http: {\r\n networkError: 'Network error, please check your connection and try again',\r\n timeout: 'Request timeout, please try again later',\r\n requestError: 'Request error. Please check your input and try again',\r\n authExpired: 'Login authentication expired, please log in again',\r\n forbidden:\r\n 'Access forbidden, you do not have permission to access this resource',\r\n notFound: 'Not found, the requested resource does not exist',\r\n serverError: 'Internal server error, please try again later',\r\n },\r\n attachment: {\r\n addAttachment: 'Add attachment',\r\n manageAttachment: 'Attachment management',\r\n operation: 'Operation',\r\n download: 'Download',\r\n delete: 'Delete',\r\n attachmentType: 'Attachment type',\r\n fileName: 'File name',\r\n creator: 'Creator',\r\n createTime: 'Create time',\r\n description: 'Description',\r\n },\r\n footerInfo: {\r\n creator: 'Creator',\r\n createTime: 'Create time',\r\n editor: 'Last modified by',\r\n editTime: 'Last modified time',\r\n },\r\n file: {\r\n failedDetail: 'Failure details: ',\r\n },\r\n },\r\n}\r\n"],"names":[],"mappings":";;;;AAAA,SAAe;AAAA,EACb,IAAA,EAAM,IAAA;AAAA,EACN,EAAA,EAAI;AAAA,IACF,MAAA,EAAQ;AAAA,MACN,MAAA,EAAQ,QAAA;AAAA,MACR,OAAA,EAAS,IAAA;AAAA,MACT,KAAA,EAAO;AAAA,KACT;AAAA,IACA,OAAA,EAAS;AAAA,MACP,MAAA,EAAQ,QAAA;AAAA,MACR,OAAA,EAAS,SAAA;AAAA,MACT,aAAA,EAAe,iBAAA;AAAA,MACf,gBAAA,EAAkB,EAAA;AAAA,MAClB,MAAA,EAAQ;AAAA,KACV;AAAA,IACA,KAAA,EAAO;AAAA,MACL,WAAA,EAAa;AAAA,KACf;AAAA,IACA,eAAA,EAAiB;AAAA,MACf,QAAA,EAAU,WAAA;AAAA,MACV,SAAA,EAAW,YAAA;AAAA,MACX,cAAA,EAAgB,mBAAA;AAAA,MAChB,SAAA,EAAW,YAAA;AAAA,MACX,OAAA,EAAS;AAAA,KACX;AAAA,IACA,QAAA,EAAU;AAAA,MACR,QAAA,EAAU;AAAA,KACZ;AAAA,IACA,IAAA,EAAM;AAAA,MACJ,IAAA,EAAM,MAAA;AAAA,MACN,QAAA,EAAU;AAAA,KACZ;AAAA,IACA,MAAA,EAAQ;AAAA,MACN,IA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AA,EAAa;AAAA,KACf;AAAA,IACA,UAAA,EAAY;AAAA,MACV,aAAA,EAAe,gBAAA;AAAA,MACf,gBAAA,EAAkB,uBAAA;AAAA,MAClB,SAAA,EAAW,WAAA;AAAA,MACX,QAAA,EAAU,UAAA;AAAA,MACV,MAAA,EAAQ,QAAA;AAAA,MACR,cAAA,EAAgB,iBAAA;AAAA,MAChB,QAAA,EAAU,WAAA;AAAA,MACV,OAAA,EAAS,SAAA;AAAA,MACT,UAAA,EAAY,aAAA;AAAA,MACZ,WAAA,EAAa;AAAA,KACf;AAAA,IACA,UAAA,EAAY;AAAA,MACV,OAAA,EAAS,SAAA;AAAA,MACT,UAAA,EAAY,aAAA;AAAA,MACZ,MAAA,EAAQ,kBAAA;AAAA,MACR,QAAA,EAAU;AAAA,KACZ;AAAA,IACA,IAAA,EAAM;AAAA,MACJ,YAAA,EAAc;AAAA;AAChB;AAEJ,CAAA;;;;"}
|
|
@@ -95,6 +95,15 @@ declare const _default: {
|
|
|
95
95
|
createTime: string;
|
|
96
96
|
description: string;
|
|
97
97
|
};
|
|
98
|
+
footerInfo: {
|
|
99
|
+
creator: string;
|
|
100
|
+
createTime: string;
|
|
101
|
+
editor: string;
|
|
102
|
+
editTime: string;
|
|
103
|
+
};
|
|
104
|
+
file: {
|
|
105
|
+
failedDetail: string;
|
|
106
|
+
};
|
|
98
107
|
};
|
|
99
108
|
};
|
|
100
109
|
export default _default;
|
package/lib/locale/lang/zh-cn.js
CHANGED
|
@@ -99,6 +99,15 @@ var zhCn = {
|
|
|
99
99
|
creator: "\u521B\u5EFA\u4EBA",
|
|
100
100
|
createTime: "\u521B\u5EFA\u65F6\u95F4",
|
|
101
101
|
description: "\u8BF4\u660E"
|
|
102
|
+
},
|
|
103
|
+
footerInfo: {
|
|
104
|
+
creator: "\u5236\u5355\u4EBA",
|
|
105
|
+
createTime: "\u521B\u5EFA\u65F6\u95F4",
|
|
106
|
+
editor: "\u6700\u65B0\u4FEE\u6539\u4EBA",
|
|
107
|
+
editTime: "\u6700\u65B0\u4FEE\u6539\u65F6\u95F4"
|
|
108
|
+
},
|
|
109
|
+
file: {
|
|
110
|
+
failedDetail: "\u5931\u8D25\u8BE6\u60C5\uFF1A"
|
|
102
111
|
}
|
|
103
112
|
}
|
|
104
113
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zh-cn.js","sources":["../../../../../packages/locale/lang/zh-cn.ts"],"sourcesContent":["export default {\r\n name: 'zh-cn',\r\n ep: {\r\n dialog: {\r\n cancel: '取消',\r\n confirm: '确定',\r\n title: '提示',\r\n },\r\n buttons: {\r\n cancel: '取消',\r\n confirm: '确定',\r\n secondConfirm: '确定要',\r\n secondConfirmEnd: '吗',\r\n prompt: '提示',\r\n },\r\n input: {\r\n placeholder: '请输入',\r\n },\r\n datePickerRange: {\r\n lastWeek: '最近一周',\r\n lastMonth: '最近一个月',\r\n lastThreeMonth: '最近三个月',\r\n startTime: '开始时间',\r\n endTime: '结束时间',\r\n },\r\n formItem: {\r\n required: '不能为空',\r\n },\r\n form: {\r\n more: '更多',\r\n collapse: '收起',\r\n },\r\n header: {\r\n save: '保存',\r\n edit: '修改',\r\n cancel: '取消',\r\n refresh: '刷新',\r\n approvalLog: '审批日志',\r\n },\r\n searchListPage: {\r\n add: '新增',\r\n templateDownload: '模版下载',\r\n import: '导入',\r\n export: '导出',\r\n search: '搜索',\r\n clear: '清空',\r\n },\r\n table: {\r\n select: '选择',\r\n serialNumber: '序号',\r\n operation: '操作',\r\n },\r\n title: {\r\n collapse: '折叠',\r\n expand: '展开',\r\n },\r\n chooseDialog: {\r\n selected: '已选中',\r\n unit: '个',\r\n },\r\n customColumn: {\r\n columnSettings: '自定义列设置',\r\n defineColumn: '自定义列',\r\n hiddenField: '隐藏字段',\r\n visibleField: '显示字段',\r\n moveLeft: '左移',\r\n moveRight: '右移',\r\n moveUp: '上移',\r\n moveDown: '下移',\r\n },\r\n bpm: {\r\n approvalLog: '审批日志',\r\n },\r\n loading: {\r\n loading: '正在加载中...',\r\n },\r\n http: {\r\n networkError: '网络异常,请检查您的网络连接后重试',\r\n timeout: '请求超时,请稍后再试',\r\n requestError: '请求错误。请检查您的输入并重试',\r\n authExpired: '登录认证过期,请重新登录后继续',\r\n forbidden: '禁止访问, 您没有权限访问此资源',\r\n notFound: '未找到, 请求的资源不存在', //\r\n serverError: '内部服务器错误,请稍后再试',\r\n },\r\n attachment: {\r\n addAttachment: '添加附件',\r\n manageAttachment: '附件管理',\r\n operation: '操作',\r\n download: '下载',\r\n delete: '删除',\r\n attachmentType: '附件类型',\r\n fileName: '文件名称',\r\n creator: '创建人',\r\n createTime: '创建时间',\r\n description: '说明',\r\n },\r\n },\r\n}\r\n"],"names":[],"mappings":";;;;AAAA,WAAe;AAAA,EACb,IAAA,EAAM,OAAA;AAAA,EACN,EAAA,EAAI;AAAA,IACF,MAAA,EAAQ;AAAA,MACN,MAAA,EAAQ,cAAA;AAAA,MACR,OAAA,EAAS,cAAA;AAAA,MACT,KAAA,EAAO;AAAA,KACT;AAAA,IACA,OAAA,EAAS;AAAA,MACP,MAAA,EAAQ,cAAA;AAAA,MACR,OAAA,EAAS,cAAA;AAAA,MACT,aAAA,EAAe,oBAAA;AAAA,MACf,gBAAA,EAAkB,QAAA;AAAA,MAClB,MAAA,EAAQ;AAAA,KACV;AAAA,IACA,KAAA,EAAO;AAAA,MACL,WAAA,EAAa;AAAA,KACf;AAAA,IACA,eAAA,EAAiB;AAAA,MACf,QAAA,EAAU,0BAAA;AAAA,MACV,SAAA,EAAW,gCAAA;AAAA,MACX,cAAA,EAAgB,gCAAA;AAAA,MAChB,SAAA,EAAW,0BAAA;AAAA,MACX,OAAA,EAAS;AAAA,KACX;AAAA,IACA,QAAA,EAAU;AAAA,MACR,QAAA,EAAU;AAAA,KACZ;AAAA,IACA,IAAA,EAAM;AAAA,MACJ,IAAA,EAAM,cAAA;AAAA,MACN,QAAA,EAAU;AAAA,KACZ;AAAA,IACA,MAAA,EAAQ;AA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AA;AAAA;AAAA,MACV,WAAA,EAAa;AAAA,KACf;AAAA,IACA,UAAA,EAAY;AAAA,MACV,aAAA,EAAe,0BAAA;AAAA,MACf,gBAAA,EAAkB,0BAAA;AAAA,MAClB,SAAA,EAAW,cAAA;AAAA,MACX,QAAA,EAAU,cAAA;AAAA,MACV,MAAA,EAAQ,cAAA;AAAA,MACR,cAAA,EAAgB,0BAAA;AAAA,MAChB,QAAA,EAAU,0BAAA;AAAA,MACV,OAAA,EAAS,oBAAA;AAAA,MACT,UAAA,EAAY,0BAAA;AAAA,MACZ,WAAA,EAAa;AAAA;
|
|
1
|
+
{"version":3,"file":"zh-cn.js","sources":["../../../../../packages/locale/lang/zh-cn.ts"],"sourcesContent":["export default {\r\n name: 'zh-cn',\r\n ep: {\r\n dialog: {\r\n cancel: '取消',\r\n confirm: '确定',\r\n title: '提示',\r\n },\r\n buttons: {\r\n cancel: '取消',\r\n confirm: '确定',\r\n secondConfirm: '确定要',\r\n secondConfirmEnd: '吗',\r\n prompt: '提示',\r\n },\r\n input: {\r\n placeholder: '请输入',\r\n },\r\n datePickerRange: {\r\n lastWeek: '最近一周',\r\n lastMonth: '最近一个月',\r\n lastThreeMonth: '最近三个月',\r\n startTime: '开始时间',\r\n endTime: '结束时间',\r\n },\r\n formItem: {\r\n required: '不能为空',\r\n },\r\n form: {\r\n more: '更多',\r\n collapse: '收起',\r\n },\r\n header: {\r\n save: '保存',\r\n edit: '修改',\r\n cancel: '取消',\r\n refresh: '刷新',\r\n approvalLog: '审批日志',\r\n },\r\n searchListPage: {\r\n add: '新增',\r\n templateDownload: '模版下载',\r\n import: '导入',\r\n export: '导出',\r\n search: '搜索',\r\n clear: '清空',\r\n },\r\n table: {\r\n select: '选择',\r\n serialNumber: '序号',\r\n operation: '操作',\r\n },\r\n title: {\r\n collapse: '折叠',\r\n expand: '展开',\r\n },\r\n chooseDialog: {\r\n selected: '已选中',\r\n unit: '个',\r\n },\r\n customColumn: {\r\n columnSettings: '自定义列设置',\r\n defineColumn: '自定义列',\r\n hiddenField: '隐藏字段',\r\n visibleField: '显示字段',\r\n moveLeft: '左移',\r\n moveRight: '右移',\r\n moveUp: '上移',\r\n moveDown: '下移',\r\n },\r\n bpm: {\r\n approvalLog: '审批日志',\r\n },\r\n loading: {\r\n loading: '正在加载中...',\r\n },\r\n http: {\r\n networkError: '网络异常,请检查您的网络连接后重试',\r\n timeout: '请求超时,请稍后再试',\r\n requestError: '请求错误。请检查您的输入并重试',\r\n authExpired: '登录认证过期,请重新登录后继续',\r\n forbidden: '禁止访问, 您没有权限访问此资源',\r\n notFound: '未找到, 请求的资源不存在', //\r\n serverError: '内部服务器错误,请稍后再试',\r\n },\r\n attachment: {\r\n addAttachment: '添加附件',\r\n manageAttachment: '附件管理',\r\n operation: '操作',\r\n download: '下载',\r\n delete: '删除',\r\n attachmentType: '附件类型',\r\n fileName: '文件名称',\r\n creator: '创建人',\r\n createTime: '创建时间',\r\n description: '说明',\r\n },\r\n footerInfo: {\r\n creator: '制单人',\r\n createTime: '创建时间',\r\n editor: '最新修改人',\r\n editTime: '最新修改时间',\r\n },\r\n file: {\r\n failedDetail: '失败详情:',\r\n },\r\n },\r\n}\r\n"],"names":[],"mappings":";;;;AAAA,WAAe;AAAA,EACb,IAAA,EAAM,OAAA;AAAA,EACN,EAAA,EAAI;AAAA,IACF,MAAA,EAAQ;AAAA,MACN,MAAA,EAAQ,cAAA;AAAA,MACR,OAAA,EAAS,cAAA;AAAA,MACT,KAAA,EAAO;AAAA,KACT;AAAA,IACA,OAAA,EAAS;AAAA,MACP,MAAA,EAAQ,cAAA;AAAA,MACR,OAAA,EAAS,cAAA;AAAA,MACT,aAAA,EAAe,oBAAA;AAAA,MACf,gBAAA,EAAkB,QAAA;AAAA,MAClB,MAAA,EAAQ;AAAA,KACV;AAAA,IACA,KAAA,EAAO;AAAA,MACL,WAAA,EAAa;AAAA,KACf;AAAA,IACA,eAAA,EAAiB;AAAA,MACf,QAAA,EAAU,0BAAA;AAAA,M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AAAA,MACH,WAAA,EAAa;AAAA,KACf;AAAA,IACA,OAAA,EAAS;AAAA,MACP,OAAA,EAAS;AAAA,KACX;AAAA,IACA,IAAA,EAAM;AAAA,MACJ,YAAA,EAAc,wGAAA;AAAA,MACd,OAAA,EAAS,8DAAA;AAAA,MACT,YAAA,EAAc,4FAAA;AAAA,MACd,WAAA,EAAa,4FAAA;AAAA,MACb,SAAA,EAAW,wFAAA;AAAA,MACX,QAAA,EAAU,sEAAA;AAAA;AAAA,MACV,WAAA,EAAa;AAAA,KACf;AAAA,IACA,UAAA,EAAY;AAAA,MACV,aAAA,EAAe,0BAAA;AAAA,MACf,gBAAA,EAAkB,0BAAA;AAAA,MAClB,SAAA,EAAW,cAAA;AAAA,MACX,QAAA,EAAU,cAAA;AAAA,MACV,MAAA,EAAQ,cAAA;AAAA,MACR,cAAA,EAAgB,0BAAA;AAAA,MAChB,QAAA,EAAU,0BAAA;AAAA,MACV,OAAA,EAAS,oBAAA;AAAA,MACT,UAAA,EAAY,0BAAA;AAAA,MACZ,WAAA,EAAa;AAAA,KACf;AAAA,IACA,UAAA,EAAY;AAAA,MACV,OAAA,EAAS,oBAAA;AAAA,MACT,UAAA,EAAY,0BAAA;AAAA,MACZ,MAAA,EAAQ,gCAAA;AAAA,MACR,QAAA,EAAU;AAAA,KACZ;AAAA,IACA,IAAA,EAAM;AAAA,MACJ,YAAA,EAAc;AAAA;AAChB;AAEJ,CAAA;;;;"}
|
package/lib/package.json.js
CHANGED
package/lib/utils/file.js
CHANGED
|
@@ -4,7 +4,9 @@ var index = require('./http/index.js');
|
|
|
4
4
|
var elementPlus = require('element-plus');
|
|
5
5
|
var env = require('./env.js');
|
|
6
6
|
var jsBase64 = require('js-base64');
|
|
7
|
+
var useLocale = require('../hooks/use-locale.js');
|
|
7
8
|
|
|
9
|
+
const { t } = useLocale.useLocale();
|
|
8
10
|
const getFullUrl = (filePath) => {
|
|
9
11
|
return filePath.indexOf("hongxinshop.com") > -1 ? filePath : `${window.location.protocol}//${env.getEnv() === "local" ? `${env.getLocationEnv()}-hxjf.hongxinshop.com` : window.location.host}/image/${filePath}`;
|
|
10
12
|
};
|
|
@@ -116,9 +118,9 @@ const importFile = async ({
|
|
|
116
118
|
if (data.code === -2) {
|
|
117
119
|
const fileName = failedFileName || data.data.split("/")[data.data.split("/").length - 1];
|
|
118
120
|
const url = `${window.location.origin}/image/${data.data}`;
|
|
119
|
-
const failedHtml = `<div style="word-break: break-all;"
|
|
120
|
-
elementPlus.ElMessageBox.alert(failedHtml, "
|
|
121
|
-
confirmButtonText: "
|
|
121
|
+
const failedHtml = `<div style="word-break: break-all;">${t("ep.file.failedDetail")}<a style="color:#409EFF;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap" title="${url}" href="${url}" download="${fileName}">${url}</a></div>`;
|
|
122
|
+
elementPlus.ElMessageBox.alert(failedHtml, t("ep.dialog.title"), {
|
|
123
|
+
confirmButtonText: t("ep.dialog.confirm"),
|
|
122
124
|
type: "error",
|
|
123
125
|
dangerouslyUseHTMLString: true
|
|
124
126
|
});
|
package/lib/utils/file.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.js","sources":["../../../../packages/utils/file.ts"],"sourcesContent":["import { http, type AxiosResponse } from './http'\r\nimport { ElMessage, ElMessageBox } from 'element-plus'\r\nimport { getEnv, getLocationEnv } from './env'\r\nimport { encode} from 'js-base64'\r\n/**\r\n * 获取全路径\r\n * @param filePath 附件地址\r\n * @returns 全路径\r\n */\r\n\r\nexport const getFullUrl = (filePath: string) => {\r\n return filePath.indexOf('hongxinshop.com') > -1\r\n ? filePath\r\n : `${window.location.protocol}//${getEnv() === 'local' ? `${getLocationEnv()}-hxjf.hongxinshop.com` : window.location.host}/image/${filePath}`\r\n}\r\nconst downloadSrc = ({\r\n src,\r\n fileName,\r\n blob,\r\n}: {\r\n src: string\r\n fileName: string\r\n blob?: boolean\r\n}) => {\r\n if (src) {\r\n fileName = fileName || src.split('/')[src.split('/').length - 1]\r\n const a = document.createElement('a')\r\n a.style.display = 'none'\r\n document.body.appendChild(a)\r\n const event = new MouseEvent('click')\r\n a.download = fileName\r\n a.href = blob ? src : getFullUrl(src)\r\n\r\n a.target = '_blank'\r\n a.dispatchEvent(event)\r\n document.body.removeChild(a)\r\n }\r\n}\r\n\r\n// 下载文件\r\nexport async function downloadFile({\r\n api = '',\r\n blob,\r\n data = {},\r\n src,\r\n fileName = '',\r\n config = {},\r\n}: {\r\n api?: string\r\n blob?: boolean\r\n data?: Record<string, any>\r\n src?: string\r\n fileName?: string\r\n config?: Record<string, any>\r\n}) {\r\n if (src) {\r\n downloadSrc({ src, fileName })\r\n return\r\n }\r\n http\r\n .request<any, AxiosResponse>(api, {\r\n method: config.method || 'post',\r\n data,\r\n loading: true,\r\n responseType: blob ? 'blob' : undefined,\r\n responseReturn: 'raw',\r\n ...config,\r\n })\r\n .then((res) => {\r\n const { headers } = res\r\n if (Object.prototype.toString.call(res.data) === '[object Object]' && !res.data?.success) {\r\n return ElMessage.error(res.data.msg)\r\n }\r\n const data = blob?res.data:res.data?.data || res.data?.data?.url || ''\r\n const lowerHeaders = {}\r\n for (const key in headers) {\r\n lowerHeaders[key.toLowerCase()] = headers[key]\r\n }\r\n let src = ''\r\n if (blob) {\r\n const contentDisposition = lowerHeaders['content-disposition'] || ''\r\n fileName =\r\n fileName ||\r\n decodeURIComponent(contentDisposition.split('filename=')[1])\r\n const blob = new Blob([data], {\r\n type: headers['content-type'],\r\n })\r\n src = window.URL.createObjectURL(blob)\r\n setTimeout(() => window.URL.revokeObjectURL(src), 100) // 释放内存\r\n } else {\r\n src = data\r\n }\r\n downloadSrc({ src, fileName, blob })\r\n })\r\n}\r\n\r\n// 导入文件\r\nexport interface ImportFileOptions {\r\n accept?: string\r\n multiple?: boolean\r\n fieldName?: string\r\n api?: string\r\n failedFileName?: string // 导入失败时提示的文件名\r\n extraData?: Record<string, any> // 随文件一同发送的其他表单数据\r\n}\r\nexport const importFile = async ({\r\n accept = '*',\r\n multiple = false,\r\n fieldName = 'file',\r\n failedFileName = '',\r\n extraData = {},\r\n api = '',\r\n}: ImportFileOptions) => {\r\n return new Promise<Record<string, any>>((resolve, reject) => {\r\n const input = document.createElement('input')\r\n input.type = 'file'\r\n input.accept = accept\r\n input.multiple = multiple\r\n const formData = new FormData()\r\n Object.keys(extraData).forEach((key) => {\r\n formData.append(key, extraData[key])\r\n })\r\n input.onchange = async (event: Event) => {\r\n const target = event.target as HTMLInputElement\r\n const files = target.files\r\n if (files && files.length > 0) {\r\n if (!multiple) {\r\n formData.append(fieldName, files[0])\r\n } else {\r\n Array.from(files).forEach((file, index) => {\r\n formData.append(`${fieldName}${index}`, file)\r\n })\r\n }\r\n try {\r\n const { data } = await http.request<any, AxiosResponse>(api, {\r\n method: 'post',\r\n data: formData,\r\n loading: true,\r\n responseReturn: 'raw',\r\n transformRequest: [\r\n function (data) {\r\n return data\r\n },\r\n ],\r\n })\r\n if (data.success) {\r\n return resolve(data.data)\r\n }\r\n if (data.code === -2) {\r\n const fileName =\r\n failedFileName ||\r\n data.data.split('/')[data.data.split('/').length - 1]\r\n const url = `${window.location.origin}/image/${data.data}`\r\n const failedHtml = `<div style=\"word-break: break-all;\">失败详情:<a style=\"color:#409EFF;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap\" title=\"${url}\" href=\"${url}\" download=\"${fileName}\">${url}</a></div>`\r\n ElMessageBox.alert(failedHtml, '提示', {\r\n confirmButtonText: '确定',\r\n type: 'error',\r\n dangerouslyUseHTMLString: true,\r\n })\r\n return\r\n }\r\n return ElMessage.error(data.msg)\r\n } catch (error) {\r\n console.error(error)\r\n }\r\n input.onchange = null\r\n }\r\n }\r\n input.click()\r\n })\r\n}\r\n\r\n// 预览文件\r\nexport const previewFile = (url: string) => {\r\n url = getFullUrl(url)\r\n const origin = getFullUrl('').replace('/image/', '')\r\n const previewUrl = `${origin}/kfv/onlinePreview?url=${encode(url)}`\r\n window.open(previewUrl, '_blank')\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M,GAAG,CAAA,CAAE,SAAS,CAAC,CAAA;AACtD,YAAA,MAAM,MAAM,CAAA,EAAG,MAAA,CAAO,SAAS,MAAM,CAAA,OAAA,EAAU,KAAK,IAAI,CAAA,CAAA;AACxD,YAAA,MAAM,UAAA,GAAa,6KAAoJ,GAAG,CAAA,QAAA,EAAW,GAAG,CAAA,YAAA,EAAe,QAAQ,KAAK,GAAG,CAAA,UAAA,CAAA;AACvN,YAAAG,wBAAA,CAAa,KAAA,CAAM,YAAY,cAAA,EAAM;AAAA,cACnC,iBAAA,EAAmB,cAAA;AAAA,cACnB,IAAA,EAAM,OAAA;AAAA,cACN,wBAAA,EAA0B;AAAA,aAC3B,CAAA;AACD,YAAA;AAAA,UACF;AACA,UAAA,OAAOJ,qBAAA,CAAU,KAAA,CAAM,IAAA,CAAK,GAAG,CAAA;AAAA,QACjC,SAAS,KAAA,EAAO;AACd,UAAA,OAAA,CAAQ,MAAM,KAAK,CAAA;AAAA,QACrB;AACA,QAAA,KAAA,CAAM,QAAA,GAAW,IAAA;AAAA,MACnB;AAAA,IACF,CAAA;AACA,IAAA,KAAA,CAAM,KAAA,EAAM;AAAA,EACd,CAAC,CAAA;AACH;AAGO,MAAM,WAAA,GAAc,CAAC,GAAA,KAAgB;AAC1C,EAAA,GAAA,GAAM,WAAW,GAAG,CAAA;AACpB,EAAA,MAAM,SAAS,UAAA,CAAW,EAAE,CAAA,CAAE,OAAA,CAAQ,WAAW,EAAE,CAAA;AACnD,EAAA,MAAM,aAAa,CAAA,EAAG,MAAM,CAAA,uBAAA,EAA0BK,eAAA,CAAO,GAAG,CAAC,CAAA,CAAA;AACjE,EAAA,MAAA,CAAO,IAAA,CAAK,YAAY,QAAQ,CAAA;AAClC;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"file.js","sources":["../../../../packages/utils/file.ts"],"sourcesContent":["import { http, type AxiosResponse } from './http'\r\nimport { ElMessage, ElMessageBox } from 'element-plus'\r\nimport { getEnv, getLocationEnv } from './env'\r\nimport { encode} from 'js-base64'\r\nimport { useLocale } from '@el-plus/hooks/use-locale'\r\nconst { t } = useLocale()\r\n/**\r\n * 获取全路径\r\n * @param filePath 附件地址\r\n * @returns 全路径\r\n */\r\n\r\nexport const getFullUrl = (filePath: string) => {\r\n return filePath.indexOf('hongxinshop.com') > -1\r\n ? filePath\r\n : `${window.location.protocol}//${getEnv() === 'local' ? `${getLocationEnv()}-hxjf.hongxinshop.com` : window.location.host}/image/${filePath}`\r\n}\r\nconst downloadSrc = ({\r\n src,\r\n fileName,\r\n blob,\r\n}: {\r\n src: string\r\n fileName: string\r\n blob?: boolean\r\n}) => {\r\n if (src) {\r\n fileName = fileName || src.split('/')[src.split('/').length - 1]\r\n const a = document.createElement('a')\r\n a.style.display = 'none'\r\n document.body.appendChild(a)\r\n const event = new MouseEvent('click')\r\n a.download = fileName\r\n a.href = blob ? src : getFullUrl(src)\r\n\r\n a.target = '_blank'\r\n a.dispatchEvent(event)\r\n document.body.removeChild(a)\r\n }\r\n}\r\n\r\n// 下载文件\r\nexport async function downloadFile({\r\n api = '',\r\n blob,\r\n data = {},\r\n src,\r\n fileName = '',\r\n config = {},\r\n}: {\r\n api?: string\r\n blob?: boolean\r\n data?: Record<string, any>\r\n src?: string\r\n fileName?: string\r\n config?: Record<string, any>\r\n}) {\r\n if (src) {\r\n downloadSrc({ src, fileName })\r\n return\r\n }\r\n http\r\n .request<any, AxiosResponse>(api, {\r\n method: config.method || 'post',\r\n data,\r\n loading: true,\r\n responseType: blob ? 'blob' : undefined,\r\n responseReturn: 'raw',\r\n ...config,\r\n })\r\n .then((res) => {\r\n const { headers } = res\r\n if (Object.prototype.toString.call(res.data) === '[object Object]' && !res.data?.success) {\r\n return ElMessage.error(res.data.msg)\r\n }\r\n const data = blob?res.data:res.data?.data || res.data?.data?.url || ''\r\n const lowerHeaders = {}\r\n for (const key in headers) {\r\n lowerHeaders[key.toLowerCase()] = headers[key]\r\n }\r\n let src = ''\r\n if (blob) {\r\n const contentDisposition = lowerHeaders['content-disposition'] || ''\r\n fileName =\r\n fileName ||\r\n decodeURIComponent(contentDisposition.split('filename=')[1])\r\n const blob = new Blob([data], {\r\n type: headers['content-type'],\r\n })\r\n src = window.URL.createObjectURL(blob)\r\n setTimeout(() => window.URL.revokeObjectURL(src), 100) // 释放内存\r\n } else {\r\n src = data\r\n }\r\n downloadSrc({ src, fileName, blob })\r\n })\r\n}\r\n\r\n// 导入文件\r\nexport interface ImportFileOptions {\r\n accept?: string\r\n multiple?: boolean\r\n fieldName?: string\r\n api?: string\r\n failedFileName?: string // 导入失败时提示的文件名\r\n extraData?: Record<string, any> // 随文件一同发送的其他表单数据\r\n}\r\nexport const importFile = async ({\r\n accept = '*',\r\n multiple = false,\r\n fieldName = 'file',\r\n failedFileName = '',\r\n extraData = {},\r\n api = '',\r\n}: ImportFileOptions) => {\r\n return new Promise<Record<string, any>>((resolve, reject) => {\r\n const input = document.createElement('input')\r\n input.type = 'file'\r\n input.accept = accept\r\n input.multiple = multiple\r\n const formData = new FormData()\r\n Object.keys(extraData).forEach((key) => {\r\n formData.append(key, extraData[key])\r\n })\r\n input.onchange = async (event: Event) => {\r\n const target = event.target as HTMLInputElement\r\n const files = target.files\r\n if (files && files.length > 0) {\r\n if (!multiple) {\r\n formData.append(fieldName, files[0])\r\n } else {\r\n Array.from(files).forEach((file, index) => {\r\n formData.append(`${fieldName}${index}`, file)\r\n })\r\n }\r\n try {\r\n const { data } = await http.request<any, AxiosResponse>(api, {\r\n method: 'post',\r\n data: formData,\r\n loading: true,\r\n responseReturn: 'raw',\r\n transformRequest: [\r\n function (data) {\r\n return data\r\n },\r\n ],\r\n })\r\n if (data.success) {\r\n return resolve(data.data)\r\n }\r\n if (data.code === -2) {\r\n const fileName =\r\n failedFileName ||\r\n data.data.split('/')[data.data.split('/').length - 1]\r\n const url = `${window.location.origin}/image/${data.data}`\r\n const failedHtml = `<div style=\"word-break: break-all;\">${t('ep.file.failedDetail')}<a style=\"color:#409EFF;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap\" title=\"${url}\" href=\"${url}\" download=\"${fileName}\">${url}</a></div>`\r\n ElMessageBox.alert(failedHtml, t('ep.dialog.title'), {\r\n confirmButtonText: t('ep.dialog.confirm'),\r\n type: 'error',\r\n dangerouslyUseHTMLString: true,\r\n })\r\n return\r\n }\r\n return ElMessage.error(data.msg)\r\n } catch (error) {\r\n console.error(error)\r\n }\r\n input.onchange = null\r\n }\r\n }\r\n input.click()\r\n })\r\n}\r\n\r\n// 预览文件\r\nexport const previewFile = (url: string) => {\r\n url = getFullUrl(url)\r\n const origin = getFullUrl('').replace('/image/', '')\r\n const previewUrl = `${origin}/kfv/onlinePreview?url=${encode(url)}`\r\n window.open(previewUrl, '_blank')\r\n}\r\n"],"names":["useLocale","getEnv","getLocationEnv","http","ElMessage","data","src","blob","ElMessageBox","encode"],"mappings":";;;;;;;;AAKA,MAAM,EAAE,CAAA,EAAE,GAAIA,mBAAA,EAAU;AAOjB,MAAM,UAAA,GAAa,CAAC,QAAA,KAAqB;AAC9C,EAAA,OAAO,QAAA,CAAS,QAAQ,iBAAiB,CAAA,GAAI,KACzC,QAAA,GACA,CAAA,EAAG,MAAA,CAAO,QAAA,CAAS,QAAQ,CAAA,EAAA,EAAKC,YAAO,KAAM,OAAA,GAAU,GAAGC,kBAAA,EAAgB,0BAA0B,MAAA,CAAO,QAAA,CAAS,IAAI,CAAA,OAAA,EAAU,QAAQ,CAAA,CAAA;AAChJ;AACA,MAAM,cAAc,CAAC;AAAA,EACnB,GAAA;AAAA,EACA,QAAA;AAAA,EACA;AACF,CAAA,KAIM;AACJ,EAAA,IAAI,GAAA,EAAK;AACP,IAAA,QAAA,GAAW,QAAA,IAAY,GAAA,CAAI,KAAA,CAAM,GAAG,CAAA,CAAE,IAAI,KAAA,CAAM,GAAG,CAAA,CAAE,MAAA,GAAS,CAAC,CAAA;AAC/D,IAAA,MAAM,CAAA,GAAI,QAAA,CAAS,aAAA,CAAc,GAAG,CAAA;AACp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B;AACA,QAAA,KAAA,CAAM,QAAA,GAAW,IAAA;AAAA,MACnB;AAAA,IACF,CAAA;AACA,IAAA,KAAA,CAAM,KAAA,EAAM;AAAA,EACd,CAAC,CAAA;AACH;AAGO,MAAM,WAAA,GAAc,CAAC,GAAA,KAAgB;AAC1C,EAAA,GAAA,GAAM,WAAW,GAAG,CAAA;AACpB,EAAA,MAAM,SAAS,UAAA,CAAW,EAAE,CAAA,CAAE,OAAA,CAAQ,WAAW,EAAE,CAAA;AACnD,EAAA,MAAM,aAAa,CAAA,EAAG,MAAM,CAAA,uBAAA,EAA0BK,eAAA,CAAO,GAAG,CAAC,CAAA,CAAA;AACjE,EAAA,MAAA,CAAO,IAAA,CAAK,YAAY,QAAQ,CAAA;AAClC;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.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}
|
|
1
|
+
.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-footer-info__label{margin-right:3px}
|
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}: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
|
+
.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-footer-info__label{margin-right:3px}.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}
|