mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
* change example dir * Update README.md 更新预览教程 * 新增 layout 组件 * exclude example * change .wxss -> .pcss * 脚本目录更名为 scripts
22 lines
720 B
Plaintext
22 lines
720 B
Plaintext
<import src="/dist/capsule/index.wxml" />
|
|
|
|
<view class="container">
|
|
|
|
<view class="doc-title">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> |