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 🙏

© 2026 – Pkg Stats / Ryan Hefner

zx-group

v1.0.0

Published

基于 [uni-group](https://uniapp.dcloud.net.cn/component/uniui/uni-group.html) 实现的分组容器,支持 H5、小程序、App,适用于表单、内容分区等场景。

Downloads

1

Readme

zx-group 组件

基于 uni-group 实现的分组容器,支持 H5、小程序、App,适用于表单、内容分区等场景。

组件特性

  • 支持主标题、分组间隔、卡片模式
  • 支持自定义标题插槽
  • 兼容多端(H5/小程序/App)
  • 使用 Vue3 <script setup> 语法

属性(Props)

| 属性名 | 类型 | 默认值 | 说明 | | -------- | ---------------- | --------- | -------------------------- | | title | String | '' | 分组主标题 | | top | Number/String | 10 | 分组与上方间隔(单位px) | | mode | String | 'default' | 分组模式,card为卡片模式 | | stat | Boolean | false | 是否开启uni统计(可选) |

插槽(Slots)

| 名称 | 说明 | | ------ | -------------- | | title | 自定义标题内容 | | 默认 | 分组内容区域 |

基本用法

<zx-group title="基础分组" top="20">
  <view>分组内容1</view>
  <view>分组内容2</view>
</zx-group>

卡片模式

<zx-group title="卡片分组" mode="card" top="20">
  <view>卡片分组内容1</view>
  <view>卡片分组内容2</view>
</zx-group>

自定义标题插槽

<zx-group :top="30">
  <template #title>
    <view style="color: #007AFF; font-weight: bold;">自定义标题插槽</view>
  </template>
  <view>自定义标题内容1</view>
  <view>自定义标题内容2</view>
</zx-group>

组件引入

import zxGroup from '@/components/zx-group/zx-group.vue';

注意事项

  • 示例需在 uni-app 项目中运行。
  • 如需统计功能,需配合 uni.report 使用。

参考文档