mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-15 17:31:18 +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';
|
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;
|
||||||
|
@ -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}条件`,
|
||||||
|
@ -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',
|
||||||
|
Loading…
Reference in New Issue
Block a user