mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-18 02:07:14 +00:00
37 lines
589 B
Vue
37 lines
589 B
Vue
<template>
|
|
<button :style="{color: color, borderColor: color}" :class="{rounded: rounded}" class="wr-button" @click="handleClick">
|
|
<slot />!
|
|
</button>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props: {
|
|
rounded: {
|
|
type: Boolean,
|
|
default: false
|
|
},
|
|
handleClick: {
|
|
type: Function,
|
|
default: () => () => null
|
|
},
|
|
color: {
|
|
type: String,
|
|
default: '#42b983'
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
.rounded {
|
|
border-radius: 10px;
|
|
}
|
|
.wr-button {
|
|
border: 3px solid;
|
|
padding: 10px 20px;
|
|
background-color: white;
|
|
outline: none;
|
|
}
|
|
</style>
|