From 624ff73aec83a3fc308b8ba2a3886de3bb9b420b Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Thu, 22 Aug 2019 17:17:26 +0800 Subject: [PATCH] feat(h5): support wxs --- src/core/view/plugins/index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/core/view/plugins/index.js b/src/core/view/plugins/index.js index 9a3477d1..98db0d0c 100644 --- a/src/core/view/plugins/index.js +++ b/src/core/view/plugins/index.js @@ -43,6 +43,13 @@ export default { Vue.mixin({ beforeCreate () { const options = this.$options + + const wxs = options.wxs + if (wxs) { + Object.keys(wxs).forEach(module => { + this[module] = wxs[module] + }) + } if (options.behaviors && options.behaviors.length) { initBehaviors(options, this) -- GitLab