@ember/legacy-built-in-components

中文文档
0.5.0发布于 2023/10/11MIT近 30 天下载 16.2万

Provides the legacy implementation of the Checkbox, LinkComponent, TextArea and TextField component classes as specified in RFC #671.

原始使用文档
文档目录6 节
  1. Compatibility
  2. Installation
  3. Usage
  4. Contributing
  5. Releasing
  6. License

@ember/legacy-built-in-components

Provides the legacy implementation of the Checkbox, LinkComponent, TextArea and TextField component classes as specified in RFC #671.

Compatibility

  • Ember.js v4.0 or above
  • Ember CLI v4.0 or above
  • Node.js v16 or above

Installation

ember install @ember/legacy-built-in-components

Usage

import {
  Checkbox,
  LinkComponent,
  TextArea,
  TextField
} from '@ember/legacy-built-in-components';

export const MyCheckbox = Checkbox.extend({ ... });
export const MyLink = LinkComponent.extend({ ... });
export const MyTextArea = TextArea.extend({ ... });
export const MyTextField = TextField.extend({ ... });

Contributing

See the Contributing guide for details.

Releasing

yarn
yarn run test
npx np --no-tests

License

This project is licensed under the MIT License.

版本与发布记录

@ember/legacy-built-in-components 共发布 8 个版本,首次发布于 2021/05/12;过去 12 个月发布了 0 个版本。

版本发布日期距今
0.5.0latest2023/10/113 年前
0.5.0-alpha.02023/09/303 年前
0.4.22023/02/073 年前
0.4.12022/04/054 年前
0.4.02021/11/234 年前
0.3.12021/11/115 年前

关于 @ember/legacy-built-in-components 的常见问题

@ember/legacy-built-in-components 是什么?

Provides the legacy implementation of the Checkbox, LinkComponent, TextArea and TextField component classes as specified in RFC #671.

如何安装 @ember/legacy-built-in-components?

在项目目录运行 npm install @ember/legacy-built-in-components,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:ember-source(>= 4.8)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@ember/legacy-built-in-components 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/ember__legacy-built-in-components 是否存在。

@ember/legacy-built-in-components 需要什么版本的 Node.js?

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

@ember/legacy-built-in-components 可以商用吗?

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

@ember/legacy-built-in-components 的下载量有多少?

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

@ember/legacy-built-in-components 还在维护吗?

最新版本 0.5.0 发布于 2023/10/11(3 年前);至今共发布 8 个版本,其中过去 12 个月发布了 0 个;首次发布于 2021/05/12。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。