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
export const baseProps = {
  ableIds: { default: () => [], type: Array as PropType<string[]> },
  allowClear: { default: true, type: Boolean },
  buttonShowType: { default: '', type: String },
  buttonType: { default: 'select', type: String as PropType<'' | 'button' | 'select' | undefined> },
  disabled: { default: false, type: Boolean },
  hasSys: { default: false, type: Boolean },
  multiple: { default: false, type: Boolean },
  placeholder: { default: '请选择', type: String },
  required: { default: false, type: Boolean },
  selectType: { default: 'all', type: String },
  showSelectedList: { default: true, type: Boolean },
  size: String,
  value: { type: [String, Array] as PropType<string | string[]> },
};
 
export const organizeSelectProps = {
  ...baseProps,
  modalTitle: { default: '选择组织', type: String },
};
export const posSelectProps = {
  ...baseProps,
  modalTitle: { default: '选择岗位', type: String },
};
export const roleSelectProps = {
  ...baseProps,
  modalTitle: { default: '选择角色', type: String },
  roleType: { default: 'user', type: String as PropType<'organize' | 'position' | 'user'> },
};
export const groupSelectProps = {
  ...baseProps,
  modalTitle: { default: '选择分组', type: String },
};
export const userSelectProps = {
  ...baseProps,
  ableRelationIds: { default: () => [], type: Array as PropType<string[]> },
  modalTitle: { default: '选择用户', type: String },
};
export const usersSelectProps = {
  ...baseProps,
  modalTitle: { default: '选择用户', type: String },
  multiple: { default: true, type: Boolean },
};