mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
22 lines
741 B
Plaintext
22 lines
741 B
Plaintext
<import src="/dist/capsule/index.wxml" />
|
|
|
|
<view class="container">
|
|
|
|
<view class="doc-title zan-hairline--bottom">CAPSULE</view>
|
|
|
|
<view class="zan-panel-title">基本用法</view>
|
|
<view class="zan-panel">
|
|
<view class="zan-cell zan-cell--last-child">
|
|
<template is="capsule" data="{{ leftText: '1折', rightText: '限购一份'}}" />
|
|
<template is="capsule" data="{{ leftText: '1折', rightText: '限购一份', type: 'danger' }}" />
|
|
</view>
|
|
</view>
|
|
|
|
<view class="zan-panel-title">自定义颜色</view>
|
|
<view class="zan-panel">
|
|
<view class="zan-cell zan-cell--last-child">
|
|
<template is="capsule" data="{{ leftText: '1折', rightText: '限购一份', color: '#38f' }}" />
|
|
</view>
|
|
</view>
|
|
|
|
</view> |