diff --git a/components/style.ts b/components/style.ts
index 566d1da404..acaa54f732 100644
--- a/components/style.ts
+++ b/components/style.ts
@@ -41,7 +41,7 @@ import './table/style';
// import './progress/style';
import './timeline/style';
import './input-number/style';
-import './transfer/style';
+// import './transfer/style';
import './tree/style';
import './upload/style';
// import './layout/style';
diff --git a/components/theme/interface/components.ts b/components/theme/interface/components.ts
index fd3707fbb8..b095ad2193 100644
--- a/components/theme/interface/components.ts
+++ b/components/theme/interface/components.ts
@@ -42,7 +42,7 @@ import type { ComponentToken as SpinComponentToken } from '../../spin/style';
import type { ComponentToken as TagComponentToken } from '../../tag/style';
// import type { ComponentToken as TimelineComponentToken } from '../../timeline/style';
import type { ComponentToken as TooltipComponentToken } from '../../tooltip/style';
-// import type { ComponentToken as TransferComponentToken } from '../../transfer/style';
+import type { ComponentToken as TransferComponentToken } from '../../transfer/style';
import type { ComponentToken as TypographyComponentToken } from '../../typography/style';
// import type { ComponentToken as UploadComponentToken } from '../../upload/style';
// import type { ComponentToken as TourComponentToken } from '../../tour/style';
@@ -100,7 +100,7 @@ export interface ComponentTokenMap {
TreeSelect?: {};
Typography?: TypographyComponentToken;
// Timeline?: TimelineComponentToken;
- // Transfer?: TransferComponentToken;
+ Transfer?: TransferComponentToken;
// Tabs?: TabsComponentToken;
// Calendar?: CalendarComponentToken;
// Steps?: StepsComponentToken;
diff --git a/components/transfer/ListBody.tsx b/components/transfer/ListBody.tsx
index 6cb2e7a993..e90fde6e58 100644
--- a/components/transfer/ListBody.tsx
+++ b/components/transfer/ListBody.tsx
@@ -5,13 +5,14 @@ import ListItem from './ListItem';
import Pagination from '../pagination';
import PropTypes from '../_util/vue-types';
import type { TransferItem } from '.';
+import { booleanType } from '../_util/type';
export const transferListBodyProps = {
prefixCls: String,
filteredRenderItems: PropTypes.array.def([]),
selectedKeys: PropTypes.array,
- disabled: { type: Boolean, default: undefined },
- showRemove: { type: Boolean, default: undefined },
+ disabled: booleanType(),
+ showRemove: booleanType(),
pagination: PropTypes.any,
onItemSelect: Function,
onScroll: Function,
diff --git a/components/transfer/ListItem.tsx b/components/transfer/ListItem.tsx
index 44de29d13a..6c80ac0c15 100644
--- a/components/transfer/ListItem.tsx
+++ b/components/transfer/ListItem.tsx
@@ -8,6 +8,7 @@ import TransButton from '../_util/transButton';
import LocaleReceiver from '../locale-provider/LocaleReceiver';
import type { ExtractPropTypes } from 'vue';
import { defineComponent } from 'vue';
+import { booleanType } from '../_util/type';
function noop() {}
@@ -15,10 +16,10 @@ export const transferListItemProps = {
renderedText: PropTypes.any,
renderedEl: PropTypes.any,
item: PropTypes.any,
- checked: { type: Boolean, default: undefined },
+ checked: booleanType(),
prefixCls: String,
- disabled: { type: Boolean, default: undefined },
- showRemove: { type: Boolean, default: undefined },
+ disabled: booleanType(),
+ showRemove: booleanType(),
onClick: Function,
onRemove: Function,
};
diff --git a/components/transfer/demo/custom-select-all-labels.vue b/components/transfer/demo/custom-select-all-labels.vue
new file mode 100644
index 0000000000..affa0d9949
--- /dev/null
+++ b/components/transfer/demo/custom-select-all-labels.vue
@@ -0,0 +1,102 @@
+
+---
+order: 4
+title:
+ zh-CN: 自定义全选文字
+ en-US: Custom Select All Labels
+---
+
+
+## zh-CN
+
+自定义穿梭框全选按钮的文字。
+
+## en-US
+
+Custom the labels for select all checkboxs.
+
+
+
+
+
+
+
diff --git a/components/transfer/demo/index.vue b/components/transfer/demo/index.vue
index a34edc9960..047c84f663 100644
--- a/components/transfer/demo/index.vue
+++ b/components/transfer/demo/index.vue
@@ -9,6 +9,7 @@
+