Refactor
parent
e1367fd494
commit
fd76fe68a1
|
@ -3,7 +3,7 @@
|
|||
<p>OrderList requires an array as its value bound with the <i>v-model</i> directive and <i>item</i> template for its content.</p>
|
||||
</DocSectionText>
|
||||
<div class="card flex justify-content-center">
|
||||
<OrderList v-model="products" dataKey="id" breakpoint="1400px" pt:list:root="w-full md:w-14rem">
|
||||
<OrderList v-model="products" dataKey="id" breakpoint="1400px" pt:pcList:root="w-full md:w-14rem">
|
||||
<template #item="{ item }">
|
||||
{{ item.name }}
|
||||
</template>
|
||||
|
@ -21,7 +21,7 @@ export default {
|
|||
products: null,
|
||||
code: {
|
||||
basic: `
|
||||
<OrderList v-model="products" dataKey="id" breakpoint="1400px" pt:list:root="w-full md:w-14rem">
|
||||
<OrderList v-model="products" dataKey="id" breakpoint="1400px" pt:pcList:root="w-full md:w-14rem">
|
||||
<template #item="{ item }">
|
||||
{{ item.name }}
|
||||
</template>
|
||||
|
@ -30,7 +30,7 @@ export default {
|
|||
options: `
|
||||
<template>
|
||||
<div class="card lg:flex lg:justify-content-center">
|
||||
<OrderList v-model="products" dataKey="id" breakpoint="1400px" pt:list:root="w-full md:w-14rem">
|
||||
<OrderList v-model="products" dataKey="id" breakpoint="1400px" pt:pcList:root="w-full md:w-14rem">
|
||||
<template #item="{ item }">
|
||||
{{ item.name }}
|
||||
</template>
|
||||
|
@ -55,7 +55,7 @@ export default {
|
|||
composition: `
|
||||
<template>
|
||||
<div class="card lg:flex lg:justify-content-center">
|
||||
<OrderList v-model="products" dataKey="id" breakpoint="1400px" pt:list:root="w-full md:w-14rem">
|
||||
<OrderList v-model="products" dataKey="id" breakpoint="1400px" pt:pcList:root="w-full md:w-14rem">
|
||||
<template #item="{ item }">
|
||||
{{ item.name }}
|
||||
</template>
|
||||
|
|
Loading…
Reference in New Issue