|
|
|
@ -51,13 +51,15 @@
|
|
|
|
|
@cell-dblclick="dbclickVxeRow"
|
|
|
|
|
@sort-change="sortChangeEvent"
|
|
|
|
|
@resizable-change="resizableChangeEvent"
|
|
|
|
|
@radio-change="rowChange"
|
|
|
|
|
@checkbox-change="rowChange"
|
|
|
|
|
>
|
|
|
|
|
<template #empty>
|
|
|
|
|
<div>
|
|
|
|
|
<img src="../../../assets/images/nodata.png" />
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<vxe-column type="checkbox" fixed="left" width="40"></vxe-column>
|
|
|
|
|
<vxe-column :type="getBindValues?.rowSelection?.type" fixed="left" width="40"></vxe-column>
|
|
|
|
|
<vxe-column v-if="numberCol !== false" type="seq" title="序号" width="50"></vxe-column>
|
|
|
|
|
<template
|
|
|
|
|
v-for="(item, index) in getBindValues.columns"
|
|
|
|
@ -182,7 +184,8 @@ export default defineComponent({
|
|
|
|
|
'edit-change',
|
|
|
|
|
'expanded-rows-change',
|
|
|
|
|
'change',
|
|
|
|
|
'columns-change'
|
|
|
|
|
'columns-change',
|
|
|
|
|
'row-change'
|
|
|
|
|
],
|
|
|
|
|
setup(props, { attrs, emit, slots, expose }) {
|
|
|
|
|
const tableElRef = ref(null)
|
|
|
|
@ -518,6 +521,10 @@ export default defineComponent({
|
|
|
|
|
// fetch()
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// vxetable 行监听
|
|
|
|
|
const rowChange = (data) => {
|
|
|
|
|
emit('row-change', data)
|
|
|
|
|
}
|
|
|
|
|
return {
|
|
|
|
|
vxeSetId,
|
|
|
|
|
formRef,
|
|
|
|
@ -549,7 +556,8 @@ export default defineComponent({
|
|
|
|
|
resizeColumn,
|
|
|
|
|
reload,
|
|
|
|
|
updateCol,
|
|
|
|
|
numberCol
|
|
|
|
|
numberCol,
|
|
|
|
|
rowChange
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|