Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
球球不吃虾
vue-vben-admin
提交
de499a14
V
vue-vben-admin
项目概览
球球不吃虾
/
vue-vben-admin
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vue-vben-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
de499a14
编写于
11月 28, 2020
作者:
V
vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: fix the display problem of table icon
上级
49827866
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
21 addition
and
13 deletion
+21
-13
CHANGELOG.zh_CN.md
CHANGELOG.zh_CN.md
+5
-4
src/components/Table/src/components/TableAction.tsx
src/components/Table/src/components/TableAction.tsx
+6
-5
src/components/Table/src/style/index.less
src/components/Table/src/style/index.less
+5
-0
src/components/Table/src/types/tableAction.ts
src/components/Table/src/types/tableAction.ts
+2
-4
src/components/registerGlobComp.ts
src/components/registerGlobComp.ts
+2
-0
src/views/demo/table/FixedColumn.vue
src/views/demo/table/FixedColumn.vue
+1
-0
未找到文件。
CHANGELOG.zh_CN.md
浏览文件 @
de499a14
...
...
@@ -26,10 +26,11 @@
### 🐛 Bug Fixes
-
修复 tree 文本超出挡住操作按钮问题
-
修复通过 useRedo 刷新页面参数丢失问题
-
修复表单校验先设置在校验及控制台错误信息问题
-
修复
`modal`
与
`drawer`
组件传递数组参数问题
-
tree: 修复文本超出挡住操作按钮问题
-
useRedo: 修复通过 useRedo 刷新页面参数丢失问题
-
form: 修复表单校验先设置在校验及控制台错误信息问题
-
`modal`
&
`drawer`
修复组件传递数组参数问题
-
form: 修复
`updateSchema`
赋值含有
`[]`
时不生效
### 🎫 Chores
...
...
src/components/Table/src/components/TableAction.tsx
浏览文件 @
de499a14
...
...
@@ -24,20 +24,20 @@ export default defineComponent({
},
setup
(
props
)
{
function
renderButton
(
action
:
ActionItem
,
index
:
number
)
{
const
{
disabled
=
false
,
label
,
icon
,
color
=
''
,
type
=
'
link
'
}
=
action
;
const
{
disabled
=
false
,
label
,
icon
,
color
=
''
,
type
=
'
link
'
,
...
actionProps
}
=
action
;
const
button
=
(
<
Button
type
=
{
type
as
any
}
type
=
{
type
}
size
=
"small"
disabled
=
{
disabled
}
color
=
{
color
}
{
...
action
}
{
...
action
Props
}
key
=
{
`
${
index
}
-
${
label
}
`
}
>
{
()
=>
(
<>
{
icon
&&
<
Icon
icon
=
{
icon
}
class
=
"mr-1"
/>
}
{
label
}
{
icon
&&
<
Icon
icon
=
{
icon
}
/>
}
</>
)
}
</
Button
>
...
...
@@ -96,7 +96,7 @@ export default defineComponent({
return
renderPopConfirm
(
action
,
index
);
})
}
{
dropDownActions
&&
dropDownActions
.
length
&&
(
<
Dropdown
>
<
Dropdown
overlayClassName
=
"basic-tale-action-dropdown"
>
{
{
default
:
dropdownDefaultSLot
,
overlay
:
()
=>
{
...
...
@@ -106,6 +106,7 @@ export default defineComponent({
default
:
()
=>
{
return
dropDownActions
.
map
((
action
,
index
)
=>
{
const
{
disabled
=
false
}
=
action
;
action
.
ghost
=
true
;
return
(
<
Menu
.
Item
key
=
{
`
${
index
}
`
}
disabled
=
{
disabled
}
>
{
()
=>
{
...
...
src/components/Table/src/style/index.less
浏览文件 @
de499a14
...
...
@@ -24,6 +24,11 @@
&-action {
display: flex;
button {
display: flex;
align-items: center;
}
}
&-toolbar {
...
...
src/components/Table/src/types/tableAction.ts
浏览文件 @
de499a14
export
interface
ActionItem
{
import
{
ButtonProps
}
from
'
ant-design-vue/es/button/buttonTypes
'
;
export
interface
ActionItem
extends
ButtonProps
{
onClick
?:
any
;
label
:
string
;
disabled
?:
boolean
;
color
?:
'
success
'
|
'
error
'
|
'
warning
'
;
type
?:
string
;
props
?:
any
;
icon
?:
string
;
popConfirm
?:
PopConfirm
;
}
...
...
src/components/registerGlobComp.ts
浏览文件 @
de499a14
...
...
@@ -32,6 +32,7 @@ import {
Result
,
Empty
,
Avatar
,
Menu
,
}
from
'
ant-design-vue
'
;
import
{
getApp
}
from
'
/@/setup/App
'
;
...
...
@@ -78,5 +79,6 @@ export function registerGlobComp() {
.
use
(
Result
)
.
use
(
Empty
)
.
use
(
Avatar
)
.
use
(
Menu
)
.
use
(
Tabs
);
}
src/views/demo/table/FixedColumn.vue
浏览文件 @
de499a14
...
...
@@ -6,6 +6,7 @@
:actions=
"[
{
label: '删除',
icon: 'ant-design:area-chart-outlined',
onClick: handleDelete.bind(null, record),
},
]"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录