You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design-vue/components/dialog/dialog.vue

38 lines
535 B

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