fix: 对比模式下关闭 tab-pane 的 lazy,确保差异数能正确统计

This commit is contained in:
roymondchen 2026-05-28 19:32:54 +08:00
parent 62a2ee6693
commit 0f8abf7298

View File

@ -19,7 +19,10 @@
:is="tabPaneComponent?.component || 'el-tab-pane'"
:key="tab[mForm?.keyProp || '__key'] ?? tabIndex"
v-bind="
tabPaneComponent?.props({ name: filter(tab.status) || tabIndex.toString(), lazy: tab.lazy || false }) || {}
tabPaneComponent?.props({
name: filter(tab.status) || tabIndex.toString(),
lazy: isCompare ? false : tab.lazy || false,
}) || {}
"
>
<template #label>