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

@oneflowui/ui

v0.1.0

Published

OneFlow UI Component Library - Vue3 components for task management views

Downloads

21

Readme

OneFlow UI

OneFlow 设计系统组件库,基于 Vue 3 + TypeScript 构建。

安装

# pnpm(推荐)
pnpm add oneflow-ui

# npm
npm install oneflow-ui

# yarn
yarn add oneflow-ui

开发与测试

# 启动开发环境(固定端口 5174)
npm run dev

# 类型检查
npm run type-check

# 集成测试
npm run test

全局注册

import { createApp } from 'vue'
import App from './App.vue'
import OneflowUI from 'oneflow-ui'
import 'oneflow-ui/styles'

const app = createApp(App)
app.use(OneflowUI)
app.mount('#app')

按需引入

import { DetailLayout, PropPanel, DataTable } from 'oneflow-ui'
import 'oneflow-ui/styles'

样式引入

// 在入口文件引入 CSS 变量和基础样式
import 'oneflow-ui/styles'

组件示例

KanbanBoard

<KanbanBoard
  :columns="[
    { id: 'todo', title: '待处理', color: '#64748B', tasks: [] },
    { id: 'in_progress', title: '进行中', color: '#2563EB', tasks: [] },
  ]"
  @task-click="onTaskClick"
  @add-task="onAddTask"
/>

<!-- 或者使用 DataRecord 配置泳道字段 -->
<KanbanBoard
  :records="records"
  kanban-field-id="stage"
  :lane-order="['todo', 'doing', 'done']"
  :lane-titles="{ todo: '待处理', doing: '进行中', done: '已完成' }"
/>

DataTable

<DataTable
  :columns="[
    { key: 'title', label: '标题', width: 'fill' },
    { key: 'status', label: '状态', width: 120 },
    { key: 'priority', label: '优先级', width: 100 },
  ]"
  :rows="tasks"
  @row-click="onRowClick"
/>

GalleryView

<GalleryView
  :items="galleryItems"
  @card-click="onCardClick"
/>

<!-- 或者使用 DataRecord 配置封面字段 -->
<GalleryView
  :records="records"
  cover-field-id="coverUrl"
  :card-field-ids="['assignee', 'priority']"
/>

GanttTimeline

<GanttTimeline
  :items="ganttItems"
  :start-date="'2026-01-01'"
  :end-date="'2026-12-31'"
  @item-click="onItemClick"
/>

DetailLayout

<DetailLayout
  :task="currentTask"
  v-model:description-content="detailDescription"
  :description-editable="true"
  :comments="comments"
  :prop-items="[
    { key: '状态', value: '进行中' },
    { key: '优先级', value: 'P1' },
    { key: '负责人', value: '张三' },
    { key: '截止日期', value: '2026-06-30' },
  ]"
/>

CodeBlock

<CodeBlock
  language="typescript"
  :code="sourceCode"
/>

集成测试覆盖(Task 2.4)

  • 三层数据模型:TableSchema + DataRecord + ViewConfig 联动可用
  • Table + Detail:表格点击事件与详情渲染链路可用
  • Dashboard 甘特图:空态/有数据态渲染与点击事件可用

对应测试文件:

  • src/tests/three-layer-model.integration.spec.ts
  • src/tests/table-detail.integration.spec.ts
  • src/tests/gantt.integration.spec.ts