Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
basic-vue-admin
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-vue-admin
Commits
c3096e26
提交
c3096e26
authored
3月 20, 2021
作者:
Vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(table): fix table check column configuration failure close #391
上级
1d7608ee
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
6 行增加
和
3 行删除
+6
-3
CHANGELOG.zh_CN.md
CHANGELOG.zh_CN.md
+1
-0
ColumnSetting.vue
...omponents/Table/src/components/settings/ColumnSetting.vue
+2
-1
useRowSelection.ts
src/components/Table/src/hooks/useRowSelection.ts
+3
-2
没有找到文件。
CHANGELOG.zh_CN.md
浏览文件 @
c3096e26
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
-
修复 Modal 组件 loadingTip 配置不生效
-
修复 Modal 组件 loadingTip 配置不生效
-
修复后台权限指令不生效
-
修复后台权限指令不生效
-
确保 progress 进度条正确关闭
-
确保 progress 进度条正确关闭
-
修复表格勾选列配置失效问题
## 2.1.0 (2021-03-15)
## 2.1.0 (2021-03-15)
...
...
src/components/Table/src/components/settings/ColumnSetting.vue
浏览文件 @
c3096e26
...
@@ -113,6 +113,7 @@
...
@@ -113,6 +113,7 @@
import
{
isNullAndUnDef
}
from
'/@/utils/is'
;
import
{
isNullAndUnDef
}
from
'/@/utils/is'
;
import
{
getPopupContainer
}
from
'/@/utils'
;
import
{
getPopupContainer
}
from
'/@/utils'
;
import
{
omit
}
from
'lodash-es'
;
import
type
{
BasicColumn
}
from
'../../types/table'
;
import
type
{
BasicColumn
}
from
'../../types/table'
;
...
@@ -147,7 +148,7 @@
...
@@ -147,7 +148,7 @@
const
{
t
}
=
useI18n
();
const
{
t
}
=
useI18n
();
const
table
=
useTableContext
();
const
table
=
useTableContext
();
const
defaultRowSelection
=
table
.
getRowSelection
(
);
const
defaultRowSelection
=
omit
(
table
.
getRowSelection
(),
'selectedRowKeys'
);
let
inited
=
false
;
let
inited
=
false
;
const
cachePlainOptions
=
ref
<
Options
[]
>
([]);
const
cachePlainOptions
=
ref
<
Options
[]
>
([]);
...
...
src/components/Table/src/hooks/useRowSelection.ts
浏览文件 @
c3096e26
...
@@ -16,10 +16,11 @@ export function useRowSelection(
...
@@ -16,10 +16,11 @@ export function useRowSelection(
if
(
!
rowSelection
)
{
if
(
!
rowSelection
)
{
return
null
;
return
null
;
}
}
return
{
return
{
selectedRowKeys
:
unref
(
selectedRowKeysRef
),
selectedRowKeys
:
unref
(
selectedRowKeysRef
),
hideDefaultSelections
:
false
,
hideDefaultSelections
:
false
,
onChange
:
(
selectedRowKeys
:
string
[],
selectedRows
:
any
[])
=>
{
onChange
:
(
selectedRowKeys
:
string
[],
selectedRows
:
Recordable
[])
=>
{
selectedRowKeysRef
.
value
=
selectedRowKeys
;
selectedRowKeysRef
.
value
=
selectedRowKeys
;
selectedRowRef
.
value
=
selectedRows
;
selectedRowRef
.
value
=
selectedRows
;
emit
(
'selection-change'
,
{
emit
(
'selection-change'
,
{
...
@@ -27,7 +28,7 @@ export function useRowSelection(
...
@@ -27,7 +28,7 @@ export function useRowSelection(
rows
:
selectedRows
,
rows
:
selectedRows
,
});
});
},
},
...
rowSelection
,
...
(
rowSelection
===
undefined
?
{}
:
rowSelection
)
,
};
};
});
});
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论