add nova
This commit is contained in:
33
nova/resources/js/components/CancelButton.vue
Normal file
33
nova/resources/js/components/CancelButton.vue
Normal file
@@ -0,0 +1,33 @@
|
||||
<template>
|
||||
<LinkButton
|
||||
v-bind="{ size, align, ...$props, ...$attrs }"
|
||||
type="button"
|
||||
:component="component"
|
||||
>
|
||||
<slot>
|
||||
{{ __('Cancel') }}
|
||||
</slot>
|
||||
</LinkButton>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
size: {
|
||||
type: String,
|
||||
default: 'lg',
|
||||
},
|
||||
|
||||
align: {
|
||||
type: String,
|
||||
default: 'center',
|
||||
validator: v => ['left', 'center'].includes(v),
|
||||
},
|
||||
|
||||
component: {
|
||||
type: String,
|
||||
default: 'button',
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user