forked from baidu/amis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.ts
61 lines (56 loc) · 1.44 KB
/
constants.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/**
* @file constants.ts
* @desc CRUD 配置相关常量
*/
import {DSFeatureEnum} from '../../builder/constants';
export const ToolsConfig = {
groupName: 'tools',
options: [
{
label: '新增记录',
value: 'Insert',
align: 'left',
icon: 'fa fa-layer-group',
order: 10
},
{
label: '批量编辑',
value: 'BulkEdit',
align: 'left',
icon: 'fa fa-layer-group',
order: 20
},
{
label: '批量删除',
value: 'BulkDelete',
align: 'left',
icon: 'fa fa-layer-group',
order: 30
},
{
label: '数据导出',
value: 'Export',
align: 'left',
icon: 'fa fa-layer-group',
order: 40
}
]
};
export const FiltersConfig = {
groupName: 'filters',
options: [
{label: '模糊查询', value: 'FuzzyQuery', icon: 'fa fa-search', order: 10},
{label: '简单查询', value: 'SimpleQuery', icon: 'fa fa-search', order: 20},
{label: '高级查询', value: 'AdvancedQuery', icon: 'fa fa-search', order: 30}
]
};
export const OperatorsConfig = {
groupName: 'operators',
options: [
{label: '查看详情', value: 'View', icon: 'fa fa-database', order: 10},
{label: '编辑记录', value: 'Edit', icon: 'fa fa-database', order: 20},
{label: '删除记录', value: 'Delete', icon: 'fa fa-database', order: 30}
]
};
/** 表格数据展示的默认最大行数 */
export const DefaultMaxDisplayRows = 5;