mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-29 07:33:58 +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:
@@ -222,7 +222,6 @@ import FaTable from "@/components/tables/fa-table/index.vue";
|
||||
import FaTableHeader from "@/components/tables/fa-table-header/index.vue";
|
||||
import FaSearchBar from "@/components/forms/fa-search-bar/index.vue";
|
||||
import type { SearchFormItem } from "@/components/forms/fa-search-bar/index.vue";
|
||||
import ArtButtonTable from "@/components/forms/fa-button-table/index.vue";
|
||||
import FaDialog from "@/components/modal/fa-dialog/index.vue";
|
||||
import { ResourceAPI, type ResourceItem } from "@/api/module_monitor/resource";
|
||||
import type { ColumnOption } from "@/types/component";
|
||||
@@ -406,7 +405,7 @@ const {
|
||||
!row.is_dir && hasAuth("module_monitor:resource:download")
|
||||
? h(ElTooltip, { content: "下载", placement: "top" }, () =>
|
||||
h("span", { class: "inline-flex" }, [
|
||||
h(ArtButtonTable, {
|
||||
h(FaButtonTable, {
|
||||
type: "view",
|
||||
icon: "ri:download-line",
|
||||
onClick: () => void handleDownload(row),
|
||||
@@ -417,7 +416,7 @@ const {
|
||||
hasAuth("module_monitor:resource:rename")
|
||||
? h(ElTooltip, { content: "重命名", placement: "top" }, () =>
|
||||
h("span", { class: "inline-flex" }, [
|
||||
h(ArtButtonTable, {
|
||||
h(FaButtonTable, {
|
||||
type: "edit",
|
||||
onClick: () => void handleRenameOpen(row),
|
||||
}),
|
||||
@@ -427,7 +426,7 @@ const {
|
||||
hasAuth("module_monitor:resource:delete")
|
||||
? h(ElTooltip, { content: "删除", placement: "top" }, () =>
|
||||
h("span", { class: "inline-flex" }, [
|
||||
h(ArtButtonTable, {
|
||||
h(FaButtonTable, {
|
||||
type: "delete",
|
||||
onClick: () => void handleDelete(row),
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user