Browse Source
types: 缩减 setup script 警告 & 修复表格列设置组件中部分方法参数类型错误. (#1980)
Co-authored-by: 舒培培 <622292@ky-tech.com.cn>
pull/1987/head
cn.shperry
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
8 additions and
4 deletions
-
.vscode/settings.json
-
src/components/Table/src/components/settings/ColumnSetting.vue
|
|
|
@ -135,5 +135,8 @@ |
|
|
|
"sider", |
|
|
|
"pnpm", |
|
|
|
"antd" |
|
|
|
] |
|
|
|
], |
|
|
|
"vetur.format.scriptInitialIndent": true, |
|
|
|
"vetur.format.styleInitialIndent": true, |
|
|
|
"vetur.validation.script": false |
|
|
|
} |
|
|
|
|
|
|
|
@ -111,6 +111,7 @@ |
|
|
|
computed, |
|
|
|
} from 'vue'; |
|
|
|
import { Tooltip, Popover, Checkbox, Divider } from 'ant-design-vue'; |
|
|
|
import type { CheckboxChangeEvent } from 'ant-design-vue/lib/checkbox/interface'; |
|
|
|
import { SettingOutlined, DragOutlined } from '@ant-design/icons-vue'; |
|
|
|
import { Icon } from '/@/components/Icon'; |
|
|
|
import { ScrollContainer } from '/@/components/Container'; |
|
|
|
@ -243,7 +244,7 @@ |
|
|
|
} |
|
|
|
|
|
|
|
// checkAll change |
|
|
|
function onCheckAllChange(e: ChangeEvent) { |
|
|
|
function onCheckAllChange(e: CheckboxChangeEvent) { |
|
|
|
const checkList = plainOptions.value.map((item) => item.value); |
|
|
|
if (e.target.checked) { |
|
|
|
state.checkedList = checkList; |
|
|
|
@ -330,14 +331,14 @@ |
|
|
|
} |
|
|
|
|
|
|
|
// Control whether the serial number column is displayed |
|
|
|
function handleIndexCheckChange(e: ChangeEvent) { |
|
|
|
function handleIndexCheckChange(e: CheckboxChangeEvent) { |
|
|
|
table.setProps({ |
|
|
|
showIndexColumn: e.target.checked, |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
// Control whether the check box is displayed |
|
|
|
function handleSelectCheckChange(e: ChangeEvent) { |
|
|
|
function handleSelectCheckChange(e: CheckboxChangeEvent) { |
|
|
|
table.setProps({ |
|
|
|
rowSelection: e.target.checked ? defaultRowSelection : undefined, |
|
|
|
}); |
|
|
|
|