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
e62c2f8b
Commit
e62c2f8b
authored
Mar 26, 2018
by
杨奕
Committed by
GitHub
Mar 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Chore: misc updates (#10370)
parent
39ba058d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
18 deletions
+23
-18
examples/app.vue
examples/app.vue
+3
-1
packages/message-box/src/main.vue
packages/message-box/src/main.vue
+20
-17
No files found.
examples/app.vue
View file @
e62c2f8b
...
...
@@ -234,7 +234,9 @@
if
(
this
.
lang
!==
'
zh-CN
'
)
return
;
this
.
$confirm
(
'
建议大陆用户访问部署在国内的站点,是否跳转?
'
,
'
提示
'
)
.
then
(()
=>
{
location
.
href
=
location
.
href
.
replace
(
'
element.
'
,
'
element-cn.
'
);
location
.
href
=
location
.
href
.
replace
(
'
https:
'
,
'
http:
'
)
.
replace
(
'
element.
'
,
'
element-cn.
'
);
})
.
catch
(()
=>
{
localStorage
.
setItem
(
'
PREFER_GITHUB
'
,
'
true
'
);
...
...
packages/message-box/src/main.vue
View file @
e62c2f8b
...
...
@@ -7,26 +7,31 @@
@
click.self=
"handleWrapperClick"
role=
"dialog"
aria-modal=
"true"
:aria-label=
"title || 'dialog'"
>
:aria-label=
"title || 'dialog'"
>
<div
class=
"el-message-box"
:class=
"[customClass, center && 'el-message-box--center']"
>
<div
class=
"el-message-box__header"
v-if=
"title !== null"
>
<div
class=
"el-message-box__title"
>
<div
class=
"el-message-box__status"
:class=
"[ typeClass ]"
v-if=
"typeClass && center && message !== ''"
></div>
<div
:class=
"['el-message-box__status', typeClass]"
v-if=
"typeClass && center"
>
</div>
<span>
{{
title
}}
</span>
</div>
<button
type=
"button"
class=
"el-message-box__headerbt
n"
aria-label=
"Close
"
v-if=
"show
Close"
@
click=
"handleAction('cancel')
"
@
keydown.enter
=
"handleAction('cancel')"
>
<button
type=
"butto
n"
class=
"el-message-box__headerbtn
"
aria-label=
"
Close"
v-if=
"showClose
"
@
click
=
"handleAction('cancel')"
@
keydown.enter=
"handleAction('cancel')"
>
<i
class=
"el-message-box__close el-icon-close"
></i>
</button>
</div>
<div
class=
"el-message-box__content"
>
<div
class=
"el-message-box__status"
:class=
"[ typeClass ]"
v-if=
"typeClass && !center"
></div>
<div
:class=
"['el-message-box__status', typeClass]"
v-if=
"typeClass && !center && message !== ''"
>
</div>
<div
class=
"el-message-box__message"
v-if=
"message !== ''"
>
<slot>
<p
v-if=
"!dangerouslyUseHTMLString"
>
{{
message
}}
</p>
...
...
@@ -37,7 +42,7 @@
<el-input
v-model=
"inputValue"
:type=
"inputType"
@
keydown.enter.native=
"handleInputEnter
()
"
@
keydown.enter.native=
"handleInputEnter"
:placeholder=
"inputPlaceholder"
ref=
"input"
></el-input>
<div
class=
"el-message-box__errormsg"
:style=
"
{ visibility: !!editorErrorMessage ? 'visible' : 'hidden' }">
{{
editorErrorMessage
}}
</div>
...
...
@@ -47,12 +52,11 @@
<el-button
:loading=
"cancelButtonLoading"
:class=
"[ cancelButtonClasses ]"
v-
show
=
"showCancelButton"
v-
if
=
"showCancelButton"
:round=
"roundButton"
size=
"small"
@
click.native=
"handleAction('cancel')"
@
keydown.enter=
"handleAction('cancel')"
>
@
keydown.enter=
"handleAction('cancel')"
>
{{
cancelButtonText
||
t
(
'
el.messagebox.cancel
'
)
}}
</el-button>
<el-button
...
...
@@ -63,8 +67,7 @@
:round=
"roundButton"
size=
"small"
@
click.native=
"handleAction('confirm')"
@
keydown.enter=
"handleAction('confirm')"
>
@
keydown.enter=
"handleAction('confirm')"
>
{{
confirmButtonText
||
t
(
'
el.messagebox.confirm
'
)
}}
</el-button>
</div>
...
...
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