
Security News
GPT-6 Astra Attempts Supply Chain Attacks Against Open Source Maintainers in Testing
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.
@daflow-ui/ui-pagination
Advanced tools
基于 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>
| 属性 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| currentPage | number | 1 | 当前页码(支持 v-model:current-page) |
| pageSize | number | 10 | 每页显示条数 |
| total | number | 0 | 总数据条数 |
| 事件 | 参数 | 说明 |
|---|---|---|
| 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 # 包配置
MIT
FAQs
Pagination component for DaFlow UI
The npm package @daflow-ui/ui-pagination receives a total of 6 weekly downloads. As such, @daflow-ui/ui-pagination popularity was classified as not popular.
We found that @daflow-ui/ui-pagination demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.

Product
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.

Security News
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.