migrate viewClass prop to class attribute
This commit is contained in:
parent
b3699a7c7c
commit
c217483640
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<Modal
|
||||
v-if="showing"
|
||||
view-class="media-modal-view"
|
||||
class="media-modal-view"
|
||||
@close="hide"
|
||||
>
|
||||
<img
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
const Modal = {
|
||||
props: {
|
||||
viewClass: {
|
||||
type: String
|
||||
},
|
||||
isOpen: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<div
|
||||
v-show="isOpen"
|
||||
v-body-scroll-lock="isOpen"
|
||||
:class="['modal-view', viewClass]"
|
||||
class="modal-view"
|
||||
@click.self="closeModal"
|
||||
>
|
||||
<slot />
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<Modal
|
||||
v-if="isLoggedIn && !resettingForm"
|
||||
:is-open="modalActivated"
|
||||
view-class="post-form-modal-view"
|
||||
class="post-form-modal-view"
|
||||
@close="closeModal"
|
||||
>
|
||||
<div class="post-form-modal-panel panel">
|
||||
|
|
Loading…
Reference in New Issue