diff --git a/package/component/src/component/table/index.vue b/package/component/src/component/table/index.vue index f798f907..7fba50cb 100644 --- a/package/component/src/component/table/index.vue +++ b/package/component/src/component/table/index.vue @@ -93,6 +93,7 @@ const emit = defineEmits([ const slot = useSlots(); const slots = slot.default && slot.default(); +const s = ""; const allChecked = ref(false); const hasChecked = ref(false); const tableDataSource = ref([...props.dataSource]); @@ -257,6 +258,8 @@ watch( () => props.dataSource, () => { tableDataSource.value = [...props.dataSource]; + tableSelectedKeys.value = []; + tableSelectedKey.value = s; nextTick(() => { getScrollWidth(); }); @@ -316,11 +319,11 @@ const rowDoubleClick = function (data: any, evt: MouseEvent) { emit("row-double", data, evt); }; -const rowContextmenu = function (data: any, evt: MouseEvent) { +const rowContextmenu = (data: any, evt: MouseEvent) => { emit("row-contextmenu", data, evt); }; -const print = function () { +const print = () => { let subOutputRankPrint = document.getElementById(tableId) as HTMLElement; let newContent = subOutputRankPrint.innerHTML; let oldContent = document.body.innerHTML; diff --git a/package/document-component/src/document/zh-CN/guide/changelog.md b/package/document-component/src/document/zh-CN/guide/changelog.md index 17c69d42..39cac29d 100644 --- a/package/document-component/src/document/zh-CN/guide/changelog.md +++ b/package/document-component/src/document/zh-CN/guide/changelog.md @@ -11,7 +11,16 @@