@lingxiteam/theme-utils 0.5.3 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/Button.d.ts +113 -0
- package/dist/config/Button.js +277 -0
- package/dist/config/Card.d.ts +144 -0
- package/dist/config/Card.js +162 -0
- package/dist/config/Cascader.d.ts +196 -0
- package/dist/config/Cascader.js +225 -0
- package/dist/config/Checkbox.d.ts +162 -0
- package/dist/config/Checkbox.js +178 -0
- package/dist/config/CheckboxGroup.d.ts +184 -0
- package/dist/config/CheckboxGroup.js +192 -0
- package/dist/config/Collapse.d.ts +186 -0
- package/dist/config/Collapse.js +330 -0
- package/dist/config/Container.d.ts +275 -0
- package/dist/config/Container.js +301 -0
- package/dist/config/DatePicker.d.ts +179 -0
- package/dist/config/DatePicker.js +179 -0
- package/dist/config/Description.d.ts +106 -0
- package/dist/config/Description.js +126 -0
- package/dist/config/Divider.d.ts +61 -0
- package/dist/config/Divider.js +61 -0
- package/dist/config/Form.d.ts +3071 -0
- package/dist/config/Form.js +1358 -0
- package/dist/config/Icon.d.ts +55 -0
- package/dist/config/Icon.js +55 -0
- package/dist/config/Input.d.ts +159 -0
- package/dist/config/Input.js +159 -0
- package/dist/config/InputNumber.d.ts +154 -0
- package/dist/config/InputNumber.js +154 -0
- package/dist/config/Link.d.ts +128 -0
- package/dist/config/Link.js +120 -0
- package/dist/config/MultipleSelect.d.ts +167 -0
- package/dist/config/MultipleSelect.js +175 -0
- package/dist/config/Radio.d.ts +239 -0
- package/dist/config/Radio.js +261 -0
- package/dist/config/RangePicker.d.ts +182 -0
- package/dist/config/RangePicker.js +182 -0
- package/dist/config/Select.d.ts +190 -0
- package/dist/config/Select.js +198 -0
- package/dist/config/StdUpload.d.ts +197 -0
- package/dist/config/StdUpload.js +211 -0
- package/dist/config/Switch.d.ts +141 -0
- package/dist/config/Switch.js +151 -0
- package/dist/config/Table.d.ts +482 -0
- package/dist/config/Table.js +560 -0
- package/dist/config/Tabs.d.ts +230 -0
- package/dist/config/Tabs.js +970 -0
- package/dist/config/Tag.d.ts +173 -0
- package/dist/config/Tag.js +548 -0
- package/dist/config/Text.d.ts +34 -0
- package/dist/config/Text.js +34 -0
- package/dist/config/TextArea.d.ts +151 -0
- package/dist/config/TextArea.js +151 -0
- package/dist/config/TimePicker.d.ts +180 -0
- package/dist/config/TimePicker.js +180 -0
- package/dist/config/Tree.d.ts +151 -0
- package/dist/config/Tree.js +195 -0
- package/dist/config/TreeSelect.d.ts +197 -0
- package/dist/config/TreeSelect.js +213 -0
- package/dist/css.d.ts +6 -0
- package/dist/css.js +126 -0
- package/dist/demo.d.ts +5 -0
- package/dist/demo.js +79 -0
- package/dist/h5config/Accordion.d.ts +410 -0
- package/dist/h5config/Accordion.js +548 -0
- package/dist/h5config/Button.d.ts +142 -0
- package/dist/h5config/Button.js +253 -0
- package/dist/h5config/Card.d.ts +275 -0
- package/dist/h5config/Card.js +535 -0
- package/dist/h5config/DAddressPicker.d.ts +188 -0
- package/dist/h5config/DAddressPicker.js +230 -0
- package/dist/h5config/DCheckbox.d.ts +202 -0
- package/dist/h5config/DCheckbox.js +248 -0
- package/dist/h5config/DForm.d.ts +1597 -0
- package/dist/h5config/DForm.js +932 -0
- package/dist/h5config/DMultiplePicker.d.ts +189 -0
- package/dist/h5config/DMultiplePicker.js +235 -0
- package/dist/h5config/DformDate.d.ts +191 -0
- package/dist/h5config/DformDate.js +233 -0
- package/dist/h5config/DformFile.d.ts +277 -0
- package/dist/h5config/DformFile.js +292 -0
- package/dist/h5config/DformImagePicker.d.ts +138 -0
- package/dist/h5config/DformImagePicker.js +156 -0
- package/dist/h5config/DformInput.d.ts +189 -0
- package/dist/h5config/DformInput.js +231 -0
- package/dist/h5config/DformInputNumber.d.ts +173 -0
- package/dist/h5config/DformInputNumber.js +215 -0
- package/dist/h5config/DformPicker.d.ts +190 -0
- package/dist/h5config/DformPicker.js +236 -0
- package/dist/h5config/DformRadio.d.ts +210 -0
- package/dist/h5config/DformRadio.js +256 -0
- package/dist/h5config/DformRangePicker.d.ts +195 -0
- package/dist/h5config/DformRangePicker.js +237 -0
- package/dist/h5config/DformSelect.d.ts +198 -0
- package/dist/h5config/DformSelect.js +262 -0
- package/dist/h5config/DformSwitch.d.ts +145 -0
- package/dist/h5config/DformSwitch.js +163 -0
- package/dist/h5config/DformTextArea.d.ts +184 -0
- package/dist/h5config/DformTextArea.js +226 -0
- package/dist/h5config/Divider.d.ts +53 -0
- package/dist/h5config/Divider.js +90 -0
- package/dist/h5config/FilterItems.d.ts +154 -0
- package/dist/h5config/FilterItems.js +204 -0
- package/dist/h5config/Grid.d.ts +235 -0
- package/dist/h5config/Grid.js +278 -0
- package/dist/h5config/Icon.d.ts +54 -0
- package/dist/h5config/Icon.js +54 -0
- package/dist/h5config/Link.d.ts +51 -0
- package/dist/h5config/Link.js +51 -0
- package/dist/h5config/LoadMore.d.ts +527 -0
- package/dist/h5config/LoadMore.js +940 -0
- package/dist/h5config/NoticeBarPlus.d.ts +111 -0
- package/dist/h5config/NoticeBarPlus.js +141 -0
- package/dist/h5config/SearchView.d.ts +135 -0
- package/dist/h5config/SearchView.js +177 -0
- package/dist/h5config/StaticTabs.d.ts +121 -0
- package/dist/h5config/StaticTabs.js +180 -0
- package/dist/h5config/Table.d.ts +197 -0
- package/dist/h5config/Table.js +589 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/lx-mobile.d.ts +23 -0
- package/dist/lx-mobile.js +174 -0
- package/dist/lx.d.ts +24 -0
- package/dist/lx.js +139 -0
- package/dist/utils.d.ts +12 -0
- package/dist/utils.js +67 -0
- package/package.json +1 -1
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
export var MultipleSelect = {
|
|
2
|
+
type: 'MultipleSelect',
|
|
3
|
+
variable: {
|
|
4
|
+
labelTextColor: {
|
|
5
|
+
type: 'color',
|
|
6
|
+
label: '标题颜色',
|
|
7
|
+
groupsName: '标题',
|
|
8
|
+
desc: '继承自表单,此处不可编辑',
|
|
9
|
+
canEdit: false,
|
|
10
|
+
extendsKey: 'Form'
|
|
11
|
+
},
|
|
12
|
+
labelFontSize: {
|
|
13
|
+
type: 'px',
|
|
14
|
+
label: '标题尺寸',
|
|
15
|
+
groupsName: '标题',
|
|
16
|
+
desc: '继承自表单,此处不可编辑',
|
|
17
|
+
canEdit: false,
|
|
18
|
+
extendsKey: 'Form'
|
|
19
|
+
},
|
|
20
|
+
labelLineHeight: {
|
|
21
|
+
type: 'px',
|
|
22
|
+
label: '标题行高',
|
|
23
|
+
groupsName: '标题',
|
|
24
|
+
desc: '继承自表单,此处不可编辑',
|
|
25
|
+
canEdit: false,
|
|
26
|
+
extendsKey: 'Form'
|
|
27
|
+
},
|
|
28
|
+
textColor: {
|
|
29
|
+
type: 'color',
|
|
30
|
+
label: '文本颜色',
|
|
31
|
+
groupsName: '文字',
|
|
32
|
+
desc: '继承自表单,此处不可编辑',
|
|
33
|
+
canEdit: false,
|
|
34
|
+
extendsKey: 'Form'
|
|
35
|
+
},
|
|
36
|
+
fontSize: {
|
|
37
|
+
type: 'px',
|
|
38
|
+
label: '文本尺寸',
|
|
39
|
+
groupsName: '文字',
|
|
40
|
+
desc: '继承自表单,此处不可编辑',
|
|
41
|
+
canEdit: false,
|
|
42
|
+
extendsKey: 'Form'
|
|
43
|
+
},
|
|
44
|
+
itemBorderRadius: {
|
|
45
|
+
type: 'px',
|
|
46
|
+
label: '圆角',
|
|
47
|
+
groupsName: '边框',
|
|
48
|
+
desc: '继承自表单,此处不可编辑',
|
|
49
|
+
canEdit: false,
|
|
50
|
+
extendsKey: 'Form'
|
|
51
|
+
},
|
|
52
|
+
itemBorderColor: {
|
|
53
|
+
type: 'color',
|
|
54
|
+
label: '颜色',
|
|
55
|
+
groupsName: '边框',
|
|
56
|
+
desc: '继承自表单,此处不可编辑',
|
|
57
|
+
canEdit: false,
|
|
58
|
+
extendsKey: 'Form'
|
|
59
|
+
},
|
|
60
|
+
itemHoverBorderColor: {
|
|
61
|
+
type: 'color',
|
|
62
|
+
label: '组件激活边框颜色',
|
|
63
|
+
groupsName: '边框',
|
|
64
|
+
hidden: true,
|
|
65
|
+
desc: '继承自表单,此处不可编辑',
|
|
66
|
+
canEdit: false,
|
|
67
|
+
extendsKey: 'Form'
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
groupsName: '数据录入',
|
|
71
|
+
icon: 'icon-ico-comp-multipleselect',
|
|
72
|
+
title: '下拉复选',
|
|
73
|
+
defaultValue: [{}],
|
|
74
|
+
tpl: '',
|
|
75
|
+
components: [{
|
|
76
|
+
id: 'Form_180373',
|
|
77
|
+
label: '表单',
|
|
78
|
+
compName: 'Form',
|
|
79
|
+
type: 'Form',
|
|
80
|
+
compType: 0,
|
|
81
|
+
compLib: 'comm',
|
|
82
|
+
props: {
|
|
83
|
+
name: '表单',
|
|
84
|
+
colSpan: 12,
|
|
85
|
+
labelCol: 8,
|
|
86
|
+
wrapperCol: 16,
|
|
87
|
+
layout: 'vertical',
|
|
88
|
+
colon: true,
|
|
89
|
+
labelAlign: 'right',
|
|
90
|
+
basicStatus: 1,
|
|
91
|
+
colSpace: 16,
|
|
92
|
+
rowSpace: 16,
|
|
93
|
+
formCode: 'Code_Form_180373'
|
|
94
|
+
},
|
|
95
|
+
style: {
|
|
96
|
+
padding: '0px 0px 0px 0px'
|
|
97
|
+
},
|
|
98
|
+
isContainer: true,
|
|
99
|
+
isBusiObjContainer: true,
|
|
100
|
+
cmdgroup: ['basic'],
|
|
101
|
+
platform: 'pc',
|
|
102
|
+
icon: 'Form',
|
|
103
|
+
description: '',
|
|
104
|
+
image: '',
|
|
105
|
+
groupsName: '容器',
|
|
106
|
+
engineApi: ['service.downloadFileByFileCode', 'getVisible', 'stateListener'],
|
|
107
|
+
setEvents: [],
|
|
108
|
+
isLabelDropBoxChild: false,
|
|
109
|
+
components: [{
|
|
110
|
+
id: 'MultipleSelect_628082',
|
|
111
|
+
label: '下拉多选框',
|
|
112
|
+
compName: 'MultipleSelect',
|
|
113
|
+
type: 'MultipleSelect',
|
|
114
|
+
compType: 2,
|
|
115
|
+
compLib: 'comm',
|
|
116
|
+
props: {
|
|
117
|
+
name: '下拉多选框',
|
|
118
|
+
basicStatus: 1,
|
|
119
|
+
size: 'default',
|
|
120
|
+
labelCol: 8,
|
|
121
|
+
wrapperCol: 16,
|
|
122
|
+
titleTip: 'notext',
|
|
123
|
+
tipSize: 'default',
|
|
124
|
+
tipWidth: '240px',
|
|
125
|
+
tipHeight: 'auto',
|
|
126
|
+
required: false,
|
|
127
|
+
filter: 'none',
|
|
128
|
+
placeholder: '请选择',
|
|
129
|
+
mode: 'multiple',
|
|
130
|
+
allowClear: true,
|
|
131
|
+
formItemIndex: 0,
|
|
132
|
+
staticData: {
|
|
133
|
+
data: [{
|
|
134
|
+
id: '767594',
|
|
135
|
+
label: '属性名1',
|
|
136
|
+
value: '1'
|
|
137
|
+
}, {
|
|
138
|
+
id: '15609',
|
|
139
|
+
label: '属性名2',
|
|
140
|
+
value: '2'
|
|
141
|
+
}],
|
|
142
|
+
type: 'custom'
|
|
143
|
+
},
|
|
144
|
+
options: [{
|
|
145
|
+
id: '767594',
|
|
146
|
+
label: '属性名1',
|
|
147
|
+
value: '1'
|
|
148
|
+
}, {
|
|
149
|
+
id: '15609',
|
|
150
|
+
label: '属性名2',
|
|
151
|
+
value: '2'
|
|
152
|
+
}]
|
|
153
|
+
},
|
|
154
|
+
style: {},
|
|
155
|
+
isContainer: false,
|
|
156
|
+
isBusiObjContainer: false,
|
|
157
|
+
cmdgroup: ['basic'],
|
|
158
|
+
platform: 'pc',
|
|
159
|
+
fieldProps: {
|
|
160
|
+
trigger: 'onChange',
|
|
161
|
+
valuePropName: 'value'
|
|
162
|
+
},
|
|
163
|
+
icon: 'MultipleSelect',
|
|
164
|
+
description: '',
|
|
165
|
+
image: '',
|
|
166
|
+
groupsName: '数据录入',
|
|
167
|
+
engineApi: ['sandBoxSafeRun'],
|
|
168
|
+
setEvents: [],
|
|
169
|
+
isLabelDropBoxChild: false,
|
|
170
|
+
components: [],
|
|
171
|
+
path: ['998509', 'Form_180373']
|
|
172
|
+
}],
|
|
173
|
+
path: ['998509']
|
|
174
|
+
}]
|
|
175
|
+
};
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
export declare const Radio: {
|
|
2
|
+
type: string;
|
|
3
|
+
hasPrefixClass: boolean;
|
|
4
|
+
variable: {
|
|
5
|
+
labelTextColor: {
|
|
6
|
+
type: string;
|
|
7
|
+
label: string;
|
|
8
|
+
groupsName: string;
|
|
9
|
+
desc: string;
|
|
10
|
+
canEdit: boolean;
|
|
11
|
+
extendsKey: string;
|
|
12
|
+
};
|
|
13
|
+
labelFontSize: {
|
|
14
|
+
type: string;
|
|
15
|
+
label: string;
|
|
16
|
+
groupsName: string;
|
|
17
|
+
desc: string;
|
|
18
|
+
canEdit: boolean;
|
|
19
|
+
extendsKey: string;
|
|
20
|
+
};
|
|
21
|
+
labelLineHeight: {
|
|
22
|
+
type: string;
|
|
23
|
+
label: string;
|
|
24
|
+
groupsName: string;
|
|
25
|
+
desc: string;
|
|
26
|
+
canEdit: boolean;
|
|
27
|
+
extendsKey: string;
|
|
28
|
+
};
|
|
29
|
+
textColor: {
|
|
30
|
+
type: string;
|
|
31
|
+
label: string;
|
|
32
|
+
groupsName: string;
|
|
33
|
+
desc: string;
|
|
34
|
+
canEdit: boolean;
|
|
35
|
+
extendsKey: string;
|
|
36
|
+
};
|
|
37
|
+
fontSize: {
|
|
38
|
+
type: string;
|
|
39
|
+
label: string;
|
|
40
|
+
groupsName: string;
|
|
41
|
+
desc: string;
|
|
42
|
+
canEdit: boolean;
|
|
43
|
+
extendsKey: string;
|
|
44
|
+
};
|
|
45
|
+
radioBorderColor: {
|
|
46
|
+
type: string;
|
|
47
|
+
label: string;
|
|
48
|
+
groupsName: string;
|
|
49
|
+
followTheme: string;
|
|
50
|
+
};
|
|
51
|
+
radioBgColor: {
|
|
52
|
+
type: string;
|
|
53
|
+
label: string;
|
|
54
|
+
groupsName: string;
|
|
55
|
+
};
|
|
56
|
+
radioSeBorderColor: {
|
|
57
|
+
type: string;
|
|
58
|
+
label: string;
|
|
59
|
+
groupsName: string;
|
|
60
|
+
followTheme: string;
|
|
61
|
+
};
|
|
62
|
+
radioSeBgColor: {
|
|
63
|
+
type: string;
|
|
64
|
+
label: string;
|
|
65
|
+
groupsName: string;
|
|
66
|
+
};
|
|
67
|
+
itemHoverBorderColor: {
|
|
68
|
+
type: string;
|
|
69
|
+
label: string;
|
|
70
|
+
groupsName: string;
|
|
71
|
+
hidden: boolean;
|
|
72
|
+
desc: string;
|
|
73
|
+
canEdit: boolean;
|
|
74
|
+
extendsKey: string;
|
|
75
|
+
};
|
|
76
|
+
radioSize: {
|
|
77
|
+
type: string;
|
|
78
|
+
label: string;
|
|
79
|
+
groupsName: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
groupsName: string;
|
|
83
|
+
icon: string;
|
|
84
|
+
title: string;
|
|
85
|
+
defaultValue: {
|
|
86
|
+
radioSize: string;
|
|
87
|
+
radioBorderColor: string;
|
|
88
|
+
radioBgColor: string;
|
|
89
|
+
radioSeBorderColor: string;
|
|
90
|
+
radioSeBgColor: string;
|
|
91
|
+
}[];
|
|
92
|
+
followThemes: {
|
|
93
|
+
'@primary-color': string[];
|
|
94
|
+
'@border-color-base': string[];
|
|
95
|
+
};
|
|
96
|
+
tpl: string;
|
|
97
|
+
components: {
|
|
98
|
+
id: string;
|
|
99
|
+
label: string;
|
|
100
|
+
compName: string;
|
|
101
|
+
type: string;
|
|
102
|
+
compType: number;
|
|
103
|
+
compLib: string;
|
|
104
|
+
props: {
|
|
105
|
+
name: string;
|
|
106
|
+
colSpan: number;
|
|
107
|
+
labelCol: number;
|
|
108
|
+
wrapperCol: number;
|
|
109
|
+
layout: string;
|
|
110
|
+
colon: boolean;
|
|
111
|
+
labelAlign: string;
|
|
112
|
+
basicStatus: number;
|
|
113
|
+
colSpace: number;
|
|
114
|
+
rowSpace: number;
|
|
115
|
+
formCode: string;
|
|
116
|
+
};
|
|
117
|
+
style: {
|
|
118
|
+
padding: string;
|
|
119
|
+
};
|
|
120
|
+
isContainer: boolean;
|
|
121
|
+
isBusiObjContainer: boolean;
|
|
122
|
+
cmdgroup: string[];
|
|
123
|
+
platform: string;
|
|
124
|
+
icon: string;
|
|
125
|
+
description: string;
|
|
126
|
+
image: string;
|
|
127
|
+
groupsName: string;
|
|
128
|
+
engineApi: string[];
|
|
129
|
+
setEvents: never[];
|
|
130
|
+
isLabelDropBoxChild: boolean;
|
|
131
|
+
components: ({
|
|
132
|
+
id: string;
|
|
133
|
+
label: string;
|
|
134
|
+
compName: string;
|
|
135
|
+
type: string;
|
|
136
|
+
compType: number;
|
|
137
|
+
compLib: string;
|
|
138
|
+
props: {
|
|
139
|
+
name: string;
|
|
140
|
+
radioType: string;
|
|
141
|
+
optionMarginRight: number;
|
|
142
|
+
labelCol: number;
|
|
143
|
+
wrapperCol: number;
|
|
144
|
+
basicStatus: number;
|
|
145
|
+
titleTip: string;
|
|
146
|
+
tipSize: string;
|
|
147
|
+
tipWidth: string;
|
|
148
|
+
tipHeight: string;
|
|
149
|
+
required: boolean;
|
|
150
|
+
formItemIndex: number;
|
|
151
|
+
fieldName: string;
|
|
152
|
+
staticData: {
|
|
153
|
+
data: {
|
|
154
|
+
id: string;
|
|
155
|
+
label: string;
|
|
156
|
+
value: string;
|
|
157
|
+
}[];
|
|
158
|
+
type: string;
|
|
159
|
+
};
|
|
160
|
+
options: {
|
|
161
|
+
id: string;
|
|
162
|
+
label: string;
|
|
163
|
+
value: string;
|
|
164
|
+
}[];
|
|
165
|
+
selfSpan?: undefined;
|
|
166
|
+
};
|
|
167
|
+
style: {};
|
|
168
|
+
isContainer: boolean;
|
|
169
|
+
isBusiObjContainer: boolean;
|
|
170
|
+
cmdgroup: string[];
|
|
171
|
+
platform: string;
|
|
172
|
+
fieldProps: {
|
|
173
|
+
trigger: string;
|
|
174
|
+
valuePropName: string;
|
|
175
|
+
};
|
|
176
|
+
icon: string;
|
|
177
|
+
description: string;
|
|
178
|
+
image: string;
|
|
179
|
+
groupsName: string;
|
|
180
|
+
isInlineBlock: boolean;
|
|
181
|
+
setEvents: never[];
|
|
182
|
+
isLabelDropBoxChild: boolean;
|
|
183
|
+
components: never[];
|
|
184
|
+
path: string[];
|
|
185
|
+
} | {
|
|
186
|
+
id: string;
|
|
187
|
+
label: string;
|
|
188
|
+
compName: string;
|
|
189
|
+
type: string;
|
|
190
|
+
compType: number;
|
|
191
|
+
compLib: string;
|
|
192
|
+
props: {
|
|
193
|
+
name: string;
|
|
194
|
+
radioType: string;
|
|
195
|
+
optionMarginRight: number;
|
|
196
|
+
labelCol: number;
|
|
197
|
+
wrapperCol: number;
|
|
198
|
+
basicStatus: number;
|
|
199
|
+
titleTip: string;
|
|
200
|
+
tipSize: string;
|
|
201
|
+
tipWidth: string;
|
|
202
|
+
tipHeight: string;
|
|
203
|
+
required: boolean;
|
|
204
|
+
formItemIndex: number;
|
|
205
|
+
fieldName: string;
|
|
206
|
+
selfSpan: number;
|
|
207
|
+
staticData: {
|
|
208
|
+
data: {
|
|
209
|
+
id: string;
|
|
210
|
+
label: string;
|
|
211
|
+
value: string;
|
|
212
|
+
}[];
|
|
213
|
+
type: string;
|
|
214
|
+
};
|
|
215
|
+
options: {
|
|
216
|
+
id: string;
|
|
217
|
+
label: string;
|
|
218
|
+
value: string;
|
|
219
|
+
}[];
|
|
220
|
+
};
|
|
221
|
+
style: {};
|
|
222
|
+
isContainer: boolean;
|
|
223
|
+
isBusiObjContainer: boolean;
|
|
224
|
+
cmdgroup: string[];
|
|
225
|
+
platform: string;
|
|
226
|
+
icon: string;
|
|
227
|
+
description: string;
|
|
228
|
+
image: string;
|
|
229
|
+
groupsName: string;
|
|
230
|
+
isInlineBlock: boolean;
|
|
231
|
+
setEvents: never[];
|
|
232
|
+
isLabelDropBoxChild: boolean;
|
|
233
|
+
components: never[];
|
|
234
|
+
path: string[];
|
|
235
|
+
fieldProps?: undefined;
|
|
236
|
+
})[];
|
|
237
|
+
path: string[];
|
|
238
|
+
}[];
|
|
239
|
+
};
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
export var Radio = {
|
|
2
|
+
type: 'Radio',
|
|
3
|
+
hasPrefixClass: true,
|
|
4
|
+
variable: {
|
|
5
|
+
labelTextColor: {
|
|
6
|
+
type: 'color',
|
|
7
|
+
label: '标题颜色',
|
|
8
|
+
groupsName: '标题',
|
|
9
|
+
desc: '继承自表单,此处不可编辑',
|
|
10
|
+
canEdit: false,
|
|
11
|
+
extendsKey: 'Form'
|
|
12
|
+
},
|
|
13
|
+
labelFontSize: {
|
|
14
|
+
type: 'px',
|
|
15
|
+
label: '标题尺寸',
|
|
16
|
+
groupsName: '标题',
|
|
17
|
+
desc: '继承自表单,此处不可编辑',
|
|
18
|
+
canEdit: false,
|
|
19
|
+
extendsKey: 'Form'
|
|
20
|
+
},
|
|
21
|
+
labelLineHeight: {
|
|
22
|
+
type: 'px',
|
|
23
|
+
label: '标题行高',
|
|
24
|
+
groupsName: '标题',
|
|
25
|
+
desc: '继承自表单,此处不可编辑',
|
|
26
|
+
canEdit: false,
|
|
27
|
+
extendsKey: 'Form'
|
|
28
|
+
},
|
|
29
|
+
textColor: {
|
|
30
|
+
type: 'color',
|
|
31
|
+
label: '文本颜色',
|
|
32
|
+
groupsName: '文字',
|
|
33
|
+
desc: '继承自表单,此处不可编辑',
|
|
34
|
+
canEdit: false,
|
|
35
|
+
extendsKey: 'Form'
|
|
36
|
+
},
|
|
37
|
+
fontSize: {
|
|
38
|
+
type: 'px',
|
|
39
|
+
label: '文本尺寸',
|
|
40
|
+
groupsName: '文字',
|
|
41
|
+
desc: '继承自表单,此处不可编辑',
|
|
42
|
+
canEdit: false,
|
|
43
|
+
extendsKey: 'Form'
|
|
44
|
+
},
|
|
45
|
+
radioBorderColor: {
|
|
46
|
+
type: 'color',
|
|
47
|
+
label: '默认边框颜色',
|
|
48
|
+
groupsName: '边框',
|
|
49
|
+
followTheme: '@border-color-base'
|
|
50
|
+
},
|
|
51
|
+
radioBgColor: {
|
|
52
|
+
type: 'color',
|
|
53
|
+
label: '默认背景颜色',
|
|
54
|
+
groupsName: '边框'
|
|
55
|
+
},
|
|
56
|
+
radioSeBorderColor: {
|
|
57
|
+
type: 'color',
|
|
58
|
+
label: '选中边框颜色',
|
|
59
|
+
groupsName: '边框',
|
|
60
|
+
followTheme: '@primary-color'
|
|
61
|
+
},
|
|
62
|
+
radioSeBgColor: {
|
|
63
|
+
type: 'color',
|
|
64
|
+
label: '选中背景颜色',
|
|
65
|
+
groupsName: '边框'
|
|
66
|
+
},
|
|
67
|
+
itemHoverBorderColor: {
|
|
68
|
+
type: 'color',
|
|
69
|
+
label: '组件激活边框颜色',
|
|
70
|
+
groupsName: '边框',
|
|
71
|
+
hidden: true,
|
|
72
|
+
desc: '继承自表单,此处不可编辑',
|
|
73
|
+
canEdit: false,
|
|
74
|
+
extendsKey: 'Form'
|
|
75
|
+
},
|
|
76
|
+
radioSize: {
|
|
77
|
+
type: 'px',
|
|
78
|
+
label: '图标尺寸',
|
|
79
|
+
groupsName: '其他'
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
groupsName: '数据录入',
|
|
83
|
+
icon: 'icon-ico-comp-radio',
|
|
84
|
+
title: '单选组',
|
|
85
|
+
defaultValue: [{
|
|
86
|
+
radioSize: '16px',
|
|
87
|
+
radioBorderColor: '#e5e5e5',
|
|
88
|
+
radioBgColor: '#fff',
|
|
89
|
+
radioSeBorderColor: '#47e',
|
|
90
|
+
radioSeBgColor: '#fff'
|
|
91
|
+
}],
|
|
92
|
+
followThemes: {
|
|
93
|
+
'@primary-color': ['radioSeBorderColor'],
|
|
94
|
+
'@border-color-base': ['radioBorderColor']
|
|
95
|
+
},
|
|
96
|
+
tpl: ".pcFactory-from-component{\n .ued-radio-wrap {\n .pcfactory-radio-inner{\n width: radioSize;\n height: radioSize;\n border-color: radioBorderColor;\n background: radioBgColor;\n }\n .pcfactory-radio-checked .pcfactory-radio-inner{\n border-color: radioSeBorderColor;\n background: radioSeBgColor;\n }\n .pcfactory-radio-input:focus+.pcfactory-radio-inner{\n border-color: radioSeBorderColor;\n }\n .pcfactory-radio-wrapper:hover .pcfactory-radio{\n border-color: radioSeBorderColor;\n}\n .pcfactory-radio:hover .pcfactory-radio-inner {\n border-color: radioSeBorderColor;\n }\n .pcfactory-form-item input[type=checkbox]{\n width: radioSize;\n height: radioSize;\n }\n .pcfactory-form-item input[type=radio]{\n width: radioSize;\n height: radioSize;\n }\n .pcfactory-radio-checked .pcfactory-radio-inner:after{\n background: radioSeBorderColor;\n margin-left:0px;\n margin-top:0px;\n top:-1px;\n left:-1px;\n border-radius: radioSize;\n width: radioSize;\n height: radioSize;\n }\n .pcfactory-radio-button-wrapper {\n border-top: 1px solid radioBorderColor;\n border-right: 1px solid radioBorderColor;\n border-bottom: 1px solid radioBorderColor;\n background: radioBgColor;\n }\n .pcfactory-radio-button-wrapper:first-child{\n border-left: 1px solid radioBorderColor;\n }\n .pcfactory-radio-button-wrapper-checked:not([class*=' pcfactory-radio-button-wrapper-disabled']).pcfactory-radio-button-wrapper:first-child{\n border-right-color: radioBorderColor;\n border-color: radioBorderColor;\n }\n .pcfactory-radio-button-wrapper-checked:not(.pcfactory-radio-button-wrapper-disabled){\n background: radioSeBorderColor;\n color: radioSeBgColor;\n }\n}}",
|
|
97
|
+
components: [{
|
|
98
|
+
id: 'Form_180373',
|
|
99
|
+
label: '表单',
|
|
100
|
+
compName: 'Form',
|
|
101
|
+
type: 'Form',
|
|
102
|
+
compType: 0,
|
|
103
|
+
compLib: 'comm',
|
|
104
|
+
props: {
|
|
105
|
+
name: '表单',
|
|
106
|
+
colSpan: 12,
|
|
107
|
+
labelCol: 8,
|
|
108
|
+
wrapperCol: 16,
|
|
109
|
+
layout: 'vertical',
|
|
110
|
+
colon: true,
|
|
111
|
+
labelAlign: 'right',
|
|
112
|
+
basicStatus: 1,
|
|
113
|
+
colSpace: 16,
|
|
114
|
+
rowSpace: 16,
|
|
115
|
+
formCode: 'Code_Form_180373'
|
|
116
|
+
},
|
|
117
|
+
style: {
|
|
118
|
+
padding: '0px 0px 0px 0px'
|
|
119
|
+
},
|
|
120
|
+
isContainer: true,
|
|
121
|
+
isBusiObjContainer: true,
|
|
122
|
+
cmdgroup: ['basic'],
|
|
123
|
+
platform: 'pc',
|
|
124
|
+
icon: 'Form',
|
|
125
|
+
description: '',
|
|
126
|
+
image: '',
|
|
127
|
+
groupsName: '容器',
|
|
128
|
+
engineApi: ['service.downloadFileByFileCode', 'getVisible', 'stateListener'],
|
|
129
|
+
setEvents: [],
|
|
130
|
+
isLabelDropBoxChild: false,
|
|
131
|
+
components: [{
|
|
132
|
+
id: 'Radio_371201',
|
|
133
|
+
label: '单选组',
|
|
134
|
+
compName: 'Radio',
|
|
135
|
+
type: 'Radio',
|
|
136
|
+
compType: 2,
|
|
137
|
+
compLib: 'comm',
|
|
138
|
+
props: {
|
|
139
|
+
name: '单选组',
|
|
140
|
+
radioType: 'Radio',
|
|
141
|
+
optionMarginRight: 0,
|
|
142
|
+
labelCol: 8,
|
|
143
|
+
wrapperCol: 16,
|
|
144
|
+
basicStatus: 1,
|
|
145
|
+
titleTip: 'notext',
|
|
146
|
+
tipSize: 'default',
|
|
147
|
+
tipWidth: '240px',
|
|
148
|
+
tipHeight: 'auto',
|
|
149
|
+
required: false,
|
|
150
|
+
formItemIndex: 3,
|
|
151
|
+
fieldName: 'dsgc',
|
|
152
|
+
staticData: {
|
|
153
|
+
data: [{
|
|
154
|
+
id: '363107',
|
|
155
|
+
label: '属性名',
|
|
156
|
+
value: 'zx'
|
|
157
|
+
}, {
|
|
158
|
+
id: '3028122',
|
|
159
|
+
label: '属性名11',
|
|
160
|
+
value: 'asds'
|
|
161
|
+
}],
|
|
162
|
+
type: 'custom'
|
|
163
|
+
},
|
|
164
|
+
options: [{
|
|
165
|
+
id: '363107',
|
|
166
|
+
label: '属性名',
|
|
167
|
+
value: 'zx'
|
|
168
|
+
}, {
|
|
169
|
+
id: '3028122',
|
|
170
|
+
label: '属性名11',
|
|
171
|
+
value: 'asds'
|
|
172
|
+
}]
|
|
173
|
+
},
|
|
174
|
+
style: {},
|
|
175
|
+
isContainer: false,
|
|
176
|
+
isBusiObjContainer: false,
|
|
177
|
+
cmdgroup: ['basic'],
|
|
178
|
+
platform: 'pc',
|
|
179
|
+
fieldProps: {
|
|
180
|
+
trigger: 'onChange',
|
|
181
|
+
valuePropName: 'value'
|
|
182
|
+
},
|
|
183
|
+
icon: 'Radio',
|
|
184
|
+
description: '',
|
|
185
|
+
image: '',
|
|
186
|
+
groupsName: '数据录入',
|
|
187
|
+
isInlineBlock: true,
|
|
188
|
+
setEvents: [],
|
|
189
|
+
isLabelDropBoxChild: false,
|
|
190
|
+
components: [],
|
|
191
|
+
path: ['998509', 'Form_180373']
|
|
192
|
+
}, {
|
|
193
|
+
id: 'Radio_887385',
|
|
194
|
+
label: '单选组',
|
|
195
|
+
compName: 'Radio',
|
|
196
|
+
type: 'Radio',
|
|
197
|
+
compType: 2,
|
|
198
|
+
compLib: 'comm',
|
|
199
|
+
props: {
|
|
200
|
+
name: '单选组',
|
|
201
|
+
radioType: 'Radio.Button',
|
|
202
|
+
optionMarginRight: 0,
|
|
203
|
+
labelCol: 8,
|
|
204
|
+
wrapperCol: 16,
|
|
205
|
+
basicStatus: 1,
|
|
206
|
+
titleTip: 'notext',
|
|
207
|
+
tipSize: 'default',
|
|
208
|
+
tipWidth: '240px',
|
|
209
|
+
tipHeight: 'auto',
|
|
210
|
+
required: false,
|
|
211
|
+
formItemIndex: 0,
|
|
212
|
+
fieldName: 'ffd',
|
|
213
|
+
selfSpan: 24,
|
|
214
|
+
staticData: {
|
|
215
|
+
data: [{
|
|
216
|
+
id: '729572',
|
|
217
|
+
label: '选项A',
|
|
218
|
+
value: '选项A'
|
|
219
|
+
}, {
|
|
220
|
+
id: '106534',
|
|
221
|
+
label: '选项B',
|
|
222
|
+
value: '选项B'
|
|
223
|
+
}, {
|
|
224
|
+
id: '45647',
|
|
225
|
+
label: '选项C',
|
|
226
|
+
value: '选项C'
|
|
227
|
+
}],
|
|
228
|
+
type: 'custom'
|
|
229
|
+
},
|
|
230
|
+
options: [{
|
|
231
|
+
id: '729572',
|
|
232
|
+
label: '选项A',
|
|
233
|
+
value: '选项A'
|
|
234
|
+
}, {
|
|
235
|
+
id: '106534',
|
|
236
|
+
label: '选项B',
|
|
237
|
+
value: '选项B'
|
|
238
|
+
}, {
|
|
239
|
+
id: '45647',
|
|
240
|
+
label: '选项C',
|
|
241
|
+
value: '选项C'
|
|
242
|
+
}]
|
|
243
|
+
},
|
|
244
|
+
style: {},
|
|
245
|
+
isContainer: false,
|
|
246
|
+
isBusiObjContainer: false,
|
|
247
|
+
cmdgroup: ['basic'],
|
|
248
|
+
platform: 'pc',
|
|
249
|
+
icon: 'Radio',
|
|
250
|
+
description: '',
|
|
251
|
+
image: '',
|
|
252
|
+
groupsName: '数据录入',
|
|
253
|
+
isInlineBlock: true,
|
|
254
|
+
setEvents: [],
|
|
255
|
+
isLabelDropBoxChild: false,
|
|
256
|
+
components: [],
|
|
257
|
+
path: ['508679', 'View_508679_1', 'Form_6431685']
|
|
258
|
+
}],
|
|
259
|
+
path: ['998509']
|
|
260
|
+
}]
|
|
261
|
+
};
|