From d1448cb0ef10f358bb7bddb4e1ec268515e0b787 Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期二, 15 七月 2025 11:46:57 +0800 Subject: [PATCH] 项目初始化 --- uni_modules/uview-ui/components/u-form-item/props.js | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 43 insertions(+), 0 deletions(-) diff --git a/uni_modules/uview-ui/components/u-form-item/props.js b/uni_modules/uview-ui/components/u-form-item/props.js new file mode 100644 index 0000000..53a0191 --- /dev/null +++ b/uni_modules/uview-ui/components/u-form-item/props.js @@ -0,0 +1,43 @@ +export default { + props: { + // input鐨刲abel鎻愮ず璇� + label: { + type: String, + default: uni.$u.props.formItem.label + }, + // 缁戝畾鐨勫�� + prop: { + type: String, + default: uni.$u.props.formItem.prop + }, + // 鏄惁鏄剧ず琛ㄥ崟鍩熺殑涓嬪垝绾胯竟妗� + borderBottom: { + type: [String, Boolean], + default: uni.$u.props.formItem.borderBottom + }, + // label鐨勫搴︼紝鍗曚綅px + labelWidth: { + type: [String, Number], + default: uni.$u.props.formItem.labelWidth + }, + // 鍙充晶鍥炬爣 + rightIcon: { + type: String, + default: uni.$u.props.formItem.rightIcon + }, + // 宸︿晶鍥炬爣 + leftIcon: { + type: String, + default: uni.$u.props.formItem.leftIcon + }, + // 鏄惁鏄剧ず宸﹁竟鐨勫繀濉槦鍙凤紝鍙綔鏄剧ず鐢紝鍏蜂綋鏍¢獙蹇呭~鐨勯�昏緫锛岃鍦╮ules涓厤缃� + required: { + type: Boolean, + default: uni.$u.props.formItem.required + }, + leftIconStyle: { + type: [String, Object], + default: uni.$u.props.formItem.leftIconStyle, + } + } +} -- Gitblit v1.9.3