* [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/cf4dcd96 Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/cf4dcd96 Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/cf4dcd96 Branch: refs/heads/release-0.16 Commit: cf4dcd96eab7fe366d15af2b4ff656beaf803d88 Parents: b5e1fdf Author: acton393 <zhangxing610...@gmail.com> Authored: Mon Oct 2 14:10:20 2017 +0800 Committer: acton393 <zhangxing610...@gmail.com> Committed: Mon Oct 2 14:10:20 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/cf4dcd96/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/cf4dcd96/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>