Merge pull request #96 from cshaptx4869/patch-58
fix(PageContent): 🐛 修复label为undefined时的类型问题
This commit is contained in:
@@ -499,7 +499,7 @@ const displayedColumns = ref<IObject>(props.contentConfig.cols);
|
|||||||
// 全选/取消全选
|
// 全选/取消全选
|
||||||
const handleCheckAllChange = (checkAll: CheckboxValueType) => {
|
const handleCheckAllChange = (checkAll: CheckboxValueType) => {
|
||||||
columnSetting.value.checkedCols = checkAll
|
columnSetting.value.checkedCols = checkAll
|
||||||
? props.contentConfig.cols.map((col) => col.label ?? "")
|
? (props.contentConfig.cols.map((col) => col.label) as any[])
|
||||||
: [];
|
: [];
|
||||||
columnSetting.value.isIndeterminate = false;
|
columnSetting.value.isIndeterminate = false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user