You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ha...@apache.org on 2018/01/18 03:58:39 UTC

incubator-weex-site git commit: [doc][android] Cell Weex Site Document Update

Repository: incubator-weex-site
Updated Branches:
  refs/heads/master 445c00640 -> f68cd5092


[doc][android] Cell Weex Site Document Update

resolve #24


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

Branch: refs/heads/master
Commit: f68cd509225e5e79b98c3f18c800c7a9328aa2ca
Parents: 445c006
Author: Hanks <zh...@gmail.com>
Authored: Thu Jan 18 11:58:10 2018 +0800
Committer: Hanks <zh...@gmail.com>
Committed: Thu Jan 18 11:58:10 2018 +0800

----------------------------------------------------------------------
 source/cn/references/components/cell.md | 62 +---------------------------
 source/references/components/cell.md    |  4 +-
 2 files changed, 4 insertions(+), 62 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/f68cd509/source/cn/references/components/cell.md
----------------------------------------------------------------------
diff --git a/source/cn/references/components/cell.md b/source/cn/references/components/cell.md
index 6c0ee52..a5026fe 100644
--- a/source/cn/references/components/cell.md
+++ b/source/cn/references/components/cell.md
@@ -8,7 +8,7 @@ version: 2.1
 
 # &lt;cell&gt;
 
-用于定义列表中的子列表项,类似于 HTML 中的 `ul` 之于 `li`。Weex 会对 `<cell>` 进行高效的内存回收以达到更好的性能,该组件必须作为[`<list>`](./list.html) 组件的子组件, 这是为了优化滚动时的性能。
+用于定义列表中的子列表项,类似于 HTML 中的 `ul` 之于 `li`。Weex 会对 `<cell>` 进行高效的内存回收以达到更好的性能,该组件必须作为[`<list>`](./list.html) [`<recycler>`](./list.html) [`<waterfall.>`](./waterfall.html)组件的子组件, 这是为了优化滚动时的性能。
 
 ## 子组件
 
@@ -48,62 +48,4 @@ version: 2.1
 
 ## 示例
 
-```html
-<template>
-  <list class="list" @loadmore="fetch" loadmoreoffset="10">
-    <cell class="cell" v-for="num in lists">
-      <div class="panel">
-        <text class="text">{{num}}</text>
-      </div>
-    </cell>
-  </list>
-</template>
-
-<script>
-  const modal = weex.requireModule('modal')
-  const LOADMORE_COUNT = 4
-
-  export default {
-    data () {
-      return {
-        lists: [1, 2, 3, 4, 5]
-      }
-    },
-    methods: {
-      fetch (event) {
-        modal.toast({ message: 'loadmore', duration: 1 })
-
-        setTimeout(() => {
-          const length = this.lists.length
-          for (let i = length; i < length + LOADMORE_COUNT; ++i) {
-            this.lists.push(i + 1)
-          }
-        }, 800)
-      }
-    }
-  }
-</script>
-
-<style scoped>
-  .panel {
-    width: 600px;
-    height: 250px;
-    margin-left: 75px;
-    margin-top: 35px;
-    margin-bottom: 35px;
-    flex-direction: column;
-    justify-content: center;
-    border-width: 2px;
-    border-style: solid;
-    border-color: rgb(162, 217, 192);
-    background-color: rgba(162, 217, 192, 0.2);
-  }
-  .text {
-    font-size: 50px;
-    text-align: center;
-    color: #41B883;
-  }
-</style>
-```
-
-[try it](http://dotwe.org/vue/d31c85e7cd2dc54fa098e920a5376c38)
+[cell 示例](http://dotwe.org/vue/d31c85e7cd2dc54fa098e920a5376c38)

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/f68cd509/source/references/components/cell.md
----------------------------------------------------------------------
diff --git a/source/references/components/cell.md b/source/references/components/cell.md
index 6b33fda..ad7f2ef 100644
--- a/source/references/components/cell.md
+++ b/source/references/components/cell.md
@@ -10,7 +10,7 @@ version: 2.1
 
 ### Summary
 
-This component must be used as a subcomponent of a [`list`](./list.html) component, which is for the performance optimizing during scrolling.
+This component must be used as a subcomponent of a [`list`](./list.html) [`recycler`](./list.html) [`waterfall`](./waterfall.html) component, which is for the performance optimizing for long list scrolling.
 
 ### Child Components
 
@@ -42,4 +42,4 @@ This type of component supports all kinds of weex component as its child compone
 
 ### Example
 
-please refer to [List](./list.html)
+please refer to [List](./list.html) [`recycler`](./list.html) [`waterfall`](./waterfall.html)