Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
f377af50
Commit
f377af50
authored
Jul 24, 2017
by
ChangJoo Park(박창주)
Committed by
杨奕
Jul 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo `validae` to `validate`
parent
bd0549d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
examples/docs/en-US/form.md
examples/docs/en-US/form.md
+8
-8
No files found.
examples/docs/en-US/form.md
View file @
f377af50
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
}
}
}, 1000);
}, 1000);
};
};
var va
lida
ePass = (rule, value, callback) => {
var va
ildat
ePass = (rule, value, callback) => {
if (value === '') {
if (value === '') {
callback(new Error('Please input the password'));
callback(new Error('Please input the password'));
} else {
} else {
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
callback();
callback();
}
}
};
};
var validaePass2 = (rule, value, callback) => {
var valida
t
ePass2 = (rule, value, callback) => {
if (value === '') {
if (value === '') {
callback(new Error('Please input the password again'));
callback(new Error('Please input the password again'));
} else if (value !== this.ruleForm2.pass) {
} else if (value !== this.ruleForm2.pass) {
...
@@ -101,10 +101,10 @@
...
@@ -101,10 +101,10 @@
},
},
rules2: {
rules2: {
pass:
[
pass:
[
{ validator: validaePass, trigger: 'blur' }
{ validator: valida
t
ePass, trigger: 'blur' }
],
],
checkPass:
[
checkPass:
[
{ validator: validaePass2, trigger: 'blur' }
{ validator: valida
t
ePass2, trigger: 'blur' }
],
],
age:
[
age:
[
{ validator: checkAge, trigger: 'blur' }
{ validator: checkAge, trigger: 'blur' }
...
@@ -549,7 +549,7 @@ Form component allows you to verify your data, helping you find and correct erro
...
@@ -549,7 +549,7 @@ Form component allows you to verify your data, helping you find and correct erro
}
}
},
1000
);
},
1000
);
};
};
var
validaePass
=
(
rule
,
value
,
callback
)
=>
{
var
valida
t
ePass
=
(
rule
,
value
,
callback
)
=>
{
if
(
value
===
''
)
{
if
(
value
===
''
)
{
callback
(
new
Error
(
'
Please input the password
'
));
callback
(
new
Error
(
'
Please input the password
'
));
}
else
{
}
else
{
...
@@ -559,7 +559,7 @@ Form component allows you to verify your data, helping you find and correct erro
...
@@ -559,7 +559,7 @@ Form component allows you to verify your data, helping you find and correct erro
callback
();
callback
();
}
}
};
};
var
validaePass2
=
(
rule
,
value
,
callback
)
=>
{
var
valida
t
ePass2
=
(
rule
,
value
,
callback
)
=>
{
if
(
value
===
''
)
{
if
(
value
===
''
)
{
callback
(
new
Error
(
'
Please input the password again
'
));
callback
(
new
Error
(
'
Please input the password again
'
));
}
else
if
(
value
!==
this
.
ruleForm2
.
pass
)
{
}
else
if
(
value
!==
this
.
ruleForm2
.
pass
)
{
...
@@ -576,10 +576,10 @@ Form component allows you to verify your data, helping you find and correct erro
...
@@ -576,10 +576,10 @@ Form component allows you to verify your data, helping you find and correct erro
},
},
rules2
:
{
rules2
:
{
pass
:
[
pass
:
[
{
validator
:
validaePass
,
trigger
:
'
blur
'
}
{
validator
:
valida
t
ePass
,
trigger
:
'
blur
'
}
],
],
checkPass
:
[
checkPass
:
[
{
validator
:
validaePass2
,
trigger
:
'
blur
'
}
{
validator
:
valida
t
ePass2
,
trigger
:
'
blur
'
}
],
],
age
:
[
age
:
[
{
validator
:
checkAge
,
trigger
:
'
blur
'
}
{
validator
:
checkAge
,
trigger
:
'
blur
'
}
...
...
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