ant-design-vue/components/drawer/demo/descriptionItem/index.vue

21 lines
508 B
Vue
Raw Normal View History

2021-09-01 07:04:46 +00:00
<template>
<div style="font-size: 14px; line-height: 22px; margin-bottom: 7px; color: rgba(0, 0, 0, 0.65)">
<p style="margin-right: 8px; display: inline-block; color: rgba(0, 0, 0, 0.85)">
{{ title }}
</p>
<template v-if="content">
{{ content }}
</template>
<slot v-else name="content" />
</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
export default defineComponent({
props: {
title: String,
content: String,
},
});
</script>