|
|
|
@ -7,6 +7,7 @@ |
|
|
|
:border="border" |
|
|
|
:border="border" |
|
|
|
@selection-change="selectionChange" |
|
|
|
@selection-change="selectionChange" |
|
|
|
@row-click="emit('row-click', $event)" |
|
|
|
@row-click="emit('row-click', $event)" |
|
|
|
|
|
|
|
@cell-click="(row, column, cell, event) => emit('cell-click', row, column, cell, event)" |
|
|
|
:height="height || (page ? state.size.pTableHeight : state.size.tableHeight)" |
|
|
|
:height="height || (page ? state.size.pTableHeight : state.size.tableHeight)" |
|
|
|
highlight-current-row |
|
|
|
highlight-current-row |
|
|
|
:row-key="rowKey" |
|
|
|
:row-key="rowKey" |
|
|
|
@ -88,7 +89,7 @@ const prop = withDefaults(defineProps<Props>(), { |
|
|
|
border: false, |
|
|
|
border: false, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
const emit = defineEmits(["query", "selection-change", "row-click"]); |
|
|
|
const emit = defineEmits(["query", "selection-change", "row-click", "cell-click"]); |
|
|
|
|
|
|
|
|
|
|
|
const selectionChange = (selection) => { |
|
|
|
const selectionChange = (selection) => { |
|
|
|
emit("selection-change", selection); |
|
|
|
emit("selection-change", selection); |
|
|
|
|