primevue-mirror/doc/guides/primeflex/MigrationDoc.vue

44 lines
1.6 KiB
Vue
Raw Normal View History

2024-05-27 12:25:09 +00:00
<template>
<DocSectionText v-bind="$attrs">
<p>
The <a href="https://www.npmjs.com/package/primeclt" target="_blank" rel="noopener noreferrer">primeclt</a> is a command line utility by PrimeTek to assist project setup and migration. The <i>pf2tw</i> command is created for smooth
migration between PrimeFlex to Tailwind CSS. As a prequisite, the <i>tailwindcss-primeui</i> is required to provide the matching classes that do not exist in core Tailwind CSS such as semantic colors and animations.
</p>
<p>Install PrimeCLT.</p>
<DocSectionCode :code="code1" hideToggleCode importCode hideStackBlitz />
<p>Run the <i>pf2wt</i> in a directory that contains files to be migrated.</p>
<DocSectionCode :code="code2" hideToggleCode importCode hideStackBlitz />
<p>There are a couple of minor limitations that are not migrated. PrimeVue v3 is not supported as the plugin is compatible with PrimeVue v4 only. In addition, following classes are not migrated as they have no counterparts.</p>
<ul class="leading-loose">
<li>formgrid</li>
<li>formgroup</li>
<li>formgroup-inline</li>
<li>col</li>
<li>col-fixed</li>
<li>field</li>
<li>field-checkbox</li>
<li>field-radiobutton</li>
<li>reset</li>
</ul>
</DocSectionText>
</template>
<script>
export default {
data() {
return {
code1: {
basic: `
npm install -g primeclt
`
},
code2: {
basic: `
prime pf2tw
`
}
};
}
};
</script>