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
7f8991a6
Commit
7f8991a6
authored
Nov 08, 2017
by
Leopoldthecoder
Committed by
杨奕
Nov 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tree: fix updateChildren
parent
363a80b1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
examples/app.vue
examples/app.vue
+5
-5
examples/nav.config.json
examples/nav.config.json
+2
-2
packages/tree/src/model/tree-store.js
packages/tree/src/model/tree-store.js
+3
-2
No files found.
examples/app.vue
View file @
7f8991a6
...
...
@@ -236,12 +236,12 @@
this
.
suggestJump
();
}
setTimeout
(()
=>
{
const
notified
=
localStorage
.
getItem
(
'
RELEASE
_NOTIFIED
'
);
const
notified
=
localStorage
.
getItem
(
'
ES
_NOTIFIED
'
);
if
(
!
notified
)
{
const
h
=
this
.
$createElement
;
const
title
=
this
.
lang
===
'
zh-CN
'
?
'
2.0 正式发布
'
:
'
2.0 available now
'
;
?
'
帮助我们完成西班牙语文档
'
:
'
Help us with Spanish docs
'
;
const
messages
=
this
.
lang
===
'
zh-CN
'
?
[
'
点击
'
,
'
这里
'
,
'
查看详情
'
]
:
[
'
Click
'
,
'
here
'
,
'
to learn more
'
];
...
...
@@ -253,13 +253,13 @@
h
(
'
a
'
,
{
attrs
:
{
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
[
2
]
]),
onClose
()
{
localStorage
.
setItem
(
'
RELEASE
_NOTIFIED
'
,
1
);
localStorage
.
setItem
(
'
ES
_NOTIFIED
'
,
1
);
}
});
}
...
...
examples/nav.config.json
View file @
7f8991a6
...
...
@@ -10,7 +10,7 @@
},
{
"name"
:
"Element Angular"
,
"href"
:
"https://eleme
.github.io/element-angular
/"
"href"
:
"https://eleme
nt-angular.faas.ele.me
/"
},
{
"name"
:
"开发指南"
,
...
...
@@ -260,7 +260,7 @@
},
{
"name"
:
"Element Angular"
,
"href"
:
"https://eleme
.github.io/element-angular
/"
"href"
:
"https://eleme
nt-angular.faas.ele.me
/"
},
{
"name"
:
"Development"
,
...
...
packages/tree/src/model/tree-store.js
View file @
7f8991a6
...
...
@@ -198,9 +198,10 @@ export default class TreeStore {
const
node
=
this
.
nodesMap
[
key
];
if
(
!
node
)
return
;
const
childNodes
=
node
.
childNodes
;
childNodes
.
forEach
(
child
=>
{
for
(
let
i
=
childNodes
.
length
-
1
;
i
>=
0
;
i
--
)
{
const
child
=
childNodes
[
i
];
this
.
remove
(
child
.
data
);
}
);
}
for
(
let
i
=
0
,
j
=
data
.
length
;
i
<
j
;
i
++
)
{
const
child
=
data
[
i
];
this
.
append
(
child
,
node
.
data
);
...
...
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