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> <template>
<Modal <Modal
v-if="showing" v-if="showing"
view-class="media-modal-view" class="media-modal-view"
@close="hide" @close="hide"
> >
<img <img

View File

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

View File

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

View File

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