2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 15:50:56 +00:00
books/ui/components/Button.vue
2018-07-14 20:22:43 +05:30

8 lines
277 B
Vue

<template functional>
<button type="button"
:class="['btn btn-sm', 'mr-2', 'btn-' + Object.keys(props).find(key => ['primary', 'secondary', 'light', 'dark', 'danger'].includes(key))]"
v-bind="data.attrs"
v-on="listeners">
<slot></slot>
</button>
</template>