ant-design-vue/components/dialog/dialog.vue

38 lines
535 B
Vue
Raw Normal View History

2017-10-26 15:18:08 +08:00
<template>
<div :class="classes">
<slot></slot>
<h1>{{visible}}</h1>
</div>
</template>
<script>
export default {
name: 'Dialog',
props: {
prefixCls: {
default: 'ant-btn-dialog',
type: String,
},
visible: {
default: false,
type: Boolean,
},
},
data () {
console.log(this.visible)
return {
}
},
computed: {
classes () {
const { prefixCls } = this
return [
{
[`${prefixCls}`]: true,
},
]
},
},
}
</script>