fix: Tabs无法正确获取数据域中数据 (#3266)

This commit is contained in:
RUNZE LU 2021-12-24 15:17:27 +08:00 committed by GitHub
parent f29ed6ec8a
commit 6c67f4416d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<TabsProps, TabsState> {
} = this.props;
const mode = tabsMode || dMode;
const arr = resolveVariable(source, data);
const arr = resolveVariableAndFilter(source, data, '| raw');
let mountOnEnter = this.props.mountOnEnter;
// 如果在form下面其他tabs默认需要渲染出来