update liveeditor

pull/864/head
Tuğçe Küçükoğlu 2021-01-08 18:08:05 +03:00
parent 62dceb0e81
commit 1b262077ee
1 changed files with 11 additions and 0 deletions

View File

@ -137,6 +137,17 @@ ${style}`
`; `;
} }
let directiveEl = ['EditorDemo'];
directiveEl.forEach(dir => {
if(name === dir) {
imports += `import Tooltip from 'primevue/tooltip';
`;
directives += `app.directive('tooltip', Tooltip);
`;
}
})
if(this.components) { if(this.components) {
this.components.forEach(comp => { this.components.forEach(comp => {
imports += `import ${comp} from "primevue/${comp.toLowerCase()}"; imports += `import ${comp} from "primevue/${comp.toLowerCase()}";