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

diff --git a/uni_modules/uview-ui/components/u-text/props.js b/uni_modules/uview-ui/components/u-text/props.js
new file mode 100644
index 0000000..85a0836
--- /dev/null
+++ b/uni_modules/uview-ui/components/u-text/props.js
@@ -0,0 +1,110 @@
+export default {
+    props: {
+        // 涓婚棰滆壊
+        type: {
+            type: String,
+            default: uni.$u.props.text.type
+        },
+        // 鏄惁鏄剧ず
+        show: {
+            type: Boolean,
+            default: uni.$u.props.text.show
+        },
+        // 鏄剧ず鐨勫��
+        text: {
+            type: [String, Number],
+            default: uni.$u.props.text.text
+        },
+        // 鍓嶇疆鍥炬爣
+        prefixIcon: {
+            type: String,
+            default: uni.$u.props.text.prefixIcon
+        },
+        // 鍚庣疆鍥炬爣
+        suffixIcon: {
+            type: String,
+            default: uni.$u.props.text.suffixIcon
+        },
+        // 鏂囨湰澶勭悊鐨勫尮閰嶆ā寮�
+        // text-鏅�氭枃鏈紝price-浠锋牸锛宲hone-鎵嬫満鍙凤紝name-濮撳悕锛宒ate-鏃ユ湡锛宭ink-瓒呴摼鎺�
+        mode: {
+            type: String,
+            default: uni.$u.props.text.mode
+        },
+        // mode=link涓嬶紝閰嶇疆鐨勯摼鎺�
+        href: {
+            type: String,
+            default: uni.$u.props.text.href
+        },
+        // 鏍煎紡鍖栬鍒�
+        format: {
+            type: [String, Function],
+            default: uni.$u.props.text.format
+        },
+        // mode=phone鏃讹紝鐐瑰嚮鏂囨湰鏄惁鎷ㄦ墦鐢佃瘽
+        call: {
+            type: Boolean,
+            default: uni.$u.props.text.call
+        },
+        // 灏忕▼搴忕殑鎵撳紑鏂瑰紡
+        openType: {
+            type: String,
+            default: uni.$u.props.text.openType
+        },
+        // 鏄惁绮椾綋锛岄粯璁ormal
+        bold: {
+            type: Boolean,
+            default: uni.$u.props.text.bold
+        },
+        // 鏄惁鍧楃姸
+        block: {
+            type: Boolean,
+            default: uni.$u.props.text.block
+        },
+        // 鏂囨湰鏄剧ず鐨勮鏁帮紝濡傛灉璁剧疆锛岃秴鍑烘琛屾暟锛屽皢浼氭樉绀虹渷鐣ュ彿
+        lines: {
+            type: [String, Number],
+            default: uni.$u.props.text.lines
+        },
+        // 鏂囨湰棰滆壊
+        color: {
+            type: String,
+            default: uni.$u.props.text.color
+        },
+        // 瀛椾綋澶у皬
+        size: {
+            type: [String, Number],
+            default: uni.$u.props.text.size
+        },
+        // 鍥炬爣鐨勬牱寮�
+        iconStyle: {
+            type: [Object, String],
+            default: uni.$u.props.text.iconStyle
+        },
+        // 鏂囧瓧瑁呴グ锛屼笅鍒掔嚎锛屼腑鍒掔嚎绛夛紝鍙�夊�� none|underline|line-through
+        decoration: {
+            tepe: String,
+            default: uni.$u.props.text.decoration
+        },
+        // 澶栬竟璺濓紝瀵硅薄銆佸瓧绗︿覆锛屾暟鍊煎舰寮忓潎鍙�
+        margin: {
+            type: [Object, String, Number],
+            default: uni.$u.props.text.margin
+        },
+        // 鏂囨湰琛岄珮
+        lineHeight: {
+            type: [String, Number],
+            default: uni.$u.props.text.lineHeight
+        },
+        // 鏂囨湰瀵归綈鏂瑰紡锛屽彲閫夊�糽eft|center|right
+        align: {
+            type: String,
+            default: uni.$u.props.text.align
+        },
+        // 鏂囧瓧鎹㈣锛屽彲閫夊�糱reak-word|normal|anywhere
+        wordWrap: {
+            type: String,
+            default: uni.$u.props.text.wordWrap
+        }
+    }
+}

--
Gitblit v1.9.3