File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
example/examples/src/routes/Form Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -142,11 +142,11 @@ const FormDemo = () => {
142
142
type : 'datePeriodInput' ,
143
143
field : 'datePeriodInput' ,
144
144
name : '时间区间选择器' ,
145
- attr : {
146
- placeholder : [ '请选择1' , '请选择1' ] ,
147
- mode : 'date ' ,
148
- format : 'YYYY-MM-DD ' ,
149
- } ,
145
+ } ,
146
+ {
147
+ type : 'verificationCode ' ,
148
+ field : 'verificationCode ' ,
149
+ name : '验证码倒计时' ,
150
150
} ,
151
151
{
152
152
type : 'treeSelect' ,
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import Slider from '../Slider';
8
8
import SearchBar from '../SearchBar' ;
9
9
import Stepper from '../Stepper' ;
10
10
import TreeSelect from '../TreeSelect' ;
11
+ import VerificationCode from '../VerificationCode' ;
11
12
import DatePeriodInput from '../DatePicker/date-period-input' ;
12
13
import Input from './comps/input' ;
13
14
import Rating from './comps/rate' ;
@@ -63,6 +64,7 @@ const Form = (baseProps: FormProps) => {
63
64
picker : < Picker /> ,
64
65
datePicker : < DatePicker /> ,
65
66
datePeriodInput : < DatePeriodInput /> ,
67
+ verificationCode : < VerificationCode outerStyle = { { backgroundColor : '#FFF' } } /> ,
66
68
} ,
67
69
changeValidate : changeValidate ,
68
70
} ;
You can’t perform that action at this time.
0 commit comments