Skip to content

Commit 47f5173

Browse files
author
hy
committed
fix(form) form表单组件增加VerificationCode验证码倒计时组件
1 parent c721982 commit 47f5173

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

example/examples/src/routes/Form/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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',

packages/core/src/Form/form.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import Slider from '../Slider';
88
import SearchBar from '../SearchBar';
99
import Stepper from '../Stepper';
1010
import TreeSelect from '../TreeSelect';
11+
import VerificationCode from '../VerificationCode';
1112
import DatePeriodInput from '../DatePicker/date-period-input';
1213
import Input from './comps/input';
1314
import 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
};

0 commit comments

Comments
 (0)