@@ -117,8 +117,19 @@ export default class Component extends React.Component {
117
117
</ Button >
118
118
) }
119
119
120
- < Input name = "text" required label = "Text" value = "text" />
121
- < ArrayInput name = "array" required label = "Array" value = { [ 1 , 2 , 3 ] } />
120
+ < Input
121
+ onlyLetterAndNumber
122
+ name = "text"
123
+ required
124
+ label = "Text"
125
+ initialValue = "text11"
126
+ />
127
+ < ArrayInput
128
+ name = "array"
129
+ required
130
+ label = "Array"
131
+ initialValue = { [ 1 , 2 , 3 ] }
132
+ />
122
133
< InputNumber label = "InputNumber" name = "input-number" required />
123
134
< Input label = "Email" name = "email" required type = "email" />
124
135
< Input label = "Url" name = "url" required type = "url" />
@@ -134,7 +145,11 @@ export default class Component extends React.Component {
134
145
// dataSource: ['12345', '23456', '34567'],
135
146
} ) ( < AutoComplete dataSource = { [ '12345' , '23456' , '34567' ] } /> ) }
136
147
< Input . Group compact label = { 'InputGroup' } >
137
- < Select name = "address-type" style = { { width : '30%' } } value = "Home" >
148
+ < Select
149
+ name = "address-type"
150
+ style = { { width : '30%' } }
151
+ initialValue = "Home"
152
+ >
138
153
< Option value = "Home" > Home</ Option >
139
154
< Option value = "Company" > Company</ Option >
140
155
</ Select >
@@ -154,7 +169,7 @@ export default class Component extends React.Component {
154
169
{ label : 'Pear' , value : 'Pear' } ,
155
170
{ label : 'Orange' , value : 'Orange' } ,
156
171
] }
157
- value = { [ 'Pear' ] }
172
+ initialValue = { [ 'Pear' ] }
158
173
required
159
174
/>
160
175
< Radio . Group label = "RadioGroup" name = "radiogroup" value = { 1 } >
@@ -173,7 +188,12 @@ export default class Component extends React.Component {
173
188
< Option value = "lucy" > Lucy</ Option >
174
189
< Option value = "Yiminghe" > yiminghe</ Option >
175
190
</ Select >
176
- < Select label = "Group Select" name = "group-select" required >
191
+ < Select
192
+ label = "Group Select"
193
+ name = "group-select"
194
+ required
195
+ initialValue = "jack"
196
+ >
177
197
< OptGroup label = "Manager" >
178
198
< Option value = "jack" > Jack</ Option >
179
199
< Option value = "lucy" > Lucy</ Option >
@@ -210,28 +230,28 @@ export default class Component extends React.Component {
210
230
< TimePicker
211
231
label = "TimePicker"
212
232
name = "timepicker"
213
- value = { moment ( '00:00:00' , 'HH:mm:ss' ) }
233
+ initialValue = { moment ( '00:00:00' , 'HH:mm:ss' ) }
214
234
required
215
235
/>
216
236
< DatePicker
217
237
label = "DatePicker"
218
238
name = "datepicker"
219
- value = { moment ( '2015/01/01' , dateFormat ) }
239
+ initialValue = { moment ( '2015/01/01' , dateFormat ) }
220
240
format = { dateFormat }
221
241
required
222
242
/>
223
243
< DatePicker . MonthPicker
224
244
label = "MonthPicker"
225
245
name = "monthpicker"
226
- value = { moment ( '2015/01' , monthFormat ) }
246
+ initialValue = { moment ( '2015/01' , monthFormat ) }
227
247
format = { monthFormat }
228
248
required
229
249
/>
230
250
< DatePicker . RangePicker
231
251
label = "RangePicker"
232
252
name = "rangepicker"
233
253
format = { dateFormat }
234
- value = { [
254
+ initialValue = { [
235
255
moment ( '2015/01/01' , dateFormat ) ,
236
256
moment ( '2015/02/01' , dateFormat ) ,
237
257
] }
0 commit comments