-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tooltip&pop-confirm): Tooltip和PopConfirm组件同步增加设置间距功能
- Loading branch information
Showing
6 changed files
with
48 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react' | ||
import PopConfirm from '../src' | ||
import Button from '@hi-ui/button' | ||
|
||
/** | ||
* @title 设置基于依附元素的间隙偏移量 | ||
*/ | ||
export const GutterGap = () => { | ||
return ( | ||
<> | ||
<h1>Gutter Gap</h1> | ||
<div className="pop-confirm-basic__wrap"> | ||
<PopConfirm title="Delete this item along with the entered content?" gutterGap={30}> | ||
<Button>Trigger</Button> | ||
</PopConfirm> | ||
</div> | ||
</> | ||
) | ||
} |
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,19 @@ | ||
import React from 'react' | ||
import Tooltip from '../src' | ||
import Button from '@hi-ui/button' | ||
|
||
/** | ||
* @title 设置基于依附元素的间隙偏移量 | ||
*/ | ||
export const GutterGap = () => { | ||
return ( | ||
<> | ||
<h1>Gutter Gap</h1> | ||
<div className="Tooltip-basic__wrap"> | ||
<Tooltip title="Tooltip Title" gutterGap={30} trigger="hover"> | ||
<Button>trigger</Button> | ||
</Tooltip> | ||
</div> | ||
</> | ||
) | ||
} |
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