From f26f29d84e0a68831a6af14dab3eec5500496d2e Mon Sep 17 00:00:00 2001 From: spring <2396852758@qq.com> Date: 星期三, 28 五月 2025 16:48:52 +0800 Subject: [PATCH] 初始化项目 --- uni_modules/wu-icon/components/wu-icon/props.js | 90 +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 90 insertions(+), 0 deletions(-) diff --git a/uni_modules/wu-icon/components/wu-icon/props.js b/uni_modules/wu-icon/components/wu-icon/props.js new file mode 100644 index 0000000..d35f2c4 --- /dev/null +++ b/uni_modules/wu-icon/components/wu-icon/props.js @@ -0,0 +1,90 @@ +export default { + props: { + // 鍥炬爣绫诲悕 + name: { + type: String, + default: '' + }, + // 鍥炬爣棰滆壊锛屽彲鎺ュ彈涓婚鑹� + color: { + type: String, + default: '#606266' + }, + // 瀛椾綋澶у皬锛屽崟浣峱x + size: { + type: [String, Number], + default: '16px' + }, + // 鏄惁鏄剧ず绮椾綋 + bold: { + type: Boolean, + default: false + }, + // 鐐瑰嚮鍥炬爣鐨勬椂鍊欎紶閫掍簨浠跺嚭鍘荤殑index锛堢敤浜庡尯鍒嗙偣鍑讳簡鍝竴涓級 + index: { + type: [String, Number], + default: null + }, + // 瑙︽懜鍥炬爣鏃剁殑绫诲悕 + hoverClass: { + type: String, + default: '' + }, + // 鑷畾涔夋墿灞曞墠缂�锛屾柟渚跨敤鎴锋墿灞曡嚜宸辩殑鍥炬爣搴� + customPrefix: { + type: String, + default: 'wuicon' + }, + // 鍥炬爣鍙宠竟鎴栬�呬笅闈㈢殑鏂囧瓧 + label: { + type: [String, Number], + default: '' + }, + // label鐨勪綅缃紝鍙兘鍙宠竟鎴栬�呬笅杈� + labelPos: { + type: String, + default: 'right' + }, + // label鐨勫ぇ灏� + labelSize: { + type: [String, Number], + default: '15px' + }, + // label鐨勯鑹� + labelColor: { + type: String, + default: '#606266' + }, + // label涓庡浘鏍囩殑璺濈 + space: { + type: [String, Number], + default: '3px' + }, + // 鍥剧墖鐨刴ode + imgMode: { + type: String, + default: '' + }, + // 鐢ㄤ簬鏄剧ず鍥剧墖灏忓浘鏍囨椂锛屽浘鐗囩殑瀹藉害 + width: { + type: [String, Number], + default: '' + }, + // 鐢ㄤ簬鏄剧ず鍥剧墖灏忓浘鏍囨椂锛屽浘鐗囩殑楂樺害 + height: { + type: [String, Number], + default: '' + }, + // 鐢ㄤ簬瑙e喅鏌愪簺鎯呭喌涓嬶紝璁╁浘鏍囧瀭鐩村眳涓殑鐢ㄩ�� + top: { + type: [String, Number], + default: 0 + }, + // 鏄惁闃绘浜嬩欢浼犳挱 + stop: { + type: Boolean, + default: false + }, + ...uni.$w?.props?.icon + } +} \ No newline at end of file -- Gitblit v1.9.3