English 中文(简体)
Vuetify3: how to open v-dialog near its button
原标题:

The vuetify docs suggest that dialogs should appear relative to their parent activator,unless v-model is used, in which case

the dialog will not appear to be activated by any specific element, and will simply appear in the middle of the screen.

but whichever activation method is used, dialogs always appear in the centre of the screen. There is a partial solution here and although it appears to relate to earlier versions of Vuetify I have used the css below to move the dialog to bottom left of the screen, but still cannot make it appear to pop out of the activator button

<style scoped>
 .v-dialog >>> .datepicker-dialog {
   position: absolute;
   bottom: 0;
   left: 0;
 }
</style>

Vuetify playground showing the problem here

问题回答

If you just want to popup a dialog on the bottom left corner.

I d suggest to use v-bottom-sheet

It s clearly and accurately show the dialog on the bottom left corner without using a css.

Demo.





相关问题
Vuetify3: how to open v-dialog near its button

The vuetify docs suggest that dialogs should appear relative to their parent activator,unless v-model is used, in which case the dialog will not appear to be activated by any specific element, and ...

Positional relationship between footer and navigation

https://docus.dev/api/composables I want to create a layout like this site using vuetify, but when the footer and navigation-drawer settings do not work and the footer is not completely visible As ...

A. 地理坐标

我有一张标语,有两个文本领域和一个纽州。 其背景非常蓝色,我希望投入领域为白人。 出于某种原因,无论我试图做什么,他们都保持透明。

Vue3 Vuetify v-navigation-drawer closes at page reload

I have a parent component Items.vue and a child FiltersMenu.vue. FiltersMenu has a vuetify panel which is displayed if the drawer variable is true. When I check or uncheck the box, I have the url ...

VUE Change append icon after axios response

i have vue data-table which have column named quality (dropdown with append icon) i need to change append icon after get axios response(successfully update data) if dropdown changed in each row. Here ...

Vue 3 Options -> Composition Vuetify

Why isn t the "startDate" reflected within the v-text field of my v-date-picker after mounting when after setting startDate with the response from the getApplication function? My child ...

热门标签