From ee30c75d8820758e0381914251059ec28dded8b0 Mon Sep 17 00:00:00 2001 From: Kevin Levron Date: Sun, 21 Feb 2021 13:36:48 +0100 Subject: [PATCH] remove ref in renderer (vitepress) --- src/core/Renderer.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/core/Renderer.js b/src/core/Renderer.js index eb4d301..608a855 100644 --- a/src/core/Renderer.js +++ b/src/core/Renderer.js @@ -30,7 +30,7 @@ export default { }, mounted() { const params = { - canvas: this.$refs.canvas, + canvas: this.$el, antialias: this.antialias, alpha: this.alpha, autoClear: this.autoClear, @@ -74,10 +74,6 @@ export default { }, }, render() { - return h( - 'canvas', - { ref: 'canvas' }, - this.$slots.default() - ); + return h('canvas', {}, this.$slots.default()); }, };