24 lines
410 B
TypeScript
24 lines
410 B
TypeScript
|
import { defineComponent } from '@vue/composition-api';
|
||
|
|
||
|
import './Button.scss';
|
||
|
|
||
|
export default defineComponent({
|
||
|
name: 'sb-button',
|
||
|
|
||
|
inheritAttrs: false,
|
||
|
|
||
|
setup(props, context) {
|
||
|
return () => (
|
||
|
<button
|
||
|
class="sb-button"
|
||
|
{...{
|
||
|
attrs: context.attrs,
|
||
|
on: context.listeners,
|
||
|
}}
|
||
|
>
|
||
|
{context.slots.default()}
|
||
|
</button>
|
||
|
);
|
||
|
},
|
||
|
});
|