Commit 9fd30cb8 authored by 前端-许佳敏's avatar 前端-许佳敏

fix

parent e24680c0
......@@ -16,10 +16,14 @@ const Phone = (props) => {
const { value, form, schema } = props
const { smsFn, ...componentProps } = schema.getExtendsComponentProps() || {}
console.log(smsFn, componentProps)
const [loading, setLoading] = useState(false)
const handleClickSms = () => {
if (smsFn) {
smsFn(form, () => {
})
}
form.validate('phone').then(result => {
// 暂时写死, 需优化该组件
setLoading(true)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment