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

@ace-org/ui

v2.2.1

Published

ACE 平台自研组件库 — 业务场景导向,框架中立

Readme

@ace/ui

ACE 平台自研组件库 — 业务场景导向,框架中立。

安装

npm install @ace/ui

使用

1. 引入样式

在业务工程的入口文件(如 main.ts)中:

import '@ace/ui/styles'

2. 使用组件

<template>
  <AppShell>
    <template #top>
      <ModuleSwitcher :modules="modules" v-model="currentModule" />
    </template>
    <template #sidebar>
      <DynamicSidebar :menus="menus" v-model="currentPage" />
    </template>
    <template #breadcrumb>
      <Breadcrumb :items="breadcrumbItems" />
    </template>
    <template #default>
      <!-- 业务页面内容 -->
    </template>
  </AppShell>
</template>

<script setup>
import { AppShell, ModuleSwitcher, DynamicSidebar, Breadcrumb } from '@ace/ui'
import { usePlatformAuth } from '@ace/ui/composables'

const { userModules, currentModule, currentModuleMenus, breadcrumbItems } = usePlatformAuth()
</script>

3. 使用组合式函数

import { usePlatformAuth } from '@ace/ui/composables'

const { userModules, currentModule, switchModule } = usePlatformAuth()

组件清单

基础组件(Primitive)

| 组件 | 说明 | |------|------| | Button | 按钮,支持 primary/secondary/danger/text/link 变体 |

模式组件(Pattern)

| 组件 | 说明 | |------|------| | AppShell | 应用外壳,全局导航布局容器 | | ModuleSwitcher | 模块切换器,顶部下拉面板 | | DynamicSidebar | 动态侧边栏,随模块切换的左侧菜单 | | Breadcrumb | 面包屑导航 | | Badge | 状态徽章,支持 outline/dot/pulse 变体 |

设计令牌(Token)

所有视觉属性通过 CSS Variables 定义,业务工程升级 @ace/ui 即自动继承最新 Token。

业务工程 禁止覆盖 Token 变量,只允许在业务组件中使用。

技术栈

  • Vue 3 + Composition API
  • TypeScript
  • CSS Variables(无 UI 框架依赖)
  • Vite 构建

约束

  • 禁止在业务工程中引入 Element Plus / Ant Design / Vuetify 等 UI 框架
  • 所有颜色必须使用 Token,禁止硬编码
  • 所有间距必须是 4px 的倍数
  • 业务样式必须使用 scoped