mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2026-01-16 00:57:09 +08:00
91 lines
1.8 KiB
Vue
91 lines
1.8 KiB
Vue
<template>
|
|
<span class="gi-more-icon-wrap">
|
|
<span class="gi-more-icon">
|
|
<i class="block block-top"></i>
|
|
<i class="block block-bottom"></i>
|
|
</span>
|
|
</span>
|
|
</template>
|
|
|
|
<script lang="ts" setup></script>
|
|
|
|
<style lang="scss" scoped>
|
|
.gi-more-icon-wrap {
|
|
position: relative;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
|
|
&::before {
|
|
content: '';
|
|
width: 26px;
|
|
height: 26px;
|
|
position: absolute;
|
|
left: -6px;
|
|
top: -6px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.gi-more-icon {
|
|
display: inline-block;
|
|
color: var(--color-text-2);
|
|
cursor: pointer;
|
|
transition: transform 0.3s ease-out;
|
|
|
|
.block {
|
|
position: relative;
|
|
display: block;
|
|
width: 14px;
|
|
height: 6px;
|
|
|
|
// &.block-top:before {
|
|
// transition: transform 0.3s ease-out 0.3s;
|
|
// }
|
|
&.block-bottom {
|
|
margin-top: 2px;
|
|
}
|
|
}
|
|
|
|
.block:before {
|
|
position: absolute;
|
|
left: 0;
|
|
width: 6px;
|
|
height: 6px;
|
|
content: '';
|
|
background: var(--color-text-3);
|
|
}
|
|
|
|
.block:after {
|
|
position: absolute;
|
|
left: 8px;
|
|
width: 6px;
|
|
height: 6px;
|
|
content: '';
|
|
background: var(--color-text-3);
|
|
}
|
|
}
|
|
}
|
|
|
|
.gi-more-icon-wrap:hover .gi-more-icon .block:first-child::before,
|
|
.arco-dropdown-open .gi-more-icon .block:first-child::before {
|
|
transform: rotate(45deg);
|
|
background: rgb(var(--primary-3));
|
|
}
|
|
|
|
.gi-more-icon-wrap:hover .gi-more-icon .block:before,
|
|
.arco-dropdown-open .gi-more-icon .block:before {
|
|
background: rgb(var(--primary-6));
|
|
}
|
|
|
|
.gi-more-icon-wrap:hover .gi-more-icon .block:after,
|
|
.arco-dropdown-open .gi-more-icon .block:after {
|
|
background: rgb(var(--primary-6));
|
|
}
|
|
|
|
.gi-more-icon-wrap:hover .gi-more-icon,
|
|
.arco-dropdown-open .gi-more-icon {
|
|
transform: rotate(90deg);
|
|
}
|
|
</style>
|