forked from tusen-ai/naive-ui
-
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.
fix(popover): arrow's misplacement when placed in nested popovers wit…
…h different placement, closes tusen-ai#916
- Loading branch information
Showing
6 changed files
with
44 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Nested Debug | ||
|
||
```html | ||
<n-popover trigger="click" placement="bottom-end"> | ||
<template #trigger> | ||
<div> | ||
<n-tag>hover</n-tag> | ||
</div> | ||
</template> | ||
<n-list bordered> | ||
<n-list-item v-for="(item, index) in dataList" :key="index"> | ||
<n-ellipsis style="max-width: 300px"> {{ item }} </n-ellipsis> | ||
</n-list-item> | ||
</n-list> | ||
</n-popover> | ||
``` | ||
|
||
```js | ||
import { defineComponent } from 'vue' | ||
export default defineComponent({ | ||
setup () { | ||
return { | ||
dataList: [ | ||
'Lorem', | ||
'Lorem', | ||
'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Vero eveniet exercitationem quasi. Sequi quia natus quam ipsa sit autem eveniet harum tempore, eius placeat temporibus nobis veritatis vero totam possimus.', | ||
'jflakjdflksjflkajdlkfjaslkfjklasjdflkasjflkjsadlkf' | ||
] | ||
} | ||
} | ||
}) | ||
``` |
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