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-checkbox/props.js | 69 ++++++++++++++++++++++++++++++++++ 1 files changed, 69 insertions(+), 0 deletions(-) diff --git a/uni_modules/uview-ui/components/u-checkbox/props.js b/uni_modules/uview-ui/components/u-checkbox/props.js new file mode 100644 index 0000000..93f4fd9 --- /dev/null +++ b/uni_modules/uview-ui/components/u-checkbox/props.js @@ -0,0 +1,69 @@ +export default { + props: { + // checkbox鐨勫悕绉� + name: { + type: [String, Number, Boolean], + default: uni.$u.props.checkbox.name + }, + // 褰㈢姸锛宻quare涓烘柟褰紝circle涓哄渾鍨� + shape: { + type: String, + default: uni.$u.props.checkbox.shape + }, + // 鏁翠綋鐨勫ぇ灏� + size: { + type: [String, Number], + default: uni.$u.props.checkbox.size + }, + // 鏄惁榛樿閫変腑 + checked: { + type: Boolean, + default: uni.$u.props.checkbox.checked + }, + // 鏄惁绂佺敤 + disabled: { + type: [String, Boolean], + default: uni.$u.props.checkbox.disabled + }, + // 閫変腑鐘舵�佷笅鐨勯鑹诧紝濡傝缃鍊硷紝灏嗕細瑕嗙洊parent鐨刟ctiveColor鍊� + activeColor: { + type: String, + default: uni.$u.props.checkbox.activeColor + }, + // 鏈�変腑鐨勯鑹� + inactiveColor: { + type: String, + default: uni.$u.props.checkbox.inactiveColor + }, + // 鍥炬爣鐨勫ぇ灏忥紝鍗曚綅px + iconSize: { + type: [String, Number], + default: uni.$u.props.checkbox.iconSize + }, + // 鍥炬爣棰滆壊 + iconColor: { + type: String, + default: uni.$u.props.checkbox.iconColor + }, + // label鎻愮ず鏂囧瓧锛屽洜涓簄vue涓嬶紝鐩存帴slot杩涙潵鐨勬枃瀛楋紝鐢变簬鐗规畩鐨勭粨鏋勶紝鏃犳硶淇敼鏍峰紡 + label: { + type: [String, Number], + default: uni.$u.props.checkbox.label + }, + // label鐨勫瓧浣撳ぇ灏忥紝px鍗曚綅 + labelSize: { + type: [String, Number], + default: uni.$u.props.checkbox.labelSize + }, + // label鐨勯鑹� + labelColor: { + type: String, + default: uni.$u.props.checkbox.labelColor + }, + // 鏄惁绂佹鐐瑰嚮鎻愮ず璇�変腑澶嶉�夋 + labelDisabled: { + type: [String, Boolean], + default: uni.$u.props.checkbox.labelDisabled + } + } +} -- Gitblit v1.9.3