feat: 统一小写组件名称

dev-v5
xingyu4j 2024-12-16 10:42:15 +08:00
parent ce6dce2afd
commit 9ec5849102
4 changed files with 4 additions and 12 deletions

View File

@ -11,7 +11,7 @@ import { useVbenVxeGrid } from '#/adapter/vxe-table';
import { getMenuList, type MenuVO } from '#/api/system/menu'; import { getMenuList, type MenuVO } from '#/api/system/menu';
import { columns, formSchema } from './menu.data'; import { columns, formSchema } from './menu.data';
import MenuModal from './MenuModal.vue'; import MenuForm from './menu-form.vue';
defineOptions({ name: 'SystemMenu' }); defineOptions({ name: 'SystemMenu' });
@ -55,7 +55,7 @@ const gridOptions: VxeGridProps<MenuVO> = {
const [Grid, gridApi] = useVbenVxeGrid({ formOptions, gridOptions }); const [Grid, gridApi] = useVbenVxeGrid({ formOptions, gridOptions });
const [FormModal, formModalApi] = useVbenModal({ const [FormModal, formModalApi] = useVbenModal({
connectedComponent: MenuModal, connectedComponent: MenuForm,
}); });
function handleCreate() { function handleCreate() {

View File

@ -12,7 +12,7 @@ import { exportPost, getPostPage, type PostVO } from '#/api/system/post';
import { ActionButtons, IconEnum } from '#/components/action-buttons'; import { ActionButtons, IconEnum } from '#/components/action-buttons';
import { columns, formSchema } from './post.data'; import { columns, formSchema } from './post.data';
import PostModal from './PostModal.vue'; import PostForm from './post-form.vue';
defineOptions({ name: 'SystemPost' }); defineOptions({ name: 'SystemPost' });
@ -51,7 +51,7 @@ const gridOptions: VxeGridProps<PostVO> = {
const [Grid, tableApi] = useVbenVxeGrid({ formOptions, gridOptions }); const [Grid, tableApi] = useVbenVxeGrid({ formOptions, gridOptions });
const [FormModal, formModalApi] = useVbenModal({ const [FormModal, formModalApi] = useVbenModal({
connectedComponent: PostModal, connectedComponent: PostForm,
}); });
function handleCreate() { function handleCreate() {
@ -93,14 +93,6 @@ async function handleExport() {
auth: ['system:post:export'], auth: ['system:post:export'],
onClick: handleExport.bind(null), onClick: handleExport.bind(null),
}, },
{
label: $t('page.action.delete'),
icon: IconEnum.DELETE,
class:
'bg-red-500 text-white border-red-400 hover:bg-red-400 hover:!text-white hover:!border-red-400 active:!bg-red-600 active:!text-white active:!border-red-600',
auth: ['system:post:delete'],
onClick: handleDelete.bind(null, 1),
},
]" ]"
/> />
</template> </template>