File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 */
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 ,
You can’t perform that action at this time.
0 commit comments