Skip to content

Commit

Permalink
chore: Fix variable typo
Browse files Browse the repository at this point in the history
  • Loading branch information
YyumeiZhang committed Nov 18, 2024
1 parent b017a2a commit bc18822
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/semi-ui/transfer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ class Transfer extends BaseComponent<TransferProps, TransferState> {
// The selected option is 1,2,3,4, it is true
// The selected option is 2,3,4, then it is false
let filterDataAllDisabled = true;
const leftContainesNotInSelected = Boolean(filterData.find(f => {
const leftContainsNotInSelected = Boolean(filterData.find(f => {
if (f.disabled) {
return false;
} else {
Expand All @@ -425,12 +425,12 @@ class Transfer extends BaseComponent<TransferProps, TransferState> {

const headerConfig: HeaderConfig = {
totalContent: totalText,
allContent: leftContainesNotInSelected ? locale.selectAll : locale.clearSelectAll,
onAllClick: () => this.foundation.handleAll(leftContainesNotInSelected),
allContent: leftContainsNotInSelected ? locale.selectAll : locale.clearSelectAll,
onAllClick: () => this.foundation.handleAll(leftContainsNotInSelected),
type: 'left',
showButton: type !== strings.TYPE_TREE_TO_LIST && !filterDataAllDisabled,
num: showNumber,
allChecked: !leftContainesNotInSelected
allChecked: !leftContainsNotInSelected
};
const inputCom = this.renderFilter(locale);
const headerCom = this.renderHeader(headerConfig);
Expand Down Expand Up @@ -482,13 +482,13 @@ class Transfer extends BaseComponent<TransferProps, TransferState> {
filterData,
sourceData: data,
propsDataSource: dataSource,
allChecked: !leftContainesNotInSelected,
allChecked: !leftContainsNotInSelected,
showNumber,
inputValue,
selectedItems,
value: values,
onSelect: this.foundation.handleSelect.bind(this.foundation),
onAllClick: () => this.foundation.handleAll(leftContainesNotInSelected),
onAllClick: () => this.foundation.handleAll(leftContainsNotInSelected),
onSearch: this.onInputChange,
onSelectOrRemove: (item: ResolvedDataItem) => this.onSelectOrRemove(item),
};
Expand Down

0 comments on commit bc18822

Please sign in to comment.