修改 冀北 现场运维人提出问题

This commit is contained in:
GGJ
2024-07-31 15:54:35 +08:00
parent 1aba898baa
commit 9dc9799365
15 changed files with 181 additions and 67 deletions

View File

@@ -8,6 +8,7 @@
v-bind="Object.assign({}, defaultAttribute, $attrs)"
@checkbox-all="selectChangeEvent"
@checkbox-change="selectChangeEvent"
:showOverflow='showOverflow'
>
<!-- Column 组件内部是 el-table-column -->
<template v-if="isGroup">
@@ -75,10 +76,12 @@ const tableStore = inject('tableStore') as TableStoreClass
interface Props extends /* @vue-ignore */ Partial<InstanceType<typeof ElTable>> {
isGroup?: boolean
showOverflow?: boolean
}
const props = withDefaults(defineProps<Props>(), {
isGroup: false
isGroup: false,
showOverflow: true
})
onMounted(() => {
tableStore.table.ref = tableRef.value as VxeTableInstance
@@ -93,7 +96,7 @@ const onTableCurrentChange = (val: number) => {
}
const pageSizes = computed(() => {
let defaultSizes = [10, 20, 50, 100,200]
let defaultSizes = [10, 20, 50, 100, 200]
if (tableStore.table.params!.pageSize) {
if (!defaultSizes.includes(tableStore.table.params!.pageSize)) {
defaultSizes.push(tableStore.table.params!.pageSize)