feat: 字典

This commit is contained in:
dap
2024-09-23 15:04:23 +08:00
parent 454ca3d2e6
commit 3e750a0943
6 changed files with 297 additions and 3 deletions

View File

@@ -1,5 +1,24 @@
<script setup lang="ts"></script>
<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>
<template>
<div></div>
<div>
<a-button type="primary" @click="handleAdd">
{{ $t('pages.common.add') }}
</a-button>
<DictDataDrawer />
</div>
</template>