mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +00:00
OrderList PickList demo updates
This commit is contained in:
parent
76fc9f54ec
commit
cda1e16bd8
5 changed files with 91 additions and 63 deletions
|
@ -1,11 +1,11 @@
|
|||
<template>
|
||||
<DocSectionText v-bind="$attrs">
|
||||
<p>PickList requires a multidimensional array as its value bound with the <i>v-model </i>directive and a template for its content that gets the <i>item</i> instance and the index via slotProps.</p>
|
||||
<p>PickList requires a multidimensional array as its value bound with the <i>v-model </i>directive and a template for its content that gets the <i>option</i> instance and the index via slotProps.</p>
|
||||
</DocSectionText>
|
||||
<div class="card">
|
||||
<PickList v-model="products" dataKey="id" breakpoint="1400px">
|
||||
<template #item="{ item }">
|
||||
{{ item.name }}
|
||||
<template #option="{ option }">
|
||||
{{ option.name }}
|
||||
</template>
|
||||
</PickList>
|
||||
</div>
|
||||
|
@ -22,8 +22,8 @@ export default {
|
|||
code: {
|
||||
basic: `
|
||||
<PickList v-model="products" dataKey="id" breakpoint="1400px">
|
||||
<template #item="{ item }">
|
||||
{{ item.name }}
|
||||
<template #option="{ option }">
|
||||
{{ option.name }}
|
||||
</template>
|
||||
</PickList>
|
||||
`,
|
||||
|
@ -31,8 +31,8 @@ export default {
|
|||
<template>
|
||||
<div class="card">
|
||||
<PickList v-model="products" dataKey="id" breakpoint="1400px">
|
||||
<template #item="{ item }">
|
||||
{{ item.name }}
|
||||
<template #option="{ option }">
|
||||
{{ option.name }}
|
||||
</template>
|
||||
</PickList>
|
||||
</div>
|
||||
|
@ -56,8 +56,8 @@ export default {
|
|||
<template>
|
||||
<div class="card">
|
||||
<PickList v-model="products" dataKey="id" breakpoint="1400px">
|
||||
<template #item="{ item }">
|
||||
{{ item.name }}
|
||||
<template #option="{ option }">
|
||||
{{ option.name }}
|
||||
</template>
|
||||
</PickList>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue