|
5 | 5 |
|
6 | 6 | name | type | default | description | required |
7 | 7 | -- | -- | -- | -- | -- |
8 | | -className | String | - | 类名 | N |
9 | | -style | Object | - | 样式,Typescript:`React.CSSProperties` | N |
10 | | -affixProps | Object | - | Typescript:`Omit<AffixProps, 'children'>`,[Affix API Documents](./affix?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/anchor/type.ts) | N |
| 8 | +className | String | - | className of component | N |
| 9 | +style | Object | - | CSS(Cascading Style Sheets),Typescript: `React.CSSProperties` | N |
| 10 | +affixProps | Object | - | Typescript: `Omit<AffixProps, 'children'>`,[Affix API Documents](./affix?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/anchor/type.ts) | N |
11 | 11 | bounds | Number | 5 | \- | N |
12 | | -container | String / Function | () => window | Typescript:`ScrollContainer`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N |
13 | | -cursor | TElement | - | Typescript:`TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N |
14 | | -getCurrentAnchor | Function | - | Custom Highlighted Anchor Points。Typescript:`(activeLink: string) => string` | N |
15 | | -size | String | medium | options: small/medium/large。Typescript:`SizeEnum`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N |
| 12 | +container | String / Function | () => window | Typescript: `ScrollContainer`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N |
| 13 | +cursor | TElement | - | Typescript: `TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N |
| 14 | +getCurrentAnchor | Function | - | Custom Highlighted Anchor Points。Typescript: `(activeLink: string) => string` | N |
| 15 | +size | String | medium | options: small/medium/large。Typescript: `SizeEnum`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N |
16 | 16 | targetOffset | Number | 0 | \- | N |
17 | | -onChange | Function | | Typescript:`(currentLink: string, prevLink: string) => void`<br/> | N |
18 | | -onClick | Function | | Typescript:`(link: { href: string; title: string; e: MouseEvent }) => void`<br/> | N |
| 17 | +onChange | Function | | Typescript: `(currentLink: string, prevLink: string) => void`<br/> | N |
| 18 | +onClick | Function | | Typescript: `(link: { href: string; title: string; e: MouseEvent }) => void`<br/> | N |
19 | 19 |
|
20 | 20 | ### AnchorItem Props |
21 | 21 |
|
22 | 22 | name | type | default | description | required |
23 | 23 | -- | -- | -- | -- | -- |
24 | | -className | String | - | 类名 | N |
25 | | -style | Object | - | 样式,Typescript:`React.CSSProperties` | N |
| 24 | +className | String | - | className of component | N |
| 25 | +style | Object | - | CSS(Cascading Style Sheets),Typescript: `React.CSSProperties` | N |
26 | 26 | href | String | - | required | Y |
27 | 27 | target | String | _self | options: _self/_blank/_parent/_top | N |
28 | | -title | TNode | '' | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N |
| 28 | +title | TNode | '' | Typescript: `string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N |
29 | 29 |
|
30 | 30 | ### AnchorTarget Props |
31 | 31 |
|
32 | 32 | name | type | default | description | required |
33 | 33 | -- | -- | -- | -- | -- |
34 | | -className | String | - | 类名 | N |
35 | | -style | Object | - | 样式,Typescript:`React.CSSProperties` | N |
| 34 | +className | String | - | className of component | N |
| 35 | +style | Object | - | CSS(Cascading Style Sheets),Typescript: `React.CSSProperties` | N |
36 | 36 | id | String | - | required | Y |
37 | 37 | tag | String | div | \- | N |
0 commit comments