|
@@ -1,7 +1,6 @@
|
|
import { isEqual, get, difference, isUndefined, assign, cloneDeep, isEmpty, isNumber, includes, isFunction, isObject } from 'lodash';
|
|
import { isEqual, get, difference, isUndefined, assign, cloneDeep, isEmpty, isNumber, includes, isFunction, isObject } from 'lodash';
|
|
import BaseFoundation, { DefaultAdapter } from '../base/foundation';
|
|
import BaseFoundation, { DefaultAdapter } from '../base/foundation';
|
|
import {
|
|
import {
|
|
- filter,
|
|
|
|
findAncestorKeys,
|
|
findAncestorKeys,
|
|
calcCheckedKeysForUnchecked,
|
|
calcCheckedKeysForUnchecked,
|
|
calcCheckedKeysForChecked,
|
|
calcCheckedKeysForChecked,
|
|
@@ -11,6 +10,7 @@ import {
|
|
} from '../tree/treeUtil';
|
|
} from '../tree/treeUtil';
|
|
import { Motion } from '../utils/type';
|
|
import { Motion } from '../utils/type';
|
|
import {
|
|
import {
|
|
|
|
+ filter,
|
|
convertDataToEntities,
|
|
convertDataToEntities,
|
|
normalizedArr,
|
|
normalizedArr,
|
|
isValid,
|
|
isValid,
|
|
@@ -911,8 +911,8 @@ export default class CascaderFoundation extends BaseFoundation<CascaderAdapter,
|
|
if (_notExist) {
|
|
if (_notExist) {
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
- const filteredPath = this.getItemPropPath(key, treeNodeFilterProp).join();
|
|
|
|
- return filter(sugInput, data, filterTreeNode, false, filteredPath);
|
|
|
|
|
|
+ const filteredPath = this.getItemPropPath(key, treeNodeFilterProp);
|
|
|
|
+ return filter(sugInput, data, filterTreeNode, filteredPath);
|
|
})
|
|
})
|
|
.filter(
|
|
.filter(
|
|
item => (filterTreeNode && !filterLeafOnly) ||
|
|
item => (filterTreeNode && !filterLeafOnly) ||
|
|
@@ -935,6 +935,7 @@ export default class CascaderFoundation extends BaseFoundation<CascaderAdapter,
|
|
const isControlled = this._isControlledComponent();
|
|
const isControlled = this._isControlledComponent();
|
|
const newState: Partial<BasicCascaderInnerData> = {};
|
|
const newState: Partial<BasicCascaderInnerData> = {};
|
|
if (multiple) {
|
|
if (multiple) {
|
|
|
|
+ newState.isSearching = false;
|
|
this._adapter.updateInputValue('');
|
|
this._adapter.updateInputValue('');
|
|
this._adapter.notifyOnSearch('');
|
|
this._adapter.notifyOnSearch('');
|
|
newState.checkedKeys = new Set([]);
|
|
newState.checkedKeys = new Set([]);
|