mirror of
https://github.com/zhigang1992/react.git
synced 2026-04-25 21:05:36 +08:00
feat(tooltip): add component
This commit is contained in:
@@ -46,6 +46,26 @@ const copyTypes = tuple(
|
||||
'prevent',
|
||||
)
|
||||
|
||||
const triggerTypes = tuple(
|
||||
'hover',
|
||||
'click',
|
||||
)
|
||||
|
||||
const placement = tuple(
|
||||
'top',
|
||||
'topStart',
|
||||
'topEnd',
|
||||
'left',
|
||||
'leftStart',
|
||||
'leftEnd',
|
||||
'bottom',
|
||||
'bottomStart',
|
||||
'bottomEnd',
|
||||
'right',
|
||||
'rightStart',
|
||||
'rightEnd',
|
||||
)
|
||||
|
||||
export type ButtonTypes = typeof buttonTypes[number]
|
||||
|
||||
export type NormalSizes = typeof normalSizes[number]
|
||||
@@ -57,3 +77,7 @@ export type ThemeTypes = typeof themeTypes[number]
|
||||
export type SnippetTypes = typeof snippetTypes[number]
|
||||
|
||||
export type CopyTypes = typeof copyTypes[number]
|
||||
|
||||
export type TriggerTypes = typeof triggerTypes[number]
|
||||
|
||||
export type Placement = typeof placement[number]
|
||||
|
||||
Reference in New Issue
Block a user