This commit is contained in:
2025-05-12 19:45:27 +08:00
parent 2e9c403632
commit ce0587d2b6
47 changed files with 1355 additions and 310 deletions

View File

@@ -1,9 +1,14 @@
<script setup>
const {active} = defineProps({
active: {
type: Boolean,
default: false,
}
});
</script>
<template>
<view class="!py-[14rpx] !px-[24rpx] text">
<view :class="['!py-[14rpx] !px-[24rpx] text', active ? 'active' : '']">
<slot></slot>
</view>
</template>
@@ -16,5 +21,11 @@
line-height: 140%;
letter-spacing: 0;
text-align: left;
background-color: #fff;
transition: 500ms;
}
.active {
background-color: rgba(106, 161, 255, 0.2);
}
</style>