Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Commit

Permalink
feat: add false type in button toolTip
Browse files Browse the repository at this point in the history
Signed-off-by: xiangzhe <xiangzhe@xsky.com>
  • Loading branch information
gxz2019 committed Jul 27, 2023
1 parent 3ff930b commit 98b23a4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/interface.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ export interface NotificationListStates {

export interface ButtonProps extends BaseButtonProps {
/**按钮文字提示 */
toolTip?: TooltipProps;
toolTip?: TooltipProps | false;
/**按钮占据整行 */
block?: boolean;
/**按钮的状态 */
Expand Down
9 changes: 8 additions & 1 deletion stories/Button.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,17 @@ export const Tooltip: Story = {
onClick={() => {
alert('clicked');
}}
style={{ marginRight: '10px' }}
>
button
</Button>
</div>
<Button
toolTip={false}
disabled={true}
>
disabled but no toolTip
</Button>
</div >
),
};

Expand Down

0 comments on commit 98b23a4

Please sign in to comment.