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
1e61da64
Commit
1e61da64
authored
Jul 07, 2021
by
无木
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(table): fix tree node align
修复树形表格的带有展开图标的单元格的内容对齐问题 fixed: #829
parent
9228282a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
CHANGELOG.zh_CN.md
CHANGELOG.zh_CN.md
+3
-1
ExpandIcon.tsx
src/components/Table/src/components/ExpandIcon.tsx
+2
-2
No files found.
CHANGELOG.zh_CN.md
View file @
1e61da64
### 🐛 Bug Fixes
### 🐛 Bug Fixes
-
**Table**
修复滚动条样式问题
-
**Table**
-
修复滚动条样式问题
-
修复树形表格的带有展开图标的单元格的内容对齐问题
-
**AppSearch**
修复可能会搜索隐藏菜单的问题
-
**AppSearch**
修复可能会搜索隐藏菜单的问题
-
**其它**
修复菜单默认折叠的配置不起作用的问题
-
**其它**
修复菜单默认折叠的配置不起作用的问题
...
...
src/components/Table/src/components/ExpandIcon.tsx
View file @
1e61da64
...
@@ -3,11 +3,11 @@ import { BasicArrow } from '/@/components/Basic';
...
@@ -3,11 +3,11 @@ import { BasicArrow } from '/@/components/Basic';
export
default
()
=>
{
export
default
()
=>
{
return
(
props
:
Recordable
)
=>
{
return
(
props
:
Recordable
)
=>
{
if
(
!
props
.
expandable
)
{
if
(
!
props
.
expandable
)
{
return
<
span
/>;
return
<
span
class=
"ant-table-row-expand-icon ant-table-row-spaced"
/>;
}
}
return
(
return
(
<
BasicArrow
<
BasicArrow
class=
"mr-1
"
style=
"margin-right: 8px
"
iconStyle=
"margin-top: -2px;"
iconStyle=
"margin-top: -2px;"
onClick=
{
(
e
:
Event
)
=>
{
onClick=
{
(
e
:
Event
)
=>
{
props
.
onExpand
(
props
.
record
,
e
);
props
.
onExpand
(
props
.
record
,
e
);
...
...
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