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
9f2ea7ea
Commit
9f2ea7ea
authored
Nov 09, 2017
by
Leopoldthecoder
Committed by
杨奕
Nov 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Chore: doc updates
parent
aa02b420
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
18 deletions
+5
-18
examples/app.vue
examples/app.vue
+3
-4
examples/docs/zh-CN/popover.md
examples/docs/zh-CN/popover.md
+1
-1
examples/docs/zh-CN/tooltip.md
examples/docs/zh-CN/tooltip.md
+1
-1
packages/message/src/main.vue
packages/message/src/main.vue
+0
-12
No files found.
examples/app.vue
View file @
9f2ea7ea
...
...
@@ -219,6 +219,7 @@
const
preferGithub
=
localStorage
.
getItem
(
'
PREFER_GITHUB
'
);
if
(
href
.
indexOf
(
'
element-cn
'
)
>
-
1
||
preferGithub
)
return
;
setTimeout
(()
=>
{
if
(
this
.
lang
!==
'
zh-CN
'
)
return
;
this
.
$confirm
(
'
建议大陆用户访问部署在国内的站点,是否跳转?
'
,
'
提示
'
)
.
then
(()
=>
{
location
.
href
=
location
.
href
.
replace
(
'
element.
'
,
'
element-cn.
'
);
...
...
@@ -232,12 +233,10 @@
mounted
()
{
this
.
localize
();
if
(
this
.
lang
===
'
zh-CN
'
)
{
this
.
suggestJump
();
}
this
.
suggestJump
();
setTimeout
(()
=>
{
const
notified
=
localStorage
.
getItem
(
'
ES_NOTIFIED
'
);
if
(
!
notified
)
{
if
(
!
notified
&&
this
.
lang
!==
'
zh-CN
'
)
{
const
h
=
this
.
$createElement
;
const
title
=
this
.
lang
===
'
zh-CN
'
?
'
帮助我们完成西班牙语文档
'
...
...
examples/docs/zh-CN/popover.md
View file @
9f2ea7ea
...
...
@@ -146,7 +146,7 @@ Popover 的属性与 Tooltip 很类似,它们都是基于`Vue-popper`开发的
width=
"200"
trigger=
"focus"
content=
"这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
>
<
span
slot=
"reference"
style=
"margin-left: 10px; font-size: 14px; color: #5a5e66"
>
focus 激活
</spa
n>
<
el-button
slot=
"reference"
>
focus 激活
</el-butto
n>
</el-popover>
```
:::
...
...
examples/docs/zh-CN/tooltip.md
View file @
9f2ea7ea
...
...
@@ -63,7 +63,7 @@
<div
class=
"box"
>
<div
class=
"top"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"Top Left 提示文字"
placement=
"top-start"
>
<
span>
上左
</spa
n>
<
el-button>
上左
</el-butto
n>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"Top Center 提示文字"
placement=
"top"
>
<el-button>
上边
</el-button>
...
...
packages/message/src/main.vue
View file @
9f2ea7ea
...
...
@@ -85,18 +85,6 @@
if
(
typeof
this
.
onClose
===
'
function
'
)
{
this
.
onClose
(
this
);
}
// if (!this.originFocus || !this.originFocus.getBoundingClientRect) return;
//
// // restore keyboard focus
// const { top, left, bottom, right } = this.originFocus.getBoundingClientRect();
// const viewportHeight = window.innerHeight || document.documentElement.clientHeight;
// const viewportWidth = window.innerWidth || document.documentElement.clientWidth;
// if (top >= 0 &&
// left >= 0 &&
// bottom
<=
viewportHeight
&&
// right
<=
viewportWidth
)
{
// this.originFocus.focus();
// }
},
clearTimer
()
{
...
...
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