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