Sticky 粘滞组件
使用 fixed 的原理设计,解决
sticky
的适配问题。
引入
import {Sticky} from 'wwz-ui'
预览
API
参数
说明
类型
默认值
distance
距离浏览器顶部的距离,接收 String 类型的数字,单位是 px
String
0
Last updated
Was this helpful?
使用 fixed 的原理设计,解决
sticky
的适配问题。
import {Sticky} from 'wwz-ui'
distance
距离浏览器顶部的距离,接收 String 类型的数字,单位是 px
String
0
Last updated
Was this helpful?