Skip to content

Commit 0789c06

Browse files
committed
Merge branch 'develop' into rylan/fix/form/read-only
2 parents 3a646f7 + 9ab69f8 commit 0789c06

File tree

112 files changed

+1463
-1456
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+1463
-1456
lines changed

packages/components/affix/affix.en-US.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55

66
name | type | default | description | required
77
-- | -- | -- | -- | --
8-
className | String | - | 类名 | N
9-
style | Object | - | 样式,Typescript`React.CSSProperties` | N
10-
children | TNode | - | Typescript`string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
11-
container | String / Function | () => (() => window) | Typescript`ScrollContainer`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
12-
content | TNode | - | Typescript`string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
8+
className | String | - | className of component | N
9+
style | Object | - | CSS(Cascading Style Sheets),Typescript: `React.CSSProperties` | N
10+
children | TNode | - | Typescript: `string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
11+
container | String / Function | () => (() => window) | Typescript: `ScrollContainer`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
12+
content | TNode | - | Typescript: `string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
1313
offsetBottom | Number | 0 | When the distance from the bottom of the container reaches the specified distance, the trigger is fixed | N
1414
offsetTop | Number | 0 | When the distance from the top of the container reaches the specified distance, the trigger is fixed | N
1515
zIndex | Number | - | \- | N
16-
onFixedChange | Function | | Typescript`(affixed: boolean, context: { top: number }) => void`<br/> | N
16+
onFixedChange | Function | | Typescript: `(affixed: boolean, context: { top: number }) => void`<br/> | N

packages/components/affix/affix.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## API
44
### Affix Props
55

6-
名称 | 类型 | 默认值 | 说明 | 必传
6+
名称 | 类型 | 默认值 | 描述 | 必传
77
-- | -- | -- | -- | --
88
className | String | - | 类名 | N
99
style | Object | - | 样式,TS 类型:`React.CSSProperties` | N

packages/components/alert/alert.en-US.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
name | type | default | description | required
88
-- | -- | -- | -- | --
99
className | String | - | className of component | N
10-
style | Object | - | CSS(Cascading Style Sheets),Typescript`React.CSSProperties` | N
11-
close | TNode | false | Deprecated, use closeBtn instead. Typescript`string \| boolean \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
12-
closeBtn | TNode | false | Close button. Value "true" show the close button. Value "False" hide close button. Value type string display as is. Use TNode to custom the close trigger. Typescript`string \| boolean \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
13-
icon | TElement | - | Typescript`TNode`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
10+
style | Object | - | CSS(Cascading Style Sheets),Typescript: `React.CSSProperties` | N
11+
close | TNode | false | Deprecated, use closeBtn instead. Typescript: `string \| boolean \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
12+
closeBtn | TNode | false | Close button. Value "true" show the close button. Value "False" hide close button. Value type string display as is. Use TNode to custom the close trigger. Typescript: `string \| boolean \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
13+
icon | TElement | - | Typescript: `TNode`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
1414
maxLine | Number | 0 | \- | N
15-
message | TNode | - | Typescript`string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
16-
operation | TElement | - | Typescript`TNode`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
15+
message | TNode | - | Typescript: `string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
16+
operation | TElement | - | Typescript: `TNode`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
1717
theme | String | info | options: success/info/warning/error | N
18-
title | TNode | - | Typescript`string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
19-
onClose | Function | | Typescript`(context: { e: MouseEvent }) => void`<br/> | N
20-
onClosed | Function | | Typescript`(context: { e: TransitionEvent }) => void`<br/> | N
18+
title | TNode | - | Typescript: `string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
19+
onClose | Function | | Typescript: `(context: { e: MouseEvent }) => void`<br/> | N
20+
onClosed | Function | | Typescript: `(context: { e: TransitionEvent }) => void`<br/> | N

packages/components/anchor/anchor.en-US.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,33 @@
55

66
name | type | default | description | required
77
-- | -- | -- | -- | --
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
1111
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
1616
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
1919

2020
### AnchorItem Props
2121

2222
name | type | default | description | required
2323
-- | -- | -- | -- | --
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
2626
href | String | - | required | Y
2727
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
2929

3030
### AnchorTarget Props
3131

3232
name | type | default | description | required
3333
-- | -- | -- | -- | --
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
3636
id | String | - | required | Y
3737
tag | String | div | \- | N

packages/components/anchor/anchor.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## API
44
### Anchor Props
55

6-
名称 | 类型 | 默认值 | 说明 | 必传
6+
名称 | 类型 | 默认值 | 描述 | 必传
77
-- | -- | -- | -- | --
88
className | String | - | 类名 | N
99
style | Object | - | 样式,TS 类型:`React.CSSProperties` | N
@@ -19,7 +19,7 @@ onClick | Function | | TS 类型:`(link: { href: string; title: string; e: Mo
1919

2020
### AnchorItem Props
2121

22-
名称 | 类型 | 默认值 | 说明 | 必传
22+
名称 | 类型 | 默认值 | 描述 | 必传
2323
-- | -- | -- | -- | --
2424
className | String | - | 类名 | N
2525
style | Object | - | 样式,TS 类型:`React.CSSProperties` | N
@@ -29,7 +29,7 @@ title | TNode | '' | 锚点文本。TS 类型:`string \| TNode`。[通用类
2929

3030
### AnchorTarget Props
3131

32-
名称 | 类型 | 默认值 | 说明 | 必传
32+
名称 | 类型 | 默认值 | 描述 | 必传
3333
-- | -- | -- | -- | --
3434
className | String | - | 类名 | N
3535
style | Object | - | 样式,TS 类型:`React.CSSProperties` | N

packages/components/auto-complete/auto-complete.en-US.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,35 +7,35 @@
77
name | type | default | description | required
88
-- | -- | -- | -- | --
99
className | String | - | className of component | N
10-
style | Object | - | CSS(Cascading Style Sheets),Typescript`React.CSSProperties` | N
10+
style | Object | - | CSS(Cascading Style Sheets),Typescript: `React.CSSProperties` | N
1111
autofocus | Boolean | - | \- | N
1212
borderless | Boolean | false | \- | N
13-
children | TNode | - | Typescript`string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
13+
children | TNode | - | Typescript: `string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
1414
clearable | Boolean | - | \- | N
1515
disabled | Boolean | - | \- | N
16-
empty | TNode | - | Typescript`string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
17-
filter | Function | - | Typescript`(filterWords: string, option: T) => boolean \| Promise<boolean>` | N
16+
empty | TNode | - | Typescript: `string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
17+
filter | Function | - | Typescript: `(filterWords: string, option: T) => boolean \| Promise<boolean>` | N
1818
filterable | Boolean | true | \- | N
1919
highlightKeyword | Boolean | true | \- | N
20-
inputProps | Object | - | Typescript`InputProps`[Input API Documents](./input?tab=api)[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/auto-complete/type.ts) | N
21-
options | Array | - | Typescript`Array<T>` | N
22-
panelBottomContent | TNode | - | Typescript`string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
23-
panelTopContent | TNode | - | Typescript`string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
20+
inputProps | Object | - | Typescript: `InputProps`[Input API Documents](./input?tab=api)[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/auto-complete/type.ts) | N
21+
options | Array | - | Typescript: `Array<T>` | N
22+
panelBottomContent | TNode | - | Typescript: `string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
23+
panelTopContent | TNode | - | Typescript: `string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
2424
placeholder | String | undefined | \- | N
2525
popupProps | Object | - | Typescript:`PopupProps`[Popup API Documents](./popup?tab=api)[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/auto-complete/type.ts) | N
2626
readOnly | Boolean | - | \- | N
2727
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
2828
status | String | default | options: default/success/warning/error | N
29-
textareaProps | Object | - | Typescript`TextareaProps`[Textarea API Documents](./textarea?tab=api)[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/auto-complete/type.ts) | N
30-
tips | TNode | - | Typescript`string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
31-
triggerElement | TNode | - | Typescript`string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
29+
textareaProps | Object | - | Typescript: `TextareaProps`[Textarea API Documents](./textarea?tab=api)[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/auto-complete/type.ts) | N
30+
tips | TNode | - | Typescript: `string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
31+
triggerElement | TNode | - | Typescript: `string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
3232
value | String | - | \- | N
3333
defaultValue | String | - | uncontrolled property | N
34-
onBlur | Function | | Typescript`(context: { e: FocusEvent; value: string }) => void`<br/> | N
35-
onChange | Function | | Typescript`(value: string, context?: { e?: InputEvent \| MouseEvent \| CompositionEvent \| KeyboardEvent }) => void`<br/> | N
36-
onClear | Function | | Typescript`(context: { e: MouseEvent }) => void`<br/> | N
37-
onCompositionend | Function | | Typescript`(context: { e: CompositionEvent; value: string }) => void`<br/>trigger on compositionend | N
38-
onCompositionstart | Function | | Typescript`(context: { e: CompositionEvent; value: string }) => void`<br/>trigger on compositionstart | N
39-
onEnter | Function | | Typescript`(context: { e: KeyboardEvent; value: string }) => void`<br/> | N
40-
onFocus | Function | | Typescript`(context: { e: FocusEvent; value: string }) => void`<br/> | N
41-
onSelect | Function | | Typescript`(value: string, context: { e: MouseEvent \| KeyboardEvent }) => void`<br/> | N
34+
onBlur | Function | | Typescript: `(context: { e: FocusEvent; value: string }) => void`<br/> | N
35+
onChange | Function | | Typescript: `(value: string, context?: { e?: InputEvent \| MouseEvent \| CompositionEvent \| KeyboardEvent }) => void`<br/> | N
36+
onClear | Function | | Typescript: `(context: { e: MouseEvent }) => void`<br/> | N
37+
onCompositionend | Function | | Typescript: `(context: { e: CompositionEvent; value: string }) => void`<br/>trigger on compositionend | N
38+
onCompositionstart | Function | | Typescript: `(context: { e: CompositionEvent; value: string }) => void`<br/>trigger on compositionstart | N
39+
onEnter | Function | | Typescript: `(context: { e: KeyboardEvent; value: string }) => void`<br/> | N
40+
onFocus | Function | | Typescript: `(context: { e: FocusEvent; value: string }) => void`<br/> | N
41+
onSelect | Function | | Typescript: `(value: string, context: { e: MouseEvent \| KeyboardEvent }) => void`<br/> | N

0 commit comments

Comments
 (0)