review:【ANTD】相关的代码
parent
a15d4e8dfe
commit
797730ca01
|
@ -1,7 +1,7 @@
|
|||
import { defineAsyncComponent } from 'vue';
|
||||
|
||||
const modules = import.meta.glob('../views/**/*.{vue,tsx}');
|
||||
// TODO @xingyu:这个要不要融合到哪个 router util 里? utils 里面没有引入 vue 使用不了 defineAsyncComponent
|
||||
|
||||
/**
|
||||
* 注册一个异步组件
|
||||
* @param componentPath 例:/bpm/oa/leave/detail
|
||||
|
|
|
@ -135,7 +135,6 @@ function getAllNodeIds(nodes: any[], ids: number[] = []): number[] {
|
|||
<Modal title="数据权限" class="w-[40%]">
|
||||
<Form class="mx-4">
|
||||
<template #dataScopeDeptIds="slotProps">
|
||||
<!-- TODO @芋艿:可优化,使用 antd 的 tree?原因是,更原生 -->
|
||||
<VbenTree
|
||||
:tree-data="deptTree"
|
||||
multiple
|
||||
|
|
|
@ -142,7 +142,6 @@ function getNodeClass(node: Recordable<any>) {
|
|||
<Modal title="数据权限" class="w-[40%]">
|
||||
<Form class="mx-4">
|
||||
<template #menuIds="slotProps">
|
||||
<!-- TODO @芋艿:可优化,使用 antd 的 tree?原因是,更原生 -->
|
||||
<VbenTree
|
||||
:spinning="menuLoading"
|
||||
:tree-data="menuTree"
|
||||
|
|
|
@ -18,12 +18,13 @@ function goToUrl() {
|
|||
</script>
|
||||
<template>
|
||||
<!-- Alert Component -->
|
||||
<!-- TODO @xingyu:是不是左右边距 + 下,和搜索的对齐,会好看一丢丢的 -->
|
||||
<div
|
||||
role="alert"
|
||||
v-if="isDocAlertEnable()"
|
||||
:class="
|
||||
cn(
|
||||
'border-primary bg-primary/10 relative m-1 flex w-full items-center rounded-md border p-1',
|
||||
'border-primary bg-primary/10 relative m-1 flex w-full items-center gap-5 rounded-md border p-1',
|
||||
)
|
||||
"
|
||||
>
|
||||
|
|
Loading…
Reference in New Issue