Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
najiu-admin-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
najiu-frontend
najiu-admin-template
Commits
80b47c84
Commit
80b47c84
authored
Mar 04, 2021
by
Vben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(tree): fix the logic problem of show attribute of ActionItem under BasicTree
parent
83a34603
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
CHANGELOG.zh_CN.md
CHANGELOG.zh_CN.md
+1
-0
index.vue
src/components/Tree/src/index.vue
+5
-5
No files found.
CHANGELOG.zh_CN.md
View file @
80b47c84
...
...
@@ -4,6 +4,7 @@
-
修复
`Description`
已知问题
-
修复
`BasicForm`
已知问题
-
修复
`BasicTree`
下 ActionItem 的 show 属性逻辑问题
## 2.0.2 (2021-03-04)
...
...
src/components/Tree/src/index.vue
View file @
80b47c84
...
...
@@ -236,13 +236,14 @@
const
{
actionList
}
=
props
;
if
(
!
actionList
||
actionList
.
length
===
0
)
return
;
return
actionList
.
map
((
item
,
index
)
=>
{
let
nodeShow
=
true
;
if
(
isFunction
(
item
.
show
))
{
return
item
.
show
?.(
node
);
nodeShow
=
item
.
show
?.(
node
);
}
else
if
(
isBoolean
(
item
.
show
))
{
nodeShow
=
item
.
show
;
}
if
(
isBoolean
(
item
.
show
))
{
return
item
.
show
;
}
if
(
!
nodeShow
)
return
null
;
return
(
<
span
key
=
{
index
}
class
=
{
`
${
prefixCls
}
__action`
}
>
...
...
@@ -343,7 +344,6 @@
}
&__content {
// display: inline-block;
overflow: hidden;
}
...
...
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