This commit is contained in:
lcw
2026-01-21 09:52:04 +08:00
parent a718b46427
commit 47a7081963
12 changed files with 141 additions and 98 deletions

View File

@ -8,6 +8,9 @@
:stripe="getConfiger.stripe" :height="tableHeight" v-loading="tableConfiger.loading" :lazy="getConfiger.lazy"
:load="load" :tree-props="treePros" style="width: 100%" :header-cell-class-name="() => 'HeadBgColor'"
:highlight-current-row="getConfiger.showSelectType === 'radio'"
@row-click="handleRowClick"
:row-style="(row, index) => getRowStyle(row, index)"
:row-class-name="(row, index) => getRowClassName(row, index)">
@ -95,7 +98,7 @@ const props = defineProps({
}
});
// 可选的时候选择的数据
const emit = defineEmits(["chooseData"]);
const emit = defineEmits(["chooseData","handleRowClick"]);
const multipleTableRef = ref();
const currentRow = ref();
let getConfiger = reactive({
@ -193,6 +196,10 @@ function setDefaultChoose() {
}
});
}
// 点击某行
const handleRowClick = (row) => {
emit("handleRowClick", row);
}
</script>
<style lang="scss"></style>