From 536941514441c9b410d400ea2873f00c027b3f04 Mon Sep 17 00:00:00 2001 From: EGOIST <0x142857@gmail.com> Date: Sat, 18 Jan 2020 21:45:37 +0800 Subject: [PATCH] fix: disable prettier for lib/index.js --- lib/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/index.js b/lib/index.js index 5e52e86..a8ba980 100644 --- a/lib/index.js +++ b/lib/index.js @@ -9,10 +9,10 @@ function css(_) { function StyledVue(Vue) { Vue.component('styled-vue-global-css', { - render(h) { - const globalStyle = this.$parent.$options.globalStyle(this.$parent) - let css = '' - for (const key in globalStyle) { + render: function(h) { + var globalStyle = this.$parent.$options.globalStyle(this.$parent) + var css = '' + for (var key in globalStyle) { css += key + ':' + globalStyle[key] + ';' } return h('style', {}, [':root {' + css + '}'])