全屏纵向滑动

查看源码

属性参考

注册名 data-controller="slide-y"
Targets
Values
Outlets
结构示意:该组件依赖外部运行时或会在挂载时产生副作用, 下方用 <template> 展示真实 DOM 结构(不会被 Stimulus 连接)。 在具备条件的环境中去掉 <template> 包裹即可运行。

全屏纵向滑动(短视频式):继承 slide,按纵向手势切换 figure 的 z-index 与 top/bottom,实现上下翻页。文档站保留了早期的 /ui/swipe 示例。

<div data-controller="slide-y" data-slide-y-debug-value="false" class="slide-y">
  <figure data-action="touchmove->slide-y#move:passive touchend->slide-y#end:passive" data-index="0">
    <video src="01.mp4" controls></video>
  </figure>
</div>

.slide-y 的源码 bulma/expand/slide_y.scss 没有被 expand/_index.scss 转发,当前未编译进 application.css。完整例子见 /ui/swipe。