feat: 通知公告(表单)

This commit is contained in:
dap
2024-09-12 16:00:53 +08:00
parent 38173d80b6
commit d5b37bd03e
5 changed files with 204 additions and 4 deletions

View File

@@ -1,9 +1,21 @@
<script setup lang="ts">
import CommonSkeleton from '#/views/common';
import { Page, useVbenModal } from '@vben/common-ui';
import noticeModal from './notice-modal.vue';
const [NoticeModal, modalApi] = useVbenModal({
connectedComponent: noticeModal,
});
function handleAdd() {
modalApi.setData({ update: false });
modalApi.open();
}
</script>
<template>
<div>
<CommonSkeleton />
</div>
<Page>
<a-button type="primary" @click="handleAdd">新增</a-button>
<NoticeModal />
</Page>
</template>