Chore: doc updates

This commit is contained in:
Leopoldthecoder 2017-11-09 15:12:55 +08:00 committed by 杨奕
parent aa02b42022
commit 9f2ea7eab0
4 changed files with 5 additions and 18 deletions

View File

@ -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'
? '帮助我们完成西班牙语文档'

View File

@ -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 激活</span>
<el-button slot="reference">focus 激活</el-button>
</el-popover>
```
:::

View File

@ -63,7 +63,7 @@
<div class="box">
<div class="top">
<el-tooltip class="item" effect="dark" content="Top Left 提示文字" placement="top-start">
<span>上左</span>
<el-button>上左</el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="Top Center 提示文字" placement="top">
<el-button>上边</el-button>

View File

@ -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() {