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

22 lines
443 B
Vue
Raw Normal View History

2024-08-07 08:57:56 +08:00
<script setup lang="ts">
2024-09-12 14:41:28 +08:00
import { Page, useVbenDrawer } from '@vben/common-ui';
import clientDrawer from './client-drawer.vue';
const [ClientDrawer, drawerApi] = useVbenDrawer({
connectedComponent: clientDrawer,
});
function handleAdd() {
drawerApi.setData({ update: false });
drawerApi.open();
}
2024-08-07 08:57:56 +08:00
</script>
<template>
2024-09-12 14:41:28 +08:00
<Page>
<a-button type="primary" @click="handleAdd">add</a-button>
<ClientDrawer />
</Page>
2024-08-07 08:57:56 +08:00
</template>