import type { ConfigOptions } from '../types' const globalStore: ConfigOptions = { // 上传组件 upload: { // fileProps: { // fileUrl: 'fileUrl', // 文件地址 // fileType: 'fileType', // 文件类型 // fileName: 'fileName' // 文件名 // }, // 获取附件缩略图方法 // getThumbnailFileUrl: null, // // 获取附件路径方法 // getFileUrl: null, // // 上传附件方法 // uploadFile: null, // // 下载附件方法 // downloadFile: null, // // 删除附件方法 // removeFile: null }, // 审批组件 approval: { // 审批流程 select: { // optionMethod: null }, // 审批记录 record: { // optionMethod: null }, types: [ { value: 0, label: '起草中', color: '#353535', background: '#eaebed' }, { value: 1, label: '审批中', color: '#007FFF', background: '#e0efff' }, { value: 2, label: '已通过', color: '#00B042', background: '#e0f5e8' }, { value: 3, label: '已驳回', color: '#FF5064', background: '#ffeaec' }, { value: 4, label: '会签中', color: '#007FFF', background: '#e0efff' }, { value: 5, label: '处理中', color: '#007FFF', background: '#e0efff' }, { value: 6, label: '已完成', color: '#00B042', background: '#e0f5e8' } ] }, // 上拉加载更多 loadMore: { pageSize: 30, pageProp: { pageSize: 'limit', currentPage: 'page' }, resProps: { result: 'datas', total: 'total' }, notData: { // emptyUrl: '', emptyText: '暂无记录', // resultUrl: '', resultText: '暂无相关结果', resultHint: '请检查输入是否正确' } }, // 分页器 pager: { pageSize: 30, pageProp: { pageSize: 'limit', currentPage: 'page' }, resProps: { result: 'datas', total: 'total' }, notData: { // emptyUrl: '', emptyText: '暂无记录', resultUrl: '', resultText: '暂无相关结果', resultHint: '请检查输入是否正确' } }, notData: { // emptyUrl: '', emptyText: '暂无记录' }, listSelectUserPage: { // defaultAvatarUrl: '' } } export default globalStore