lcw
This commit is contained in:
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user