|
|
@ -111,6 +111,7 @@ |
|
|
computed, |
|
|
computed, |
|
|
} from 'vue'; |
|
|
} from 'vue'; |
|
|
import { Tooltip, Popover, Checkbox, Divider } from 'ant-design-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 { SettingOutlined, DragOutlined } from '@ant-design/icons-vue'; |
|
|
import { Icon } from '/@/components/Icon'; |
|
|
import { Icon } from '/@/components/Icon'; |
|
|
import { ScrollContainer } from '/@/components/Container'; |
|
|
import { ScrollContainer } from '/@/components/Container'; |
|
|
@ -243,7 +244,7 @@ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// checkAll change |
|
|
// checkAll change |
|
|
function onCheckAllChange(e: ChangeEvent) { |
|
|
function onCheckAllChange(e: CheckboxChangeEvent) { |
|
|
const checkList = plainOptions.value.map((item) => item.value); |
|
|
const checkList = plainOptions.value.map((item) => item.value); |
|
|
if (e.target.checked) { |
|
|
if (e.target.checked) { |
|
|
state.checkedList = checkList; |
|
|
state.checkedList = checkList; |
|
|
@ -330,14 +331,14 @@ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// Control whether the serial number column is displayed |
|
|
// Control whether the serial number column is displayed |
|
|
function handleIndexCheckChange(e: ChangeEvent) { |
|
|
function handleIndexCheckChange(e: CheckboxChangeEvent) { |
|
|
table.setProps({ |
|
|
table.setProps({ |
|
|
showIndexColumn: e.target.checked, |
|
|
showIndexColumn: e.target.checked, |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// Control whether the check box is displayed |
|
|
// Control whether the check box is displayed |
|
|
function handleSelectCheckChange(e: ChangeEvent) { |
|
|
function handleSelectCheckChange(e: CheckboxChangeEvent) { |
|
|
table.setProps({ |
|
|
table.setProps({ |
|
|
rowSelection: e.target.checked ? defaultRowSelection : undefined, |
|
|
rowSelection: e.target.checked ? defaultRowSelection : undefined, |
|
|
}); |
|
|
}); |
|
|
|