mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
Merge pull request #8950 from chengjinyang0/feat-validation-echo
fix(amis-editor): api中心类型的接口校验设置弹窗中含表达式的query等参数初次渲染不正确
This commit is contained in:
commit
69289b8892
@ -340,7 +340,6 @@ export default class ValidationControl extends React.Component<
|
|||||||
wrapperComponent: 'div',
|
wrapperComponent: 'div',
|
||||||
mode: 'horizontal',
|
mode: 'horizontal',
|
||||||
data: {
|
data: {
|
||||||
validateApi: this.props.data.validateApi,
|
|
||||||
switchStatus: this.props.data.validateApi !== undefined
|
switchStatus: this.props.data.validateApi !== undefined
|
||||||
},
|
},
|
||||||
preventEnterSubmit: true,
|
preventEnterSubmit: true,
|
||||||
@ -369,6 +368,10 @@ export default class ValidationControl extends React.Component<
|
|||||||
className: 'ae-ExtendMore ae-ValidationControl-item-input',
|
className: 'ae-ExtendMore ae-ValidationControl-item-input',
|
||||||
bodyClassName: 'w-full',
|
bodyClassName: 'w-full',
|
||||||
visibleOn: 'this.switchStatus',
|
visibleOn: 'this.switchStatus',
|
||||||
|
data: {
|
||||||
|
// 放在form中则包含的表达式会被求值
|
||||||
|
validateApi: this.props.data.validateApi
|
||||||
|
},
|
||||||
body: [
|
body: [
|
||||||
getSchemaTpl('apiControl', {
|
getSchemaTpl('apiControl', {
|
||||||
name: 'validateApi',
|
name: 'validateApi',
|
||||||
|
Loading…
Reference in New Issue
Block a user