2
0
mirror of https://github.com/frappe/books.git synced 2024-12-26 12:28:12 +00:00
books/ui/components/Button.vue

8 lines
269 B
Vue
Raw Normal View History

2018-06-27 14:38:27 +00:00
<template functional>
<button type="button"
2018-07-14 17:52:34 +00:00
:class="['btn btn-sm', 'btn-' + Object.keys(props).find(key => ['primary', 'secondary', 'light', 'dark', 'danger'].includes(key))]"
2018-06-27 14:38:27 +00:00
v-bind="data.attrs"
v-on="listeners">
2018-06-27 14:38:27 +00:00
<slot></slot>
</button>
</template>