Repository: incubator-weex Updated Branches: refs/heads/dev 7e9d53263 -> 0401b9c33
* [doc] fix transition table can not show bug Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/8a4dacce Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/8a4dacce Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/8a4dacce Branch: refs/heads/dev Commit: 8a4dacce864634f882ad75f124041c9ab0eae114 Parents: 840f6f7 Author: doumafang <doumaf...@gmail.com> Authored: Tue Aug 22 16:41:42 2017 +0800 Committer: doumafang <doumaf...@gmail.com> Committed: Tue Aug 22 16:41:42 2017 +0800 ---------------------------------------------------------------------- doc/source/cn/references/common-style.md | 40 +++++++++++----------- doc/source/cn/references/modules/animation.md | 40 +++++++++++----------- doc/source/references/common-style.md | 40 +++++++++++----------- doc/source/references/modules/animation.md | 30 ++++++++-------- 4 files changed, 75 insertions(+), 75 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8a4dacce/doc/source/cn/references/common-style.md ---------------------------------------------------------------------- diff --git a/doc/source/cn/references/common-style.md b/doc/source/cn/references/common-style.md index 9092066..0d40e69 100644 --- a/doc/source/cn/references/common-style.md +++ b/doc/source/cn/references/common-style.md @@ -349,17 +349,17 @@ transform 屿§åå ç´ åºç¨ 2D 转æ¢ãè¯¥å±æ§å 许æä»¬å¯¹å ç´ è¿è¡ - ``transition-property``:å è®¸è¿æ¸¡å¨ç»ç屿§åï¼è®¾ç½®ä¸åæ ·å¼transitionææçé®å¼å¯¹ï¼é»è®¤å¼ä¸ºç©ºï¼è¡¨ç¤ºä¸æ§è¡ä»»ä½transitionï¼ä¸è¡¨ååºäºææåæ³ç忰屿§ï¼ - | åæ°å | æè¿° | - | --------------- | ------------------------------ | - | width | transitionè¿æ¸¡æ§è¡çæ¶åæ¯å¦ç»ä»¶ç宽度åä¸å¨ç» | - | height | transitionè¿æ¸¡æ§è¡çæ¶åæ¯å¦ç»ä»¶çé«åº¦åä¸å¨ç» | - | top | transitionè¿æ¸¡æ§è¡çæ¶åæ¯å¦ç»ä»¶çé¡¶é¨è·ç¦»åä¸å¨ç» | - | bottom | transitionè¿æ¸¡æ§è¡çæ¶åæ¯å¦ç»ä»¶çåºé¨è·ç¦»åä¸å¨ç» | - | left | transitionè¿æ¸¡æ§è¡çæ¶åæ¯å¦ç»ä»¶ç左侧è·ç¦»åä¸å¨ç» | - | right | transitionè¿æ¸¡æ§è¡çæ¶åæ¯å¦ç»ä»¶çå³ä¾§è·ç¦»åä¸å¨ç» | - | backgroundColor | transitionè¿æ¸¡æ§è¡çæ¶åæ¯å¦ç»ä»¶çèæ¯é¢è²åä¸å¨ç» | - | opacity | transitionè¿æ¸¡æ§è¡çæ¶åæ¯å¦ç»ä»¶çä¸éæåº¦åä¸å¨ç» | - | transform | transitionè¿æ¸¡æ§è¡çæ¶åæ¯å¦ç»ä»¶çåæ¢ç±»ååä¸å¨ç» | +| åæ°å | æè¿° | +| --------------- | ------------------------------ | +| width | transitionè¿æ¸¡æ§è¡çæ¶åæ¯å¦ç»ä»¶ç宽度åä¸å¨ç» | +| height | transitionè¿æ¸¡æ§è¡çæ¶åæ¯å¦ç»ä»¶çé«åº¦åä¸å¨ç» | +| top | transitionè¿æ¸¡æ§è¡çæ¶åæ¯å¦ç»ä»¶çé¡¶é¨è·ç¦»åä¸å¨ç» | +| bottom | transitionè¿æ¸¡æ§è¡çæ¶åæ¯å¦ç»ä»¶çåºé¨è·ç¦»åä¸å¨ç» | +| left | transitionè¿æ¸¡æ§è¡çæ¶åæ¯å¦ç»ä»¶ç左侧è·ç¦»åä¸å¨ç» | +| right | transitionè¿æ¸¡æ§è¡çæ¶åæ¯å¦ç»ä»¶çå³ä¾§è·ç¦»åä¸å¨ç» | +| backgroundColor | transitionè¿æ¸¡æ§è¡çæ¶åæ¯å¦ç»ä»¶çèæ¯é¢è²åä¸å¨ç» | +| opacity | transitionè¿æ¸¡æ§è¡çæ¶åæ¯å¦ç»ä»¶çä¸éæåº¦åä¸å¨ç» | +| transform | transitionè¿æ¸¡æ§è¡çæ¶åæ¯å¦ç»ä»¶çåæ¢ç±»ååä¸å¨ç» | - ``transition-duration``:æå®transitionè¿æ¸¡çæç»æ¶é´ (å使¯æ¯«ç§)ï¼é»è®¤å¼æ¯ `0`ï¼è¡¨ç¤ºæ²¡æå¨ç»ææã @@ -367,18 +367,18 @@ transform 屿§åå ç´ åºç¨ 2D 转æ¢ãè¯¥å±æ§å 许æä»¬å¯¹å ç´ è¿è¡ - ``transition-timing-function``:æè¿°transitionè¿æ¸¡æ§è¡çé度æ²çº¿ï¼ç¨äºä½¿transitionè¿æ¸¡æ´ä¸ºå¹³æ»ãé»è®¤å¼æ¯ `ease`ãä¸è¡¨ååºäºææåæ³ç屿§ï¼ - | 屿§å | æè¿° | - | ------------------------------ | ---------------------------------------- | - | ``ease`` | transitionè¿æ¸¡éæ¸åæ ¢çè¿æ¸¡ææ | - | `ease-in` | transitionè¿æ¸¡æ ¢éå¼å§ï¼ç¶ååå¿«çè¿æ¸¡ææ | - | `ease-out` | transitionè¿æ¸¡å¿«éå¼å§ï¼ç¶ååæ ¢çè¿æ¸¡ææ | - | `ease-in-out` | transitionè¿æ¸¡æ ¢éå¼å§ï¼ç¶ååå¿«ï¼ç¶åæ ¢éç»æçè¿æ¸¡ææ | - | `linear` | transitionè¿æ¸¡ä»¥åéåå | - | `cubic-bezier(x1, y1, x2, y2)` | 使ç¨ä¸é¶è´å¡å°å½æ°ä¸èªå®ä¹transitionååè¿ç¨ï¼å½æ°çåæ°å¼å¿ é¡»å¤äº 0 å° 1 ä¹é´ãæ´å¤å ³äºä¸æ¬¡è´å¡å°çä¿¡æ¯è¯·åé [cubic-bezier](http://cubic-bezier.com/) å [Bézier curve](https://en.wikipedia.org/wiki/B%C3%A9zier_curve). | +| 屿§å | æè¿° | +| ------------------------------ | ---------------------------------------- | +| ease | transitionè¿æ¸¡éæ¸åæ ¢çè¿æ¸¡ææ | +| ease-in | transitionè¿æ¸¡æ ¢éå¼å§ï¼ç¶ååå¿«çè¿æ¸¡ææ | +| ease-out | transitionè¿æ¸¡å¿«éå¼å§ï¼ç¶ååæ ¢çè¿æ¸¡ææ | +| ease-in-out | transitionè¿æ¸¡æ ¢éå¼å§ï¼ç¶ååå¿«ï¼ç¶åæ ¢éç»æçè¿æ¸¡ææ | +| linear | transitionè¿æ¸¡ä»¥åéåå | +| cubic-bezier(x1, y1, x2, y2) | 使ç¨ä¸é¶è´å¡å°å½æ°ä¸èªå®ä¹transitionååè¿ç¨ï¼å½æ°çåæ°å¼å¿ é¡»å¤äº 0 å° 1 ä¹é´ãæ´å¤å ³äºä¸æ¬¡è´å¡å°çä¿¡æ¯è¯·åé [cubic-bezier](http://cubic-bezier.com/) å [Bézier curve](https://en.wikipedia.org/wiki/B%C3%A9zier_curve). | ### ç¤ºä¾ -``` +```html <style scoped> .panel { margin: 10px; http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8a4dacce/doc/source/cn/references/modules/animation.md ---------------------------------------------------------------------- diff --git a/doc/source/cn/references/modules/animation.md b/doc/source/cn/references/modules/animation.md index 882a455..f50bea3 100644 --- a/doc/source/cn/references/modules/animation.md +++ b/doc/source/cn/references/modules/animation.md @@ -21,32 +21,32 @@ version: 2.1 * `options.delay {number}`ï¼æå®è¯·æ±å¨ç»æä½å°æ§è¡å¨ç»ä¹é´çæ¶é´é´é (å使¯æ¯«ç§)ï¼é»è®¤å¼æ¯ `0`ï¼è¡¨ç¤ºæ²¡æå»¶è¿ï¼å¨è¯·æ±åç«å³æ§è¡å¨ç»ã * `options.timingFunction {string}`ï¼æè¿°å¨ç»æ§è¡çé度æ²çº¿ï¼ç¨äºä½¿å¨ç»ååæ´ä¸ºå¹³æ»ãé»è®¤å¼æ¯ `linear`ï¼è¡¨ç¤ºå¨ç»ä»å¼å§å°ç»æé½æ¥æåæ ·çé度ãä¸è¡¨ååºäºææåæ³ç屿§ï¼ -| 屿§å | æè¿° | ç¤ºä¾ | -| ------------------------------ | ---------------------------------------- | ---- | -| `linear` | å¨ç»ä»å¤´å°å°¾çé度æ¯ç¸åç | | -| `ease-in` | å¨ç»éåº¦ç±æ ¢å°å¿« | | -| `ease-out` | å¨ç»é度ç±å¿«å°æ ¢ | | -| `ease-in-out` | å¨ç»å å éå°è¾¾ä¸é´ç¹ååéå°è¾¾ç»ç¹ | | -| `cubic-bezier(x1, y1, x2, y2)` | å¨ä¸æ¬¡è´å¡å°å½æ°ä¸å®ä¹ååè¿ç¨ï¼å½æ°çåæ°å¼å¿ é¡»å¤äº 0 å° 1 ä¹é´ãæ´å¤å ³äºä¸æ¬¡è´å¡å°çä¿¡æ¯è¯·åé [cubic-bezier](http://cubic-bezier.com/) å [Bézier curve](https://en.wikipedia.org/wiki/B%C3%A9zier_curve). | | +| 屿§å | æè¿° | +| ------------------------------ | ---------------------------------------- | +| `linear` | å¨ç»ä»å¤´å°å°¾çé度æ¯ç¸åç | +| `ease-in` | å¨ç»éåº¦ç±æ ¢å°å¿« | +| `ease-out` | å¨ç»é度ç±å¿«å°æ ¢ | +| `ease-in-out` | å¨ç»å å éå°è¾¾ä¸é´ç¹ååéå°è¾¾ç»ç¹ | +| `cubic-bezier(x1, y1, x2, y2)` | å¨ä¸æ¬¡è´å¡å°å½æ°ä¸å®ä¹ååè¿ç¨ï¼å½æ°çåæ°å¼å¿ é¡»å¤äº 0 å° 1 ä¹é´ãæ´å¤å ³äºä¸æ¬¡è´å¡å°çä¿¡æ¯è¯·åé [cubic-bezier](http://cubic-bezier.com/) å [Bézier curve](https://en.wikipedia.org/wiki/B%C3%A9zier_curve). | * `options.styles {Object}`ï¼è®¾ç½®ä¸åæ ·å¼è¿æ¸¡ææçé®å¼å¯¹ï¼ä¸è¡¨ååºäºææåæ³çåæ°ï¼ -| åæ°å | æè¿° | å¼ç±»å | é»è®¤å¼ | ç¤ºä¾ | -| --------------- | ---------------------------------------- | --------------- | --------------- | ---- | -| width | å¨ç»æ§è¡ååºç¨å°ç»ä»¶ä¸çå®½åº¦å¼ | length | æ | | -| height | å¨ç»æ§è¡ååºç¨å°ç»ä»¶ä¸çé«åº¦å¼ | length | æ | | -| backgroundColor | å¨ç»æ§è¡ååºç¨å°ç»ä»¶ä¸çèæ¯é¢è² | string | none | | -| opacity | å¨ç»æ§è¡ååºç¨å°ç»ä»¶ä¸çä¸éæåº¦å¼ | ä»äº 0 å° 1 é´çæ°å¼ | `1` | | -| transformOrigin | å®ä¹ååè¿ç¨çä¸å¿ç¹. åæ° `x-aris` å¯è½çå¼ä¸º `left`ã`center`ã`right`ãé¿åº¦å¼æç¾åæ¯å¼, åæ° `y-axis` å¯è½çå¼ä¸º `top`ã`center`ã`bottom`ãé¿åº¦å¼æç¾åæ¯å¼ | `x-axis y-axis` | `center center` | | -| transform | å®ä¹åºç¨å¨å ç´ ä¸çåæ¢ç±»åï¼æ¯æä¸è¡¨ååºç屿§ | object | æ | | +| åæ°å | æè¿° | å¼ç±»å | é»è®¤å¼ | +| --------------- | ---------------------------------------- | --------------- | --------------- | +| width | å¨ç»æ§è¡ååºç¨å°ç»ä»¶ä¸çå®½åº¦å¼ | length | æ | +| height | å¨ç»æ§è¡ååºç¨å°ç»ä»¶ä¸çé«åº¦å¼ | length | æ | +| backgroundColor | å¨ç»æ§è¡ååºç¨å°ç»ä»¶ä¸çèæ¯é¢è² | string | none | +| opacity | å¨ç»æ§è¡ååºç¨å°ç»ä»¶ä¸çä¸éæåº¦å¼ | ä»äº 0 å° 1 é´çæ°å¼ | `1` | +| transformOrigin | å®ä¹ååè¿ç¨çä¸å¿ç¹. åæ° `x-aris` å¯è½çå¼ä¸º `left`ã`center`ã`right`ãé¿åº¦å¼æç¾åæ¯å¼, åæ° `y-axis` å¯è½çå¼ä¸º `top`ã`center`ã`bottom`ãé¿åº¦å¼æç¾åæ¯å¼ | `x-axis y-axis` | `center center` | +| transform | å®ä¹åºç¨å¨å ç´ ä¸çåæ¢ç±»åï¼æ¯æä¸è¡¨ååºç屿§ | object | æ | `transform`屿§çåæ³å¼: -| åç§° | æè¿° | å¼ç±»å | é»è®¤å¼ | ç¤ºä¾ | -| ------------------------------------- | ---------------- | ------- | ---- | ---- | -| `translate`/`translateX`/`translateY` | æå®å ç´ è¦ç§»å¨å°çä½ç½® | åç´ å¼æç¾åæ¯ | æ | | -| `rotate` | æå®å ç´ å°è¢«æè½¬çè§åº¦ï¼å使¯åº¦ | number | æ | | -| `scale`/`scaleX`/`scaleY` | ææ¯ä¾æ¾å¤§æç¼©å°å ç´ | number | æ | | +| åç§° | æè¿° | å¼ç±»å | é»è®¤å¼ | +| ------------------------------------- | ---------------- | ------- | ---- | +| `translate`/`translateX`/`translateY` | æå®å ç´ è¦ç§»å¨å°çä½ç½® | åç´ å¼æç¾åæ¯ | æ | +| `rotate` | æå®å ç´ å°è¢«æè½¬çè§åº¦ï¼å使¯åº¦ | number | æ | +| `scale`/`scaleX`/`scaleY` | ææ¯ä¾æ¾å¤§æç¼©å°å ç´ | number | æ | * `callback {Function}`ï¼å¨ç»æ§è¡å®æ¯ä¹åçåè° * `needLayoutï¼booleanï¼`ï¼èç¹å¨ç»æ§è¡æ¶æ¯å¦äº§çå¸å±å¨ç»å³LayoutAnimation http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8a4dacce/doc/source/references/common-style.md ---------------------------------------------------------------------- diff --git a/doc/source/references/common-style.md b/doc/source/references/common-style.md index 3556fb6..c0bd084 100644 --- a/doc/source/references/common-style.md +++ b/doc/source/references/common-style.md @@ -236,17 +236,17 @@ Now you can use the transition attribute in CSS to enhance the interactivity and - ``transition-property``:Allows the name of the transitional animation to set the value of the different styles transition effect, the default value is empty, that does not perform any transition, the following table lists all the legitimate parameters of the property: - | Property | Description | - | --------------- | ---------------------------------------- | - | width | The transition is performed when the width of the component is involved in the animation | - | height | The transition is performed when the height of the component is involved in the animation | - | top | The transition is performed when the top of the component is involved in the animation | - | bottom | The transition is performed when the bottom of the component is involved in the animation | - | left | The transition is performed when the left of the component is involved in the animation | - | right | The transition is performed when the right of the component is involved in the animation | - | backgroundColor | The transition is performed when the backgroundColor of the component is involved in the animation | - | opacity | The transition is performed when the opacity of the component is involved in the animation | - | transform | The transition is performed when the transform of the component is involved in the animation | +| Property | Description | +| --------------- | ---------------------------------------- | +| width | The transition is performed when the width of the component is involved in the animation | +| height | The transition is performed when the height of the component is involved in the animation | +| top | The transition is performed when the top of the component is involved in the animation | +| bottom | The transition is performed when the bottom of the component is involved in the animation | +| left | The transition is performed when the left of the component is involved in the animation | +| right | The transition is performed when the right of the component is involved in the animation | +| backgroundColor | The transition is performed when the backgroundColor of the component is involved in the animation | +| opacity | The transition is performed when the opacity of the component is involved in the animation | +| transform | The transition is performed when the transform of the component is involved in the animation | - ``transition-duration``:Specifies the duration of the transition transition (in milliseconds). The default value is 0, indicating that there is no animation. @@ -254,18 +254,18 @@ Now you can use the transition attribute in CSS to enhance the interactivity and - ``transition-timing-function``:Describes the velocity curve of the transition transition, which is used to make the transition transition smoother. The default is ease. The following table lists all the valid attributes: - | Property | Description | - | ------------------------------ | ---------------------------------------- | - | ``ease`` | The transition gradually slow down the transition effect | -| `ease-in` | The transition starts slowly and then becomes faster for the transition effect | -| `ease-out` | The transition starts quickly and then slows the transition effect | -| `ease-in-out` | The transition starts slowly, then goes fast and then slowly ends the transition effect | -| `linear` | The transition changes at constant speed | -| `cubic-bezier(x1, y1, x2, y2)` | Using the custom transition in the third-order Bessel function, the parameter values of the function must be between 0 and 1. For more information on three times Bessel, see [cubic-bezier](http://cubic-bezier.com/) and [Bézier curve](https://en.wikipedia.org/wiki/B%C3%A9zier_curve). | +| Property | Description | +| ------------------------------ | ---------------------------------------- | +| ease | The transition gradually slow down the transition effect | +| ease-in | The transition starts slowly and then becomes faster for the transition effect | +| ease-out | The transition starts quickly and then slows the transition effect | +| ease-in-out | The transition starts slowly, then goes fast and then slowly ends the transition effect | +| linear | The transition changes at constant speed | +| cubic-bezier(x1, y1, x2, y2) | Using the custom transition in the third-order Bessel function, the parameter values of the function must be between 0 and 1. For more information on three times Bessel, see [cubic-bezier](http://cubic-bezier.com/) and [Bézier curve](https://en.wikipedia.org/wiki/B%C3%A9zier_curve). | ### Example -``` +```html <style scoped> .panel { margin: 10px; http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8a4dacce/doc/source/references/modules/animation.md ---------------------------------------------------------------------- diff --git a/doc/source/references/modules/animation.md b/doc/source/references/modules/animation.md index 539191f..6ea5cbd 100644 --- a/doc/source/references/modules/animation.md +++ b/doc/source/references/modules/animation.md @@ -28,24 +28,24 @@ Smooth and meaningful animation is very effective for enhancing the user experie - `delay` (number): Specifies the amount of milliseconds to wait between a change being requested to a property that is to be transitioned and the start of the transition effect. The default value is `0`. - `timingFunction` (string): Used to describe how the intermediate values of the styles being affected by a transition effect are calculated, default value is `linear`, the allowed attributes are listed in the following table: -| name | description | example | -| :----------------------------- | :--------------------------------------- | :------ | -| `linear` | Specifies a transition effect with the same speed from start to end | | -| `ease-in` | Specifies a transition effect with a slow start | | -| `ease-out` | Specifies a transition effect with a slow end | | -| `ease-in-out` | Specifies a transition effect with a slow start and end | | -| `cubic-bezier(x1, y1, x2, y2)` | Define your own values in the cubic-bezier function. Possible values are parameter values from 0 to 1. More information about cubic-bezier please visit [cubic-bezier](http://cubic-bezier.com/) and [Bézier curve](https://en.wikipedia.org/wiki/B%C3%A9zier_curve). | | +| name | description | +| :----------------------------- | :--------------------------------------- | +| `linear` | Specifies a transition effect with the same speed from start to end | +| `ease-in` | Specifies a transition effect with a slow start | +| `ease-out` | Specifies a transition effect with a slow end | +| `ease-in-out` | Specifies a transition effect with a slow start and end | +| `cubic-bezier(x1, y1, x2, y2)` | Define your own values in the cubic-bezier function. Possible values are parameter values from 0 to 1. More information about cubic-bezier please visit [cubic-bezier](http://cubic-bezier.com/) and [Bézier curve](https://en.wikipedia.org/wiki/B%C3%A9zier_curve). | - `styles` (object): Specify the names and values of styles to which a transition effect should be applied. The allowed attributes are listed in the following table: -| name | description | value type | default value | example | -| :-------------- | :--------------------------------------- | :-------------------- | :-------------- | :------ | -| width | The width applied to the component after the animation finished. | length | none | | -| height | The height applied to the component after the animation finished. | length | none | | -| backgroundColor | The background color applied to the component after the animation finished. | string | none | | -| opacity | The opacity applied to the component after the animation finished. | number between 0 to 1 | `1` | | -| transformOrigin | The povit of transition. The possible values for `x-aris` are `left`/`center`/`right`/length or percent, and possible values of `y-axis` are `top`/`center`/`bottom`/ length or percent | `x-axis y-axis` | `center center` | | -| transform | Transform function to be applied to the element. The properties in the following table are supported | object | none | | +| name | description | value type | default value | +| :-------------- | :--------------------------------------- | :-------------------- | :-------------- | +| width | The width applied to the component after the animation finished. | length | none | +| height | The height applied to the component after the animation finished. | length | none | +| backgroundColor | The background color applied to the component after the animation finished. | string | none | +| opacity | The opacity applied to the component after the animation finished. | number between 0 to 1 | `1` | +| transformOrigin | The povit of transition. The possible values for `x-aris` are `left`/`center`/`right`/length or percent, and possible values of `y-axis` are `top`/`center`/`bottom`/ length or percent | `x-axis y-axis` | `center center` | +| transform | Transform function to be applied to the element. The properties in the following table are supported | object | none | properties of `transform`: