@pisell/materials 1.0.478 → 1.0.480
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +5 -5
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +18 -18
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +17 -17
- package/es/components/browserSelect/index.d.ts +8 -2
- package/es/components/browserSelect/index.js +32 -10
- package/es/components/browserSelect/index.less +50 -6
- package/es/components/dataSourceComponents/dataSourceForm/BaseForm.js +2 -1
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.js +2 -1
- package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.js +5 -3
- package/es/components/dataSourceComponents/dataSourceForm/type.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +4 -1
- package/es/components/dataSourceComponents/dataSourceForm/utils.js +12 -9
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useFormat.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useFormat.js +35 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
- package/es/components/dataSourceComponents/fields/Checkbox/index.js +3 -1
- package/es/components/dataSourceComponents/fields/ColorPicker/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/DatePicker/WithMode.js +2 -2
- package/es/components/dataSourceComponents/fields/DatePicker/index.js +4 -2
- package/es/components/dataSourceComponents/fields/InputNumber/index.js +4 -2
- package/es/components/dataSourceComponents/fields/Select/WithMode.js +1 -1
- package/es/components/dataSourceComponents/fields/TimePicker/WithMode.d.ts +4 -3
- package/es/components/dataSourceComponents/fields/TimePicker/WithMode.js +94 -1
- package/es/components/dataSourceComponents/fields/TimePicker/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/TimePicker/index.js +7 -1
- package/es/components/dataSourceComponents/fields/TimePicker/style.less +86 -0
- package/es/components/dataSourceComponents/fields/index.d.ts +2 -2
- package/es/components/dataSourceComponents/hooks/useActions.js +6 -5
- package/es/components/date-picker/datePickerCpt.d.ts +1 -0
- package/es/components/date-picker/datePickerCpt.js +7 -3
- package/es/components/date-picker/index.js +2 -2
- package/es/components/date-picker/index.less +1 -1
- package/es/components/page/index.js +6 -0
- package/es/components/select/index.d.ts +3 -3
- package/es/components/select/index.js +58 -16
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/locales/en-US.d.ts +1 -0
- package/es/locales/en-US.js +1 -0
- package/es/locales/zh-CN.d.ts +1 -0
- package/es/locales/zh-CN.js +1 -0
- package/es/locales/zh-TW.d.ts +1 -0
- package/es/locales/zh-TW.js +1 -0
- package/lib/components/browserSelect/index.d.ts +8 -2
- package/lib/components/browserSelect/index.js +16 -10
- package/lib/components/browserSelect/index.less +50 -6
- package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.js +2 -1
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.js +2 -1
- package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.js +4 -3
- package/lib/components/dataSourceComponents/dataSourceForm/type.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +4 -1
- package/lib/components/dataSourceComponents/dataSourceForm/utils.js +11 -10
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useFormat.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useFormat.js +42 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
- package/lib/components/dataSourceComponents/fields/Checkbox/index.js +3 -1
- package/lib/components/dataSourceComponents/fields/ColorPicker/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/DatePicker/WithMode.js +2 -2
- package/lib/components/dataSourceComponents/fields/DatePicker/index.js +4 -2
- package/lib/components/dataSourceComponents/fields/InputNumber/index.js +4 -2
- package/lib/components/dataSourceComponents/fields/Select/WithMode.js +2 -2
- package/lib/components/dataSourceComponents/fields/TimePicker/WithMode.d.ts +4 -3
- package/lib/components/dataSourceComponents/fields/TimePicker/WithMode.js +89 -3
- package/lib/components/dataSourceComponents/fields/TimePicker/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/TimePicker/index.js +7 -1
- package/lib/components/dataSourceComponents/fields/TimePicker/style.less +86 -0
- package/lib/components/dataSourceComponents/fields/index.d.ts +2 -2
- package/lib/components/dataSourceComponents/hooks/useActions.js +5 -5
- package/lib/components/date-picker/datePickerCpt.d.ts +1 -0
- package/lib/components/date-picker/datePickerCpt.js +5 -2
- package/lib/components/date-picker/index.js +2 -2
- package/lib/components/date-picker/index.less +1 -1
- package/lib/components/page/index.js +2 -0
- package/lib/components/select/index.d.ts +3 -3
- package/lib/components/select/index.js +62 -13
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/locales/en-US.d.ts +1 -0
- package/lib/locales/en-US.js +1 -0
- package/lib/locales/zh-CN.d.ts +1 -0
- package/lib/locales/zh-CN.js +1 -0
- package/lib/locales/zh-TW.d.ts +1 -0
- package/lib/locales/zh-TW.js +1 -0
- package/lowcode/data-source-form/utils.ts +11 -0
- package/lowcode/form-item-date-picker/meta.ts +265 -120
- package/lowcode/form-item-date-picker/snippets.ts +43 -40
- package/lowcode/form-item-select/meta.ts +2 -1
- package/lowcode/form-item-time-picker/meta.ts +99 -30
- package/lowcode/form-item-time-picker/snippets.ts +5 -2
- package/lowcode/select/meta.ts +17 -0
- package/package.json +3 -3
- package/es/components/browserSelect/chevron-down.png +0 -0
- package/lib/components/browserSelect/chevron-down.png +0 -0
|
@@ -1,243 +1,388 @@
|
|
|
1
|
-
import snippets from
|
|
2
|
-
import {
|
|
1
|
+
import snippets from './snippets';
|
|
2
|
+
import {
|
|
3
|
+
formItemGeneralDataGroup,
|
|
4
|
+
getFormItemGeneralInfoGroup,
|
|
5
|
+
generalItemMap,
|
|
6
|
+
getFormItemValidateGroup,
|
|
7
|
+
} from '../_utils/defaultSchema';
|
|
3
8
|
|
|
4
9
|
export default {
|
|
5
10
|
snippets,
|
|
6
|
-
componentName:
|
|
7
|
-
title:
|
|
8
|
-
category:
|
|
9
|
-
group:
|
|
10
|
-
docUrl:
|
|
11
|
-
screenshot:
|
|
12
|
-
devMode:
|
|
11
|
+
componentName: 'FormItemDatePicker',
|
|
12
|
+
title: '日期输入',
|
|
13
|
+
category: '表单',
|
|
14
|
+
group: '无代码组件',
|
|
15
|
+
docUrl: '',
|
|
16
|
+
screenshot: '',
|
|
17
|
+
devMode: 'proCode',
|
|
13
18
|
npm: {
|
|
14
|
-
package:
|
|
15
|
-
version:
|
|
16
|
-
exportName:
|
|
17
|
-
main:
|
|
19
|
+
package: '@pisell/materials',
|
|
20
|
+
version: '1.0.1',
|
|
21
|
+
exportName: 'FormItemDatePicker',
|
|
22
|
+
main: 'src/index.tsx',
|
|
18
23
|
destructuring: true,
|
|
19
|
-
subName:
|
|
24
|
+
subName: '',
|
|
20
25
|
},
|
|
21
|
-
generalProps:
|
|
26
|
+
generalProps: [
|
|
27
|
+
formItemGeneralDataGroup,
|
|
28
|
+
getFormItemGeneralInfoGroup([
|
|
29
|
+
generalItemMap['label'],
|
|
30
|
+
generalItemMap['placeholder'],
|
|
31
|
+
generalItemMap['tooltip'],
|
|
32
|
+
generalItemMap['extra'],
|
|
33
|
+
generalItemMap['noStyle'],
|
|
34
|
+
generalItemMap['renderMode'],
|
|
35
|
+
{
|
|
36
|
+
name: 'defaultValue',
|
|
37
|
+
title: {
|
|
38
|
+
label: {
|
|
39
|
+
type: 'i18n',
|
|
40
|
+
'en-US': 'Default value',
|
|
41
|
+
'zh-CN': '默认值',
|
|
42
|
+
},
|
|
43
|
+
tip: {
|
|
44
|
+
type: 'i18n',
|
|
45
|
+
'en-US': 'Default value',
|
|
46
|
+
'zh-CN': '默认值',
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
setter: 'DateSetter',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: 'format',
|
|
53
|
+
title: {
|
|
54
|
+
label: {
|
|
55
|
+
type: 'i18n',
|
|
56
|
+
'en-US': 'Format',
|
|
57
|
+
'zh-CN': '格式',
|
|
58
|
+
},
|
|
59
|
+
tip: {
|
|
60
|
+
type: 'i18n',
|
|
61
|
+
'en-US': 'Date format',
|
|
62
|
+
'zh-CN': '日期格式',
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
propType: 'string',
|
|
66
|
+
setter: {
|
|
67
|
+
componentName: 'SelectSetter',
|
|
68
|
+
props: {
|
|
69
|
+
options: [
|
|
70
|
+
{
|
|
71
|
+
title: 'YYYY',
|
|
72
|
+
value: 'YYYY',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
title: 'YYYY-MM',
|
|
76
|
+
value: 'YYYY-MM',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
title: 'YYYY-MM-DD',
|
|
80
|
+
value: 'YYYY-MM-DD',
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
title: 'MM/DD/YYYY',
|
|
84
|
+
value: 'MM/DD/YYYY',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
title: 'DD/MM/YYYY',
|
|
88
|
+
value: 'DD/MM/YYYY',
|
|
89
|
+
},
|
|
90
|
+
],
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
defaultValue: 'YYYY-MM-DD',
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: 'showTime',
|
|
97
|
+
title: {
|
|
98
|
+
label: {
|
|
99
|
+
type: 'i18n',
|
|
100
|
+
'en-US': 'Show Time',
|
|
101
|
+
'zh-CN': '显示时间',
|
|
102
|
+
},
|
|
103
|
+
tip: {
|
|
104
|
+
type: 'i18n',
|
|
105
|
+
'en-US': 'Whether to show time picker',
|
|
106
|
+
'zh-CN': '是否显示时间选择器',
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
propType: 'bool',
|
|
110
|
+
setter: 'BoolSetter',
|
|
111
|
+
defaultValue: false,
|
|
112
|
+
extraProps: {
|
|
113
|
+
setValue: (target: any, value: any) => {
|
|
114
|
+
if (value) {
|
|
115
|
+
return target.getProps().setPropValue('showTime.format', 'HH:mm');
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
return target.getProps().setPropValue('showTime', value);
|
|
119
|
+
},
|
|
120
|
+
getValue: (target: any) => {
|
|
121
|
+
return !!target.getProps().getPropValue('showTime');
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
name: 'showTime.format',
|
|
127
|
+
title: {
|
|
128
|
+
label: {
|
|
129
|
+
type: 'i18n',
|
|
130
|
+
'en-US': 'Time Format',
|
|
131
|
+
'zh-CN': '时间格式',
|
|
132
|
+
},
|
|
133
|
+
tip: {
|
|
134
|
+
type: 'i18n',
|
|
135
|
+
'en-US': 'Time format',
|
|
136
|
+
'zh-CN': '时间格式',
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
propType: 'string',
|
|
140
|
+
condition: (target: any) => {
|
|
141
|
+
return target.getProps().getPropValue('showTime');
|
|
142
|
+
},
|
|
143
|
+
setter: {
|
|
144
|
+
componentName: 'SelectSetter',
|
|
145
|
+
props: {
|
|
146
|
+
options: [
|
|
147
|
+
{
|
|
148
|
+
title: 'HH:mm:ss',
|
|
149
|
+
value: 'HH:mm:ss',
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
title: 'HH:mm',
|
|
153
|
+
value: 'HH:mm',
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
title: 'HH',
|
|
157
|
+
value: 'HH',
|
|
158
|
+
},
|
|
159
|
+
],
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
defaultValue: 'HH:mm',
|
|
163
|
+
},
|
|
164
|
+
]),
|
|
165
|
+
getFormItemValidateGroup([generalItemMap['requiredobj']]),
|
|
166
|
+
],
|
|
22
167
|
configure: {
|
|
23
168
|
props: [
|
|
24
169
|
{
|
|
25
|
-
title:
|
|
26
|
-
display:
|
|
27
|
-
type:
|
|
170
|
+
title: '值设置',
|
|
171
|
+
display: 'block',
|
|
172
|
+
type: 'group',
|
|
28
173
|
items: [
|
|
29
174
|
{
|
|
30
|
-
name:
|
|
175
|
+
name: 'defaultValue',
|
|
31
176
|
title: {
|
|
32
|
-
label:
|
|
33
|
-
tip:
|
|
177
|
+
label: '默认值',
|
|
178
|
+
tip: 'defaultValue | 默认值',
|
|
34
179
|
},
|
|
35
|
-
propType:
|
|
36
|
-
setter:
|
|
180
|
+
propType: 'date',
|
|
181
|
+
setter: 'DateSetter',
|
|
37
182
|
},
|
|
38
183
|
{
|
|
39
|
-
name:
|
|
184
|
+
name: 'value',
|
|
40
185
|
title: {
|
|
41
|
-
label:
|
|
42
|
-
tip:
|
|
186
|
+
label: '当前值',
|
|
187
|
+
tip: 'value | 当前值',
|
|
43
188
|
},
|
|
44
|
-
propType:
|
|
45
|
-
setter:
|
|
189
|
+
propType: 'date',
|
|
190
|
+
setter: 'DateSetter',
|
|
46
191
|
},
|
|
47
192
|
],
|
|
48
193
|
},
|
|
49
194
|
{
|
|
50
|
-
title:
|
|
51
|
-
display:
|
|
52
|
-
type:
|
|
195
|
+
title: '功能选项',
|
|
196
|
+
display: 'block',
|
|
197
|
+
type: 'group',
|
|
53
198
|
items: [
|
|
54
199
|
{
|
|
55
|
-
name:
|
|
200
|
+
name: 'size',
|
|
56
201
|
title: {
|
|
57
|
-
label:
|
|
58
|
-
tip:
|
|
202
|
+
label: '尺寸',
|
|
203
|
+
tip: 'size | 输入框大小',
|
|
59
204
|
},
|
|
60
205
|
propType: {
|
|
61
|
-
type:
|
|
62
|
-
value: [
|
|
206
|
+
type: 'oneOf',
|
|
207
|
+
value: ['large', 'middle', 'small'],
|
|
63
208
|
},
|
|
64
209
|
setter: {
|
|
65
|
-
componentName:
|
|
210
|
+
componentName: 'RadioGroupSetter',
|
|
66
211
|
props: {
|
|
67
212
|
options: [
|
|
68
213
|
{
|
|
69
|
-
title:
|
|
70
|
-
value:
|
|
214
|
+
title: '大',
|
|
215
|
+
value: 'large',
|
|
71
216
|
},
|
|
72
217
|
{
|
|
73
|
-
title:
|
|
74
|
-
value:
|
|
218
|
+
title: '中',
|
|
219
|
+
value: 'middle',
|
|
75
220
|
},
|
|
76
221
|
{
|
|
77
|
-
title:
|
|
78
|
-
value:
|
|
222
|
+
title: '小',
|
|
223
|
+
value: 'small',
|
|
79
224
|
},
|
|
80
225
|
],
|
|
81
226
|
},
|
|
82
227
|
},
|
|
83
|
-
defaultValue:
|
|
228
|
+
defaultValue: 'middle',
|
|
84
229
|
},
|
|
85
230
|
{
|
|
86
|
-
name:
|
|
231
|
+
name: 'picker',
|
|
87
232
|
title: {
|
|
88
|
-
label:
|
|
89
|
-
tip:
|
|
233
|
+
label: '日期类型',
|
|
234
|
+
tip: 'picker | 选择器日期类型',
|
|
90
235
|
},
|
|
91
236
|
setter: {
|
|
92
|
-
componentName:
|
|
237
|
+
componentName: 'SelectSetter',
|
|
93
238
|
props: {
|
|
94
239
|
options: [
|
|
95
240
|
{
|
|
96
|
-
title:
|
|
97
|
-
value:
|
|
241
|
+
title: '日期',
|
|
242
|
+
value: 'date',
|
|
98
243
|
},
|
|
99
244
|
{
|
|
100
|
-
title:
|
|
101
|
-
value:
|
|
245
|
+
title: '周',
|
|
246
|
+
value: 'week',
|
|
102
247
|
},
|
|
103
248
|
{
|
|
104
|
-
title:
|
|
105
|
-
value:
|
|
249
|
+
title: '月份',
|
|
250
|
+
value: 'month',
|
|
106
251
|
},
|
|
107
252
|
{
|
|
108
|
-
title:
|
|
109
|
-
value:
|
|
253
|
+
title: '季度',
|
|
254
|
+
value: 'quarter',
|
|
110
255
|
},
|
|
111
256
|
{
|
|
112
|
-
title:
|
|
113
|
-
value:
|
|
257
|
+
title: '年份',
|
|
258
|
+
value: 'year',
|
|
114
259
|
},
|
|
115
260
|
],
|
|
116
261
|
},
|
|
117
262
|
},
|
|
118
263
|
propType: {
|
|
119
|
-
type:
|
|
120
|
-
value: [
|
|
264
|
+
type: 'oneOf',
|
|
265
|
+
value: ['date', 'week', 'month', 'quarter', 'year'],
|
|
121
266
|
},
|
|
122
267
|
},
|
|
123
268
|
{
|
|
124
|
-
name:
|
|
269
|
+
name: 'format',
|
|
125
270
|
title: {
|
|
126
|
-
label:
|
|
127
|
-
tip:
|
|
271
|
+
label: '日期格式',
|
|
272
|
+
tip: 'format | 设置日期格式',
|
|
128
273
|
},
|
|
129
|
-
propType:
|
|
130
|
-
defaultValue:
|
|
131
|
-
setter:
|
|
274
|
+
propType: 'string',
|
|
275
|
+
defaultValue: 'YYYY-MM-DD',
|
|
276
|
+
setter: 'StringSetter',
|
|
132
277
|
},
|
|
133
278
|
{
|
|
134
|
-
name:
|
|
279
|
+
name: 'placeholder',
|
|
135
280
|
title: {
|
|
136
|
-
label:
|
|
137
|
-
tip:
|
|
281
|
+
label: '提示文字',
|
|
282
|
+
tip: 'placeholder | 输入框提示文字',
|
|
138
283
|
},
|
|
139
|
-
propType:
|
|
140
|
-
setter:
|
|
284
|
+
propType: 'string',
|
|
285
|
+
setter: 'PisellI18nSetter',
|
|
141
286
|
},
|
|
142
287
|
{
|
|
143
|
-
name:
|
|
288
|
+
name: 'allowClear',
|
|
144
289
|
title: {
|
|
145
|
-
label:
|
|
146
|
-
tip:
|
|
290
|
+
label: '支持清除',
|
|
291
|
+
tip: 'allowClear | 是否允许清除',
|
|
147
292
|
},
|
|
148
|
-
propType:
|
|
293
|
+
propType: 'bool',
|
|
149
294
|
defaultValue: true,
|
|
150
|
-
setter:
|
|
295
|
+
setter: 'BoolSetter',
|
|
151
296
|
},
|
|
152
297
|
{
|
|
153
|
-
name:
|
|
298
|
+
name: 'bordered',
|
|
154
299
|
title: {
|
|
155
|
-
label:
|
|
156
|
-
tip:
|
|
300
|
+
label: '显示边框',
|
|
301
|
+
tip: 'bordered | 是否有边框',
|
|
157
302
|
},
|
|
158
|
-
propType:
|
|
303
|
+
propType: 'bool',
|
|
159
304
|
defaultValue: true,
|
|
160
|
-
setter:
|
|
305
|
+
setter: 'BoolSetter',
|
|
161
306
|
},
|
|
162
307
|
{
|
|
163
308
|
name: 'className',
|
|
164
309
|
title: { label: '选择器类名', tip: '选择器类名' },
|
|
165
310
|
propType: 'string',
|
|
166
|
-
setter: 'StringSetter'
|
|
311
|
+
setter: 'StringSetter',
|
|
167
312
|
},
|
|
168
313
|
{
|
|
169
|
-
name:
|
|
314
|
+
name: 'showToday',
|
|
170
315
|
title: {
|
|
171
|
-
label:
|
|
172
|
-
tip:
|
|
316
|
+
label: '展示今天按钮',
|
|
317
|
+
tip: 'showToday | 是否展示今天按钮',
|
|
173
318
|
},
|
|
174
|
-
propType:
|
|
319
|
+
propType: 'bool',
|
|
175
320
|
defaultValue: true,
|
|
176
|
-
setter:
|
|
321
|
+
setter: 'BoolSetter',
|
|
177
322
|
},
|
|
178
323
|
{
|
|
179
|
-
name:
|
|
324
|
+
name: 'autoFocus',
|
|
180
325
|
title: {
|
|
181
|
-
label:
|
|
182
|
-
tip:
|
|
326
|
+
label: '自动聚焦',
|
|
327
|
+
tip: 'autoFocus | 自动获取焦点',
|
|
183
328
|
},
|
|
184
|
-
propType:
|
|
329
|
+
propType: 'bool',
|
|
185
330
|
defaultValue: false,
|
|
186
|
-
setter:
|
|
331
|
+
setter: 'BoolSetter',
|
|
187
332
|
},
|
|
188
333
|
{
|
|
189
|
-
name:
|
|
334
|
+
name: 'disabled',
|
|
190
335
|
title: {
|
|
191
|
-
label:
|
|
192
|
-
tip:
|
|
336
|
+
label: '是否禁用',
|
|
337
|
+
tip: 'disabled | 是否为禁用状态',
|
|
193
338
|
},
|
|
194
|
-
propType:
|
|
339
|
+
propType: 'bool',
|
|
195
340
|
defaultValue: false,
|
|
196
|
-
setter:
|
|
341
|
+
setter: 'BoolSetter',
|
|
197
342
|
},
|
|
198
343
|
{
|
|
199
|
-
name:
|
|
344
|
+
name: 'inputReadOnly',
|
|
200
345
|
title: {
|
|
201
|
-
label:
|
|
202
|
-
tip:
|
|
346
|
+
label: '是否只读',
|
|
347
|
+
tip: 'inputReadOnly | 避免在移动设备上打开虚拟键盘',
|
|
203
348
|
},
|
|
204
|
-
propType:
|
|
349
|
+
propType: 'bool',
|
|
205
350
|
defaultValue: false,
|
|
206
|
-
setter:
|
|
351
|
+
setter: 'BoolSetter',
|
|
207
352
|
},
|
|
208
353
|
{
|
|
209
|
-
name:
|
|
354
|
+
name: 'showTime',
|
|
210
355
|
title: {
|
|
211
|
-
label:
|
|
212
|
-
tip:
|
|
356
|
+
label: '时间选择',
|
|
357
|
+
tip: 'showTime | 是否能选择时间',
|
|
213
358
|
},
|
|
214
|
-
propType:
|
|
359
|
+
propType: 'bool',
|
|
215
360
|
defaultValue: false,
|
|
216
|
-
setter:
|
|
361
|
+
setter: 'BoolSetter',
|
|
217
362
|
},
|
|
218
363
|
],
|
|
219
364
|
},
|
|
220
365
|
{
|
|
221
|
-
title:
|
|
222
|
-
display:
|
|
223
|
-
type:
|
|
366
|
+
title: '高级',
|
|
367
|
+
display: 'block',
|
|
368
|
+
type: 'group',
|
|
224
369
|
items: [
|
|
225
370
|
{
|
|
226
|
-
name:
|
|
371
|
+
name: 'disabledDate',
|
|
227
372
|
title: {
|
|
228
|
-
label:
|
|
229
|
-
tip:
|
|
373
|
+
label: '不可选日期',
|
|
374
|
+
tip: 'disabledDate | 不可选择的日期',
|
|
230
375
|
},
|
|
231
|
-
propType:
|
|
376
|
+
propType: 'func',
|
|
232
377
|
setter: [
|
|
233
378
|
{
|
|
234
|
-
componentName:
|
|
379
|
+
componentName: 'FunctionSetter',
|
|
235
380
|
props: {
|
|
236
381
|
template:
|
|
237
|
-
|
|
382
|
+
'disabledDate(currentDate,${extParams}){\n// 设置不可选择的日期\nreturn true\n}',
|
|
238
383
|
},
|
|
239
384
|
},
|
|
240
|
-
|
|
385
|
+
'VariableSetter',
|
|
241
386
|
],
|
|
242
387
|
},
|
|
243
388
|
],
|
|
@@ -270,17 +415,17 @@ export default {
|
|
|
270
415
|
style: true,
|
|
271
416
|
events: [
|
|
272
417
|
{
|
|
273
|
-
name:
|
|
418
|
+
name: 'onChange',
|
|
274
419
|
template:
|
|
275
420
|
"onChange(date,dateString,${extParams}){\n// 时间发生变化的回调\nconsole.log('onChange',date,dateString);}",
|
|
276
421
|
},
|
|
277
422
|
{
|
|
278
|
-
name:
|
|
423
|
+
name: 'onOpenChange',
|
|
279
424
|
template:
|
|
280
425
|
"onOpenChange(open,${extParams}){\n// 弹出日历和关闭日历的回调\nconsole.log('onOpenChange',open);}",
|
|
281
426
|
},
|
|
282
427
|
{
|
|
283
|
-
name:
|
|
428
|
+
name: 'onPanelChange',
|
|
284
429
|
template:
|
|
285
430
|
"onPanelChange(value,mode,${extParams}){\n// 日历面板切换的回调\nconsole.log('onPanelChange',value,mode);}",
|
|
286
431
|
},
|
|
@@ -1,50 +1,53 @@
|
|
|
1
1
|
export default [
|
|
2
2
|
{
|
|
3
|
-
title: '
|
|
3
|
+
title: '日期输入',
|
|
4
4
|
screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/date-picker-1.png',
|
|
5
5
|
schema: {
|
|
6
|
-
|
|
7
|
-
props: {},
|
|
8
|
-
},
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
title: '选择周',
|
|
12
|
-
screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/date-picker-2.png',
|
|
13
|
-
schema: {
|
|
14
|
-
componentName: 'FormItemDatePicker',
|
|
15
|
-
props: {
|
|
16
|
-
picker: 'week',
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
title: '选择月份',
|
|
22
|
-
screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/date-picker-3.png',
|
|
23
|
-
schema: {
|
|
24
|
-
componentName: 'FormItemDatePicker',
|
|
25
|
-
props: {
|
|
26
|
-
picker: 'month',
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
title: '选择季度',
|
|
32
|
-
screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/date-picker-4.png',
|
|
33
|
-
schema: {
|
|
34
|
-
componentName: 'FormItemDatePicker',
|
|
35
|
-
props: {
|
|
36
|
-
picker: 'quarter',
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
title: '选择年份',
|
|
42
|
-
screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/date-picker-5.png',
|
|
43
|
-
schema: {
|
|
6
|
+
title: '日期输入',
|
|
44
7
|
componentName: 'FormItemDatePicker',
|
|
45
8
|
props: {
|
|
46
|
-
|
|
9
|
+
showTime: false
|
|
47
10
|
},
|
|
48
11
|
},
|
|
49
12
|
},
|
|
13
|
+
// {
|
|
14
|
+
// title: '选择周',
|
|
15
|
+
// screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/date-picker-2.png',
|
|
16
|
+
// schema: {
|
|
17
|
+
// componentName: 'FormItemDatePicker',
|
|
18
|
+
// props: {
|
|
19
|
+
// picker: 'week',
|
|
20
|
+
// },
|
|
21
|
+
// },
|
|
22
|
+
// },
|
|
23
|
+
// {
|
|
24
|
+
// title: '选择月份',
|
|
25
|
+
// screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/date-picker-3.png',
|
|
26
|
+
// schema: {
|
|
27
|
+
// componentName: 'FormItemDatePicker',
|
|
28
|
+
// props: {
|
|
29
|
+
// picker: 'month',
|
|
30
|
+
// },
|
|
31
|
+
// },
|
|
32
|
+
// },
|
|
33
|
+
// {
|
|
34
|
+
// title: '选择季度',
|
|
35
|
+
// screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/date-picker-4.png',
|
|
36
|
+
// schema: {
|
|
37
|
+
// componentName: 'FormItemDatePicker',
|
|
38
|
+
// props: {
|
|
39
|
+
// picker: 'quarter',
|
|
40
|
+
// },
|
|
41
|
+
// },
|
|
42
|
+
// },
|
|
43
|
+
// {
|
|
44
|
+
// title: '选择年份',
|
|
45
|
+
// screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/date-picker-5.png',
|
|
46
|
+
// schema: {
|
|
47
|
+
// componentName: 'FormItemDatePicker',
|
|
48
|
+
// props: {
|
|
49
|
+
// picker: 'year',
|
|
50
|
+
// },
|
|
51
|
+
// },
|
|
52
|
+
// },
|
|
50
53
|
];
|