2
0
mirror of https://github.com/frappe/books.git synced 2024-11-14 01:14:03 +00:00
books/ui/components/Button.vue
Prateeksha Singh 0d4cdb5a74 [init] dropdown
2018-07-16 08:49:02 +05:30

9 lines
270 B
Vue

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