<v-card class="mt-5">
<v-card-title>
Mobile
</v-card-title>
<v-card-text>
<div>
mobile: {{ $vuetify.breakpoint.mobile }}
</div>
<div>
mobileBreakpoint: {{ $vuetify.breakpoint.mobileBreakpoint }}
</div>
</v-card-text>
</v-card>
<v-dialog
v-model="dialog"
width="500"
fullscreen = "$vuetify.breakpoint.mobileBreakpoint" //** 모바일일때만 풀스크린**
>
<template v-slot:activator="{ on, attrs }">
<v-btn
color="red lighten-2"
dark
v-bind="attrs"
v-on="on"
>
Click Me
</v-btn>
</template>
<v-card>
<v-card-title class="text-h5 grey lighten-2">
Privacy Policy
</v-card-title>
<v-card-text>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</v-card-text>
<v-divider></v-divider>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn
color="primary"
text
@click="dialog = false"
>
I accept
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
vuetify.breakpoint.mobileBreakpoint <<
모바일 기준을 변경하려면 vuetify.js 로이동
import Vue from 'vue';
import Vuetify from 'vuetify/lib/framework';
Vue.use(Vuetify);
export default new Vuetify({
breakpoint:{
threshholds : {
xs : 360 //xs 값자체를 수정하고 싶을때 threshholds
},
modileBreakpoint : 'xs'
}
// xs 일때만 모바일
});