刘光辉
7 小时以前 0dfe84494048ce27ba8449831782128412d3eb13
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
// 动态options
const dyOptionsList = ['radio', 'checkbox', 'select', 'cascader', 'treeSelect'];
// 展示组件
const vModelIgnoreList = ['divider', 'text', 'link', 'alert', 'groupTitle', 'button', 'barcode', 'qrcode', 'iframe', 'relationQuery'];
// 动态存储
const dyStorageList = ['relationFormAttr', 'popupAttr', 'calculate', 'dateCalculate'];
// 不添加vModel
const noVModelList = [...vModelIgnoreList, ...dyStorageList];
// ocr
const ocrList = [
  'textOcr',
  'idCardFrontOcr',
  'idCardBackOcr',
  'businessLicenseOcr',
  'invoiceOcr',
  'drivingLicenseOcr',
  'vehicleLicenseOcr',
  'bankCardOcr',
  'trainTicketOcr',
];
// 不可以添加到子表组件
const noTableAllowList = [...vModelIgnoreList, ...ocrList, 'editor', 'colorPicker', 'table'];
// 不可以添加到列表展示
const noColumnShowList = [...vModelIgnoreList, 'colorPicker', 'editor', 'relationFormAttr', 'popupAttr'];
// 不可以添加到搜索
const noSearchList = [
  ...noColumnShowList,
  ...ocrList,
  'switch',
  'timeRange',
  'dateRange',
  'relationForm',
  'popupSelect',
  'popupTableSelect',
  'uploadImg',
  'uploadFile',
  'sign',
  'signature',
];
// 搜索时控件为input
const useInputList = ['input', 'textarea', 'billRule', 'location'];
// 搜索时控件为日期选择器
const useDateList = ['createTime', 'modifyTime'];
// 搜索时控件为下拉选择器
const useSelectList = ['radio', 'checkbox', 'select'];
// 系统控件
const systemComponentsList = ['createUser', 'createTime', 'modifyUser', 'modifyTime', 'currOrganize', 'currPosition', 'billRule'];
// 不允许关联到联动里面的控件
const noAllowRelationList = ['table', 'uploadImg', 'uploadFile', 'modifyUser', 'modifyTime'];
// 不允许关联表单选择的控件
const noAllowSelectList = [...noAllowRelationList, ...systemComponentsList, 'relationForm', 'popupSelect'];
// 不允许分组和排序
const noGroupList = [...ocrList, 'sign', 'signature', 'location', 'uploadImg', 'uploadFile', 'editor'];
// 列表需要slots插槽
const slotsList = [...ocrList, 'calculate', 'input', 'inputNumber', 'rate', 'relationForm', 'sign', 'signature', 'slider', 'uploadFile', 'uploadImg'];
// 列表超出省略无效控件
const overflowInvalidList = [...ocrList, 'rate', 'uploadFile'];
// 条件不支持控件
const noAllowConditionList = [
  'alert',
  'button',
  'colorPicker',
  'editor',
  'link',
  'popupAttr',
  'relationFormAttr',
  'sign',
  'signature',
  'table',
  'text',
  'uploadFile',
  'uploadImg',
  ...ocrList,
];
 
export {
  dyOptionsList,
  noAllowConditionList,
  noAllowRelationList,
  noAllowSelectList,
  noColumnShowList,
  noGroupList,
  noSearchList,
  noTableAllowList,
  noVModelList,
  ocrList,
  overflowInvalidList,
  slotsList,
  systemComponentsList,
  useDateList,
  useInputList,
  useSelectList,
  vModelIgnoreList,
};