Skip to content
Snippets Groups Projects
Commit c2174836 authored by Tae Hoon's avatar Tae Hoon
Browse files

migrate viewClass prop to class attribute

parent b3699a7c
No related branches found
No related tags found
No related merge requests found
<template>
<Modal
v-if="showing"
view-class="media-modal-view"
class="media-modal-view"
@close="hide"
>
<img
......
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">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment