mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
38 lines
1.9 KiB
Vue
38 lines
1.9 KiB
Vue
<template>
|
||
<div class="page-card">
|
||
<h1 class="page-title">Card</h1>
|
||
|
||
<h2 class="page-sub-title">基础用法</h2>
|
||
<z-card
|
||
title="商品名称是什么,两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余"
|
||
desc="描述"
|
||
thumb="https://img.yzcdn.cn/upload_files/2017/02/17/FnDwvwHmU-OiqsbjAO5X7wh1KWrR.jpg!100x100.jpg">
|
||
</z-card>
|
||
|
||
<h2 class="page-sub-title">高级用法</h2>
|
||
<z-card
|
||
title="商品名称是什么,两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余"
|
||
desc="商品SKU1,商品SKU2"
|
||
thumb="https://img.yzcdn.cn/upload_files/2017/02/17/FnDwvwHmU-OiqsbjAO5X7wh1KWrR.jpg!100x100.jpg">
|
||
<div class="z-card__row" slot="title">
|
||
<h4 class="z-card__title">商品名称是什么,两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余</h4>
|
||
<span class="z-card__price">¥ 2.00</span>
|
||
</div>
|
||
<div class="z-card__row" slot="desc">
|
||
<h4 class="z-card__desc">商品sku</h4>
|
||
<span class="z-card__num">x 2</span>
|
||
</div>
|
||
<div class="z-card__footer" slot="footer">
|
||
<z-button size="mini">按钮一</z-button>
|
||
<z-button size="mini">按钮二</z-button>
|
||
</div>
|
||
</z-card>
|
||
</div>
|
||
</template>
|
||
|
||
<style>
|
||
.page-sub-title {
|
||
padding: 15px;
|
||
}
|
||
</style>
|