Skip to content

@acrux/registry

shadcn-vue 组件 registry,以源码分发方式跨 app 复用 CMS / DataView / Actions 组件,消费端落地后仍可改源码。

占位内容

内容待补全。

Registry 端点

本站同域托管 registry JSON(版本 v0):

https://acrux.geektr.cloud/r/v0/{name}.json

消费

在消费端 components.json 配置命名空间:

jsonc
{
  "registries": {
    "@acrux": "https://acrux.geektr.cloud/r/v0/{name}.json"
  }
}

然后安装组件(基础 shadcn 依赖会自动解析进消费端的 @/components/ui):

bash
npx shadcn-vue add @acrux/cms

当前 items

  • data-view — 详情/只读数据展示组件组(DataView/DataItem、CopyBtn/CopyTag、Link/Route、MultiLine、DateFormatter、JsonTextArea、EntitySelect、QrBtn)。
  • actions — 行内确认操作(ConfirmPopover + useConfirmPopover)。
  • cms — CRUD 页面外壳(PageEntry 列表壳、PageDetail 详情壳、BackButton、RemovalButton/RemovalPopover、useFormModel/useRemovalContext)。依赖 data-view,安装时自动一并拉取。