You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ac...@apache.org on 2017/08/11 09:37:44 UTC
[10/13] incubator-weex git commit: * [doc] update text doc
* [doc] update text doc
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/fcc77c9e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/fcc77c9e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/fcc77c9e
Branch: refs/heads/0.16-dev
Commit: fcc77c9e6ea10f215262f0bde890a1c909f6d12b
Parents: 63896cb
Author: acton393 <zh...@gmail.com>
Authored: Thu Aug 10 17:51:01 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Thu Aug 10 17:51:01 2017 +0800
----------------------------------------------------------------------
doc/source/cn/references/components/text.md | 4 ++--
doc/source/references/components/text.md | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/fcc77c9e/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 7746378..136d409 100644
--- a/doc/source/cn/references/components/text.md
+++ b/doc/source/cn/references/components/text.md
@@ -29,7 +29,7 @@ version: 2.1
- 支持 `text-align` 样式.
- 支持 `text-decoration` 样式.
- 支持 `text-overflow` 样式.
- - 支持 `line-height`样式<sup class="wx-v">0.6.1+</sup> 。`line-height` 在 iOS 中与 H5 和 Android 中不同, 文本值将放置在框的底部。
+ - 支持 `line-height`样式<sup class="wx-v">0.6.1+</sup>
- 不支持 `flex-direction`, `justify-content`, `align-items` 这些为子节点设置的属性,并且`<text>`没有子节点。
- 通用样式:支持所有通用样式
@@ -62,7 +62,7 @@ version: 2.1
`支持版本:v0.12.0`
-支持ttf和woff字体格式的自定义字体, 可以通过调用 `dom` module 里面的 [addRule](../modules/dom.html#addRule)方法, 构建自定义的`font-family`使用
+支持ttf和woff字体格式的自定义字体, 可以通过调用 `dom` module 里面的 [addRule](../modules/dom.html#addRule)方法, 构建自定义的`font-family`使用, addRule 建议在`mounted`时候调用
```html
<template>
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/fcc77c9e/doc/source/references/components/text.md
----------------------------------------------------------------------
diff --git a/doc/source/references/components/text.md b/doc/source/references/components/text.md
index 9b86016..e235fae 100644
--- a/doc/source/references/components/text.md
+++ b/doc/source/references/components/text.md
@@ -36,7 +36,7 @@ this.text = textComponent.attr.value;
* support 'text-align' style.
* support 'text-decoration' style.
* support 'text-overflow' style.
- * support 'line-height'(available from v0.6.1) style. line-height in iOS is different from h5 and Android, text value will be placed at bottom of line box.
+ * support 'line-height'(available from v0.6.1) style.
* not support 'flex-direction, 'justify-content', 'align-items' which is active for child nodes, and text has no child nodes.
### common styles
@@ -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`
+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`
```html
<template>