2
0
mirror of https://github.com/frappe/books.git synced 2024-09-20 19:29:02 +00:00
books/ui/components/Button.vue
Faris Ansari 180845aa0c Child Table
- Remove rows button
- Update frappe-datatable to 1.1.1
2018-07-09 18:29:51 +05:30

9 lines
272 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>