From 4ac6aa4c972dae564c26e2111c07efd3490d94cd Mon Sep 17 00:00:00 2001 From: XHY Date: Fri, 19 Jul 2024 16:28:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20sticky-section=20=20?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B=E8=A6=86=E7=9B=96iOS=E7=9A=84=20[issues](htt?= =?UTF-8?q?ps://issues.dcloud.net.cn/pages/issues/detail=3Fid=3D2787)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/sticky-section/sticky-section.uvue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pages/component/sticky-section/sticky-section.uvue b/pages/component/sticky-section/sticky-section.uvue index 2d37fe68..4a6a4927 100644 --- a/pages/component/sticky-section/sticky-section.uvue +++ b/pages/component/sticky-section/sticky-section.uvue @@ -6,7 +6,10 @@ - + + + + @@ -34,7 +37,7 @@ export default { data() { return { - data: ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N'], + data: ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N'], sectionPadding: [0, 10, 0, 10] as Array, scrollIntoView: "", scrolling: false, @@ -94,6 +97,9 @@ {text: data.name+"--item--content----new5--"+this.appendId} as sectionListItem ] as sectionListItem[] data.list.unshift(...list) + }, + deleteSection() { + this.sectionArray.shift() } } } -- GitLab