weex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acton...@apache.org
Subject incubator-weex git commit: * [doc] update text document
Date Tue, 12 Sep 2017 10:18:33 GMT
Repository: incubator-weex
Updated Branches:
  refs/heads/dev e83b0de20 -> 3ae4e89e8


* [doc]  update text document


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/3ae4e89e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/3ae4e89e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/3ae4e89e

Branch: refs/heads/dev
Commit: 3ae4e89e8cacb224af716f91bcb086f3c46355b1
Parents: e83b0de
Author: acton393 <zhangxing610321@gmail.com>
Authored: Tue Sep 12 18:19:22 2017 +0800
Committer: acton393 <zhangxing610321@gmail.com>
Committed: Tue Sep 12 18:19:22 2017 +0800

----------------------------------------------------------------------
 doc/source/cn/references/components/text.md | 6 +++---
 doc/source/cn/references/modules/dom.md     | 2 +-
 doc/source/references/components/text.md    | 8 ++++----
 doc/source/references/modules/dom.md        | 2 +-
 4 files changed, 9 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/3ae4e89e/doc/source/cn/references/components/text.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/references/components/text.md b/doc/source/cn/references/components/text.md
index 136d409..b91f6f9 100644
--- a/doc/source/cn/references/components/text.md
+++ b/doc/source/cn/references/components/text.md
@@ -62,7 +62,7 @@ version: 2.1
 
 `支持版本:v0.12.0`
 
-支持ttf和woff字体格式的自定义字体, 可以通过调用 `dom` module 里面的
[addRule](../modules/dom.html#addRule)方法, 构建自定义的`font-family`使用, addRule
建议在`mounted`时候调用
+支持ttf和woff字体格式的自定义字体, 可以通过调用 `dom` module 里面的
[addRule](../modules/dom.html#addRule)方法, 构建自定义的`font-family`使用, addRule
建议在 `beforeCreate` 或者更早时调用
 
 ```html
 <template>
@@ -75,7 +75,7 @@ version: 2.1
 </template>
 <script>
     module.exports = {
-        mounted: function() {
+        beforeCreate: function() {
 
         var domModule = weex.requireModule('dom');
         //目前支持ttf、woff文件,不支持svg、eot类型,moreItem at http://www.iconfont.cn/
@@ -89,7 +89,7 @@ version: 2.1
 </script>
 ```
 
-[try it](http://dotwe.org/vue/6ece072d0abd9a9e5718eb26bd5719f8)
+[try it](http://dotwe.org/vue/95b2c6716f37066d5f44c5c75c979394)
 
 ## 示例
 

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/3ae4e89e/doc/source/cn/references/modules/dom.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/references/modules/dom.md b/doc/source/cn/references/modules/dom.md
index 9f0297c..a177929 100644
--- a/doc/source/cn/references/modules/dom.md
+++ b/doc/source/cn/references/modules/dom.md
@@ -274,7 +274,7 @@ domModule.addRule('fontFace', {
 
 ```
 
-[try it](http://dotwe.org/vue/6ece072d0abd9a9e5718eb26bd5719f8)
+[try it](http://dotwe.org/vue/95b2c6716f37066d5f44c5c75c979394)
 
 ## 其他
 

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/3ae4e89e/doc/source/references/components/text.md
----------------------------------------------------------------------
diff --git a/doc/source/references/components/text.md b/doc/source/references/components/text.md
index e235fae..f0a1bc5 100644
--- a/doc/source/references/components/text.md
+++ b/doc/source/references/components/text.md
@@ -59,7 +59,7 @@ check out [common events](../common-event.html)
 
 `support:v0.12.0`
 
-support `ttf` and `woff` font format to custom your text, call [addRule](../modules/dom.html#addRule)
in dom module to build your own `font-family`, we suggest that you call `addRule` in `mounted`
+support `ttf` and `woff` font format to custom your text, call [addRule](../modules/dom.html#addRule)
in dom module to build your own `font-family`, we suggest that you call `addRule` in `beforeCreate`
 
 ```html
 <template>
@@ -72,10 +72,10 @@ support `ttf` and `woff` font format to custom your text, call [addRule](../modu
 </template>
 <script>
     module.exports = {
-        mounted: function() {
+        beforeCreate: function() {
 
         var domModule = weex.requireModule('dom');
-        //目前支持ttf、woff文件,不支持svg、eot类型,moreItem at http://www.iconfont.cn/
+        //support ttf、woff file,svg、eot can not be supported ,moreItem at http://www.iconfont.cn/
 
         domModule.addRule('fontFace', {
             'fontFamily': "iconfont2",
@@ -86,7 +86,7 @@ support `ttf` and `woff` font format to custom your text, call [addRule](../modu
 </script>
 ```
 
-[try it](http://dotwe.org/vue/6ece072d0abd9a9e5718eb26bd5719f8)
+[try it](http://dotwe.org/vue/95b2c6716f37066d5f44c5c75c979394)
 
 ## Example
 

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/3ae4e89e/doc/source/references/modules/dom.md
----------------------------------------------------------------------
diff --git a/doc/source/references/modules/dom.md b/doc/source/references/modules/dom.md
index 5cb354f..0209f64 100644
--- a/doc/source/references/modules/dom.md
+++ b/doc/source/references/modules/dom.md
@@ -271,6 +271,6 @@ domModule.addRule('fontFace', {
 });
 
 ```
-[try it](http://dotwe.org/vue/6ece072d0abd9a9e5718eb26bd5719f8)
+[try it](http://dotwe.org/vue/95b2c6716f37066d5f44c5c75c979394)
 
 


Mime
View raw message