2022-04-15 14:24:30 +00:00
|
|
|
<template>
|
|
|
|
<span class="btn-group">
|
2022-07-07 18:05:46 +00:00
|
|
|
<slot></slot>
|
2022-04-15 14:24:30 +00:00
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
|
2022-08-10 14:56:01 +00:00
|
|
|
<style lang="scss" scoped>
|
2022-04-15 14:24:30 +00:00
|
|
|
.btn-group {
|
2022-10-24 16:43:31 +00:00
|
|
|
--radius: 5px;
|
2022-07-16 09:52:39 +00:00
|
|
|
|
2022-04-15 14:24:30 +00:00
|
|
|
display: flex;
|
|
|
|
position: relative;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
2022-08-10 14:56:01 +00:00
|
|
|
::v-deep(button) {
|
2022-04-15 14:24:30 +00:00
|
|
|
&:not(:first-child) {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:first-of-type {
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
2022-07-16 09:52:39 +00:00
|
|
|
border-top-left-radius: var(--radius);
|
|
|
|
border-bottom-left-radius: var(--radius);
|
2022-04-15 14:24:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:last-of-type {
|
2022-07-16 09:52:39 +00:00
|
|
|
border-top-right-radius: var(--radius);
|
|
|
|
border-bottom-right-radius: var(--radius);
|
2022-04-15 14:24:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-08-10 14:56:01 +00:00
|
|
|
&[uppercased] ::v-deep(button) {
|
2022-04-15 14:24:30 +00:00
|
|
|
text-transform: uppercase;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|