Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenshaokai
jinfa-platform
Commits
9fd30cb8
Commit
9fd30cb8
authored
Oct 21, 2020
by
前端-许佳敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
e24680c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
Phone.tsx
src/components/NiceForm/components/Phone.tsx
+5
-1
No files found.
src/components/NiceForm/components/Phone.tsx
View file @
9fd30cb8
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment