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

25 lines
516 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';
2024-09-23 08:38:55 +08:00
import { $t } from '@vben/locales';
2024-09-12 14:41:28 +08:00
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>
2024-09-23 08:38:55 +08:00
<a-button type="primary" @click="handleAdd">
{{ $t('pages.common.add') }}
</a-button>
2024-09-12 14:41:28 +08:00
<ClientDrawer />
</Page>
2024-08-07 08:57:56 +08:00
</template>