更新语言及描述

This commit is contained in:
icssoa
2025-08-06 18:14:11 +08:00
parent da573d0d35
commit fd8ff27fb0
16 changed files with 149 additions and 70 deletions

View File

@@ -1,12 +1,17 @@
import type { ClFormData, ClFormRule, ClFormValidateResult, ClFormPassThrough } from "./props";
import type { ClFormLabelPosition, ClFormRule, ClFormValidateError } from "../../types";
export type ClFormPassThrough = {
className?: string;
};
export type ClFormProps = {
className?: string;
pt?: ClFormPassThrough;
modelValue?: ClFormData;
rules?: Record<string, ClFormRule | ClFormRule[]>;
labelPosition?: "left" | "top" | "right";
modelValue?: any;
rules?: Map<string, ClFormRule[]>;
labelPosition?: ClFormLabelPosition;
labelWidth?: string;
showRequiredAsterisk?: boolean;
showAsterisk?: boolean;
showMessage?: boolean;
disabled?: boolean;
};