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

@daflow-ui/ui-pagination

v0.1.0

Published

Pagination component for DaFlow UI

Readme

@daflow-ui/pagination

基于 Ark UI 封装的 Pagination 组件(单体组件包),支持 v-model、页码跳转、禁用状态等功能。

💡 单体组件设计:独立发布、按需升级,避免"组件库"的整体升级障碍

📦 安装

npm install @daflow-ui/pagination
# or
pnpm add @daflow-ui/pagination

🚀 快速开始

全局引入样式(在 main.ts 中):

import '@daflow-ui/pagination/style.css'

在组件中使用:

<script setup lang="ts">
import { ref } from 'vue'
import { DfPagination } from '@daflow-ui/pagination'

const currentPage = ref(1)

const handlePageChange = (page: number) => {
  console.log('当前页:', page)
}
</script>

<template>
  <DfPagination
    v-model:current-page="currentPage"
    :page-size="10"
    :total="100"
    @current-change="handlePageChange"
  />
</template>

📖 API

DfPagination Props

| 属性 | 类型 | 默认值 | 说明 | |------|------|--------|------| | currentPage | number | 1 | 当前页码(支持 v-model:current-page) | | pageSize | number | 10 | 每页显示条数 | | total | number | 0 | 总数据条数 |

DfPagination Events

| 事件 | 参数 | 说明 | |------|------|------| | current-change | (page: number) | 页码改变时触发 |

📝 文档

组件文档(本仓库)

开发规范

本组件遵循 DaFlow UI 组件库的统一开发规范。

📖 通用开发规范:(TODO: 添加在线文档链接或规范仓库 URL)

🛠️ 本地开发

# 安装依赖
pnpm install

# 启动开发环境(playground 使用源码,支持热更新)
pnpm dev

# 代码检查
pnpm lint
pnpm typecheck

# 构建产物
pnpm build

# 发布前检查(自动执行 lint + typecheck + build)
pnpm prepublishOnly

🏗️ 项目结构

ui-pagination/
├── src/                 # 组件源码
│   ├── index.ts        # 入口(对外导出 DfPagination)
│   ├── Pagination.vue  # Pagination 组件
│   ├── types.ts        # 类型定义
│   └── style.css       # 样式
├── playground/         # 开发预览
├── docs/              # 组件文档
├── dist/              # 构建产物(发布到 npm)
└── package.json       # 包配置

📄 License

MIT