# @genesiscommunitysuccess/cep-fast-plugin 中文文档

规范地址：https://npmcn.com/package/%40genesiscommunitysuccess/cep-fast-plugin/

版本：5\.0\.3
npm 元数据更新时间：2026-08-05T10:06:24.043Z
中文译文更新时间：2026-11-16T03:20:33.110Z
软件包许可：MIT

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%40genesiscommunitysuccess/cep-fast-plugin
原文对照：https://npmcn.com/package/%40genesiscommunitysuccess/cep-fast-plugin/?lang=original
项目主页：https://github.com/genesiscommunitysuccess/custom-elements-lsp
源码仓库：https://github.com/genesiscommunitysuccess/custom-elements-lsp

弃用说明：Package no longer supported\. Contact Support at https://www\.npmjs\.com/support for more info\.

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：18.2 kB，8 个文件
- 模块格式：CommonJS
- TypeScript 类型：未声明
- 运行依赖：2 个
- 首次发布：2023-11-10T08:50:43.498Z
- 最新版本发布：2024-02-14T13:52:18.098Z
- 近 30 天下载量：2707（2026-10-16 至 2026-11-14，npm 官方下载统计）
- 已发布版本数：13（近 12 个月 0 个）

## 中文简介

启用的 @ generation-communitysuccess/ custom- 要素- lsp 插件 [https://www.fast.design/ (中文(简体) )](https://www.fast.design/) 增强

## 安装

```sh
npm install @genesiscommunitysuccess/cep-fast-plugin
```

也可以使用：`pnpm add @genesiscommunitysuccess/cep-fast-plugin`、`yarn add @genesiscommunitysuccess/cep-fast-plugin`、`bun add @genesiscommunitysuccess/cep-fast-plugin`

## README

这个 [创世纪全球](https://genesis.global/) 社区成功倡议致力于开放资源选择技术,我们认为开放资源社区将从中受益.

[![NPM version](https://img.shields.io/npm/v/@genesiscommunitysuccess/cep-fast-plugin)](https://www.npmjs.com/package/@genesiscommunitysuccess/cep-fast-plugin) [![License](https://img.shields.io/github/license/genesiscommunitysuccess/custom-elements-lsp)](https://github.com/genesiscommunitysuccess/custom-elements-lsp/blob/master/LICENSE)

# CEP 快速插件

这是一个 [@ 起源社区成功/ 定制元素- lsp](https://www.npmjs.com/package/@genesiscommunitysuccess/custom-elements-lsp) (CEP) 添加增强支持的插件 [快速](https://www.fast.design/)改进措施包括:

-   支持属性绑定 `:prop`。快速信息窗口中的额外信息.
-   支持模板中的布尔属性绑定 `?attr`。 。 。 .
-   支持事件绑定自动补全和诊断 `@events`。快速信息窗口中的额外信息.

![Property Binding Autocompletion](https://github.com/genesiscommunitysuccess/custom-elements-lsp/blob/master/docs/cep-fast-plugin/fast_property_binding.gif) 显示更多实例  
![Boolean Attribute Binding Autocompletion](https://github.com/genesiscommunitysuccess/custom-elements-lsp/blob/master/docs/cep-fast-plugin/fast_boolean_attr_binding.gif) ![Event Binding Autocompletion](https://github.com/genesiscommunitysuccess/custom-elements-lsp/blob/master/docs/cep-fast-plugin/fast_event_binding.gif) ![Quickinfo Extended Functionality](https://github.com/genesiscommunitysuccess/custom-elements-lsp/blob/master/docs/cep-fast-plugin/fast_quicklook.gif)  

## 设置

1.  您需要遵循 CEP 设置指南 [这里](https://www.npmjs.com/package/@genesiscommunitysuccess/custom-elements-lsp)。 。 。 .
2.  您需要安装此插件 .

```shell
npm i @genesiscommunitysuccess/cep-fast-plugin --save-dev
```

3.  您需要在 CEP 中配置此插件 。 见指示 [这里](https://www.npmjs.com/package/@genesiscommunitysuccess/custom-elements-lsp#fast-syntax)。 。 。 .

> 如果使用这个插件和您正在使用一个设计系统,您可能想要配置 `designSystemPrefix` 如主要指示所指明.

至少您需要以下配置才能启用 FAST 增强:

```json
{
  "compilerOptions": {
    "plugins": [
      {
        "name": "@genesiscommunitysuccess/custom-elements-lsp",
        "designSystemPrefix": "example",
        "parser": {
          "fastEnable": true,
        },
        "plugins": ["@genesiscommunitysuccess/cep-fast-plugin"]
      }
    ]
  }
}
```

## 捐款

感谢您有兴趣为自定义元素插件投稿 。 参见提交文件的准则(A/CN.9/WG.III/WP.III/WP.1和Corr.1)`CONTRIBUTING.md`)取于一心之根.

## 许可证

见 [这里](https://npmcn.com/package/%40genesiscommunitysuccess/cep-fast-plugin/LICENSE)。 。 。 .

## 常见问题

### @genesiscommunitysuccess/cep-fast-plugin 是什么？

启用的 @ generation-communitysuccess/ custom- 要素- lsp 插件 https://www\.fast\.design/ \(中文\(简体\) \) 增强注意：该包已被作者标记为弃用——Package no longer supported\. Contact Support at https://www\.npmjs\.com/support for more info\.

### 如何安装 @genesiscommunitysuccess/cep-fast-plugin？

在项目目录运行 npm install @genesiscommunitysuccess/cep-fast-plugin，或使用 pnpm add / yarn add / bun add。

### @genesiscommunitysuccess/cep-fast-plugin 支持 TypeScript 吗？

该包的 package\.json 没有声明类型入口。需要类型提示时，可以在 npm 上查找社区维护的 @types/genesiscommunitysuccess\_\_cep-fast-plugin 是否存在。

### @genesiscommunitysuccess/cep-fast-plugin 支持 ESM 还是 CommonJS？

以 CommonJS 形式发布，可以直接 require\(\)；在 ES Module 项目中也可以用 import 引入（Node\.js 会把 module\.exports 作为默认导出）。

### @genesiscommunitysuccess/cep-fast-plugin 可以商用吗？

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

### @genesiscommunitysuccess/cep-fast-plugin 的下载量有多少？

根据 npm 官方下载统计，@genesiscommunitysuccess/cep-fast-plugin 在 2026/10/16 – 2026/11/14 这 30 天内被下载 2,707 次，日均约 90 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入，适合横向比较热度，不能直接等同于使用人数。

### @genesiscommunitysuccess/cep-fast-plugin 还在维护吗？

最新版本 5\.0\.3 发布于 2024/02/14（2 年前）；至今共发布 13 个版本，其中过去 12 个月发布了 0 个；首次发布于 2023/11/10。作者已将其标记为弃用，新项目建议寻找替代方案。

