nova-ui/plugins/vue-js-modal.ts
2022-12-04 07:02:30 +01:00

19 lines
320 B
TypeScript

import Vue from 'vue'
// @ts-expect-error
import VModal from 'vue-js-modal/dist/ssr.nocss'
const MIN_HEIGHT = 300
Vue.use(VModal, {
dynamicDefaults: {
adaptive: true,
focusTrap: true,
height: 'auto',
minHeight: MIN_HEIGHT,
scrollable: true,
classes: 'modal',
closeOnClick: true,
},
})