feat: 统一小写组件名称
parent
ce6dce2afd
commit
9ec5849102
|
@ -11,7 +11,7 @@ import { useVbenVxeGrid } from '#/adapter/vxe-table';
|
|||
import { getMenuList, type MenuVO } from '#/api/system/menu';
|
||||
|
||||
import { columns, formSchema } from './menu.data';
|
||||
import MenuModal from './MenuModal.vue';
|
||||
import MenuForm from './menu-form.vue';
|
||||
|
||||
defineOptions({ name: 'SystemMenu' });
|
||||
|
||||
|
@ -55,7 +55,7 @@ const gridOptions: VxeGridProps<MenuVO> = {
|
|||
const [Grid, gridApi] = useVbenVxeGrid({ formOptions, gridOptions });
|
||||
|
||||
const [FormModal, formModalApi] = useVbenModal({
|
||||
connectedComponent: MenuModal,
|
||||
connectedComponent: MenuForm,
|
||||
});
|
||||
|
||||
function handleCreate() {
|
||||
|
|
|
@ -12,7 +12,7 @@ import { exportPost, getPostPage, type PostVO } from '#/api/system/post';
|
|||
import { ActionButtons, IconEnum } from '#/components/action-buttons';
|
||||
|
||||
import { columns, formSchema } from './post.data';
|
||||
import PostModal from './PostModal.vue';
|
||||
import PostForm from './post-form.vue';
|
||||
|
||||
defineOptions({ name: 'SystemPost' });
|
||||
|
||||
|
@ -51,7 +51,7 @@ const gridOptions: VxeGridProps<PostVO> = {
|
|||
const [Grid, tableApi] = useVbenVxeGrid({ formOptions, gridOptions });
|
||||
|
||||
const [FormModal, formModalApi] = useVbenModal({
|
||||
connectedComponent: PostModal,
|
||||
connectedComponent: PostForm,
|
||||
});
|
||||
|
||||
function handleCreate() {
|
||||
|
@ -93,14 +93,6 @@ async function handleExport() {
|
|||
auth: ['system:post:export'],
|
||||
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>
|
||||
|
|
Loading…
Reference in New Issue