File tree Expand file tree Collapse file tree 4 files changed +16
-6
lines changed
packages/form/widgets/transfer Expand file tree Collapse file tree 4 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ Non-built-in modules need to additionally register `withTransferWidget` in [json
37
37
| ` [searchPlaceholder] ` | Placeholder of search box | ` string ` | - |
38
38
| ` [notFoundContent] ` | Text to display when a column is empty | ` string ` | - |
39
39
| ` [canMove] ` | Second verification when transfer choice box | ` function ` | - |
40
- | ` [change] ` | Callback function when the transfer between columns is complete | ` (options: TransferChange) => void ` | - |
41
- | ` [searchChange] ` | Callback function when search field is changed | ` (options: TransferSearchChange) => void ` | - |
42
- | ` [selectChange] ` | Callback function when selected items are changed | ` (options: TransferSelectChange) => void ` | - |
40
+ | ` [oneWay] ` | Display as single direction | ` boolean ` | ` false ` |
41
+ | ` (change) ` | Callback function when the transfer between columns is complete | ` (options: TransferChange) => void ` | - |
42
+ | ` (searchChange) ` | Callback function when search field is changed | ` (options: TransferSearchChange) => void ` | - |
43
+ | ` (selectChange) ` | Callback function when selected items are changed | ` (options: TransferSelectChange) => void ` | - |
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ type: Non-built-in widgets
37
37
| ` [searchPlaceholder] ` | 搜索框的默认值 | ` string ` | - |
38
38
| ` [notFoundContent] ` | 当列表为空时显示的内容 | ` string ` | - |
39
39
| ` [canMove] ` | 穿梭时二次校验。 | ` function ` | - |
40
- | ` [change] ` | 选项在两栏之间转移时的回调函数 | ` (options: TransferChange) => void ` | - |
41
- | ` [searchChange] ` | 搜索框内容时改变时的回调函数 | ` (options: TransferSearchChange) => void ` | - |
42
- | ` [selectChange] ` | 选中项发生改变时的回调函数 | ` (options: TransferSelectChange) => void ` | - |
40
+ | ` [oneWay] ` | 展示为单向样式 | ` boolean ` | ` false ` |
41
+ | ` (change) ` | 选项在两栏之间转移时的回调函数 | ` (options: TransferChange) => void ` | - |
42
+ | ` (searchChange) ` | 搜索框内容时改变时的回调函数 | ` (options: TransferSearchChange) => void ` | - |
43
+ | ` (selectChange) ` | 选中项发生改变时的回调函数 | ` (options: TransferSelectChange) => void ` | - |
Original file line number Diff line number Diff line change @@ -61,6 +61,13 @@ export interface SFTransferWidgetSchema extends SFUISchemaItem {
61
61
*/
62
62
notFoundContent ?: string ;
63
63
64
+ /**
65
+ * Display as single direction
66
+ *
67
+ * 展示为单向样式
68
+ */
69
+ oneWay ?: boolean ;
70
+
64
71
/**
65
72
* 穿梭时二次校验
66
73
*/
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ import type { SFTransferWidgetSchema } from './schema';
36
36
[nzFilterOption]="ui.filterOption"
37
37
[nzSearchPlaceholder]="ui.searchPlaceholder"
38
38
[nzNotFoundContent]="ui.notFoundContent"
39
+ [nzOneWay]="ui.oneWay"
39
40
[nzCanMove]="_canMove"
40
41
(nzChange)="_change($event)"
41
42
(nzSearchChange)="_searchChange($event)"
You can’t perform that action at this time.
0 commit comments