优化
This commit is contained in:
parent
0f8f084787
commit
7a3a791b28
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="indicator-home">
|
||||
<div class="indicator-home" :class="isLight">
|
||||
<transition name="fade">
|
||||
<div class="mask" v-if="open" @click="open = false"></div>
|
||||
</transition>
|
||||
@ -66,6 +66,10 @@ export default {
|
||||
type: Number,
|
||||
default: () => 0
|
||||
},
|
||||
isLight: {
|
||||
type: Boolean,
|
||||
default: () => false
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@ -198,6 +202,11 @@ export default {
|
||||
color: white;
|
||||
height: @header-height;
|
||||
transition: all .3s;
|
||||
font-weight: bold;
|
||||
|
||||
&.isLight {
|
||||
color: black;
|
||||
}
|
||||
|
||||
.notice {
|
||||
opacity: 0;
|
||||
@ -236,7 +245,6 @@ export default {
|
||||
.tabs {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-weight: bold;
|
||||
|
||||
.tab {
|
||||
transition: color .3s;
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
<H v-model:index="state.baseIndex">
|
||||
<SlideItem>
|
||||
<IndicatorHome
|
||||
:isLight="state.subTypeVisible"
|
||||
v-if="!state.fullScreen"
|
||||
v-hide="state.isUp"
|
||||
:loading="state.loading"
|
||||
name="main"
|
||||
v-model:index="state.navIndex"
|
||||
@ -247,7 +247,6 @@ const state = reactive({
|
||||
isSharing: false,
|
||||
canMove: true,
|
||||
loading: false,
|
||||
isUp: false,
|
||||
|
||||
shareType: -1,
|
||||
|
||||
@ -446,7 +445,7 @@ function render(item, itemIndex, play, position) {
|
||||
transition: all .3s;
|
||||
font-size: 14rem;
|
||||
color: gray;
|
||||
background: linear-gradient(to right, rgb(36, 34, 84), rgb(7, 5, 16));
|
||||
background: #f9f9f9;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
@ -457,8 +456,7 @@ function render(item, itemIndex, play, position) {
|
||||
padding: 20rem;
|
||||
border-radius: 8rem;
|
||||
width: 100%;
|
||||
background: red;
|
||||
background: linear-gradient(to right, rgb(53, 51, 110), rgb(29, 21, 66));
|
||||
background: white;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user