Browse Source

修改公共组件

master
叶佳兴 4 weeks ago
parent
commit
972a895eb2
  1. 7
      src/components/Table/src/Table.vue

7
src/components/Table/src/Table.vue

@ -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);

Loading…
Cancel
Save