-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Expand file tree
/
Copy pathfield-config.ts
More file actions
51 lines (42 loc) · 1.04 KB
/
field-config.ts
File metadata and controls
51 lines (42 loc) · 1.04 KB
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
import { IPublicTypeTitleContent, IPublicTypeSetterType, IPublicTypeFieldExtraProps, IPublicTypeDynamicSetter } from './';
/**
* 属性面板配置
*/
export interface IPublicTypeFieldConfig extends IPublicTypeFieldExtraProps {
/**
* 面板配置隶属于单个 field 还是分组
*/
type?: 'field' | 'group';
/**
* the name of this setting field, which used in quickEditor
*/
name?: string | number;
/**
* the field title
* @default sameas .name
*/
title?: IPublicTypeTitleContent;
/**
* 单个属性的 setter 配置
*
* the field body contains when .type = 'field'
*/
setter?: IPublicTypeSetterType | IPublicTypeDynamicSetter;
/**
* the setting items which group body contains when .type = 'group'
*/
items?: IPublicTypeFieldConfig[];
/**
* extra props for field
* 其他配置属性(不做流通要求)
*/
extraProps?: IPublicTypeFieldExtraProps;
/**
* @deprecated
*/
description?: IPublicTypeTitleContent;
/**
* @deprecated
*/
isExtends?: boolean;
}