30 lines
553 B
JavaScript
30 lines
553 B
JavaScript
const { VITE_APP_NAME } = import.meta.env;
|
|
|
|
export const GenKey = (key, prefix = `${VITE_APP_NAME}_`) => {
|
|
return prefix ? prefix + key : key;
|
|
};
|
|
|
|
export const CONSTANTS = {
|
|
PREFIX: `${VITE_APP_NAME}_`,
|
|
PRIMARY: '#409eff',
|
|
};
|
|
|
|
export const CRUD_OPTIONS = {
|
|
index: true,
|
|
indexLabel: '序号',
|
|
indexWidth: 80,
|
|
selection: true,
|
|
align: 'center',
|
|
headerAlign: 'center',
|
|
gridBtn: false,
|
|
addBtn: true,
|
|
viewBtn: false,
|
|
editBtn: false,
|
|
delBtn: false,
|
|
gutter: 20,
|
|
labelWidth: 150,
|
|
column: [],
|
|
menuWidth: 100,
|
|
actions: [],
|
|
};
|