Update migration

pull/5507/head
Cagatay Civici 2024-04-01 13:05:49 +03:00
parent ceea117349
commit 3bcb5b4eef
2 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,48 @@
<template>
<DocSectionText v-bind="$attrs">
<p>The <i>PrimeVue</i> plugin is replaced with <i>PrimeVueStyled</i> and <i>PrimeVueUnstyled</i> plugins depending on the theming mode.</p>
</DocSectionText>
<DocSectionCode :code="code1" hideToggleCode importCode hideStackBlitz />
<DocSectionCode :code="code2" hideToggleCode importCode hideStackBlitz />
</template>
<script>
export default {
data() {
return {
code1: {
basic: `
//v3 styled mode
import PrimeVue from 'primevue/config';
const app = createApp(App);
app.use(PrimeVue);
//v4 styled mode
import PrimeVueStyled from 'primevue/styled';
const app = createApp(App);
app.use(PrimeVueStyled);
`
},
code2: {
basic: `
///v3 unstyled mode
import PrimeVue from 'primevue/config';
const app = createApp(App);
app.use(PrimeVue, {
unstyled: true
});
///v4 unstyled mode
import PrimeVueUnstyled from 'primevue/styled';
const app = createApp(App);
app.use(PrimeVueUnstyled);
`
}
};
}
};
</script>

View File

@ -19,6 +19,7 @@
import NewFeaturesDoc from '@/doc/migration/v4/NewFeaturesDoc.vue'; import NewFeaturesDoc from '@/doc/migration/v4/NewFeaturesDoc.vue';
import OverviewDoc from '@/doc/migration/v4/OverviewDoc.vue'; import OverviewDoc from '@/doc/migration/v4/OverviewDoc.vue';
import ComponentsDoc from '@/doc/migration/v4/breakingchanges/ComponentsDoc.vue'; import ComponentsDoc from '@/doc/migration/v4/breakingchanges/ComponentsDoc.vue';
import PluginDoc from '@/doc/migration/v4/breakingchanges/PluginDoc.vue';
import StyledModeDoc from '@/doc/migration/v4/breakingchanges/StyledModeDoc.vue'; import StyledModeDoc from '@/doc/migration/v4/breakingchanges/StyledModeDoc.vue';
export default { export default {
@ -39,6 +40,11 @@ export default {
id: 'breakingchanges', id: 'breakingchanges',
label: 'Breaking Changes', label: 'Breaking Changes',
children: [ children: [
{
id: 'pluging',
label: 'Plugin',
component: PluginDoc
},
{ {
id: 'styledmode', id: 'styledmode',
label: 'Styled Mode', label: 'Styled Mode',