54 lines
859 B
Vue
54 lines
859 B
Vue
<template>
|
|
<woot-button
|
|
size="expanded"
|
|
color-scheme="primary"
|
|
class-names="submit--button"
|
|
:is-disabled="isDisabled"
|
|
:is-loading="isLoading"
|
|
@click="onClick"
|
|
>
|
|
{{ label }}
|
|
<fluent-icon :icon="icon" size="18" />
|
|
</woot-button>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props: {
|
|
label: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
icon: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
isDisabled: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
isLoading: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
},
|
|
methods: {
|
|
onClick() {
|
|
this.$emit('click');
|
|
},
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.submit--button {
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
&::v-deep .button__content {
|
|
align-items: center;
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
</style>
|