mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-02 12:07:54 +08:00
38 lines
535 B
Vue
38 lines
535 B
Vue
<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>
|