mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
* fix: Tabbar icon line-height * [new feature] progress add showPivot prop * [new feature] TabItem support vue-router * [new feature] update document header style * [Doc] add toast english ducoment * [new feature] add i18n support * feat: Extract demos from markdown * feat: Base components demos * [new feature] complete demo extract & translate * [fix] text cases * fix: add deepAssign test cases * fix: changelog detail * [new feature] AddressEdit support i18n
53 lines
1012 B
Vue
53 lines
1012 B
Vue
<template>
|
|
<demo-section>
|
|
<demo-block :title="$t('basicUsage')">
|
|
<van-goods-action>
|
|
<van-goods-action-mini-btn icon="chat" @click="onClickMiniBtn">
|
|
客服
|
|
</van-goods-action-mini-btn>
|
|
<van-goods-action-mini-btn icon="cart" @click="onClickMiniBtn">
|
|
购物车
|
|
</van-goods-action-mini-btn>
|
|
<van-goods-action-big-btn @click="onClickBigBtn">
|
|
加入购物车
|
|
</van-goods-action-big-btn>
|
|
<van-goods-action-big-btn @click="onClickBigBtn" primary>
|
|
立即购买
|
|
</van-goods-action-big-btn>
|
|
</van-goods-action>
|
|
</demo-block>
|
|
</demo-section>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
i18n: {
|
|
'zh-CN': {
|
|
|
|
},
|
|
'en-US': {
|
|
|
|
}
|
|
},
|
|
|
|
methods: {
|
|
onClickMiniBtn() {
|
|
Toast('点击图标');
|
|
},
|
|
|
|
onClickBigBtn() {
|
|
Toast('点击按钮');
|
|
}
|
|
}
|
|
};
|
|
</script>
|
|
|
|
|
|
<style lang="postcss">
|
|
.demo-goods-action {
|
|
.van-goods-action {
|
|
position: relative;
|
|
}
|
|
}
|
|
</style>
|