Skip to content

Commit

Permalink
fix(form) form表单组件增加VerificationCode验证码倒计时组件
Browse files Browse the repository at this point in the history
  • Loading branch information
hy committed Apr 19, 2023
1 parent c721982 commit 47f5173
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 5 additions & 5 deletions example/examples/src/routes/Form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,11 @@ const FormDemo = () => {
type: 'datePeriodInput',
field: 'datePeriodInput',
name: '时间区间选择器',
attr: {
placeholder: ['请选择1', '请选择1'],
mode: 'date',
format: 'YYYY-MM-DD',
},
},
{
type: 'verificationCode',
field: 'verificationCode',
name: '验证码倒计时',
},
{
type: 'treeSelect',
Expand Down
2 changes: 2 additions & 0 deletions packages/core/src/Form/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import Slider from '../Slider';
import SearchBar from '../SearchBar';
import Stepper from '../Stepper';
import TreeSelect from '../TreeSelect';
import VerificationCode from '../VerificationCode';
import DatePeriodInput from '../DatePicker/date-period-input';
import Input from './comps/input';
import Rating from './comps/rate';
Expand Down Expand Up @@ -63,6 +64,7 @@ const Form = (baseProps: FormProps) => {
picker: <Picker />,
datePicker: <DatePicker />,
datePeriodInput: <DatePeriodInput />,
verificationCode: <VerificationCode outerStyle={{ backgroundColor: '#FFF' }} />,
},
changeValidate: changeValidate,
};
Expand Down

0 comments on commit 47f5173

Please sign in to comment.