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