1
0
mirror of synced 2025-12-09 07:08:22 +08:00

修复展开行显示问题

This commit is contained in:
xuliangzhan
2023-04-26 22:54:58 +08:00
parent 0aa3cbe539
commit 93174d8e1a
4 changed files with 9 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "vxe-table",
"version": "4.3.12",
"version": "4.3.13-beta.0",
"description": "一个基于 vue 的 PC 端表格组件,支持增删改查、虚拟列表、虚拟树、懒加载、快捷菜单、数据校验、树形结构、打印导出、表单渲染、数据分页、弹窗、自定义模板、渲染器等...",
"scripts": {
"update": "npm install --legacy-peer-deps",

View File

@@ -108,7 +108,8 @@ export default defineComponent({
const columnOpts = computeColumnOpts.value
// 如果是使用优化模式
if (fixedType) {
if (scrollXLoad || allColumnFooterOverflow) {
// 如果存在展开行使用全量渲染
if (!tableReactData.expandColumn && (scrollXLoad || allColumnFooterOverflow)) {
if (!mergeFooterList.length || !footerSpanMethod) {
tableColumn = fixedColumn
} else {

View File

@@ -733,7 +733,8 @@ export default defineComponent({
// const isMergeRightFixedExceeded = computeIsMergeRightFixedExceeded.value
// 如果是使用优化模式
if (fixedType) {
if (scrollYLoad || (allColumnOverflow ? isAllOverflow : allColumnOverflow)) {
// 如果存在展开行使用全量渲染
if (!tableReactData.expandColumn && (scrollYLoad || (allColumnOverflow ? isAllOverflow : allColumnOverflow))) {
if (!mergeList.length && !spanMethod && !(keyboardConfig && keyboardOpts.isMerge)) {
tableColumn = fixedColumn
} else {

View File

@@ -1468,7 +1468,8 @@ export default defineComponent({
// 如果是使用优化模式
if (fixedType) {
if (scrollYLoad || (allColumnOverflow ? isAllOverflow : allColumnOverflow)) {
// 如果存在展开行使用全量渲染
if (!reactData.expandColumn && (scrollYLoad || (allColumnOverflow ? isAllOverflow : allColumnOverflow))) {
if (!mergeList.length && !spanMethod && !(keyboardConfig && keyboardOpts.isMerge)) {
renderColumnList = fixedColumn
} else {
@@ -1494,7 +1495,8 @@ export default defineComponent({
let renderColumnList = tableColumn
// 如果是使用优化模式
if (fixedType) {
if (scrollXLoad || allColumnFooterOverflow) {
// 如果存在展开行使用全量渲染
if (!reactData.expandColumn && (scrollXLoad || allColumnFooterOverflow)) {
if (!mergeFooterList.length || !footerSpanMethod) {
renderColumnList = fixedColumn
} else {