Code representation style fixes

This commit is contained in:
Tuğçe Küçükoğlu 2023-09-22 15:54:14 +03:00
parent 11051fc020
commit e0fe133189
863 changed files with 4545 additions and 2404 deletions

View file

@ -33,7 +33,8 @@ export default {
{ name: 'United States', code: 'US' }
],
code: {
basic: `<Listbox v-model="selectedCountry" :options="countries" optionLabel="name" class="w-full md:w-14rem" listStyle="max-height:250px">
basic: `
<Listbox v-model="selectedCountry" :options="countries" optionLabel="name" class="w-full md:w-14rem" listStyle="max-height:250px">
<template #option="slotProps">
<div class="flex align-items-center">
<img :alt="slotProps.option.name" src="https://primefaces.org/cdn/primevue/images/flag/flag_placeholder.png" :class="\`flag flag-\${slotProps.option.code.toLowerCase()} mr-2\`" style="width: 18px" />
@ -41,7 +42,8 @@ export default {
</div>
</template>
</Listbox>`,
options: `<template>
options: `
<template>
<div class="card flex justify-content-center">
<Listbox v-model="selectedCountry" :options="countries" optionLabel="name" class="w-full md:w-14rem" listStyle="max-height:250px">
<template #option="slotProps">
@ -75,7 +77,8 @@ export default {
}
};
<\/script>`,
composition: `<template>
composition: `
<template>
<div class="card flex justify-content-center">
<Listbox v-model="selectedCountry" :options="countries" optionLabel="name" class="w-full md:w-14rem" listStyle="max-height:250px">
<template #option="slotProps">