From 7521b60cc55e73e45fc0581bb3a4549a1d14ab22 Mon Sep 17 00:00:00 2001 From: cipchk Date: Thu, 4 Jul 2024 13:10:41 +0800 Subject: [PATCH] feat(abc:st): add `expandIcon` property - close https://github.com/ng-alain/ng-alain/issues/2507 --- packages/abc/st/index.en-US.md | 1 + packages/abc/st/index.zh-CN.md | 1 + packages/abc/st/st.component.html | 1 + packages/abc/st/st.component.ts | 1 + 4 files changed, 4 insertions(+) diff --git a/packages/abc/st/index.en-US.md b/packages/abc/st/index.en-US.md index 68ba90effe..f0f18dae80 100644 --- a/packages/abc/st/index.en-US.md +++ b/packages/abc/st/index.en-US.md @@ -83,6 +83,7 @@ When an exception is thrown when parsing column data, *INVALID DATA* will be for | `[expandRowByClick]` | Whether to expand row by clicking anywhere in the whole row | `boolean` | `false` | ✅ | | `[expandAccordion]` | Accordion mode | `boolean` | `false` | ✅ | | `[expand]` | Whether current column include expand icon | `TemplateRef` | - | - | +| `[expandIcon]` | Custom expand icon | `TemplateRef` | - | | `[responsive]` | Whether to turn on responsive | `boolean` | `true` | ✅ | | `[responsiveHideHeaderFooter]` | Whether to display the header and footer under the small screen | `boolean` | `false` | ✅ | | `[resizable]` | Resize header of the current table, **Multiple headers not supported** | `STResizable, boolean` | - | - | diff --git a/packages/abc/st/index.zh-CN.md b/packages/abc/st/index.zh-CN.md index 653874b6ad..73bd8815e3 100644 --- a/packages/abc/st/index.zh-CN.md +++ b/packages/abc/st/index.zh-CN.md @@ -83,6 +83,7 @@ module: import { STModule } from '@delon/abc/st'; | `[expandRowByClick]` | 通过点击行来展开子行 | `boolean` | `false` | ✅ | | `[expandAccordion]` | 手风琴模式 | `boolean` | `false` | ✅ | | `[expand]` | 当前列是否包含展开按钮,当数据源中包括 `expand` 表示展开状态 | `TemplateRef` | - | - | +| `[expandIcon]` | 自定义展开图标 | `TemplateRef` | - | | `[responsive]` | 是否开启响应式 | `boolean` | `true` | ✅ | | `[responsiveHideHeaderFooter]` | 是否在小屏幕下才显示顶部与底部 | `boolean` | `false` | ✅ | | `[resizable]` | 当前表格所有列的调整表头配置项,**不支持多表头** | `STResizable, boolean` | - | - | diff --git a/packages/abc/st/st.component.html b/packages/abc/st/st.component.html index 1816576ee4..931c1f07c2 100644 --- a/packages/abc/st/st.component.html +++ b/packages/abc/st/st.component.html @@ -160,6 +160,7 @@ | null = null; + @Input() expandIcon: TemplateRef | null = null; @Input() noResult?: string | TemplateRef | null; @Input({ transform: booleanAttribute }) responsive: boolean = true; @Input({ transform: booleanAttribute }) responsiveHideHeaderFooter?: boolean;