方法名拼写错误

This commit is contained in:
yeyuqiudeng 2019-12-18 15:14:57 +08:00
parent 2d3b6d1e5f
commit cc7231e367
4 changed files with 8 additions and 8 deletions

View File

@ -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
});

View File

@ -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();
}

View File

@ -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);
}

View File

@ -295,7 +295,7 @@ export function isObjectShallowModified(
return false;
}
export function isArrayChilrenModified(
export function isArrayChildrenModified(
prev: Array<any>,
next: Array<any>,
strictMode: boolean = true