Commit 61909b64 authored by zhengke's avatar zhengke

no message

parent 1662c4f6
...@@ -135,7 +135,7 @@ ...@@ -135,7 +135,7 @@
} }
const selectData = (row: any, column: any, event: Event) =>{ const selectData = (row: any, column: any, event: Event) =>{
multipleTableRef.value!.toggleRowSelection(row) if(multipleTableRef.value) multipleTableRef.value!.toggleRowSelection(row)
} }
const handleSelectionChange = (val: []) =>{ const handleSelectionChange = (val: []) =>{
multipleSelection.value = val.map(x=>{return x}) multipleSelection.value = val.map(x=>{return x})
...@@ -180,6 +180,7 @@ ...@@ -180,6 +180,7 @@
} }
const toggleSelection = (rows:any,state:undefined) => { const toggleSelection = (rows:any,state:undefined) => {
if(multipleTableRef.value){
if (rows) { if (rows) {
rows.forEach((row) => { rows.forEach((row) => {
multipleTableRef.value!.toggleRowSelection(row, state) multipleTableRef.value!.toggleRowSelection(row, state)
...@@ -189,6 +190,7 @@ ...@@ -189,6 +190,7 @@
else multipleTableRef.value!.clearSelection() else multipleTableRef.value!.clearSelection()
} }
} }
}
watch(()=>props,(n,o)=>{ watch(()=>props,(n,o)=>{
if(props.Parent.SelectedDatas.length>0) { if(props.Parent.SelectedDatas.length>0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment