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
7 years ago
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 为空时关闭展开的tree
parent
7771ff9b
master
dependabot/npm_and_yarn/handlebars-4.5.3
dependabot/npm_and_yarn/sshpk-1.16.1
dev
gengmei
koko
manual
v52
v54
1.5.6
1.5.5
1.5.4
1.5.3
1.5.2
1.5.1
1.5.0
1.4.10
1.4.9
1.4.8
1.4.7
1.4.6
1.4.5
1.4.4
1.4.3
1.4.2
1.4.1
1.4.0
1.3.3
1.3.2
1.3.1
1.0.0
v1.4.7
v1.4.4
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
zh-CN.json
i18n/zh-CN.json
+2
-0
asset-tree.component.ts
src/app/elements/asset-tree/asset-tree.component.ts
+5
-2
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
This diff is collapsed.
Click to expand it.
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
);
if
(
_keywords
)
{
zTreeObj
.
expandAll
(
true
);
}
else
{
zTreeObj
.
expandAll
(
false
);
}
}
}
...
...
This diff is collapsed.
Click to expand it.
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.'
;
This diff is collapsed.
Click to expand it.
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