mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-10-06 09:41:53 +00:00
feat(components): 增强 FaForm/FaDialog/FaDrawer 并重构业务页面
- FaForm 新增 scrollbar 和 maxHeight 属性,支持表单滚动条 - FaForm 暴露 resetFields、clearValidate、validateField 方法 - FaDialog 和 FaDrawer 新增 formMode、confirmLoading 等属性及 confirm/cancel 事件 - 使用 FaDescriptions 和 FaForm 重构 demo 和 memory 页面,减少模板冗余 - 修复布局组件路径引用,统一至 @/components/layouts - 补充 Fa 前缀组件的 ESLint 全局变量声明
This commit is contained in:
@@ -312,11 +312,11 @@ export class MenuProcessor {
|
||||
private isNavigableRoute(route: AppRouteRecord): boolean {
|
||||
return Boolean(
|
||||
route.path &&
|
||||
route.path !== "/" &&
|
||||
!route.meta?.link &&
|
||||
route.meta?.isIframe !== true &&
|
||||
route.component &&
|
||||
route.component !== ""
|
||||
route.path !== "/" &&
|
||||
!route.meta?.link &&
|
||||
route.meta?.isIframe !== true &&
|
||||
route.component &&
|
||||
route.component !== ""
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -191,7 +191,7 @@ export class ComponentLoader {
|
||||
}
|
||||
|
||||
loadLayout(): () => Promise<any> {
|
||||
return () => import("@/layouts/index.vue");
|
||||
return () => import("@/components/layouts/index.vue");
|
||||
}
|
||||
|
||||
loadIframe(): () => Promise<any> {
|
||||
|
||||
@@ -102,8 +102,8 @@ export const ROUTE_COMPONENT_NESTED_PARENT = "/nested/router-view-parent";
|
||||
export const ROUTE_PATH_LOGIN_ALT = "/auth/login";
|
||||
|
||||
/**
|
||||
* 主框架布局:新版 art 体系(`src/layouts/index.vue` + `src/layouts/art-*` 组件)。
|
||||
* 旧版 Left/Top/Mix 壳子仍在 `@/layouts/index.vue`,路由不再默认使用。
|
||||
* 主框架布局:新版 art 体系(`src/components/layouts/index.vue` + `src/components/layouts/fa-*` 组件)。
|
||||
* 旧版 Left/Top/Mix 壳子已移除,统一使用 `@/components/layouts/index.vue`。
|
||||
*/
|
||||
export const Layout = () => import("@/components/layouts/index.vue");
|
||||
|
||||
@@ -442,7 +442,7 @@ export const staticRoutes: AppRouteRecordRaw[] = [
|
||||
},
|
||||
{
|
||||
path: "/outside",
|
||||
component: () => import("@/layouts/index.vue"),
|
||||
component: () => import("@/components/layouts/index.vue"),
|
||||
name: "Outside",
|
||||
meta: { title: "menus.outside.title" },
|
||||
children: [
|
||||
|
||||
Reference in New Issue
Block a user