12 lines
275 B
JavaScript
12 lines
275 B
JavaScript
|
|
import { ref } from '@vue/composition-api'
|
||
|
|
export default function () {
|
||
|
|
const selectionIds = ref([])
|
||
|
|
function handleSelectionChange(selections) {
|
||
|
|
selectionIds.value = selections.map((item) => item.id)
|
||
|
|
}
|
||
|
|
return {
|
||
|
|
selectionIds,
|
||
|
|
handleSelectionChange,
|
||
|
|
}
|
||
|
|
}
|