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

incubator-weex git commit: * [test] add image#onload to border test

Repository: incubator-weex
Updated Branches:
  refs/heads/0.14-dev 0d61f2b07 -> 2f748ac8d


* [test] add image#onload to border test


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

Branch: refs/heads/0.14-dev
Commit: 2f748ac8d7e0e4d73dc9c2561cc0f6cfee45a0fb
Parents: 0d61f2b
Author: sospartan <so...@apache.org>
Authored: Mon Jun 12 11:13:22 2017 +0800
Committer: sospartan <so...@apache.org>
Committed: Mon Jun 12 11:13:22 2017 +0800

----------------------------------------------------------------------
 test/pages/css/border.vue | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/2f748ac8/test/pages/css/border.vue
----------------------------------------------------------------------
diff --git a/test/pages/css/border.vue b/test/pages/css/border.vue
index 4943056..f17e978 100644
--- a/test/pages/css/border.vue
+++ b/test/pages/css/border.vue
@@ -62,12 +62,12 @@
         <text>transparent</text>
     </div>
     <div class="container">
-        <image class="box topleft" :src="img"></image>
-        <image class="box topright" :src="img"></image>
-        <image class="box bottomleft" :src="img"></image>
-        <image class="box bottomright" :src="img"></image>
-        <image class="box" :src="img"></image>
-        <image class="circle" :src="img"></image>
+        <image class="box topleft" :src="img" @load="onload"></image>
+        <image class="box topright" :src="img" @load="onload"></image>
+        <image class="box bottomleft" :src="img" @load="onload"></image>
+        <image class="box bottomright" :src="img" @load="onload"></image>
+        <image class="box" :src="img" @load="onload"></image>
+        <image class="circle" :src="img" @load="onload"></image>
         <text>image</text>
     </div>
   </scroller>
@@ -366,6 +366,9 @@
       }
     },
     methods : {
+      onload: function(){
+        console.log("image onload")
+      }
     }
   }
 </script>
\ No newline at end of file