From 1c8f0584ddf74efdf767813a2f426129bbc8c2a9 Mon Sep 17 00:00:00 2001 From: zds <49744633+zds-s@users.noreply.github.com> Date: Fri, 5 Jul 2024 23:50:45 +0800 Subject: [PATCH] Added component to FormDataType --- src/components/ma-crud/types/columns.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/ma-crud/types/columns.ts b/src/components/ma-crud/types/columns.ts index c6c40188..dde3c022 100644 --- a/src/components/ma-crud/types/columns.ts +++ b/src/components/ma-crud/types/columns.ts @@ -1,4 +1,4 @@ -import { VNodeChild } from "vue"; +import { VNodeChild,Ref } from "vue"; /** * 表单组件类型 @@ -30,7 +30,9 @@ export type FormDataType = | "user-info" | "city-linkage" | "form-group" - | "select-resource"; + | "select-resource" + | 'component'; + /** * 列字典 */ @@ -120,6 +122,7 @@ export interface BasicColumn { searchPlaceholder?: string; // 表格是否快捷编辑,只支持 input date select quickEdit?: boolean; + component?:Ref; //编辑|创建 通用规则 commonRules?: FieldRule | FieldRule[]; // 创建时规则