combo 的 changeImmediately 模式子 form 的 lazyCHange 全关了

This commit is contained in:
liaoxuezhi 2019-12-30 23:43:24 +08:00
parent b8a83b6a7a
commit 5952811808
1 changed files with 10 additions and 2 deletions

View File

@ -61,6 +61,7 @@ export interface ComboProps extends FormControlProps {
tabsStyle: '' | 'line' | 'card' | 'radio'; tabsStyle: '' | 'line' | 'card' | 'radio';
tabsLabelTpl?: string; tabsLabelTpl?: string;
lazyLoad?: boolean; lazyLoad?: boolean;
changeImmediately?: boolean;
strictMode?: boolean; strictMode?: boolean;
messages?: { messages?: {
validateFailed?: string; validateFailed?: string;
@ -107,6 +108,7 @@ export default class ComboControl extends React.Component<ComboProps> {
'tabsMode', 'tabsMode',
'tabsStyle', 'tabsStyle',
'lazyLoad', 'lazyLoad',
'changeImmediately',
'strictMode' 'strictMode'
]; ];
@ -631,7 +633,8 @@ export default class ComboControl extends React.Component<ComboProps> {
addIcon, addIcon,
deleteIcon, deleteIcon,
tabsLabelTpl, tabsLabelTpl,
conditions conditions,
changeImmediately
} = this.props; } = this.props;
let controls = this.props.controls; let controls = this.props.controls;
@ -776,6 +779,8 @@ export default class ComboControl extends React.Component<ComboProps> {
onAction: this.handleAction, onAction: this.handleAction,
ref: this.makeFormRef(index), ref: this.makeFormRef(index),
canAccessSuperData, canAccessSuperData,
lazyChange: changeImmediately ? false : true,
lazyFormChange: changeImmediately ? false : true,
value: undefined, value: undefined,
formItemValue: undefined formItemValue: undefined
} }
@ -823,7 +828,8 @@ export default class ComboControl extends React.Component<ComboProps> {
deleteIcon, deleteIcon,
noBorder, noBorder,
conditions, conditions,
lazyLoad lazyLoad,
changeImmediately
} = this.props; } = this.props;
let controls = this.props.controls; let controls = this.props.controls;
@ -948,6 +954,8 @@ export default class ComboControl extends React.Component<ComboProps> {
onInit: this.handleFormInit, onInit: this.handleFormInit,
onAction: this.handleAction, onAction: this.handleAction,
ref: this.makeFormRef(index), ref: this.makeFormRef(index),
lazyChange: changeImmediately ? false : true,
lazyFormChange: changeImmediately ? false : true,
lazyLoad, lazyLoad,
canAccessSuperData, canAccessSuperData,
value: undefined, value: undefined,