ny
22 小时以前 282fbc6488f4e8ceb5fda759f963ee88fbf7b999
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
// 动态options
const dyOptionsList = ['radio', 'checkbox', 'select', 'cascader', 'treeSelect'];
// 展示组件
const vModelIgnoreList = ['divider', 'text', 'link', 'alert', 'groupTitle', 'button', 'barcode', 'qrcode', 'iframe'];
// 动态存储
const dyStorageList = ['relationFormAttr', 'popupAttr', 'calculate', 'dateCalculate'];
// 不添加vModel
const noVModelList = [...vModelIgnoreList, ...dyStorageList];
// 不可以添加到子表组件
const noTableAllowList = [...vModelIgnoreList, 'editor', 'radio', 'checkbox', 'colorPicker', 'table'];
// 不可以添加到列表展示
const noColumnShowList = [...vModelIgnoreList, 'colorPicker', 'editor', 'relationFormAttr', 'popupAttr'];
// 不可以添加到搜索
const noSearchList = [
  ...noColumnShowList,
  '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 = ['sign', 'signature', 'location', 'uploadImg', 'uploadFile', 'editor'];
// 列表需要slots插槽
const slotsList = ['calculate', 'input', 'inputNumber', 'rate', 'relationForm', 'sign', 'signature', 'slider', 'uploadFile', 'uploadImg'];
// 列表超出省略无效控件
const overflowInvalidList = ['rate', 'uploadFile'];
 
export {
  dyOptionsList,
  noAllowRelationList,
  noAllowSelectList,
  noColumnShowList,
  noGroupList,
  noSearchList,
  noTableAllowList,
  noVModelList,
  overflowInvalidList,
  slotsList,
  systemComponentsList,
  useDateList,
  useInputList,
  useSelectList,
  vModelIgnoreList,
};