From e09a797d05a7b19fb675b774f08a887f972d7a81 Mon Sep 17 00:00:00 2001 From: "cn.shperry" Date: Sun, 19 Jun 2022 17:50:16 +0800 Subject: [PATCH] =?UTF-8?q?types:=20=E7=BC=A9=E5=87=8F=20setup=20script=20?= =?UTF-8?q?=E8=AD=A6=E5=91=8A=20&=20=E4=BF=AE=E5=A4=8D=E8=A1=A8=E6=A0=BC?= =?UTF-8?q?=E5=88=97=E8=AE=BE=E7=BD=AE=E7=BB=84=E4=BB=B6=E4=B8=AD=E9=83=A8?= =?UTF-8?q?=E5=88=86=E6=96=B9=E6=B3=95=E5=8F=82=E6=95=B0=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E9=94=99=E8=AF=AF.=20(#1980)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 舒培培 <622292@ky-tech.com.cn> --- .vscode/settings.json | 5 ++++- .../Table/src/components/settings/ColumnSetting.vue | 7 ++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index d3c7c8257..a947eb977 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -135,5 +135,8 @@ "sider", "pnpm", "antd" - ] + ], + "vetur.format.scriptInitialIndent": true, + "vetur.format.styleInitialIndent": true, + "vetur.validation.script": false } diff --git a/src/components/Table/src/components/settings/ColumnSetting.vue b/src/components/Table/src/components/settings/ColumnSetting.vue index 24de7c8a9..dc72a3533 100644 --- a/src/components/Table/src/components/settings/ColumnSetting.vue +++ b/src/components/Table/src/components/settings/ColumnSetting.vue @@ -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, });