feat(castlove-preview): 透传 showSlider prop

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
zerosaturation 2026-07-06 17:53:04 +08:00
parent b0dcb82276
commit 851a8f6c43

View File

@ -7,6 +7,7 @@
gyro-source="simulation" gyro-source="simulation"
:approximate-preview="true" :approximate-preview="true"
tilt-hint-text="滑动卡片预览光栅效果" tilt-hint-text="滑动卡片预览光栅效果"
:show-slider="showSlider"
@simulate="simulate" @simulate="simulate"
/> />
</view> </view>
@ -25,6 +26,7 @@ const props = defineProps({
type: String, type: String,
default: '', default: '',
}, },
showSlider: { type: Boolean, default: false },
}) })
const lenticularLayers = ref(buildLenticularLayers(props.imageSrc || '')) const lenticularLayers = ref(buildLenticularLayers(props.imageSrc || ''))