mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-15 09:21:13 +08:00
amis-saas-8183 [Bug] 组件状态中,表达式展示不一致
Change-Id: Ided72f1317bf26a65ba2056555b53f1842d9c881
This commit is contained in:
parent
7e78807922
commit
12e17a3d2e
@ -27,7 +27,7 @@ interface ExpressionFormulaControlProps extends FormControlProps {
|
||||
*/
|
||||
variableMode?: 'tabs' | 'tree';
|
||||
/**
|
||||
* 表达式最外层是否使用 ${} 来包裹,默认 false
|
||||
* 表达式最外层是否使用 ${} 来包裹,默认 true
|
||||
*/
|
||||
evalMode: boolean;
|
||||
}
|
||||
@ -45,7 +45,7 @@ export default class ExpressionFormulaControl extends React.Component<
|
||||
static defaultProps: Partial<ExpressionFormulaControlProps> = {
|
||||
variableMode: 'tabs',
|
||||
requiredDataPropsVariables: false,
|
||||
evalMode: false
|
||||
evalMode: true
|
||||
};
|
||||
|
||||
isUnmount: boolean;
|
||||
|
@ -181,6 +181,7 @@ export class StatusControl extends React.Component<
|
||||
},
|
||||
{
|
||||
type: 'ae-expressionFormulaControl',
|
||||
evalMode: false,
|
||||
label: '表达式',
|
||||
name: 'expression',
|
||||
placeholder: `请输入${label}条件`,
|
||||
|
@ -300,6 +300,7 @@ export default class ActionDialog extends React.Component<ActionDialogProp> {
|
||||
name: 'expression',
|
||||
label: '执行条件',
|
||||
type: 'ae-expressionFormulaControl',
|
||||
evalMode: true,
|
||||
variables: '${variables}',
|
||||
mode: 'horizontal',
|
||||
size: 'lg',
|
||||
|
Loading…
Reference in New Issue
Block a user