更新语言及描述

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,16 +1,21 @@
import type { ClFormItemPassThrough } from "./props";
import type { ClFormRule } from "../cl-form/props";
import type { ClFormLabelPosition, PassThroughProps } from "../../types";
export type ClFormItemPassThrough = {
className?: string;
inner?: PassThroughProps;
label?: PassThroughProps;
content?: PassThroughProps;
error?: PassThroughProps;
};
export type ClFormItemProps = {
className?: string;
pt?: ClFormItemPassThrough;
label?: string;
prop?: string;
labelPosition?: ClFormLabelPosition;
labelWidth?: string | any;
showAsterisk?: boolean | any;
showMessage?: boolean | any;
required?: boolean;
labelPosition?: "left" | "top" | "right";
labelWidth?: string;
rules?: ClFormRule | ClFormRule[];
showRequiredAsterisk?: boolean;
error?: string;
disabled?: boolean;
};