|
@@ -31,6 +31,11 @@ export const useTablePage = (tableProps: Partial<LeTableProps> = {}, config: Par
|
|
|
},
|
|
|
config
|
|
|
)
|
|
|
+ const curSelectionRows = ref<any[]>([])
|
|
|
+ const selectionChange = (rows: any[]) => {
|
|
|
+
|
|
|
+ curSelectionRows.value = rows
|
|
|
+ }
|
|
|
const tableOpts = reactive<LeTableProps>({
|
|
|
total: 0,
|
|
|
list: [],
|
|
@@ -49,6 +54,8 @@ export const useTablePage = (tableProps: Partial<LeTableProps> = {}, config: Par
|
|
|
loading: false,
|
|
|
showOverflowTooltip: false,
|
|
|
multipleSelect: true,
|
|
|
+
|
|
|
+ onSelectionChange: selectionChange,
|
|
|
|
|
|
|
|
|
...(tableProps.options || {})
|
|
@@ -106,6 +113,8 @@ export const useTablePage = (tableProps: Partial<LeTableProps> = {}, config: Par
|
|
|
tableOpts,
|
|
|
checkedColumns,
|
|
|
activeColumns,
|
|
|
+
|
|
|
+ curSelectionRows,
|
|
|
|
|
|
searchData,
|
|
|
|