47 Star 323 Fork 4

jry/uview-plus

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
sticky.nvue 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
<template>
<view class="u-page">
<!-- <up-navbar
title="吸顶"
@leftClick="navigateBack"
safeAreaInsetTop
fixed
placeholder
></up-navbar> -->
<view class="u-demo-block">
<text class="u-demo-block__title">基础使用</text>
<up-text
type="content"
text="滚动页面,即可看到下方的按钮会吸顶。"
></up-text>
<!-- #ifdef APP-NVUE -->
<up-text
type="warning"
text="目前由于nvue的bug,设置sticky的top值无效。"
></up-text>
<!-- #endif -->
</view>
<up-sticky>
<up-button
text="吸顶按钮"
type="success"
></up-button>
</up-sticky>
<up-gap
height="1500px"
></up-gap>
<up-divider text="已到底部"></up-divider>
</view>
</template>
<script setup>
const navigateBack = () => {
uni.navigateBack()
}
</script>
<script>
import { mixin } from '@/uni_modules/uview-plus'
export default {
mixins: [mixin]
}
</script>
<style lang="scss">
.u-page {
}
</style>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jry/uview-plus.git
git@gitee.com:jry/uview-plus.git
jry
uview-plus
uview-plus
master

搜索帮助