Skip to content

Commit 6c4fc9e

Browse files
authored
Merge pull request #25 from valgeirb/z-index-prop
2 parents 69dcf07 + 348e81a commit 6c4fc9e

File tree

5 files changed

+15
-5
lines changed

5 files changed

+15
-5
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p align="center">
2-
<img src="https://raw.githubusercontent.com/valgeirb/vue-popper/main/docs/public/popper.svg">
2+
<img src="https://raw.githubusercontent.com/valgeirb/vue-popper/main/docs/public/popper.svg" height="300px">
33
</p>
44

55
# vue3-popper
@@ -78,12 +78,13 @@ yarn add vue3-popper
7878
| `interactive` | `true` | If the Popper should be interactive, it will close when clicked/hovered if false |
7979
| `content` | `null` | If your content is just a simple string, you can pass it as a prop |
8080
| `show` | `null` | Control the Popper **manually**, other events (click, hover) are ignored if this is set to `true/false` |
81+
| `zIndex` | `9999` | The z-index of the Popper |
8182

8283
## Events
8384

8485
| Name | Description |
8586
| -------------- | ------------------------- |
86-
| `open:popper` | When the Popper is open |
87+
| `open:popper` | When the Popper is opened |
8788
| `close:popper` | When the Popper is hidden |
8889

8990
## Slots

docs/guide/api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
| `interactive` | `true` | If the Popper should be interactive, it will close when clicked/hovered if false |
1818
| `content` | `null` | If your content is just a simple string, you can pass it as a prop |
1919
| `show` | `null` | Control the Popper **manually**, other events (click, hover) are ignored if this is set to `true/false` |
20+
| `zIndex` | `9999` | The z-index of the Popper |
2021

2122
## Events
2223

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue3-popper",
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"author": {
55
"name": "Valgeir Björnsson",
66
"email": "[email protected]",

src/component/Popper.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,13 @@
140140
type: [Number, String],
141141
default: 0,
142142
},
143+
/**
144+
* The z-index of the Popper.
145+
*/
146+
zIndex: {
147+
type: [Number, String],
148+
default: 9999,
149+
},
143150
/**
144151
* Display an arrow on the popper
145152
*/
@@ -376,6 +383,7 @@
376383
border-style: var(--popper-theme-border-style);
377384
border-color: var(--popper-theme-border-color);
378385
box-shadow: var(--popper-theme-box-shadow);
386+
z-index: v-bind(zIndex);
379387
}
380388
381389
.popper:hover,

0 commit comments

Comments
 (0)