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

45 lines
1.7 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
2024-05-27 15:27:37 +00:00
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. For flawless
migration, it is highly suggested to use PrimeVue v4 as the requirement of the tailwindcss plugin.
2024-05-27 12:25:09 +00:00
</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 />
2024-05-27 15:27:37 +00:00
<p>There are a couple of utility classes that are not migrated as they have no counterparts, use flexbox utilities instead as replacements.</p>
2024-05-27 12:25:09 +00:00
<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>