diff --git a/packages/amis-editor/src/plugin/Form/Select.tsx b/packages/amis-editor/src/plugin/Form/Select.tsx index f91b2082b..26144ccd5 100644 --- a/packages/amis-editor/src/plugin/Form/Select.tsx +++ b/packages/amis-editor/src/plugin/Form/Select.tsx @@ -247,7 +247,12 @@ export class SelectControlPlugin extends BasePlugin { title: '选项', body: [ getSchemaTpl('optionControlV2'), - getSchemaTpl('menuTpl'), + // 模板 + getSchemaTpl('optionsMenuTpl', { + that: this, + context: context, + onChange: (value: any) => {} + }), getSchemaTpl('creatable', { formType: 'extend', hiddenOnDefault: true, diff --git a/packages/amis-editor/src/renderer/StatusControl.tsx b/packages/amis-editor/src/renderer/StatusControl.tsx index 53ecd2536..dce01fdf7 100644 --- a/packages/amis-editor/src/renderer/StatusControl.tsx +++ b/packages/amis-editor/src/renderer/StatusControl.tsx @@ -180,11 +180,12 @@ export class StatusControl extends React.Component< ] }, { - type: 'ae-formulaControl', - name: 'expression', + type: 'ae-expressionFormulaControl', label: '表达式', + name: 'expression', placeholder: `请输入${label}条件`, - visibleOn: 'this.statusType === 2' + visibleOn: 'this.statusType === 2', + onChange: (value: any) => {} } ] },