Update migration
parent
ceea117349
commit
3bcb5b4eef
|
@ -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>
|
|
@ -19,6 +19,7 @@
|
|||
import NewFeaturesDoc from '@/doc/migration/v4/NewFeaturesDoc.vue';
|
||||
import OverviewDoc from '@/doc/migration/v4/OverviewDoc.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';
|
||||
|
||||
export default {
|
||||
|
@ -39,6 +40,11 @@ export default {
|
|||
id: 'breakingchanges',
|
||||
label: 'Breaking Changes',
|
||||
children: [
|
||||
{
|
||||
id: 'pluging',
|
||||
label: 'Plugin',
|
||||
component: PluginDoc
|
||||
},
|
||||
{
|
||||
id: 'styledmode',
|
||||
label: 'Styled Mode',
|
||||
|
|
Loading…
Reference in New Issue