refactor(drawer): refactor props detailType to isDetail

This commit is contained in:
vben
2020-10-25 15:08:41 +08:00
parent 491ba9a3cc
commit 2628fb550d
5 changed files with 15 additions and 17 deletions

View File

@@ -1,15 +1,13 @@
<template>
<BasicDrawer v-bind="$attrs" :drawerType="DrawerType.DETAIL" title="Drawer Title5">
<BasicDrawer v-bind="$attrs" :isDetail="true" title="Drawer Title5">
<p class="h-20">Content Message</p>
</BasicDrawer>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import { BasicDrawer, DrawerType } from '/@/components/Drawer';
import { BasicDrawer } from '/@/components/Drawer';
export default defineComponent({
components: { BasicDrawer },
setup() {
return { DrawerType };
},
setup() {},
});
</script>