From c06c4272e5a86095a4fefee84a9c24becc280897 Mon Sep 17 00:00:00 2001 From: yanyilin Date: Fri, 15 Sep 2023 17:20:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=20=E8=B0=83=E6=95=B4INode?= =?UTF-8?q?=E4=B8=BAElemen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/template/scroll-fold-nav/scroll-fold-nav.uvue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/template/scroll-fold-nav/scroll-fold-nav.uvue b/pages/template/scroll-fold-nav/scroll-fold-nav.uvue index 5dc83f13..3ab34eee 100644 --- a/pages/template/scroll-fold-nav/scroll-fold-nav.uvue +++ b/pages/template/scroll-fold-nav/scroll-fold-nav.uvue @@ -41,17 +41,17 @@ statusBarHeight: 35, scrollTop: 0, searchWidth: 700, - searchNode: null as INode | null, - boxNode: null as INode | null, - navNode: null as INode | null + searchNode: null as Element | null, + boxNode: null as Element | null, + navNode: null as Element | null } }, onLoad() { }, onReady() { this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight ?? 35; - this.searchNode = this.$refs['search'] as INode; - this.boxNode = this.$refs['top-box'] as INode; - this.navNode = this.$refs['scroll-fold-nav'] as INode; + this.searchNode = this.$refs['search'] as Element; + this.boxNode = this.$refs['top-box'] as Element; + this.navNode = this.$refs['scroll-fold-nav'] as Element; }, methods: { onScroll(e : ScrollEvent) { -- GitLab