lg_frontend/components/smallCommon/CusButton3.vue

61 lines
936 B
Vue

<template>
<div class="cusbutton" @click="$emit('click')" :class="{ flex, selected }">
<slot></slot>
</div>
</template>
<script>
export default {
name: "CusButton3",
props: {
flex: {
type: Boolean,
default: false
},
selected: {
type: Boolean,
default: false
}
}
}
</script>
<style scoped lang="less">
.cusbutton {
display: inline-block;
border-radius: 2.56px;
border: 1.28px solid rgba(56, 159, 255, 1);
padding: 10px 13px;
/** 文本1 */
font-size: 16px;
font-weight: 400;
letter-spacing: 0px;
color: rgba(35, 209, 232, 1);
text-align: center;
vertical-align: top;
cursor: pointer;
&.flex {
flex: 1;
}
&.selected {
background: rgba(45, 205, 255, 1);
color:rgba(8, 37, 63, 1);
}
&:hover {
background: rgba(45, 205, 255, 1);
color:rgba(8, 37, 63, 1);
}
}
</style>