You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/products/tdesign-react/packages/components/popup/popup.en-US.md
+13-2Lines changed: 13 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
:: BASE_DOC ::
2
2
3
3
## API
4
+
4
5
### Popup Props
5
6
6
7
name | type | default | description | required
7
8
-- | -- | -- | -- | --
8
9
attach | String / Function | 'body' | Typescript:`AttachNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
9
10
children | TNode | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
10
-
closeBtn | TNode | - | Typescript:`boolean \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
11
11
content | TNode | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
12
12
delay | Number / Array | - | delay to show or hide popover。Typescript:`number \| Array<number>` | N
placement | String | top | Typescript:`PopupPlacement``type PopupPlacement = 'top'\|'left'\|'right'\|'bottom'\|'top-left'\|'top-right'\|'bottom-left'\|'bottom-right'\|'left-top'\|'left-bottom'\|'right-top'\|'right-bottom'`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/popup/type.ts) | N
21
21
popperOptions | Object | - | popper initial options,details refer to https://popper.js.org/docs | N
22
22
showArrow | Boolean | false | \- | N
23
-
trigger | String | hover | options:hover/click/focus/mousedown/context-menu | N
23
+
trigger | String | hover | options: hover/click/focus/mousedown/context-menu | N
24
24
triggerElement | TNode | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
25
25
visible | Boolean | - | Typescript:`boolean` | N
26
+
defaultVisible | Boolean | - | uncontrolled property。Typescript:`boolean` | N
26
27
zIndex | Number | - | \- | N
28
+
onOverlayClick | Function | | Typescript:`(context: { e: MouseEvent }) => void`<br/>trigger on popup content click | N
27
29
onScroll | Function | | Typescript:`(context: { e: WheelEvent }) => void`<br/> | N
28
30
onScrollToBottom | Function | | Typescript:`(context: { e: WheelEvent }) => void`<br/> | N
Copy file name to clipboardExpand all lines: packages/products/tdesign-vue-next/packages/components/popup/popup.en-US.md
+14-2Lines changed: 14 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
1
:: BASE_DOC ::
2
2
3
3
## API
4
+
4
5
### Popup Props
5
6
6
7
name | type | default | description | required
7
8
-- | -- | -- | -- | --
8
9
attach | String / Function | 'body' | Typescript:`AttachNode`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts) | N
9
-
closeBtn | Boolean / Slot / Function | - | Typescript:`boolean \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts) | N
10
10
content | String / Slot / Function | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts) | N
11
11
default | String / Slot / Function | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts) | N
12
12
delay | Number / Array | - | delay to show or hide popover。Typescript:`number \| Array<number>` | N
placement | String | top | Typescript:`PopupPlacement``type PopupPlacement = 'top'\|'left'\|'right'\|'bottom'\|'top-left'\|'top-right'\|'bottom-left'\|'bottom-right'\|'left-top'\|'left-bottom'\|'right-top'\|'right-bottom'`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/popup/type.ts) | N
21
21
popperOptions | Object | - | popper initial options,details refer to https://popper.js.org/docs | N
22
22
showArrow | Boolean | false | \- | N
23
-
trigger | String | hover | options:hover/click/focus/mousedown/context-menu | N
23
+
trigger | String | hover | options: hover/click/focus/mousedown/context-menu | N
24
24
triggerElement | String / Slot / Function | - | Typescript:`string \| TNode`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts) | N
25
25
visible | Boolean | - | `v-model` and `v-model:visible` is supported。Typescript:`boolean` | N
26
+
defaultVisible | Boolean | - | uncontrolled property。Typescript:`boolean` | N
26
27
zIndex | Number | - | \- | N
28
+
onOverlayClick | Function | | Typescript:`(context: { e: MouseEvent }) => void`<br/>trigger on popup content click | N
27
29
onScroll | Function | | Typescript:`(context: { e: WheelEvent }) => void`<br/> | N
28
30
onScrollToBottom | Function | | Typescript:`(context: { e: WheelEvent }) => void`<br/> | N
0 commit comments