mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-25 21:57:48 +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:
@@ -0,0 +1,21 @@
|
||||
import { ref } from "vue";
|
||||
|
||||
/**
|
||||
* 导入/导出弹窗状态管理
|
||||
* 减少各页面重复的 importModalVisible / exportModalVisible 及 open 函数
|
||||
*/
|
||||
export function useImportExport() {
|
||||
const importVisible = ref(false);
|
||||
const exportVisible = ref(false);
|
||||
|
||||
return {
|
||||
importVisible,
|
||||
exportVisible,
|
||||
openImport: () => {
|
||||
importVisible.value = true;
|
||||
},
|
||||
openExport: () => {
|
||||
exportVisible.value = true;
|
||||
},
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user