mirror of https://github.com/ElemeFE/element
Tree: fix updateChildren
parent
363a80b184
commit
7f8991a664
|
@ -236,12 +236,12 @@
|
||||||
this.suggestJump();
|
this.suggestJump();
|
||||||
}
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
const notified = localStorage.getItem('RELEASE_NOTIFIED');
|
const notified = localStorage.getItem('ES_NOTIFIED');
|
||||||
if (!notified) {
|
if (!notified) {
|
||||||
const h = this.$createElement;
|
const h = this.$createElement;
|
||||||
const title = this.lang === 'zh-CN'
|
const title = this.lang === 'zh-CN'
|
||||||
? '2.0 正式发布'
|
? '帮助我们完成西班牙语文档'
|
||||||
: '2.0 available now';
|
: 'Help us with Spanish docs';
|
||||||
const messages = this.lang === 'zh-CN'
|
const messages = this.lang === 'zh-CN'
|
||||||
? ['点击', '这里', '查看详情']
|
? ['点击', '这里', '查看详情']
|
||||||
: ['Click ', 'here', ' to learn more'];
|
: ['Click ', 'here', ' to learn more'];
|
||||||
|
@ -253,13 +253,13 @@
|
||||||
h('a', {
|
h('a', {
|
||||||
attrs: {
|
attrs: {
|
||||||
target: '_blank',
|
target: '_blank',
|
||||||
href: `https://github.com/ElemeFE/element/issues/${ this.lang === 'zh-CN' ? '7755' : '7756' }`
|
href: 'https://github.com/ElemeFE/element/issues/8074'
|
||||||
}
|
}
|
||||||
}, messages[1]),
|
}, messages[1]),
|
||||||
messages[2]
|
messages[2]
|
||||||
]),
|
]),
|
||||||
onClose() {
|
onClose() {
|
||||||
localStorage.setItem('RELEASE_NOTIFIED', 1);
|
localStorage.setItem('ES_NOTIFIED', 1);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Element Angular",
|
"name": "Element Angular",
|
||||||
"href": "https://eleme.github.io/element-angular/"
|
"href": "https://element-angular.faas.ele.me/"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "开发指南",
|
"name": "开发指南",
|
||||||
|
@ -260,7 +260,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Element Angular",
|
"name": "Element Angular",
|
||||||
"href": "https://eleme.github.io/element-angular/"
|
"href": "https://element-angular.faas.ele.me/"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Development",
|
"name": "Development",
|
||||||
|
|
|
@ -198,9 +198,10 @@ export default class TreeStore {
|
||||||
const node = this.nodesMap[key];
|
const node = this.nodesMap[key];
|
||||||
if (!node) return;
|
if (!node) return;
|
||||||
const childNodes = node.childNodes;
|
const childNodes = node.childNodes;
|
||||||
childNodes.forEach(child => {
|
for (let i = childNodes.length - 1; i >= 0; i--) {
|
||||||
|
const child = childNodes[i];
|
||||||
this.remove(child.data);
|
this.remove(child.data);
|
||||||
});
|
}
|
||||||
for (let i = 0, j = data.length; i < j; i++) {
|
for (let i = 0, j = data.length; i < j; i++) {
|
||||||
const child = data[i];
|
const child = data[i];
|
||||||
this.append(child, node.data);
|
this.append(child, node.data);
|
||||||
|
|
Loading…
Reference in New Issue