mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 11:07:52 +08:00
BCE-FE-1181 fix: 当组件配置description时,公式编辑器tag展示异常
Change-Id: I2cae42aa00ba5c5b9c7d0b66934826d409400481
This commit is contained in:
parent
6d1aa48525
commit
4ed1b6e09a
@ -1,4 +1,4 @@
|
||||
import {isExpression, resolveVariableAndFilter} from 'amis-core';
|
||||
import {isExpression, mapTree, resolveVariableAndFilter} from 'amis-core';
|
||||
|
||||
/**
|
||||
* 从amis数据域中取变量数据
|
||||
@ -11,6 +11,10 @@ export async function resolveVariablesFromScope(node: any, manager: any) {
|
||||
const dataPropsAsOptions = manager?.dataSchema?.getDataPropsAsOptions();
|
||||
|
||||
if (dataPropsAsOptions) {
|
||||
mapTree(dataPropsAsOptions, item => {
|
||||
item.tag = item.type;
|
||||
return item;
|
||||
});
|
||||
return dataPropsAsOptions
|
||||
.map((item: any) => ({
|
||||
selectMode: 'tree',
|
||||
|
Loading…
Reference in New Issue
Block a user