2023-08-07 08:24:23 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
|
|
|
<p>
|
|
|
|
PrimeVue offers a built-in Tailwind theme to get you started quickly. The default values related to the component are displayed below. The component can easily be styled with your own design based on Tailwind utilities, see the
|
2023-08-07 12:40:22 +00:00
|
|
|
<PrimeVueNuxtLink to="/tailwind">Tailwind Customization</PrimeVueNuxtLink> section for an example.
|
2023-08-07 08:24:23 +00:00
|
|
|
</p>
|
2023-09-22 12:54:14 +00:00
|
|
|
<DocSectionCode :code="code1" hideToggleCode importCode hideCodeSandbox hideStackBlitz scrollable />
|
2023-08-16 13:58:31 +00:00
|
|
|
<p class="mt-4">A playground sample with the pre-built Tailwind theme.</p>
|
2023-08-07 08:24:23 +00:00
|
|
|
<DocSectionCode :code="code2" embedded />
|
|
|
|
</DocSectionText>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
code1: {
|
2023-10-15 09:38:39 +00:00
|
|
|
basic: `
|
|
|
|
export default {
|
2023-08-07 08:24:23 +00:00
|
|
|
splitter: {
|
|
|
|
root: ({ context }) => ({
|
|
|
|
class: [
|
|
|
|
'bg-white dark:bg-gray-900 rounded-lg text-gray-700 dark:text-white/80',
|
|
|
|
{
|
|
|
|
'border border-solid border-gray-300 dark:border-blue-900/40': !context.nested
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
|
|
|
|
gutter: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'flex items-center justify-center shrink-0',
|
|
|
|
'transition-all duration-200 bg-gray-100 dark:bg-gray-800',
|
|
|
|
{
|
|
|
|
'cursor-col-resize': props.layout == 'horizontal',
|
|
|
|
'cursor-row-resize': props.layout !== 'horizontal'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}),
|
|
|
|
gutterhandler: ({ props }) => ({
|
|
|
|
class: [
|
|
|
|
'bg-gray-300 dark:bg-gray-600 transition-all duration-200',
|
|
|
|
{
|
|
|
|
'h-7': props.layout == 'horizontal',
|
|
|
|
'w-7 h-2': props.layout !== 'horizontal'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`
|
|
|
|
},
|
|
|
|
code2: {
|
2023-09-22 12:54:14 +00:00
|
|
|
composition: `
|
|
|
|
<template>
|
2023-08-07 08:24:23 +00:00
|
|
|
<div class="card">
|
|
|
|
<Splitter style="height: 300px" class="mb-5">
|
|
|
|
<SplitterPanel class="flex items-center justify-center"> Panel 1 </SplitterPanel>
|
|
|
|
<SplitterPanel class="flex items-center justify-center"> Panel 2 </SplitterPanel>
|
|
|
|
</Splitter>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
2023-10-15 09:38:39 +00:00
|
|
|
<\/script>
|
|
|
|
`
|
2023-08-07 08:24:23 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|