2023-02-28 08:29:30 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
|
|
|
<p>
|
|
|
|
ZIndexes are managed automatically to make sure layering of overlay components work seamlessly when combining multiple components. Still there may be cases where you'd like to configure the configure default values such as a custom layout
|
|
|
|
where header section is fixed. In a case like this, dropdown needs to be displayed below the application header but a modal dialog should be displayed above. PrimeVue configuration offers the <i>zIndex</i> property to customize the
|
|
|
|
default values for components categories. Default values are described below and can be customized when setting up PrimeVue.
|
|
|
|
</p>
|
|
|
|
</DocSectionText>
|
2024-01-30 08:16:35 +00:00
|
|
|
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
|
2023-02-28 08:29:30 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
code: {
|
2023-09-22 12:54:14 +00:00
|
|
|
basic: `
|
|
|
|
import {createApp} from "vue";
|
2023-02-28 08:29:30 +00:00
|
|
|
import PrimeVue from "primevue/config";
|
|
|
|
const app = createApp(App);
|
|
|
|
|
|
|
|
app.use(PrimeVue, {
|
|
|
|
zIndex: {
|
2024-04-18 14:22:30 +00:00
|
|
|
modal: 1100, //dialog, drawer
|
|
|
|
overlay: 1000, //select, popover
|
2023-02-28 08:29:30 +00:00
|
|
|
menu: 1000, //overlay menus
|
|
|
|
tooltip: 1100 //tooltip
|
|
|
|
}
|
2023-09-22 12:54:14 +00:00
|
|
|
});
|
|
|
|
`
|
2023-02-28 08:29:30 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|