forked from jdf2e/nutui-react
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(popover): 增加 light 和 dark 模式的区分 (jdf2e#1977)
- Loading branch information
1 parent
0cffd3d
commit 6238a9e
Showing
10 changed files
with
107 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
import { Popover } from './popover.taro' | ||
|
||
export type { PopoverLocation, PopoverProps, List } from './popover.taro' | ||
export type { PopoverProps } from './popover.taro' | ||
export type { PopoverLocation, List } from './types' | ||
|
||
export default Popover |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import { Popover } from './popover' | ||
|
||
export type { PopoverLocation, PopoverProps, List } from './popover' | ||
export type { PopoverProps } from './popover' | ||
export type { PopoverLocation, List } from './types' | ||
export default Popover |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
export type PopoverTheme = 'light' | 'dark' | ||
export type PopoverLocation = | ||
| 'bottom' | ||
| 'top' | ||
| 'left' | ||
| 'right' | ||
| 'top-start' | ||
| 'top-end' | ||
| 'bottom-start' | ||
| 'bottom-end' | ||
| 'left-start' | ||
| 'left-end' | ||
| 'right-start' | ||
| 'right-end' | ||
|
||
export interface List { | ||
key?: string | ||
name: string | ||
icon?: React.ReactNode | ||
disabled?: boolean | ||
className?: string | ||
action?: { icon?: React.ReactNode; onClick?: (e: any) => void } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters