Files
mixtape/zero.Backoffice.UI/app/components/ui-icon-button.vue
T

43 lines
907 B
Vue
Raw Normal View History

2020-04-07 00:11:35 +02:00
<template>
2021-12-23 08:38:01 +01:00
<button type="button" class="ui-icon-button" :disabled="disabled" :class="'type-' + type.split(' ').join(' type-')" @click="$emit('click', $event)" v-localize:title="title">
2020-04-07 00:11:35 +02:00
<span class="sr-only" v-localize="title"></span>
2021-02-05 13:00:42 +01:00
<ui-icon class="ui-button-icon" :symbol="icon" :size="size" :stroke="stroke" />
2020-04-07 00:11:35 +02:00
</button>
</template>
<script>
export default {
name: 'uiIconButton',
2021-12-23 08:38:01 +01:00
emits: ['click'],
2020-04-07 00:11:35 +02:00
props: {
state: {
type: String,
default: 'default'
},
icon: {
type: String,
default: 'fth-arrow-left'
},
2021-02-05 13:00:42 +01:00
stroke: {
type: Number,
default: 2
},
2020-04-10 18:36:56 +02:00
type: {
type: String,
default: 'action'
},
2020-04-07 00:11:35 +02:00
title: {
type: String,
2020-10-15 14:10:04 +02:00
default: ''
2020-04-07 00:11:35 +02:00
},
2021-01-20 15:54:12 +01:00
size: {
type: Number,
2021-03-10 16:17:10 +01:00
default: 14
2021-01-20 15:54:12 +01:00
},
2020-05-20 13:15:20 +02:00
disabled: Boolean
2020-04-07 00:11:35 +02:00
}
}
</script>