From d616d12a16cb2afea0dd218d6b312fc147430c37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Thu, 3 Aug 2023 09:35:27 +0300 Subject: [PATCH] Update templates.js --- components/doc/codeeditor/templates.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/doc/codeeditor/templates.js b/components/doc/codeeditor/templates.js index 81697d2a1..573a7cea3 100644 --- a/components/doc/codeeditor/templates.js +++ b/components/doc/codeeditor/templates.js @@ -50,8 +50,10 @@ const getVueApp = (props = {}, sourceType) => { : {}; if (deps !== null && component !== null) { - imports += `import ${component} from 'primevue/${component.toLowerCase()}';`; - element += `app.component('${component}', ${component});`; + imports += `import ${component} from 'primevue/${component.toLowerCase()}'; +`; + element += `app.component('${component}', ${component}); +`; } if (embedded) {