* [html5] fix vue2.4.3
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/2cf16754 Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/2cf16754 Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/2cf16754 Branch: refs/heads/master Commit: 2cf16754205ec74fd4e646fecf36db84ced5b588 Parents: f58c820 Author: MrRaindrop <tekk...@gmail.com> Authored: Thu Sep 14 13:53:26 2017 +0800 Committer: MrRaindrop <tekk...@gmail.com> Committed: Thu Sep 14 13:53:26 2017 +0800 ---------------------------------------------------------------------- html5/render/vue/index.js | 11 +++++++++++ package.json | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/2cf16754/html5/render/vue/index.js ---------------------------------------------------------------------- diff --git a/html5/render/vue/index.js b/html5/render/vue/index.js index 038f67a..bd0016d 100644 --- a/html5/render/vue/index.js +++ b/html5/render/vue/index.js @@ -45,6 +45,17 @@ function init (Vue/*, options = {}*/) { Vue.config.isReservedTag = tag => htmlRegex.test(tag) Vue.config.parsePlatformTagName = tag => tag.replace(htmlRegex, '') + function isWeexTag (tag) { + return !!weex._components[tag] + } + const oldGetTagNamespace = Vue.config.getTagNamespace + Vue.config.getTagNamespace = function (tag) { + if (isWeexTag(tag)) { + return + } + return oldGetTagNamespace(tag) + } + Vue.mixin(base) Vue.mixin(style) Vue.mixin(sticky) http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/2cf16754/package.json ---------------------------------------------------------------------- diff --git a/package.json b/package.json index c98bc37..fa2a332 100644 --- a/package.json +++ b/package.json @@ -164,7 +164,7 @@ "sinon": "^2.1.0", "sinon-chai": "^2.8.0", "uglify-js": "^2.8.29", - "vue": "^2.2.6", + "vue": "^2.4.3", "vue-loader": "^12.2.1", "vue-template-compiler": "^2.2.6", "webpack": "^1.13.1",