amis-saas-8183 [Bug] 组件状态中,表达式展示不一致

Change-Id: Ided72f1317bf26a65ba2056555b53f1842d9c881
This commit is contained in:
jiatianqi 2022-11-22 19:04:12 +08:00
parent 7e78807922
commit 12e17a3d2e
3 changed files with 4 additions and 2 deletions

View File

@ -27,7 +27,7 @@ interface ExpressionFormulaControlProps extends FormControlProps {
*/ */
variableMode?: 'tabs' | 'tree'; variableMode?: 'tabs' | 'tree';
/** /**
* 使 ${} false * 使 ${} true
*/ */
evalMode: boolean; evalMode: boolean;
} }
@ -45,7 +45,7 @@ export default class ExpressionFormulaControl extends React.Component<
static defaultProps: Partial<ExpressionFormulaControlProps> = { static defaultProps: Partial<ExpressionFormulaControlProps> = {
variableMode: 'tabs', variableMode: 'tabs',
requiredDataPropsVariables: false, requiredDataPropsVariables: false,
evalMode: false evalMode: true
}; };
isUnmount: boolean; isUnmount: boolean;

View File

@ -181,6 +181,7 @@ export class StatusControl extends React.Component<
}, },
{ {
type: 'ae-expressionFormulaControl', type: 'ae-expressionFormulaControl',
evalMode: false,
label: '表达式', label: '表达式',
name: 'expression', name: 'expression',
placeholder: `请输入${label}条件`, placeholder: `请输入${label}条件`,

View File

@ -300,6 +300,7 @@ export default class ActionDialog extends React.Component<ActionDialogProp> {
name: 'expression', name: 'expression',
label: '执行条件', label: '执行条件',
type: 'ae-expressionFormulaControl', type: 'ae-expressionFormulaControl',
evalMode: true,
variables: '${variables}', variables: '${variables}',
mode: 'horizontal', mode: 'horizontal',
size: 'lg', size: 'lg',