mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
56 lines
2.0 KiB
Plaintext
56 lines
2.0 KiB
Plaintext
<doc-page title="BUTTON" without-padding>
|
|
|
|
<van-panel title="普通按钮">
|
|
<van-button-group>
|
|
<van-button
|
|
open-type="getPhoneNumber"
|
|
bind:getphonenumber="getPhoneNumber"
|
|
>获取电话</van-button>
|
|
<van-button type="primary">确认付款</van-button>
|
|
<van-button type="danger">确认付款</van-button>
|
|
<van-button type="warn">确认付款</van-button>
|
|
</van-button-group>
|
|
</van-panel>
|
|
|
|
<van-panel title="大号按钮,没有边框线及圆角">
|
|
<van-button size="large" type="primary">确认付款</van-button>
|
|
<van-button size="large" type="warn">立即购买</van-button>
|
|
<van-button size="large" type="danger">立即购买</van-button>
|
|
</van-panel>
|
|
|
|
<van-panel title="小号按钮">
|
|
<van-button-group>
|
|
<van-button size="small">取消订单</van-button>
|
|
<van-button size="small" type="primary">确认付款</van-button>
|
|
</van-button-group>
|
|
</van-panel>
|
|
|
|
<van-panel title="迷你按钮">
|
|
<van-button-group>
|
|
<van-button size="mini">取消订单</van-button>
|
|
<van-button size="mini" type="primary">确认付款</van-button>
|
|
<van-button size="mini" type="warn">确认付款</van-button>
|
|
<van-button size="mini" type="danger">确认付款</van-button>
|
|
</van-button-group>
|
|
</van-panel>
|
|
|
|
<van-panel title="Loading">
|
|
<van-button-group>
|
|
<van-button loading>取消订单</van-button>
|
|
<van-button loading type="primary">确认付款</van-button>
|
|
<van-button loading type="danger">确认付款</van-button>
|
|
<van-button loading type="warn">确认付款</van-button>
|
|
</van-button-group>
|
|
</van-panel>
|
|
|
|
<van-panel title="Disabled">
|
|
<van-button-group>
|
|
<van-button disabled>取消订单</van-button>
|
|
<van-button disabled type="primary">确认付款</van-button>
|
|
<van-button disabled type="danger">确认付款</van-button>
|
|
<van-button disabled type="warn">确认付款</van-button>
|
|
</van-button-group>
|
|
</van-panel>
|
|
|
|
</doc-page>
|