diff --git a/js/src/VueTemplateRenderer.js b/js/src/VueTemplateRenderer.js index 69706dd..083bf2a 100644 --- a/js/src/VueTemplateRenderer.js +++ b/js/src/VueTemplateRenderer.js @@ -102,7 +102,9 @@ function createComponentObject(model, parentView) { ...createFullVueComponents(fullVueComponents), }, computed: { ...vuefile.SCRIPT && vuefile.SCRIPT.computed, ...aliasRefProps(model) }, - template: vuefile.TEMPLATE || template, + template: vuefile.TEMPLATE === undefined && vuefile.SCRIPT === undefined && vuefile.STYLE === undefined + ? template + : vuefile.TEMPLATE, beforeMount() { callVueFn('beforeMount', this); },