npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

c-bottom-fixed

v1.0.5

Published

uniapp项目,底部按钮,菜单,自定义样式

Readme

npm下载量:downloads

欢迎使用 c-bottom-fixed

安装

// npm安装方式,插件市场导入无需执行此命令。插件市场导入地址:https://ext.dcloud.net.cn/plugin?id=23103
npm i c-bottom-fixed

使用方法

<template>
    <view class="box">
        <c-bottom-fixed ref="bottomFixed">
			<template #box>
				<view class="" style="height: 100vh;background-color: #fff;">
					666
				</view>
			</template>
			<template #bottom>
				<view class="" style="display: flex;padding: 30rpx;" v-if="showBottom">
					<button>按钮1</button>
					<button>按钮2</button>
					<button>按钮3</button>
				</view>
			</template>
		</c-bottom-fixed>
    </view>
</template>

<script>
	// 以下导入方式按照安装方式导入,二选一
	// 插件市场导入方法:无需引入,可直接使用
	// npm导入方法如下:
	import cBottomFixed from "c-bottom-fixed/components/c-bottom-fixed/c-bottom-fixed.vue";
    export default {
		// npm导入需要添加components,插件市场导入不需要
        components: {
            cBottomFixed
        },
        data() {
            return {
                showBottom: false
            }
        },
		onLoad() {
			this.getData();
		},
		methods: {
			// 模拟请求调用
			getData() {
				setTimeout(() => {
					this.showBottom = true;
					this.$nextTick(function() {
						// 底部已经完全显示出来
						this.$refs.bottomFixed.getBottom();
					})
				}, 3000)
			}
		}
    }
</script>

API

Props

|参数|说明|类型|默认值|可选值| |--|--|--|--|--| |safe-area-inset-bottom|是否开启底部安全区适配,c-bottom-fixed外层没有设置,需要开启|Boolean|false|true| |box-style|盒子样式|Object|{}|-| |bottom-bg|底部背景色|String|#fff|-| |bottom-shadow|底部阴影|String|0 -2rpx 20rpx -16rpx rgba(0, 0, 0, 0.3)|-| |bottom-zindex|底部层级|Number|10|-| |bottom-style|底部样式|Object|{}|-| |box-bottom-gap|盒子和底部之间的间隙,单位rpx|String|Number|20|-|

Methods,需要通过ref手动调用

|事件名|说明|回调参数| |--|--|--| |getBottom|底部盒子内容变化时调用|-|