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
4ac31186
Commit
4ac31186
authored
Oct 17, 2016
by
Leopoldthecoder
Committed by
cinwell.li
Oct 17, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove errorMessage when prompt is closed
parent
3d184634
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
CHANGELOG.md
CHANGELOG.md
+2
-0
examples/docs/zh-cn/message-box.md
examples/docs/zh-cn/message-box.md
+1
-1
packages/message-box/src/main.vue
packages/message-box/src/main.vue
+7
-3
No files found.
CHANGELOG.md
View file @
4ac31186
...
...
@@ -5,6 +5,8 @@
*2016-XX-XX*
-
修复 Form reset method 对日期控件不起效的问题
-
修复 Dialog 和 Message Box 在 body 无溢出时错误地添加 padding-right 的问题
-
修复 Message Box 的 prompt 在打开时会携带之前的验证状态的问题
#### 非兼容性更新
...
...
examples/docs/zh-cn/message-box.md
View file @
4ac31186
...
...
@@ -143,7 +143,7 @@
this
.
$prompt
(
'
请输入邮箱
'
,
'
提示
'
,
{
inputPattern
:
/
[\w
!#$%&'*+
/
=?^_`{|}~-
]
+
(?:\.[\w
!#$%&'*+
/
=?^_`{|}~-
]
+
)
*@
(?:[\w](?:[\w
-
]
*
[\w])?\.)
+
[\w](?:[\w
-
]
*
[\w])?
/
,
inputErrorMessage
:
'
邮箱格式不正确
'
}).
then
(
value
=>
{
}).
then
(
({
value
})
=>
{
this
.
$message
({
type
:
'
success
'
,
message
:
'
你的邮箱是:
'
+
value
...
...
packages/message-box/src/main.vue
View file @
4ac31186
...
...
@@ -140,19 +140,23 @@
},
watch
:
{
inputValue
()
{
if
(
this
.
$type
===
'
prompt
'
)
{
inputValue
(
val
)
{
if
(
this
.
$type
===
'
prompt
'
&&
val
!==
null
)
{
this
.
validate
();
}
},
value
(
val
)
{
if
(
val
&&
this
.
$type
===
'
prompt
'
)
{
if
(
this
.
$type
!==
'
prompt
'
)
return
;
if
(
val
)
{
setTimeout
(()
=>
{
if
(
this
.
$refs
.
input
&&
this
.
$refs
.
input
.
$el
)
{
this
.
$refs
.
input
.
$el
.
querySelector
(
'
input
'
).
focus
();
}
},
500
);
}
else
{
this
.
editorErrorMessage
=
''
;
removeClass
(
this
.
$refs
.
input
.
$el
.
querySelector
(
'
input
'
),
'
invalid
'
);
}
}
},
...
...
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