浮动 ui-fixed

"usingComponents": {
    "ui-fixed": "mp-cu/colorUI/components/ui-fixed/ui-fixed"
}

示例

<ui-fixed bg="bg-mask-20" scrollTop="0">
    <view class="flex-center p-5">Top</view>
</ui-fixed>
<ui-fixed bg="bg-red" sticky scrollTop="0">
    <view class="flex-center p-5">sticky</view>
</ui-fixed>

参数

参数类型可选值默认值说明
uiString--其他class
bgString-bg-none背景颜色
noNavBoolean-false-
noSafeBoolean-false-
bottomBoolean-false固定底部
valNumber-0-
widthNumber/String-0宽度
opacityBoolean-false透明
opacityValNumber-0透明值
zIndexNumber/String-0层级
placeholderBoolean-false-
stickyBoolean-false吸顶
noFixedBoolean-false-
clickToBoolean-false-
scrollTopNumber/String-0页面滚动位置

mp-cu

上次更新: