You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by cx...@apache.org on 2017/03/15 08:05:14 UTC

[2/3] incubator-weex git commit: * [ios] Add footer support to waterfall example

* [ios] Add footer support to waterfall example


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

Branch: refs/heads/0.11-dev
Commit: 8896f7770f10bbb1033d0e91686d6a631dafbe0b
Parents: c41c0f5
Author: \u9690\u98ce <cx...@apache.org>
Authored: Wed Mar 15 11:28:28 2017 +0800
Committer: \u9690\u98ce <cx...@apache.org>
Committed: Wed Mar 15 11:28:28 2017 +0800

----------------------------------------------------------------------
 examples/vue/components/waterfall.vue | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8896f777/examples/vue/components/waterfall.vue
----------------------------------------------------------------------
diff --git a/examples/vue/components/waterfall.vue b/examples/vue/components/waterfall.vue
index 0fa64a4..ab39b7f 100644
--- a/examples/vue/components/waterfall.vue
+++ b/examples/vue/components/waterfall.vue
@@ -49,6 +49,9 @@
         <text v-if="item.behaviourName" class="itemClickBehaviour"> {{item.behaviourName}}</text>
       </div>
     </cell>
+    <header class="footer">
+      <text class="stickyText">Footer</text>
+    </header>
     <div class="fixedItem" @click="scrollToTop">
       <text class="fixedText">Top</text>
     </div>
@@ -201,6 +204,12 @@
     margin-right: 24;
     margin-bottom: 30;
   }
+  .footer {
+    height: 94;
+    justify-content: center;
+    align-items: center;
+    background-color: #00cc99;
+  }
 
   .fixedItem {
     position: fixed;