@@ -22,59 +22,59 @@ import { NzTabsModule } from 'ng-zorro-antd/tabs';
2222
2323## API
2424
25- ### nz-tabset
26-
27- | Property | Description | Type | Default | Global Config |
28- | -------- | ----------- | ---- | ------- | ------------- |
29- | ` [nzSelectedIndex] ` | Current tab's index | ` number ` | - |
30- | ` [nzAnimated] ` | Whether to change tabs with animation. Only works while ` nzTabPosition="top" \| "bottom" ` | ` boolean \| {inkBar:boolean, tabPane:boolean} ` | ` true ` , ` false ` when ` type="card" ` | ✅ |
31- | ` [nzSize] ` | preset tab bar size | ` 'large' \| 'small' \| 'default' ` | ` 'default' ` | ✅ |
32- | ` [nzTabBarExtraContent] ` | Extra content in tab bar | ` TemplateRef<void> ` | - |
33- | ` [nzTabBarStyle] ` | Tab bar style object | ` object ` | - |
34- | ` [nzTabPosition] ` | Position of tabs | ` 'top' \| 'right' \| 'bottom' \| 'left' ` | ` 'top' ` | |
35- | ` [nzType] ` | Basic style of tabs | ` 'line' \| 'card' \| 'editable-card' ` | ` 'line' ` | ✅ |
36- | ` [nzTabBarGutter] ` | The gap between tabs | ` number ` | - | ✅ |
37- | ` [nzHideAll] ` | Whether hide all tabs | ` boolean ` | ` false ` |
38- | ` [nzLinkRouter] ` | Link with Angular router. It supports child mode and query param mode | ` boolean ` | ` false ` | |
39- | ` [nzLinkExact] ` | Use exact routing matching | ` boolean ` | ` true ` |
40- | ` [nzCanDeactivate] ` | Determine if a tab can be deactivated | ` NzTabsCanDeactivateFn ` | - |
41- | ` [nzCentered] ` | Centers tabs | ` boolean ` | ` false ` |
42- | ` (nzSelectedIndexChange) ` | Current tab's index change callback | ` EventEmitter<number> ` | - |
43- | ` (nzSelectChange) ` | Current tab's change callback | ` EventEmitter<{index: number,tab: NzTabComponent}> ` | - |
44-
45- ### nz-tabset[ nzType="editable-card"]
46-
47- | Property | Description | Type | Default | Global Config |
48- | --- | --- | --- | --- | --- |
49- | ` [nzHideAdd] ` | Hide plus icon or not | ` boolean ` | ` false ` |
50- | ` [nzAddIcon] ` | Add icon | ` string \| TemplateRef<void> ` | - |
51- | ` (nzAdd) ` | When add button clicked emit | ` EventEmitter<> ` | - |
52- | ` (nzClose) ` | When close button clicked emit | ` EventEmitter<{ index: number }> ` | - |
53-
54- ### nz-tab
55-
56- | Property | Description | Type | Default |
57- | -------- | ----------- | ---- | ------- |
58- | ` [nzTitle] ` | Show text in tab's head | ` string \| TemplateRef<void> ` | - |
59- | ` [nzForceRender] ` | Forced render of content in tabs, not lazy render after clicking on tabs | ` boolean ` | ` false ` |
60- | ` [nzDisabled] ` | tab disable | ` boolean ` | - |
61- | ` (nzClick) ` | title click callback | ` EventEmitter<void> ` | - |
62- | ` (nzContextmenu) ` | title contextmenu callback | ` EventEmitter<MouseEvent> ` | - |
63- | ` (nzSelect) ` | title select callback | ` EventEmitter<void> ` | - |
64- | ` (nzDeselect) ` | title deselect callback | ` EventEmitter<void> ` | - |
65-
66- ### nz-tabset[ nzType="editable-card"] > nz-tab
67- | Property | Description | Type | Default | Global Config |
68- | --- | --- | --- | --- | --- |
69- | ` [nzClosable] ` | Show close icon or not | ` boolean ` | ` false ` |
70- | ` [nzCloseIcon ] ` | Close icon | ` string \| TemplateRef<void> ` | - |
71-
25+ ### nz-tabset: standalone
26+
27+ | Property | Description | Type | Default | Global Config |
28+ | ------------------------- | ----------------------------------------------------------------------------------------- | --------------------------------------------------- | --------------------------- ------- | ------------- |
29+ | ` [nzSelectedIndex] ` | Current tab's index | ` number ` | - |
30+ | ` [nzAnimated] ` | Whether to change tabs with animation. Only works while ` nzTabPosition="top" \| "bottom" ` | ` boolean \| {inkBar:boolean, tabPane:boolean} ` | ` true ` , ` false ` when ` type="card" ` | ✅ |
31+ | ` [nzSize] ` | preset tab bar size | ` 'large' \| 'small' \| 'default' ` | ` 'default' ` | ✅ |
32+ | ` [nzTabBarExtraContent] ` | Extra content in tab bar | ` TemplateRef<void> ` | - |
33+ | ` [nzTabBarStyle] ` | Tab bar style object | ` object ` | - |
34+ | ` [nzTabPosition] ` | Position of tabs | ` 'top' \| 'right' \| 'bottom' \| 'left' ` | ` 'top' ` | |
35+ | ` [nzType] ` | Basic style of tabs | ` 'line' \| 'card' \| 'editable-card' ` | ` 'line' ` | ✅ |
36+ | ` [nzTabBarGutter] ` | The gap between tabs | ` number ` | - | ✅ |
37+ | ` [nzHideAll] ` | Whether hide all tabs | ` boolean ` | ` false ` |
38+ | ` [nzLinkRouter] ` | Link with Angular router. It supports child mode and query param mode | ` boolean ` | ` false ` | |
39+ | ` [nzLinkExact] ` | Use exact routing matching | ` boolean ` | ` true ` |
40+ | ` [nzCanDeactivate] ` | Determine if a tab can be deactivated | ` NzTabsCanDeactivateFn ` | - |
41+ | ` [nzCentered] ` | Centers tabs | ` boolean ` | ` false ` |
42+ | ` (nzSelectedIndexChange) ` | Current tab's index change callback | ` EventEmitter<number> ` | - |
43+ | ` (nzSelectChange) ` | Current tab's change callback | ` EventEmitter<{index: number,tab: NzTabComponent}> ` | - |
44+
45+ ### nz-tabset[ nzType="editable-card"] : standalone
46+
47+ | Property | Description | Type | Default | Global Config |
48+ | ------------- | ------------------------------ | --------------------------------- | ------- | ---------- --- |
49+ | ` [nzHideAdd] ` | Hide plus icon or not | ` boolean ` | ` false ` |
50+ | ` [nzAddIcon] ` | Add icon | ` string \| TemplateRef<void> ` | - |
51+ | ` (nzAdd) ` | When add button clicked emit | ` EventEmitter<> ` | - |
52+ | ` (nzClose) ` | When close button clicked emit | ` EventEmitter<{ index: number }> ` | - |
53+
54+ ### nz-tab: standalone
55+
56+ | Property | Description | Type | Default |
57+ | ----------------- | ------------------------------------------------------------------------ | ------------------------- ---- | ------- |
58+ | ` [nzTitle] ` | Show text in tab's head | ` string \| TemplateRef<void> ` | - |
59+ | ` [nzForceRender] ` | Forced render of content in tabs, not lazy render after clicking on tabs | ` boolean ` | ` false ` |
60+ | ` [nzDisabled] ` | tab disable | ` boolean ` | - |
61+ | ` (nzClick) ` | title click callback | ` EventEmitter<void> ` | - |
62+ | ` (nzContextmenu) ` | title contextmenu callback | ` EventEmitter<MouseEvent> ` | - |
63+ | ` (nzSelect) ` | title select callback | ` EventEmitter<void> ` | - |
64+ | ` (nzDeselect) ` | title deselect callback | ` EventEmitter<void> ` | - |
65+
66+ ### nz-tabset[ nzType="editable-card"] > nz-tab: standalone
67+
68+ | Property | Description | Type | Default | Global Config |
69+ | --------------- | ---------------------- | ----------------------------- | ------- | ------------- |
70+ | ` [nzClosable ] ` | Show close icon or not | ` boolean ` | ` false ` |
71+ | ` [nzCloseIcon] ` | Close icon | ` string \| TemplateRef<void> ` | - |
7272
7373#### Template variable references of ` nz-tab[nzTitle] `
7474
75- | Property | Description | Type |
76- | --- | --- | --- |
77- | ` visible ` | Is the title in the visible area, will be rendered to the dropdown menu if ` false ` . | ` boolean ` |
75+ | Property | Description | Type |
76+ | --------- | ----------------------------------------------------------------------------------- | ------ --- |
77+ | ` visible ` | Is the title in the visible area, will be rendered to the dropdown menu if ` false ` . | ` boolean ` |
7878
7979Use in ` nz-tab[nzTitle] `
8080
@@ -93,7 +93,6 @@ Use in `*nzTabLink`
9393</nz-tab >
9494```
9595
96-
9796### [ nz-tab]
9897
9998Tab contents can be lazy loaded by declaring the body in a ` ng-template ` with the ` [nz-tab] ` attribute.
0 commit comments