-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(popover): can't be nested with other pop-able components, closes #…
- Loading branch information
Showing
9 changed files
with
169 additions
and
65 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
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 |
---|---|---|
|
@@ -20,6 +20,7 @@ manual-position | |
header | ||
hoist-debug | ||
nested-debug | ||
nested2-debug | ||
``` | ||
|
||
## API | ||
|
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,27 @@ | ||
# Nested Debug | ||
|
||
```html | ||
<n-tooltip placement="bottom"> | ||
<template #trigger> | ||
<n-popover trigger="click"> | ||
<template #trigger> | ||
<n-button>Test</n-button> | ||
</template> | ||
Popover | ||
</n-popover> | ||
</template> | ||
Tooltip | ||
</n-tooltip> | ||
|
||
<n-tooltip trigger="hover"> | ||
<template #trigger> | ||
<n-popconfirm> | ||
<template #trigger> | ||
<n-button>tooltip内嵌popconfirm</n-button> | ||
</template> | ||
一切都将一去杳然,任何人都无法将其捕获。 | ||
</n-popconfirm> | ||
</template> | ||
如果它长得像鸭子,走起来像鸭子,叫起来也像鸭子,那它一定是个鸭子。 | ||
</n-tooltip> | ||
``` |
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