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
db7254a5
Commit
db7254a5
authored
Jul 15, 2021
by
无木
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(table-action): fix `circle` button style
修复table-action组件内的圆形按钮内容没有居中的问题
parent
dc51e6a8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
13 deletions
+11
-13
CHANGELOG.zh_CN.md
CHANGELOG.zh_CN.md
+3
-1
TableAction.vue
src/components/Table/src/components/TableAction.vue
+8
-12
No files found.
CHANGELOG.zh_CN.md
View file @
db7254a5
...
...
@@ -13,7 +13,9 @@
-
新增
`headerTop`
插槽
-
修复操作列的按钮在 disabled 状态下的颜色显示
-
**AppSearch**
修复可能会搜索隐藏菜单的问题
-
**TableAction**
仅在 action.tooltip 存在的情况下 才包裹 Tooltip 组件
-
**TableAction**
-
仅在 action.tooltip 存在的情况下 才包裹 Tooltip 组件
-
修复组件内的圆形按钮内容没有居中的问题
-
**BasicUpload**
修复处理非
`array`
值时报错的问题
-
**Form**
修复
`FormItem`
的
`suffix`
插槽样式问题
-
**Menu**
...
...
src/components/Table/src/components/TableAction.vue
View file @
db7254a5
...
...
@@ -3,22 +3,12 @@
<template
v-for=
"(action, index) in getActions"
:key=
"`$
{index}-${action.label}`">
<Tooltip
v-if=
"action.tooltip"
v-bind=
"getTooltip(action.tooltip)"
>
<PopConfirmButton
v-bind=
"action"
>
<Icon
:icon=
"action.icon"
:class=
"
{ 'mr-1': action.label }"
:style="{ margin: action.label ? '' : 'auto !important' }"
v-if="action.icon"
/>
<Icon
:icon=
"action.icon"
:class=
"
{ 'mr-1': !!action.label }" v-if="action.icon" />
<template
v-if=
"action.label"
>
{{
action
.
label
}}
</
template
>
</PopConfirmButton>
</Tooltip>
<PopConfirmButton
v-else
v-bind=
"action"
>
<Icon
:icon=
"action.icon"
:class=
"{ 'mr-1': action.label }"
:style=
"{ margin: action.label ? '' : 'auto !important' }"
v-if=
"action.icon"
/>
<Icon
:icon=
"action.icon"
:class=
"{ 'mr-1': !!action.label }"
v-if=
"action.icon"
/>
<
template
v-if=
"action.label"
>
{{
action
.
label
}}
</
template
>
</PopConfirmButton>
<Divider
...
...
@@ -192,6 +182,12 @@
}
}
button.ant-btn-circle {
span {
margin: auto !important;
}
}
.ant-divider,
.ant-divider-vertical {
margin: 0 2px;
...
...
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