mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-03 12:29:24 +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('label'),
|
||||||
// getSchemaTpl('value'),
|
// getSchemaTpl('value'),
|
||||||
getSchemaTpl('valueFormula', {
|
getSchemaTpl('valueFormula', {
|
||||||
name: 'tpl'
|
name: 'tpl',
|
||||||
|
onChange: (value: any, oldValue: any, item: any, form: any) => {
|
||||||
|
value === '' &&
|
||||||
|
form.setValues({
|
||||||
|
value: undefined
|
||||||
|
});
|
||||||
|
}
|
||||||
// rendererSchema: {
|
// rendererSchema: {
|
||||||
// ...context?.schema,
|
// ...context?.schema,
|
||||||
// type: 'textarea', // 改用多行文本编辑
|
// type: 'textarea', // 改用多行文本编辑
|
||||||
|
Loading…
Reference in New Issue
Block a user