|
|
@ -53,7 +53,10 @@ export default defineComponent({ |
|
|
|
type: Array as PropType<Recordable[]>, |
|
|
|
default: () => [] |
|
|
|
}, |
|
|
|
searchTableSelectionsList:[],//回显列表 |
|
|
|
searchTableSelectionsList:{ |
|
|
|
type: Array as PropType<Recordable[]>, |
|
|
|
default: () => [] |
|
|
|
},//回显列表 |
|
|
|
}, |
|
|
|
emits: ['update:pageSize', 'update:currentPage', 'register', 'update:sort'], |
|
|
|
setup(props, { attrs, slots, emit, expose }) { |
|
|
@ -61,7 +64,7 @@ export default defineComponent({ |
|
|
|
// 注册 |
|
|
|
onMounted(() => { |
|
|
|
const tableRef = unref(elTableRef) |
|
|
|
emit('register', tableRef?.$parent, elTableRef) |
|
|
|
emit('register', tableRef?.$parent, elTableRef.value) |
|
|
|
if (props.searchTableSelectionsList && props.searchTableSelectionsList.length > 0) { |
|
|
|
props.searchTableSelectionsList.forEach(row => { |
|
|
|
elTableRef.value.toggleRowSelection(row, true); |
|
|
|