amis-saas-6892 [Feature] select组件示例代码

Change-Id: I4e782b8285bf3257d9fc1b6158c8efb3e72c4f20
This commit is contained in:
jiatianqi 2022-11-03 14:11:22 +08:00
parent f7e65080e5
commit 65dd84ba23
2 changed files with 10 additions and 4 deletions

View File

@ -247,7 +247,12 @@ export class SelectControlPlugin extends BasePlugin {
title: '选项', title: '选项',
body: [ body: [
getSchemaTpl('optionControlV2'), getSchemaTpl('optionControlV2'),
getSchemaTpl('menuTpl'), // 模板
getSchemaTpl('optionsMenuTpl', {
that: this,
context: context,
onChange: (value: any) => {}
}),
getSchemaTpl('creatable', { getSchemaTpl('creatable', {
formType: 'extend', formType: 'extend',
hiddenOnDefault: true, hiddenOnDefault: true,

View File

@ -180,11 +180,12 @@ export class StatusControl extends React.Component<
] ]
}, },
{ {
type: 'ae-formulaControl', type: 'ae-expressionFormulaControl',
name: 'expression',
label: '表达式', label: '表达式',
name: 'expression',
placeholder: `请输入${label}条件`, placeholder: `请输入${label}条件`,
visibleOn: 'this.statusType === 2' visibleOn: 'this.statusType === 2',
onChange: (value: any) => {}
} }
] ]
}, },