add GoodsAction component

This commit is contained in:
陈嘉涵
2017-08-31 19:36:37 +08:00
parent 415af2b40b
commit 8986da5ba6
14 changed files with 303 additions and 2 deletions
+32
View File
@@ -0,0 +1,32 @@
<template>
<van-button
tag="a"
:href="url"
class="van-goods-action__big-btn"
:type="primary ? 'primary' : 'default'"
@click="$emit('click', $event)"
bottomAction
>
<slot></slot>
</van-button>
</template>
<script>
import Button from '../button';
export default {
name: 'van-goods-action-big-btn',
components: {
[Button.name]: Button
},
props: {
primary: Boolean,
url: {
type: String,
default: 'javascript:;'
}
}
};
</script>