diff --git a/components/doc/codeeditor/templates.js b/components/doc/codeeditor/templates.js index d303acb2e..0175d6d84 100644 --- a/components/doc/codeeditor/templates.js +++ b/components/doc/codeeditor/templates.js @@ -42,7 +42,9 @@ const getVueApp = (props = {}, sourceType) => { }); let extFilesSource = extFiles - ? extFiles[sourceType.language] + ? embedded + ? extFiles['composition'] + : extFiles[sourceType.language] ? { ...extFiles[sourceType.language] } : Object.keys(extFiles) .filter((k) => !sourceTypes.includes(k)) @@ -473,7 +475,7 @@ const onThemeToggler = () => { const root = document.getElementsByTagName('html')[0]; root.classList.toggle('dark'); - iconClass.value = iconClass.value==='pi-moon' ? 'pi-sun': 'pi-moon'; + iconClass.value = iconClass.value === 'pi-moon' ? 'pi-sun': 'pi-moon'; }; ` }; diff --git a/doc/dynamicdialog/theming/TailwindDoc.vue b/doc/dynamicdialog/theming/TailwindDoc.vue index 5e79dabfd..d6dcbced7 100644 --- a/doc/dynamicdialog/theming/TailwindDoc.vue +++ b/doc/dynamicdialog/theming/TailwindDoc.vue @@ -6,7 +6,7 @@

A playground sample with the pre-built Tailwind theme.

- + @@ -153,120 +153,6 @@ const showProducts = () => { ` }, extFiles: { - options: { - 'src/components/ProductListDemo.vue': { - content: ` - - -