You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by gu...@apache.org on 2017/10/09 08:39:23 UTC
[42/50] incubator-weex git commit: * [doc] update define ref to new
version for vue
* [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
Commit: 927cc656426a808ea0c424e8dfe74a98356f6edc
Parents: b2fa4be
Author: acton393 <zh...@gmail.com>
Authored: Mon Oct 2 14:10:20 2017 +0800
Committer: gurisxie <27...@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>