diff --git a/pages.json b/pages.json
index f507a72483573048e03dc8af6dd0f64d3bd308fd..99b473a8bbc9362594c2d7035b30f1c4c7e9a432 100644
--- a/pages.json
+++ b/pages.json
@@ -25,7 +25,13 @@
"style": {
"navigationBarTitleText": "text"
}
- },
+ },
+ {
+ "path": "pages/component/text/text-props",
+ "style": {
+ "navigationBarTitleText": "text-props"
+ }
+ },
{
"path": "pages/component/progress/progress",
"style": {
diff --git a/pages/component/text/text-props.uvue b/pages/component/text/text-props.uvue
new file mode 100644
index 0000000000000000000000000000000000000000..b22b1179f8e161c9230f76692d655809494cb461
--- /dev/null
+++ b/pages/component/text/text-props.uvue
@@ -0,0 +1,92 @@
+
+
+
+
+
+ text相关属性示例
+
+
+
+ 换行
+
+
+ {{multiLineText}}
+
+
+
+ 截断(clip)
+
+
+ {{multiLineText}}
+
+
+
+ 截断(ellipsis)
+
+
+ {{multiLineText}}
+
+
+
+ selectable
+
+
+ {{singleLineText}}
+
+
+
+ space
+ 依次为nbsp ensp emsp效果
+
+
+ {{singleLineText}}
+ {{singleLineText}}
+ {{singleLineText}}
+
+
+
+ decode
+ 依次为lt gt amp apos nbsp ensp emsp效果
+
+
+ < > & '
+ uni-app x,终极跨平台方案
+ uni-app x,终极跨平台方案
+ uni-app x,终极跨平台方案
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/component/text/text.uvue b/pages/component/text/text.uvue
index 050db7e72e1eb4e45e0d6bff9ef06c4a64f75192..727f89ac9abfd8d4912a57047dc0b32033deb0e3 100644
--- a/pages/component/text/text.uvue
+++ b/pages/component/text/text.uvue
@@ -7,7 +7,8 @@
-
+
+
@@ -52,7 +53,12 @@
this.canAdd = this.extraLine.length < 12;
this.canRemove = this.extraLine.length > 0;
}
- }
+ },
+ textProps: function () {
+ uni.navigateTo({
+ url: '/pages/component/text/text-props'
+ })
+ }
}
}