admin-vben5/apps/web-antd/src/views/system/post/index.vue

22 lines
433 B
Vue
Raw Normal View History

2024-08-07 08:57:56 +08:00
<script setup lang="ts">
2024-09-13 15:27:29 +08:00
import { Page, useVbenDrawer } from '@vben/common-ui';
import postDrawer from './post-drawer.vue';
const [PostDrawer, drawerApi] = useVbenDrawer({
connectedComponent: postDrawer,
});
function handleAdd() {
drawerApi.setData({ update: false });
drawerApi.open();
}
2024-08-07 08:57:56 +08:00
</script>
<template>
2024-09-13 15:27:29 +08:00
<Page>
<a-button type="primary" @click="handleAdd">add</a-button>
<PostDrawer />
</Page>
2024-08-07 08:57:56 +08:00
</template>