2019-10-29 07:20:54 +00:00
|
|
|
<template>
|
|
|
|
<button
|
|
|
|
type="submit"
|
|
|
|
:disabled="disabled"
|
2021-11-18 09:48:51 +00:00
|
|
|
class="icon-button flex items-center justify-center ml-1"
|
2019-10-29 07:20:54 +00:00
|
|
|
@click="onClick"
|
|
|
|
>
|
2021-11-18 09:48:51 +00:00
|
|
|
<fluent-icon v-if="!loading" icon="send" :style="`color: ${color}`" />
|
2019-10-29 07:20:54 +00:00
|
|
|
<spinner v-else size="small" />
|
|
|
|
</button>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2019-12-11 15:27:06 +00:00
|
|
|
import Spinner from 'shared/components/Spinner.vue';
|
2021-11-18 09:48:51 +00:00
|
|
|
import FluentIcon from 'shared/components/FluentIcon/Index.vue';
|
2019-10-29 07:20:54 +00:00
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
2021-11-18 09:48:51 +00:00
|
|
|
FluentIcon,
|
2019-10-29 07:20:54 +00:00
|
|
|
Spinner,
|
|
|
|
},
|
|
|
|
props: {
|
|
|
|
loading: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false,
|
|
|
|
},
|
|
|
|
disabled: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false,
|
|
|
|
},
|
|
|
|
onClick: {
|
|
|
|
type: Function,
|
|
|
|
default: () => {},
|
|
|
|
},
|
2020-01-13 06:40:40 +00:00
|
|
|
color: {
|
|
|
|
type: String,
|
|
|
|
default: '#6e6f73',
|
|
|
|
},
|
2019-10-29 07:20:54 +00:00
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|