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-icon/props.js | 89 ++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 89 insertions(+), 0 deletions(-) diff --git a/uni_modules/uview-ui/components/u-icon/props.js b/uni_modules/uview-ui/components/u-icon/props.js new file mode 100644 index 0000000..71845b7 --- /dev/null +++ b/uni_modules/uview-ui/components/u-icon/props.js @@ -0,0 +1,89 @@ +export default { + props: { + // 鍥炬爣绫诲悕 + name: { + type: String, + default: uni.$u.props.icon.name + }, + // 鍥炬爣棰滆壊锛屽彲鎺ュ彈涓婚鑹� + color: { + type: String, + default: uni.$u.props.icon.color + }, + // 瀛椾綋澶у皬锛屽崟浣峱x + size: { + type: [String, Number], + default: uni.$u.props.icon.size + }, + // 鏄惁鏄剧ず绮椾綋 + bold: { + type: Boolean, + default: uni.$u.props.icon.bold + }, + // 鐐瑰嚮鍥炬爣鐨勬椂鍊欎紶閫掍簨浠跺嚭鍘荤殑index锛堢敤浜庡尯鍒嗙偣鍑讳簡鍝竴涓級 + index: { + type: [String, Number], + default: uni.$u.props.icon.index + }, + // 瑙︽懜鍥炬爣鏃剁殑绫诲悕 + hoverClass: { + type: String, + default: uni.$u.props.icon.hoverClass + }, + // 鑷畾涔夋墿灞曞墠缂�锛屾柟渚跨敤鎴锋墿灞曡嚜宸辩殑鍥炬爣搴� + customPrefix: { + type: String, + default: uni.$u.props.icon.customPrefix + }, + // 鍥炬爣鍙宠竟鎴栬�呬笅闈㈢殑鏂囧瓧 + label: { + type: [String, Number], + default: uni.$u.props.icon.label + }, + // label鐨勪綅缃紝鍙兘鍙宠竟鎴栬�呬笅杈� + labelPos: { + type: String, + default: uni.$u.props.icon.labelPos + }, + // label鐨勫ぇ灏� + labelSize: { + type: [String, Number], + default: uni.$u.props.icon.labelSize + }, + // label鐨勯鑹� + labelColor: { + type: String, + default: uni.$u.props.icon.labelColor + }, + // label涓庡浘鏍囩殑璺濈 + space: { + type: [String, Number], + default: uni.$u.props.icon.space + }, + // 鍥剧墖鐨刴ode + imgMode: { + type: String, + default: uni.$u.props.icon.imgMode + }, + // 鐢ㄤ簬鏄剧ず鍥剧墖灏忓浘鏍囨椂锛屽浘鐗囩殑瀹藉害 + width: { + type: [String, Number], + default: uni.$u.props.icon.width + }, + // 鐢ㄤ簬鏄剧ず鍥剧墖灏忓浘鏍囨椂锛屽浘鐗囩殑楂樺害 + height: { + type: [String, Number], + default: uni.$u.props.icon.height + }, + // 鐢ㄤ簬瑙e喅鏌愪簺鎯呭喌涓嬶紝璁╁浘鏍囧瀭鐩村眳涓殑鐢ㄩ�� + top: { + type: [String, Number], + default: uni.$u.props.icon.top + }, + // 鏄惁闃绘浜嬩欢浼犳挱 + stop: { + type: Boolean, + default: uni.$u.props.icon.stop + } + } +} -- Gitblit v1.9.3