From 6c67f4416da8678cbb9ba328a69217313ca49e50 Mon Sep 17 00:00:00 2001 From: RUNZE LU <36724300+lurunze1226@users.noreply.github.com> Date: Fri, 24 Dec 2021 15:17:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Tabs=E6=97=A0=E6=B3=95=E6=AD=A3=E7=A1=AE?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=95=B0=E6=8D=AE=E5=9F=9F=E4=B8=AD=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=20(#3266)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderers/Tabs.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/renderers/Tabs.tsx b/src/renderers/Tabs.tsx index 2580a5e77..778591b30 100644 --- a/src/renderers/Tabs.tsx +++ b/src/renderers/Tabs.tsx @@ -21,7 +21,11 @@ import { } from '../Schema'; import {ActionSchema} from './Action'; import {filter} from '../utils/tpl'; -import {resolveVariable, tokenize} from '../utils/tpl-builtin'; +import { + resolveVariable, + tokenize, + resolveVariableAndFilter +} from '../utils/tpl-builtin'; import {FormSchemaHorizontal} from './Form/index'; import {str2AsyncFunction} from '../utils/api'; @@ -461,7 +465,7 @@ export default class Tabs extends React.Component { } = this.props; const mode = tabsMode || dMode; - const arr = resolveVariable(source, data); + const arr = resolveVariableAndFilter(source, data, '| raw'); let mountOnEnter = this.props.mountOnEnter; // 如果在form下面,其他tabs默认需要渲染出来