Update templates.js

pull/4239/head
Tuğçe Küçükoğlu 2023-08-03 09:35:27 +03:00
parent 8f89f06761
commit d616d12a16
1 changed files with 4 additions and 2 deletions

View File

@ -50,8 +50,10 @@ const getVueApp = (props = {}, sourceType) => {
: {}; : {};
if (deps !== null && component !== null) { if (deps !== null && component !== null) {
imports += `import ${component} from 'primevue/${component.toLowerCase()}';`; imports += `import ${component} from 'primevue/${component.toLowerCase()}';
element += `app.component('${component}', ${component});`; `;
element += `app.component('${component}', ${component});
`;
} }
if (embedded) { if (embedded) {