mirror of
https://github.com/spark-store-project/spark-store-abyss
synced 2026-04-27 23:20:19 +08:00
feat: implement index section 1
Co-authored-by: xudeyu444 <xudeyu444@users.noreply.github.com> Co-authored-by: 奕 <a18355849597@outlook.com> Co-authored-by: Sylvanysc <Sylvanysc@users.noreply.github.com>
This commit is contained in:
6
app.vue
6
app.vue
@@ -1,6 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import ScrollPanel from "primevue/scrollpanel";
|
||||
import type { ComponentPublicInstance } from "vue";
|
||||
import Button from "primevue/button";
|
||||
|
||||
const path = computed(() => {
|
||||
return useRoute().path;
|
||||
@@ -13,6 +13,8 @@ const sWidth = ref(0);
|
||||
const sHeight = ref(0);
|
||||
const mounted = ref(false);
|
||||
|
||||
provide("scrollPanel", scrollPanel);
|
||||
|
||||
const handleScrollOrResize = () => {
|
||||
const navEl = document.querySelector("header nav");
|
||||
const el = document.querySelector("header .active");
|
||||
@@ -117,7 +119,7 @@ header {
|
||||
right: 0;
|
||||
transform: translateX(calc(var(--s-progress) * 12 * var(--spacing)));
|
||||
width: calc(100% - var(--s-progress) * 24 * var(--spacing));
|
||||
border-radius: calc(var(--s-progress) * 6 * var(--spacing));
|
||||
border-radius: calc(var(--s-progress) * 4 * var(--spacing));
|
||||
height: 100%;
|
||||
background-color: #fff;
|
||||
z-index: -1;
|
||||
|
||||
Reference in New Issue
Block a user