2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 15:50:56 +00:00
books/ui/components/Button.vue

9 lines
262 B
Vue
Raw Normal View History

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