2024-09-23 15:04:23 +08:00
|
|
|
<script setup lang="ts">
|
|
|
|
import { useVbenDrawer } from '@vben/common-ui';
|
|
|
|
import { $t } from '@vben/locales';
|
|
|
|
|
|
|
|
import dictDataDrawer from './dict-data-drawer.vue';
|
|
|
|
|
|
|
|
const [DictDataDrawer, drawerApi] = useVbenDrawer({
|
|
|
|
connectedComponent: dictDataDrawer,
|
|
|
|
});
|
|
|
|
|
|
|
|
function handleAdd() {
|
|
|
|
drawerApi.setData({ dictType: 'aa_bb_cc' });
|
|
|
|
drawerApi.open();
|
|
|
|
}
|
|
|
|
</script>
|
2024-09-15 09:39:28 +08:00
|
|
|
|
|
|
|
<template>
|
2024-09-23 15:04:23 +08:00
|
|
|
<div>
|
|
|
|
<a-button type="primary" @click="handleAdd">
|
|
|
|
{{ $t('pages.common.add') }}
|
|
|
|
</a-button>
|
|
|
|
<DictDataDrawer />
|
|
|
|
</div>
|
2024-09-15 09:39:28 +08:00
|
|
|
</template>
|