weex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From guris...@apache.org
Subject [11/19] incubator-weex git commit: * [doc] update define ref to new version for vue
Date Wed, 04 Oct 2017 08:24:45 GMT
* [doc] update define ref to new version for vue


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

Branch: refs/heads/release-0.16
Commit: 927cc656426a808ea0c424e8dfe74a98356f6edc
Parents: b2fa4be
Author: acton393 <zhangxing610321@gmail.com>
Authored: Mon Oct 2 14:10:20 2017 +0800
Committer: gurisxie <279483595@qq.com>
Committed: Wed Oct 4 16:21:38 2017 +0800

----------------------------------------------------------------------
 doc/source/cn/references/advanced/extend-to-ios.md | 4 ++--
 doc/source/references/advanced/extend-to-ios.md    | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/927cc656/doc/source/cn/references/advanced/extend-to-ios.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/references/advanced/extend-to-ios.md b/doc/source/cn/references/advanced/extend-to-ios.md
index bf949fd..3b3b54b 100644
--- a/doc/source/cn/references/advanced/extend-to-ios.md
+++ b/doc/source/cn/references/advanced/extend-to-ios.md
@@ -313,12 +313,12 @@ WeexSDK 0.9.5 之后支持了在 js 中直接调用 component 的方法,这里
 
   ```html
   <template>
-    <mycomponent id='mycomponent'></mycomponent>
+    <mycomponent ref='mycomponent'></mycomponent>
   </template>
   <script>
     module.exports = {
       created:function() {
-        this.$el('mycomponent').focus();
+        this.$refs.mycomponent.focus();
       }
     }
   </script>

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/927cc656/doc/source/references/advanced/extend-to-ios.md
----------------------------------------------------------------------
diff --git a/doc/source/references/advanced/extend-to-ios.md b/doc/source/references/advanced/extend-to-ios.md
index 9039754..02dc037 100644
--- a/doc/source/references/advanced/extend-to-ios.md
+++ b/doc/source/references/advanced/extend-to-ios.md
@@ -329,12 +329,12 @@ after your registration for your own custom component, now you can call
it in yo
 
 ```html
 <template>
-  <mycomponent id='mycomponent'></mycomponent>
+  <mycomponent ref='mycomponent'></mycomponent>
 </template>
 <script>
   module.exports = {
     created: function() {
-      this.$el('mycomponent').focus();
+      this.$refs.mycomponent.focus();
     }
   }
 </script>


Mime
View raw message