2020-12-27 21:32:43 +00:00
|
|
|
import { defineComponent } from 'vue';
|
2020-05-27 13:57:57 +00:00
|
|
|
import './Button.scss';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
|
|
name: 'sb-button',
|
|
|
|
|
|
|
|
inheritAttrs: false,
|
|
|
|
|
|
|
|
setup(props, context) {
|
|
|
|
return () => (
|
|
|
|
<button
|
|
|
|
{...{
|
2020-12-30 01:32:46 +00:00
|
|
|
...context.attrs,
|
|
|
|
class: (context.attrs.class || '') + ' sb-button',
|
2020-05-27 13:57:57 +00:00
|
|
|
}}
|
|
|
|
>
|
|
|
|
{context.slots.default()}
|
|
|
|
</button>
|
|
|
|
);
|
|
|
|
},
|
|
|
|
});
|