diff --git a/pages/template/scroll-fold-nav/scroll-fold-nav.uvue b/pages/template/scroll-fold-nav/scroll-fold-nav.uvue index 5dc83f133c5bbf43f74152f287b8013e336e411d..3ab34eee7eca454ef427fcd35c4b3b96ac8c5b2e 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) {