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-badge/props.js |   72 ++++++++++++++++++++++++++++++++++++
 1 files changed, 72 insertions(+), 0 deletions(-)

diff --git a/uni_modules/uview-ui/components/u-badge/props.js b/uni_modules/uview-ui/components/u-badge/props.js
new file mode 100644
index 0000000..74c032c
--- /dev/null
+++ b/uni_modules/uview-ui/components/u-badge/props.js
@@ -0,0 +1,72 @@
+export default {
+    props: {
+        // 鏄惁鏄剧ず鍦嗙偣
+        isDot: {
+            type: Boolean,
+            default: uni.$u.props.badge.isDot
+        },
+        // 鏄剧ず鐨勫唴瀹�
+        value: {
+            type: [Number, String],
+            default: uni.$u.props.badge.value
+        },
+        // 鏄惁鏄剧ず
+        show: {
+            type: Boolean,
+            default: uni.$u.props.badge.show
+        },
+        // 鏈�澶у�硷紝瓒呰繃鏈�澶у�间細鏄剧ず '{max}+'
+        max: {
+            type: [Number, String],
+            default: uni.$u.props.badge.max
+        },
+        // 涓婚绫诲瀷锛宔rror|warning|success|primary
+        type: {
+            type: String,
+            default: uni.$u.props.badge.type
+        },
+        // 褰撴暟鍊间负 0 鏃讹紝鏄惁灞曠ず Badge
+        showZero: {
+            type: Boolean,
+            default: uni.$u.props.badge.showZero
+        },
+        // 鑳屾櫙棰滆壊锛屼紭鍏堢骇姣攖ype楂橈紝濡傝缃紝type鍙傛暟浼氬け鏁�
+        bgColor: {
+            type: [String, null],
+            default: uni.$u.props.badge.bgColor
+        },
+        // 瀛椾綋棰滆壊
+        color: {
+            type: [String, null],
+            default: uni.$u.props.badge.color
+        },
+        // 寰芥爣褰㈢姸锛宑ircle-鍥涜鍧囦负鍦嗚锛宧orn-宸︿笅瑙掍负鐩磋
+        shape: {
+            type: String,
+            default: uni.$u.props.badge.shape
+        },
+        // 璁剧疆鏁板瓧鐨勬樉绀烘柟寮忥紝overflow|ellipsis|limit
+        // overflow浼氭牴鎹甿ax瀛楁鍒ゆ柇锛岃秴鍑烘樉绀篳${max}+`
+        // ellipsis浼氭牴鎹甿ax鍒ゆ柇锛岃秴鍑烘樉绀篳${max}...`
+        // limit浼氫緷鎹�1000浣滀负鍒ゆ柇鏉′欢锛岃秴鍑�1000锛屾樉绀篳${value/1000}K`锛屾瘮濡�2.2k銆�3.34w锛屾渶澶氫繚鐣�2浣嶅皬鏁�
+        numberType: {
+            type: String,
+            default: uni.$u.props.badge.numberType
+        },
+        // 璁剧疆badge鐨勪綅缃亸绉伙紝鏍煎紡涓� [x, y]锛屼篃鍗宠缃殑涓簍op鍜宺ight鐨勫�硷紝absolute涓簍rue鏃舵湁鏁�
+        offset: {
+            type: Array,
+            default: uni.$u.props.badge.offset
+        },
+        // 鏄惁鍙嶈浆鑳屾櫙鍜屽瓧浣撻鑹�
+        inverted: {
+            type: Boolean,
+            default: uni.$u.props.badge.inverted
+        },
+        // 鏄惁缁濆瀹氫綅
+        absolute: {
+            type: Boolean,
+            default: uni.$u.props.badge.absolute
+        }
+    }
+}

--
Gitblit v1.9.3