migrate viewClass prop to class attribute

This commit is contained in:
taehoon 2019-10-21 15:36:03 -04:00
parent b3699a7c7c
commit c217483640
4 changed files with 3 additions and 6 deletions

View file

@ -1,7 +1,7 @@
<template>
<Modal
v-if="showing"
view-class="media-modal-view"
class="media-modal-view"
@close="hide"
>
<img

View file

@ -1,8 +1,5 @@
const Modal = {
props: {
viewClass: {
type: String
},
isOpen: {
type: Boolean,
default: true

View file

@ -2,7 +2,7 @@
<div
v-show="isOpen"
v-body-scroll-lock="isOpen"
:class="['modal-view', viewClass]"
class="modal-view"
@click.self="closeModal"
>
<slot />

View file

@ -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">