我想通过这个例子有条件地向Quantity组件发送道具。
<v-card
class="mx-auto"
max-width="344"
shaped
v-for="(item, index) in allItems || orderedItems"
:key="index"
>
<Quantity {allItems ? :Items = item : :Ordered = item} />
</v-card>
如果已激活,我想发送Ordered道具,如果已orderedItems
激活则发送。Items
allItems