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 = () => {
142142 type : 'datePeriodInput' ,
143143 field : 'datePeriodInput' ,
144144 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 : '验证码倒计时' ,
150150 } ,
151151 {
152152 type : 'treeSelect' ,
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import Slider from '../Slider';
88import SearchBar from '../SearchBar' ;
99import Stepper from '../Stepper' ;
1010import TreeSelect from '../TreeSelect' ;
11+ import VerificationCode from '../VerificationCode' ;
1112import DatePeriodInput from '../DatePicker/date-period-input' ;
1213import Input from './comps/input' ;
1314import Rating from './comps/rate' ;
@@ -63,6 +64,7 @@ const Form = (baseProps: FormProps) => {
6364 picker : < Picker /> ,
6465 datePicker : < DatePicker /> ,
6566 datePeriodInput : < DatePeriodInput /> ,
67+ verificationCode : < VerificationCode outerStyle = { { backgroundColor : '#FFF' } } /> ,
6668 } ,
6769 changeValidate : changeValidate ,
6870 } ;
You can’t perform that action at this time.
0 commit comments