commit
ed699fb979
|
@ -668,7 +668,9 @@ export class Select extends React.Component<SelectProps, SelectState> {
|
|||
<Checkbox
|
||||
checked={checked}
|
||||
trueValue={item.value}
|
||||
onChange={() => this.handleChange(item)}
|
||||
onChange={() => {
|
||||
this.handleChange(item);
|
||||
}}
|
||||
>
|
||||
{item.disabled
|
||||
? item[labelField]
|
||||
|
@ -758,7 +760,8 @@ export class Select extends React.Component<SelectProps, SelectState> {
|
|||
spinnerClassName,
|
||||
clearable,
|
||||
labelField,
|
||||
disabled
|
||||
disabled,
|
||||
checkAll
|
||||
} = this.props;
|
||||
|
||||
const selection = this.state.selection;
|
||||
|
@ -770,7 +773,12 @@ export class Select extends React.Component<SelectProps, SelectState> {
|
|||
highlightedIndex={this.state.highlightedIndex}
|
||||
isOpen={this.state.isOpen}
|
||||
inputValue={inputValue}
|
||||
onChange={this.handleChange}
|
||||
onChange={
|
||||
/*展示 Checkbox 的时候,会出发多次 onChange 原因待查*/ multiple ||
|
||||
checkAll
|
||||
? noop
|
||||
: this.handleChange
|
||||
}
|
||||
onStateChange={this.handleStateChange}
|
||||
// onOuterClick={this.close}
|
||||
itemToString={item => (item ? item[labelField] : '')}
|
||||
|
|
|
@ -70,7 +70,7 @@ export function syncDataFromSuper(
|
|||
|
||||
// 如果是 form store,则从父级同步 formItem 种东西。
|
||||
if (store && store.storeType === 'FormStore') {
|
||||
keys = uniq((store as IFormStore).items.map(item => item.name));
|
||||
keys = uniq((store as IFormStore).items.map(item => `${item.name}`.replace(/\..*$/, '')));
|
||||
force = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue