This commit is contained in:
@@ -234,6 +234,9 @@
|
||||
|
||||
// 提供给父组件的方法
|
||||
defineExpose({
|
||||
clearSelection: () => tableRef.value?.clearSelection(),
|
||||
toggleRowSelection: (row: any, selected?: boolean) =>
|
||||
tableRef.value?.toggleRowSelection(row, selected),
|
||||
// 展开所有行
|
||||
expandAll: () => {
|
||||
const elTable = tableRef.value
|
||||
|
||||
Reference in New Issue
Block a user