fix: 滚动内容与滚动条的层级问题

This commit is contained in:
unanmed 2025-02-22 15:05:32 +08:00
parent d6e0de28ab
commit 1e8600c080

View File

@ -455,6 +455,7 @@ export const Scroll = defineComponent<ScrollProps, {}, string, ScrollSlots>(
ref={content} ref={content}
onDown={down} onDown={down}
render={renderContent} render={renderContent}
zIndex={0}
> >
{slots.default?.()} {slots.default?.()}
</container-custom> </container-custom>
@ -465,6 +466,7 @@ export const Scroll = defineComponent<ScrollProps, {}, string, ScrollSlots>(
render={drawScroll} render={drawScroll}
onDown={downScroll} onDown={downScroll}
onUp={upScroll} onUp={upScroll}
zIndex={10}
></sprite> ></sprite>
</container> </container>
); );