Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
L
luna
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
luna
Commits
9acf0ceb
Commit
9acf0ceb
authored
May 09, 2018
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 为空时关闭展开的tree
parent
7771ff9b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
zh-CN.json
i18n/zh-CN.json
+2
-0
asset-tree.component.ts
src/app/elements/asset-tree/asset-tree.component.ts
+6
-3
environment.prod.ts
src/environments/environment.prod.ts
+2
-1
No files found.
i18n/zh-CN.json
0 → 120000
View file @
9acf0ceb
cn.json
\ No newline at end of file
src/app/elements/asset-tree/asset-tree.component.ts
View file @
9acf0ceb
...
...
@@ -184,10 +184,10 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges {
filter
()
{
const
zTreeObj
=
$
.
fn
.
zTree
.
getZTreeObj
(
'ztree'
);
const
_keywords
=
$
(
'#keyword'
).
val
();
zTreeObj
.
showNodes
(
this
.
hiddenNodes
);
function
filterFunc
(
node
)
{
const
_keywords
=
$
(
'#keyword'
).
val
();
if
(
node
.
isParent
||
node
.
name
.
indexOf
(
_keywords
)
!==
-
1
)
{
return
false
;
}
...
...
@@ -195,9 +195,12 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges {
}
this
.
hiddenNodes
=
zTreeObj
.
getNodesByFilter
(
filterFunc
);
zTreeObj
.
hideNodes
(
this
.
hiddenNodes
);
zTreeObj
.
expandAll
(
true
);
if
(
_keywords
)
{
zTreeObj
.
expandAll
(
true
);
}
else
{
zTreeObj
.
expandAll
(
false
);
}
}
}
...
...
src/environments/environment.prod.ts
View file @
9acf0ceb
export
const
environment
=
{
production
:
true
};
export
const
version
=
'1.3.0-{{BUILD_NUMBER}} GPLv2.'
;
// export const version = '1.3.0-{{BUILD_NUMBER}} GPLv2.';
export
const
version
=
'1.3.0-101 GPLv2.'
;
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