Skip to content

Commit 663b764

Browse files
authored
feat(abc:st): add expandIcon property (#1812)
1 parent 62da4d1 commit 663b764

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

packages/abc/st/index.en-US.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ When an exception is thrown when parsing column data, *INVALID DATA* will be for
8383
| `[expandRowByClick]` | Whether to expand row by clicking anywhere in the whole row | `boolean` | `false` ||
8484
| `[expandAccordion]` | Accordion mode | `boolean` | `false` ||
8585
| `[expand]` | Whether current column include expand icon | `TemplateRef<void>` | - | - |
86+
| `[expandIcon]` | Custom expand icon | `TemplateRef<void>` | - |
8687
| `[responsive]` | Whether to turn on responsive | `boolean` | `true` ||
8788
| `[responsiveHideHeaderFooter]` | Whether to display the header and footer under the small screen | `boolean` | `false` ||
8889
| `[resizable]` | Resize header of the current table, **Multiple headers not supported** | `STResizable, boolean` | - | - |

packages/abc/st/index.zh-CN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ module: import { STModule } from '@delon/abc/st';
8383
| `[expandRowByClick]` | 通过点击行来展开子行 | `boolean` | `false` ||
8484
| `[expandAccordion]` | 手风琴模式 | `boolean` | `false` ||
8585
| `[expand]` | 当前列是否包含展开按钮,当数据源中包括 `expand` 表示展开状态 | `TemplateRef<void>` | - | - |
86+
| `[expandIcon]` | 自定义展开图标 | `TemplateRef<void>` | - |
8687
| `[responsive]` | 是否开启响应式 | `boolean` | `true` ||
8788
| `[responsiveHideHeaderFooter]` | 是否在小屏幕下才显示顶部与底部 | `boolean` | `false` ||
8889
| `[resizable]` | 当前表格所有列的调整表头配置项,**不支持多表头** | `STResizable, boolean` | - | - |

packages/abc/st/st.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@
160160
<td
161161
[nzShowExpand]="expand && i.showExpand !== false"
162162
[nzExpand]="i.expand"
163+
[nzExpandIcon]="expandIcon"
163164
(nzExpandChange)="_expandChange(i, $event)"
164165
(click)="_stopPropagation($event)"
165166
nzWidth="50px"

packages/abc/st/st.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ export class STComponent implements AfterViewInit, OnChanges {
214214
@Input({ transform: booleanAttribute }) expandRowByClick = false;
215215
@Input({ transform: booleanAttribute }) expandAccordion = false;
216216
@Input() expand: TemplateRef<{ $implicit: NzSafeAny; index: number }> | null = null;
217+
@Input() expandIcon: TemplateRef<void> | null = null;
217218
@Input() noResult?: string | TemplateRef<void> | null;
218219
@Input({ transform: booleanAttribute }) responsive: boolean = true;
219220
@Input({ transform: booleanAttribute }) responsiveHideHeaderFooter?: boolean;

0 commit comments

Comments
 (0)