Merge pull request #6893 from AnastasiaTsi/theme-designer-fix

Theme designer content create fix
pull/6920/head
Tuğçe Küçükoğlu 2024-12-02 11:52:20 +03:00 committed by GitHub
commit 7fa6ea5406
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ export default {
const theme = JSON.stringify(this.$appState.designer.preset, null, 4).replace(/"([^"]+)":/g, '$1:');
const textContent = `import { createApp } from "vue";
import PrimeVue from "primevue/config";
import {${basePreset}} from "@primevue/themes/${basePreset.toLowerCase()}";
import ${basePreset} from "@primevue/themes/${basePreset.toLowerCase()}";
import { definePreset } from "@primevue/themes";
const app = createApp(App);