mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 11:07:52 +08:00
方法名拼写错误
This commit is contained in:
parent
2d3b6d1e5f
commit
cc7231e367
@ -10,7 +10,7 @@ import {
|
||||
autobind,
|
||||
createObject,
|
||||
isObject,
|
||||
isArrayChilrenModified
|
||||
isArrayChildrenModified
|
||||
} from '../utils/helper';
|
||||
import {Icon} from '../components/icons';
|
||||
|
||||
@ -114,7 +114,7 @@ export class Carousel extends React.Component<CarouselProps, CarouselState> {
|
||||
nextProps.options ||
|
||||
resolveVariable(nextProps.name, nextProps.data) ||
|
||||
[];
|
||||
if (isArrayChilrenModified(currentOptions, nextOptions)) {
|
||||
if (isArrayChildrenModified(currentOptions, nextOptions)) {
|
||||
this.setState({
|
||||
options: nextOptions
|
||||
});
|
||||
|
@ -16,7 +16,7 @@ import {
|
||||
difference,
|
||||
noop,
|
||||
autobind,
|
||||
isArrayChilrenModified
|
||||
isArrayChildrenModified
|
||||
} from '../utils/helper';
|
||||
import {resolveVariable} from '../utils/tpl-builtin';
|
||||
import {
|
||||
@ -334,7 +334,7 @@ export default class Table extends React.Component<TableProps, object> {
|
||||
) {
|
||||
Table.syncRows(store, nextProps, props);
|
||||
this.syncSelected();
|
||||
} else if (isArrayChilrenModified(props.selected!, nextProps.selected!)) {
|
||||
} else if (isArrayChildrenModified(props.selected!, nextProps.selected!)) {
|
||||
store.updateSelected(nextProps.selected || [], nextProps.valueField);
|
||||
this.syncSelected();
|
||||
}
|
||||
|
@ -13,7 +13,7 @@ import {ComboStore, IComboStore, IUniqueGroup} from './combo';
|
||||
import {evalExpression} from '../utils/tpl';
|
||||
import findIndex = require('lodash/findIndex');
|
||||
import {
|
||||
isArrayChilrenModified,
|
||||
isArrayChildrenModified,
|
||||
isObject,
|
||||
createObject,
|
||||
isObjectShallowModified
|
||||
@ -559,9 +559,9 @@ export const FormItemStore = types
|
||||
);
|
||||
}
|
||||
}
|
||||
isArrayChilrenModified(self.selectedOptions, selectedOptions) &&
|
||||
isArrayChildrenModified(self.selectedOptions, selectedOptions) &&
|
||||
(self.selectedOptions = selectedOptions);
|
||||
isArrayChilrenModified(self.filteredOptions, filteredOptions) &&
|
||||
isArrayChildrenModified(self.filteredOptions, filteredOptions) &&
|
||||
(self.filteredOptions = filteredOptions);
|
||||
}
|
||||
|
||||
|
@ -295,7 +295,7 @@ export function isObjectShallowModified(
|
||||
return false;
|
||||
}
|
||||
|
||||
export function isArrayChilrenModified(
|
||||
export function isArrayChildrenModified(
|
||||
prev: Array<any>,
|
||||
next: Array<any>,
|
||||
strictMode: boolean = true
|
||||
|
Loading…
Reference in New Issue
Block a user