|
@@ -148,14 +148,7 @@ function useVxeTable<D>(simplifiedConfiguration: SimplifiedConfiguration<D> = {}
|
|
|
return slots[name] ? slots[name]() : null
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- mutation.getTableDefaultSlots = () => {
|
|
|
- return getSlotsByName('default')
|
|
|
- }
|
|
|
-
|
|
|
- mutation.getDialogHeaderSlots = () => {
|
|
|
- return getSlotsByName('dialogHeader')
|
|
|
- }
|
|
|
+ mutation.getTableSlotsByName = getSlotsByName
|
|
|
|
|
|
const TempVxeTable = () => {
|
|
|
return <VxeTable
|
|
@@ -166,7 +159,6 @@ function useVxeTable<D>(simplifiedConfiguration: SimplifiedConfiguration<D> = {}
|
|
|
// @ts-ignore
|
|
|
style={{...simplifiedConfiguration.tableCss}}
|
|
|
>
|
|
|
-
|
|
|
{{
|
|
|
default: () => {
|
|
|
function renderIcon(checked: boolean, indeterminate: boolean) {
|
|
@@ -416,8 +408,8 @@ function useVxeTable<D>(simplifiedConfiguration: SimplifiedConfiguration<D> = {}
|
|
|
header: () => {
|
|
|
try {
|
|
|
let HeaderSlots = null
|
|
|
- if (mutation.getDialogHeaderSlots() != null) {
|
|
|
- HeaderSlots = mutation.getDialogHeaderSlots()
|
|
|
+ if (mutation.getTableSlotsByName('dialogHeader') != null) {
|
|
|
+ HeaderSlots = mutation.getTableSlotsByName('dialogHeader')
|
|
|
} else if (simplifiedConfiguration.dialogHeader) {
|
|
|
HeaderSlots = simplifiedConfiguration?.dialogHeader();
|
|
|
}
|
|
@@ -457,7 +449,7 @@ function useVxeTable<D>(simplifiedConfiguration: SimplifiedConfiguration<D> = {}
|
|
|
}
|
|
|
}}
|
|
|
</VxeColumn>,
|
|
|
- mutation.getTableDefaultSlots()
|
|
|
+ mutation.getTableSlotsByName('default')
|
|
|
]
|
|
|
}
|
|
|
}}
|
|
@@ -499,12 +491,10 @@ function useVxeTable<D>(simplifiedConfiguration: SimplifiedConfiguration<D> = {}
|
|
|
tableRef.value?.clearCheckboxRow()
|
|
|
pageMemory.clear()
|
|
|
},
|
|
|
- getTableDefaultSlots(): any {
|
|
|
-
|
|
|
+ getTableSlotsByName(name: string): any {
|
|
|
+ return null
|
|
|
},
|
|
|
- getDialogHeaderSlots(): any {
|
|
|
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
onMounted(() => {
|
|
@@ -518,7 +508,7 @@ function useVxeTable<D>(simplifiedConfiguration: SimplifiedConfiguration<D> = {}
|
|
|
|
|
|
return {
|
|
|
tableRef,
|
|
|
- CyVxeTable: CyVxeTable,
|
|
|
+ CyVxeTable,
|
|
|
tableProps: props,
|
|
|
exportExcel,
|
|
|
mutation,
|