mirror of
https://github.com/youzan/vant.git
synced 2026-04-26 01:01:51 +08:00
add OrderGoods component
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<div class="van-order-goods-empty">
|
||||
<img :src="icon" />
|
||||
<p>{{ message }}</p>
|
||||
<van-button @click="onClickButton">{{ buttonText }}</van-button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Button from '../button';
|
||||
|
||||
export default {
|
||||
name: 'van-order-goods-empty',
|
||||
|
||||
components: {
|
||||
[Button.name]: Button
|
||||
},
|
||||
|
||||
props: {
|
||||
icon: String,
|
||||
message: String,
|
||||
buttonText: String
|
||||
},
|
||||
|
||||
methods: {
|
||||
onClickButton() {
|
||||
history.back();
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
Reference in New Issue
Block a user