This commit is contained in:
梁灏 2017-04-05 11:24:00 +08:00
parent 891f61d875
commit 713bd3d75d
4 changed files with 80 additions and 13 deletions

View file

@ -1,5 +1,5 @@
<template>
<span>
<div v-transfer-dom>
<transition :name="transitionNames[1]">
<div :class="maskClasses" v-show="visible" @click="mask"></div>
</transition>
@ -24,11 +24,12 @@
</div>
</transition>
</div>
</span>
</div>
</template>
<script>
import Icon from '../icon';
import iButton from '../button/button.vue';
import TransferDom from '../../directives/transfer-dom';
import { getScrollBarSize } from '../../utils/assist';
import Locale from '../../mixins/locale';
@ -38,6 +39,7 @@
name: 'Modal',
mixins: [ Locale ],
components: { Icon, iButton },
directives: { TransferDom },
props: {
value: {
type: Boolean,