Remove useTheme util
parent
8dc4eecb5d
commit
040ea8b9fd
|
@ -1,27 +0,0 @@
|
||||||
<template>
|
|
||||||
<DocSectionText v-bind="$attrs">
|
|
||||||
<p>Replaces the theme including the base and the preset such as from PrimeOne to Material. Note that the built-in Material theme is under development.</p>
|
|
||||||
</DocSectionText>
|
|
||||||
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
code: {
|
|
||||||
basic: `
|
|
||||||
import { useTheme } from 'primevue/themes';
|
|
||||||
|
|
||||||
const changeTheme() {
|
|
||||||
useTheme({
|
|
||||||
base: MaterialDesign,
|
|
||||||
preset: M3
|
|
||||||
});
|
|
||||||
}
|
|
||||||
`
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
};
|
|
||||||
</script>
|
|
|
@ -47,7 +47,6 @@ import UpdatePresetDoc from '@/doc/theming/styled/utils/UpdatePresetDoc.vue';
|
||||||
import UpdatePrimaryPaletteDoc from '@/doc/theming/styled/utils/UpdatePrimaryPaletteDoc.vue';
|
import UpdatePrimaryPaletteDoc from '@/doc/theming/styled/utils/UpdatePrimaryPaletteDoc.vue';
|
||||||
import UpdateSurfacePaletteDoc from '@/doc/theming/styled/utils/UpdateSurfacePaletteDoc.vue';
|
import UpdateSurfacePaletteDoc from '@/doc/theming/styled/utils/UpdateSurfacePaletteDoc.vue';
|
||||||
import UsePresetDoc from '@/doc/theming/styled/utils/UsePresetDoc.vue';
|
import UsePresetDoc from '@/doc/theming/styled/utils/UsePresetDoc.vue';
|
||||||
import UseThemeDoc from '@/doc/theming/styled/utils/UseThemeDoc.vue';
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
|
@ -164,11 +163,6 @@ export default {
|
||||||
label: 'updateSurfacePalette',
|
label: 'updateSurfacePalette',
|
||||||
component: UpdateSurfacePaletteDoc
|
component: UpdateSurfacePaletteDoc
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id: 'usetheme',
|
|
||||||
label: 'useTheme',
|
|
||||||
component: UseThemeDoc
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id: 'dt',
|
id: 'dt',
|
||||||
label: '$dt',
|
label: '$dt',
|
||||||
|
|
Loading…
Reference in New Issue