feat: 修复itemwrap样式问题

master
LCJ-MinYa 11 months ago
parent 146ec24afb
commit a7a2e5e2e8

@ -1,16 +1,3 @@
<script setup lang="ts">
import BorderBox13 from '../datav/border-box-13';
const props = withDefaults(
defineProps<{
//
title: number | string;
}>(),
{
title: '',
}
);
</script>
<template> <template>
<BorderBox13> <BorderBox13>
<div <div
@ -22,15 +9,30 @@ const props = withDefaults(
<div class="you"></div> <div class="you"></div>
</div> </div>
<div :class="title !== '' ? 'item_title_content' : 'item_title_content_def'"> <div :class="title !== '' ? 'item_title_content' : 'item_title_content_def'">
<slot></slot></div <slot></slot>
></BorderBox13> </div>
</BorderBox13>
</template> </template>
<script setup lang="ts">
import BorderBox13 from '../datav/border-box-13';
const props = withDefaults(
defineProps<{
//
title: number | string;
}>(),
{
title: '',
}
);
</script>
<style scoped lang="scss"> <style scoped lang="scss">
$item-title-height: 38px; $item-title-height: 48px;
$item_title_content-height: calc(100% - 38px); $item_title_content-height: calc(100% - 60px);
.item_title { .item_title {
margin-top: 12px;
height: $item-title-height; height: $item-title-height;
line-height: $item-title-height; line-height: $item-title-height;
width: 100%; width: 100%;
@ -41,12 +43,13 @@ $item_title_content-height: calc(100% - 38px);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font-size: 18px;
.zuo, .zuo,
.you { .you {
width: 58px; width: 58px;
height: 14px; height: 14px;
background-image: url('@/assets/img/titles/zuo.png'); background-image: url('../../../img/titles/zuo.png');
} }
.you { .you {
@ -54,7 +57,7 @@ $item_title_content-height: calc(100% - 38px);
} }
.title-inner { .title-inner {
font-weight: 900; font-weight: 900;
letter-spacing: 2px; letter-spacing: 6px;
background: linear-gradient(92deg, #0072ff 0%, #00eaff 48.8525390625%, #01aaff 100%); background: linear-gradient(92deg, #0072ff 0%, #00eaff 48.8525390625%, #01aaff 100%);
-webkit-background-clip: text; -webkit-background-clip: text;
-webkit-text-fill-color: transparent; -webkit-text-fill-color: transparent;

Loading…
Cancel
Save