NuclearDispersionSystem/ant-design-vue-jeecg/node_modules/vxe-table/packages/conf/index.js

273 lines
6.5 KiB
JavaScript
Raw Normal View History

2023-09-14 14:47:11 +08:00
const iconPrefix = 'vxe-icon--'
const GlobalConfig = {
// size: null, // 全局尺寸
zIndex: 100, // 全局 zIndex 起始值,如果项目的的 z-index 样式值过大时就需要跟随设置更大,避免被遮挡
version: 0, // 版本号,对于某些带数据缓存的功能有用到,上升版本号可以用于重置数据
// resizeInterval: 500,
emptyCell: ' ',
table: {
fit: true,
showHeader: true,
animat: true,
delayHover: 250,
// keepSource: false,
// cloak: false,
// showOverflow: null,
// showHeaderOverflow: null,
// showFooterOverflow: null,
// resizeInterval: 500,
// size: null,
// zIndex: null,
// resizable: false,
// stripe: false,
// border: false,
// round: false,
// radioConfig: {
// trigger: 'default'
// },
// checkboxConfig: {
// trigger: 'default'
// },
// sortConfig: {
// remote: false,
// trigger: 'default',
// orders: ['asc', 'desc', null],
// sortMethod: null
// },
// filterConfig: {
// remote: false,
// filterMethod: null
// },
// expandConfig: {
// trigger: 'default'
// },
// treeConfig: {
// children: 'children',
// hasChild: 'hasChild',
// indent: 20
// },
// tooltipConfig: {
// theme: 'dark',
// enterable: false
// },
// validConfig: {
// message: 'default'
// },
// editConfig: {
// mode: 'cell'
// },
// contextMenu: {
// visibleMethod () {}
// },
// customConfig: {
// storage: false,
// checkMethod () {}
// },
// rowId: '_XID', // 行数据的唯一主键字段名
importConfig: {
modes: ['insert', 'covering']
},
exportConfig: {
isPrint: true,
modes: ['current', 'selected']
},
scrollX: {
gt: 60
// oSize: 0,
// rSize: 0
// vSize: 0
},
scrollY: {
gt: 100
// oSize: 0,
// rSize: 0
// vSize: 0,
// rHeight: 0
}
},
icon: {
// table
TABLE_SORT_ASC: iconPrefix + 'caret-top',
TABLE_SORT_DESC: iconPrefix + 'caret-bottom',
TABLE_FILTER_NONE: iconPrefix + 'funnel',
TABLE_FILTER_MATCH: iconPrefix + 'funnel',
TABLE_EDIT: iconPrefix + 'edit-outline',
TABLE_TREE_LOADED: iconPrefix + 'refresh roll',
TABLE_TREE_OPEN: iconPrefix + 'caret-right rotate90',
TABLE_TREE_CLOSE: iconPrefix + 'caret-right',
TABLE_EXPAND_LOADED: iconPrefix + 'refresh roll',
TABLE_EXPAND_OPEN: iconPrefix + 'arrow-right rotate90',
TABLE_EXPAND_CLOSE: iconPrefix + 'arrow-right',
// button
BUTTON_DROPDOWN: iconPrefix + 'arrow-bottom',
BUTTON_LOADING: iconPrefix + 'refresh roll',
// select
SELECT_OPEN: iconPrefix + 'caret-bottom rotate180',
SELECT_CLOSE: iconPrefix + 'caret-bottom',
// pager
PAGER_JUMP_PREV: iconPrefix + 'd-arrow-left',
PAGER_JUMP_NEXT: iconPrefix + 'd-arrow-right',
PAGER_PREV_PAGE: iconPrefix + 'arrow-left',
PAGER_NEXT_PAGE: iconPrefix + 'arrow-right',
PAGER_JUMP_MORE: iconPrefix + 'more',
// input
INPUT_CLEAR: iconPrefix + 'close',
INPUT_PWD: iconPrefix + 'eye-slash',
INPUT_SHOW_PWD: iconPrefix + 'eye',
INPUT_PREV_NUM: iconPrefix + 'caret-top',
INPUT_NEXT_NUM: iconPrefix + 'caret-bottom',
INPUT_DATE: iconPrefix + 'calendar',
// modal
MODAL_ZOOM_IN: iconPrefix + 'square',
MODAL_ZOOM_OUT: iconPrefix + 'zoomout',
MODAL_CLOSE: iconPrefix + 'close',
MODAL_INFO: iconPrefix + 'info',
MODAL_SUCCESS: iconPrefix + 'success',
MODAL_WARNING: iconPrefix + 'warning',
MODAL_ERROR: iconPrefix + 'error',
MODAL_QUESTION: iconPrefix + 'question',
MODAL_LOADING: iconPrefix + 'refresh roll',
// toolbar
TOOLBAR_TOOLS_REFRESH: iconPrefix + 'refresh',
TOOLBAR_TOOLS_REFRESH_LOADING: iconPrefix + 'refresh roll',
TOOLBAR_TOOLS_IMPORT: iconPrefix + 'upload',
TOOLBAR_TOOLS_EXPORT: iconPrefix + 'download',
TOOLBAR_TOOLS_PRINT: iconPrefix + 'print',
TOOLBAR_TOOLS_ZOOM_IN: iconPrefix + 'zoomin',
TOOLBAR_TOOLS_ZOOM_OUT: iconPrefix + 'zoomout',
TOOLBAR_TOOLS_CUSTOM: iconPrefix + 'menu',
// form
FORM_PREFIX: iconPrefix + 'info',
FORM_SUFFIX: iconPrefix + 'info',
FORM_FOLDING: iconPrefix + 'arrow-top rotate180',
FORM_UNFOLDING: iconPrefix + 'arrow-top'
},
grid: {
// size: null,
// zoomConfig: {
// escRestore: true
// },
// pagerConfig: {
// perfect: false
// },
// toolbar: {
// perfect: false
// },
proxyConfig: {
autoLoad: true,
message: true,
props: {
list: null,
result: 'result',
total: 'page.total'
}
// beforeItem: null,
// beforeColumn: null,
// beforeQuery: null,
// afterQuery: null,
// beforeDelete: null,
// afterDelete: null,
// beforeSave: null,
// afterSave: null
}
},
tooltip: {
// size: null,
trigger: 'hover',
theme: 'dark',
leaveDelay: 300
},
pager: {
// size: null,
// autoHidden: false,
// perfect: true,
// pageSize: 10,
// pagerCount: 7,
// pageSizes: [10, 15, 20, 50, 100],
// layouts: ['PrevJump', 'PrevPage', 'Jump', 'PageCount', 'NextPage', 'NextJump', 'Sizes', 'Total']
},
form: {
// size: null,
// colon: false
},
input: {
// size: null,
// transfer: false
// parseFormat: 'yyyy-MM-dd HH:mm:ss.SSS',
// labelFormat: '',
// valueFormat: '',
startWeek: 1,
digits: 2
},
textarea: {
// size: null,
// autosize: {
// minRows: 1,
// maxRows: 10
// }
},
select: {
// size: null,
// transfer: false
},
toolbar: {
// size: null,
// import: {
// mode: 'covering'
// },
// export: {
// types: ['csv', 'html', 'xml', 'txt']
// },
// custom: {
// isFooter: true
// },
// buttons: []
},
button: {
// size: null,
// transfer: false
},
radio: {
// size: null
},
checkbox: {
// size: null
},
switch: {
// size: null
},
modal: {
// size: null,
minWidth: 340,
minHeight: 200,
lockView: true,
mask: true,
duration: 3000,
marginSize: 8,
dblclickZoom: true,
showTitleOverflow: true,
animat: true,
// storage: false,
storageKey: 'VXE_MODAL_POSITION'
},
list: {
scrollY: {
gt: 100
// oSize: 0,
// rSize: 0
// vSize: 0,
// rHeight: 0
}
},
i18n: key => key
}
export default GlobalConfig