|
|
@ -204,7 +204,12 @@ export default defineComponent({
|
|
|
|
},
|
|
|
|
},
|
|
|
|
emit,
|
|
|
|
emit,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
// 获取vxe选中状态的数据
|
|
|
|
|
|
|
|
function getVxeSelectRows () {
|
|
|
|
|
|
|
|
console.log(tableElRef.value)
|
|
|
|
|
|
|
|
// console.log(tableElRef.value.getCheckboxRecords())
|
|
|
|
|
|
|
|
// return tableElRef.value.getCheckboxRecords()
|
|
|
|
|
|
|
|
}
|
|
|
|
function handleTableChange(...args) {
|
|
|
|
function handleTableChange(...args) {
|
|
|
|
onTableChange.call(undefined, ...args)
|
|
|
|
onTableChange.call(undefined, ...args)
|
|
|
|
emit('change', ...args)
|
|
|
|
emit('change', ...args)
|
|
|
@ -291,7 +296,6 @@ export default defineComponent({
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
propsData = omit(propsData, ['class', 'onChange'])
|
|
|
|
propsData = omit(propsData, ['class', 'onChange'])
|
|
|
|
console.log(propsData)
|
|
|
|
|
|
|
|
return propsData
|
|
|
|
return propsData
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
@ -328,6 +332,7 @@ export default defineComponent({
|
|
|
|
const tableAction: TableActionType = {
|
|
|
|
const tableAction: TableActionType = {
|
|
|
|
reload,
|
|
|
|
reload,
|
|
|
|
getSelectRows,
|
|
|
|
getSelectRows,
|
|
|
|
|
|
|
|
getVxeSelectRows,
|
|
|
|
setSelectedRows,
|
|
|
|
setSelectedRows,
|
|
|
|
clearSelectedRowKeys,
|
|
|
|
clearSelectedRowKeys,
|
|
|
|
getSelectRowKeys,
|
|
|
|
getSelectRowKeys,
|
|
|
@ -363,7 +368,7 @@ export default defineComponent({
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
createTableContext({ ...tableAction, wrapRef, getBindValues })
|
|
|
|
createTableContext({ ...tableAction, wrapRef, getBindValues })
|
|
|
|
|
|
|
|
console.log(tableAction)
|
|
|
|
expose(tableAction)
|
|
|
|
expose(tableAction)
|
|
|
|
|
|
|
|
|
|
|
|
emit('register', tableAction, formActions)
|
|
|
|
emit('register', tableAction, formActions)
|
|
|
@ -376,8 +381,6 @@ export default defineComponent({
|
|
|
|
// props.rowDbClick(row)
|
|
|
|
// props.rowDbClick(row)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const vxeCheckBoxChange = (v) => {
|
|
|
|
const vxeCheckBoxChange = (v) => {
|
|
|
|
setSelectedRows(v.row)
|
|
|
|
|
|
|
|
console.log(getSelectRows())
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
formRef,
|
|
|
|
formRef,
|
|
|
|