@flywheel-io/vision

中文文档
22.3.0发布于 2026/11/13MITTypeScriptES Module近 30 天下载 5568

Flywheel UI elements provided as Angular components and native web components

原始使用文档

Vision Component Library

NPM Version storybook badge gitlab badge figma badge slack badge jira badge

Vision is Flywheel's Design System with the goal of unifying the look and feel of all applications throughout Flywheel. This is a collection of scss styles and angular components for aiding and simplifying frontend work.

Installation

To use vision first install it from npm

$ npm install --save @flywheel-io/vision

Then you need to do some scss setup, in your global scss stylesheet add:

@use '@flywheel-io/vision' as vision;

@include vision.icons; // adds the icon font face and glyph classes
@include vision.colors; // defines the colors vision relies on

// optional inclusions
@include vision.mat-theme; // uses the vision angular material theme
@include vision.global-typography; // adds global styles for text elements

For more info on colors and theming check out the colors docs

And just like that, you're ready to use vision! 🥳

Using Components

Vision components are standalone: import the ones you use into the imports of the component that uses them

import { FwAlertComponent } from '@flywheel-io/vision';

@Component({
  imports: [
    FwAlertComponent,
    ...anyOtherFwComponentsYouMightNeed,
  ],
  ...

Then add it to your html

<fw-alert description="Look I'm an alert"></fw-alert>

For more details on using specific components, including their class name and selector, you can check out its docs page in the storybook

版本与发布记录

@flywheel-io/vision 共发布 236 个版本,首次发布于 2021/06/30;过去 12 个月发布了 103 个版本。

版本发布日期距今
22.3.0latest2026/11/132 天前
22.3.2-branch.FLYW-58589-menu-filter-title-updates.b3a53835.0branch-preview2026/11/132 天前
22.2.02026/11/106 天前
22.1.32026/11/069 天前
22.1.3-branch.VDS-298-Design-Docs-Table.25b96bd8.02026/10/2719 天前
22.1.22026/10/2720 天前

其他发布通道:next → 21.2.1-beta.1,CI_COMMIT_BRANCH → 21.8.1-branch.vision-beta-publishing.32093d54.0,false → 21.8.5,branch-preview → 22.3.2-branch.FLYW-58589-menu-filter-title-updates.b3a53835.0。

关于 @flywheel-io/vision 的常见问题

@flywheel-io/vision 是什么?

Flywheel UI elements provided as Angular components and native web components

如何安装 @flywheel-io/vision?

在项目目录运行 npm install @flywheel-io/vision,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@angular/cdk(^22.0.0)、@angular/aria(^22.2.0)、@angular/core(^22.0.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@flywheel-io/vision 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@flywheel-io/vision 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@flywheel-io/vision 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js ^22.22.3 || ^24.15.0 || >=26.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@flywheel-io/vision 可以商用吗?

@flywheel-io/vision 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@flywheel-io/vision 的下载量有多少?

根据 npm 官方下载统计,@flywheel-io/vision 在 2026/10/15 – 2026/11/13 这 30 天内被下载 5,568 次,日均约 186 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@flywheel-io/vision 还在维护吗?

最新版本 22.3.0 发布于 2026/11/13(2 天前);至今共发布 236 个版本,其中过去 12 个月发布了 103 个;首次发布于 2021/06/30。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。