2018-07-30 10:53:07 +08:00

52 lines
1.8 KiB
Plaintext

<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>