From bc18822fc43055d9e956815ea75ac65d3732f455 Mon Sep 17 00:00:00 2001 From: "zhangyumei.0319" Date: Mon, 18 Nov 2024 15:05:15 +0800 Subject: [PATCH] chore: Fix variable typo --- packages/semi-ui/transfer/index.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/semi-ui/transfer/index.tsx b/packages/semi-ui/transfer/index.tsx index 1aa26e6d33..aeec88ed23 100644 --- a/packages/semi-ui/transfer/index.tsx +++ b/packages/semi-ui/transfer/index.tsx @@ -410,7 +410,7 @@ class Transfer extends BaseComponent { // 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 { @@ -425,12 +425,12 @@ class Transfer extends BaseComponent { 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); @@ -482,13 +482,13 @@ class Transfer extends BaseComponent { 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), };