mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
fix: Editor:当删除静态展示框的默认值时同时清除历史残余的value值
This commit is contained in:
parent
d9fb3ddb75
commit
0f1d23628d
@ -328,7 +328,13 @@ export class StaticControlPlugin extends BasePlugin {
|
||||
getSchemaTpl('label'),
|
||||
// getSchemaTpl('value'),
|
||||
getSchemaTpl('valueFormula', {
|
||||
name: 'tpl'
|
||||
name: 'tpl',
|
||||
onChange: (value: any, oldValue: any, item: any, form: any) => {
|
||||
value === '' &&
|
||||
form.setValues({
|
||||
value: undefined
|
||||
});
|
||||
}
|
||||
// rendererSchema: {
|
||||
// ...context?.schema,
|
||||
// type: 'textarea', // 改用多行文本编辑
|
||||
|
Loading…
Reference in New Issue
Block a user