# @bigbinary/neeto-tags-frontend 中文文档

规范地址：https://npmcn.com/package/%40bigbinary/neeto-tags-frontend/

版本：2\.4\.0
npm 元数据更新时间：2026-11-03T06:32:56.065Z
中文译文更新时间：2026-11-08T01:58:07.034Z
软件包许可：UNLICENSED

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

原始 npm 页面：https://www.npmjs.com/package/%40bigbinary/neeto-tags-frontend
原文对照：https://npmcn.com/package/%40bigbinary/neeto-tags-frontend/?lang=original
项目主页：https://github.com/bigbinary/neeto-tags-nano

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

- 包体积（解压后）：1 MB，126 个文件
- 模块格式：ESM + CJS
- TypeScript 类型：包内自带
- Node.js 要求：\>=22\.13
- 运行依赖：3 个
- peer 依赖：qs 6\.16\.2，url 0\.11\.4，yup 0\.32\.11，antd 5\.22\.1，util ^0\.12\.5，axios 1\.20\.0，ramda 0\.29\.0，react 18\.3\.1，buffer ^6\.0\.3，formik 2\.4\.6，i18next 22\.5\.1，zustand 4\.4\.2，dompurify 3\.4\.17，js-logger 1\.6\.1，react-dom 18\.3\.1，classnames 2\.5\.1，stream-http 3\.2\.0，tailwindcss 3\.4\.14，lucide-react 0\.577\.0，react-helmet ^6\.1\.0，os-browserify 0\.3\.0，react-i18next 12\.3\.1，vm-browserify 1\.1\.2，@babel/runtime 7\.29\.7，react-toastify 8\.0\.2，tty-browserify 0\.0\.1，path-browserify ^1\.0\.1，https-browserify 1\.0\.0，mixpanel-browser ^2\.45\.0，react-router-dom 5\.3\.3，crypto-browserify 3\.12\.1，source-map-loader 4\.0\.1，stream-browserify ^3\.0\.0，@bigbinary/neetoui 8\.8\.3，@honeybadger-io/js 6\.10\.1，@bigbinary/neeto-cist 1\.0\.17，@honeybadger-io/react 6\.1\.25，@tanstack/react-query 5\.59\.20，@bigbinary/neeto-atoms 1\.1\.2，@bigbinary/neeto-icons 1\.20\.89，@bigbinary/neeto-hotkeys 1\.0\.9，@bigbinary/neeto-molecules 5\.9\.15，@tailwindcss/container-queries ^0\.1\.1，@tanstack/react-query-devtools 5\.59\.20，@bigbinary/neeto-commons-frontend 4\.14\.8，@bigbinary/neeto-filters-frontend 4\.6\.3
- 首次发布：2022-06-27T06:14:59.020Z
- 最新版本发布：2026-11-03T06:32:53.436Z
- 近 30 天下载量：37243（2026-10-08 至 2026-11-06，npm 官方下载统计）
- 已发布版本数：186（近 12 个月 48 个）

## 中文简介

一个回波作为新纳米结构,配置,数据等的真理来源.

## 安装

```sh
npm install @bigbinary/neeto-tags-frontend
```

也可以使用：`pnpm add @bigbinary/neeto-tags-frontend`、`yarn add @bigbinary/neeto-tags-frontend`、`bun add @bigbinary/neeto-tags-frontend`

## README

# 需要调教 - 不

这个 `neeto-tags-nano` 管理横跨 neto 应用程序的标签 。 纳米出口 页:1 `@bigbinary/neeto-tags-frontend` 国家防范机制一揽子计划 `@bigbinary/neeto-tags-playwright` Playwright 助手软件包,以及 `neeto-tags-engine` 铁路发展引擎.

# 目录

1.  [用主机应用程序开发](https://npmcn.com/package/%40bigbinary/neeto-tags-frontend/#readme-development-with-host-application)
    -   [发动机](https://npmcn.com/package/%40bigbinary/neeto-tags-frontend/#readme-engine)
        -   [安装](https://npmcn.com/package/%40bigbinary/neeto-tags-frontend/#readme-installation)
        -   [使用量](https://npmcn.com/package/%40bigbinary/neeto-tags-frontend/#readme-usage)
    -   [前端软件包](https://npmcn.com/package/%40bigbinary/neeto-tags-frontend/#readme-frontend-package)
        -   [安装](https://npmcn.com/package/%40bigbinary/neeto-tags-frontend/#readme-installation-1)
        -   [发展指示](https://npmcn.com/package/%40bigbinary/neeto-tags-frontend/#readme-instructions-for-development)
        -   [构成部分](https://npmcn.com/package/%40bigbinary/neeto-tags-frontend/#readme-components)
    -   [Playwright 帮助软件包](https://npmcn.com/playwright/README.md)
2.  [出版指令](https://npmcn.com/package/%40bigbinary/neeto-tags-frontend/#readme-instructions-for-publishing)

# 用主机应用程序开发

## 发动机

该引擎用于管理横跨neto产品的任何实体的标记.

### 安装

1.  将此行添加到您的应用程序的 Gemfile 中 :
    
    ```ruby
    source "NEETO_GEM_SERVER_URL" do
       # ..existing gems
    
       gem 'neeto-tags-engine'
    end
    ```
    
2.  然后执行:
    
    ```ruby
    bundle install
    ```
    
3.  将此行添加到您的应用程序 `config/routes.rb` 文件 :
    
    ```ruby
    mount NeetoTagsEngine::Engine, at: "/neeto_tags"
    ```
    
4.  运行以下命令以复制从引擎到主机的迁移 应用程序 :
    
    ```ruby
    bundle exec rails neeto_tags_engine:install:migrations
    ```
    
5.  添加迁移到数据库 :
    
    ```ruby
    bundle exec rails db:migrate
    ```
    

### 使用量

您可以在此了解更多设置和用途:

1.  [模型](https://npmcn.com/docs/engine/models.md)
2.  [主计长](https://npmcn.com/docs/engine/controllers.md)

## 前端软件包

该套件输出出三个组成部分: `NeetoTags`, (中文(简体) ), `Tags`,以及 `TagsDropdown`。 。 。 .

套件还输出出一钩: `refetchTags`。 。 。 .

### 安装

1.  `neeto-tags-nano` 拥有若干对等依赖关系,这些依附关系是: 软件包的正常运作。 使用 : 以下命令:
    
    ```zsh
    yarn add @bigbinary/neeto-commons-frontend@2.0.35 @bigbinary/neeto-icons@1.9.10 @bigbinary/neetoui@4.3.3 @honeybadger-io/js@5.1.1 @honeybadger-io/react@5.1.2 axios@1.3.3 classnames@2.3.2 formik@2.2.9 js-logger@1.6.1 ramda@0.28.0 react-helmet@6.1.0 react-query@3.39.3 react-router-dom@5.3.4 react-toastify@8.2.0 yup@1.0.0
    ```
    
2.  现在安装最新的 `neeto-tags-nano` 使用下列命令的软件包:
    
    ```zsh
    yarn add @bigbinary/neeto-tags-frontend
    ```
    

### 发展指示

检查 [前端软件包开发指南](https://neeto-engineering.neetokb.com/p/a-d34cb4b0) 用于开发前端软件包的分步指令.

### 构成部分

#### `NeetoTags` (单位:千美元)[源代码](https://github.com/bigbinary/neeto-tags-nano/blob/e61f7bd2b9cab9fbf29fcfecf57e66131c86e6ef/app/javascript/src/index.jsx)(中文(简体) )

这个组件提供一个仪表板来管理应用程序的标记.

##### 道具

-   `config`: 包含标签、 显示规格的配置对象 菜单和面包屑.

##### 配置

参见 [内托塔克](https://npmcn.com/docs/frontend/neeto_tags.md) 详细章节 现有配置信息 `NeetoTags` 组件.

##### 使用量

```jsx
import React from "react";

import { NeetoTags } from "@bigbinary/neeto-tags-frontend";

const App = () => {
  return <NeetoTags config={config} />;
};
export default App;
```

#### `Tags` (单位:千美元)[源代码](https://github.com/bigbinary/neeto-tags-nano/blob/e61f7bd2b9cab9fbf29fcfecf57e66131c86e6ef/app/javascript/src/components/Tags/index.jsx#L22)(中文(简体) )

这个组件提供了向一个实体分配标记的功能.

##### 配置

参见 [标记](https://npmcn.com/docs/frontend/tags.md) 详细信息 用于 `Tags` 组件.

##### 使用量

```jsx
import React from "react";

import { TagsComponent } from "@bigbinary/neeto-tags-frontend";

const App = ({
  allTags,
  buttonProps,
  selectProps,
  selectedTags,
  handleTagCreate,
  handleTagRemove,
  handleTagSelect,
}) => {
  return (
    <TagsComponent
      allTags={allTags}
      buttonProps={buttonProps}
      selectProps={selectProps}
      selectedTags={selectedTags}
      onTagCreate={handleTagCreate}
      onTagDelete={handleTagRemove}
      onTagSelect={handleTagSelect}
    />
  );
};

export default App;
```

#### `TagsDropdown` (单位:千美元)[源代码](https://github.com/bigbinary/neeto-tags-nano/blob/7dc828ba1d264f5ea694068c2acefdf50e0ab3a8/app/javascript/src/components/TagsDropdown/index.jsx)(中文(简体) )

此组件提供一个下拉面板来指定一个实体的标记 .

##### 配置

参见 [标记向下](https://npmcn.com/docs/frontend/tags_dropdown.md) 页:1 现有组合的详细信息 `TagsDropdown` 组件.

##### 使用量

```jsx
import React from "react";

import { TagsDropdown } from "@bigbinary/neeto-tags-frontend";

const App = ({
  isOpen,
  containerRef,
  allTags,
  selectedTags,
  tagType,
  manageAllTagsHref,
  handleRequestClose,
  handleTagCreate,
  handleTagDelete,
  handleTagSelect,
}) => {
  return (
    <TagsDropdown
      allTags={allTags}
      containerRef={containerRef}
      isOpen={isOpen}
      manageAllTagsHref={manageAllTagsHref}
      selectedTags={selectedTags}
      tagType={tagType}
      onRequestClose={handleRequestClose}
      onTagCreate={handleTagCreate}
      onTagDelete={handleTagDelete}
      onTagSelect={handleTagSelect}
    />
  );
};

export default App;
```

### 钩子

#### `refetchTags` (单位:千美元)[源代码](https://github.com/bigbinary/neeto-tags-nano/blob/e61f7bd2b9cab9fbf29fcfecf57e66131c86e6ef/app/javascript/src/hooks/useTagsApi.js#L39)(中文(简体) )

此函数重排标签列表 .

##### 使用量

以下例举使用 `refetchTags` 钩:

```js
const useBulkUpdateTickets = () =>
  useMutationWithInvalidation(
    ({ payload }) => ticketsApi.bulkUpdateTickets(payload),
    {
      keysToInvalidate: [
        [QUERY_KEYS.TICKETS_LIST],
        [QUERY_KEYS.TICKETS_DEFAULT_VIEWS],
        [QUERY_KEYS.TEAMS],
        ...REPORT_DATA_KEYS_TO_INVALIDATE,
      ],
      onSuccess: () => {
        refetchTags();
      },
    }
  );
```

用于 [必须去德士克](https://github.com/bigbinary/neeto-desk-web/blob/5ba3471deae047bc9d08dca6bf26537194b9a209/app/javascript/src/hooks/reactQuery/tickets/useTicketsApi.js#L83)

# 出版指令

咨询 [构建和释放软件包](https://neeto-engineering.neetokb.com/articles/building-and-releasing-packages) 关于如何出版的详细指南.

`@bigbinary/neeto-tags-playwright` 发表于 `playwright/` 当合并时 公关有 `playwright` 标签并列 `patch`, (中文(简体) ), `minor`,或 `major`。见 [剧作家/README.md](https://npmcn.com/playwright/README.md)。 。 。 .

## 释放门

牵引请求只通过NeetoTower的放出门合并. 准确添加其中之一 `patch`, (中文(简体) ), `minor` 或者说 `major`,然后添加 `release` 最后一个 NeetoTower发布一个β的引擎和软件包, 打开一个 `[do-not-merge]` 在使用纳米的每个产品中拉取请求,等待检查 并审查应用部署,将结果作为评论发布,并在每个产品为绿色时合并. 如果产品因更改而失败, NeetoTower 将删除 `release` 标签。 解决问题 添加 `release` 再次开始新的尝试. `force-release` 跳过闸口并立即合并. 它只供紧急情况下的维护者使用,使用它的大门评论记录.

## 常见问题

### @bigbinary/neeto-tags-frontend 是什么？

一个回波作为新纳米结构,配置,数据等的真理来源\.

### 如何安装 @bigbinary/neeto-tags-frontend？

在项目目录运行 npm install @bigbinary/neeto-tags-frontend，或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖：qs（6\.16\.2）、url（0\.11\.4）、yup（0\.32\.11）、antd（5\.22\.1）、util（^0\.12\.5）、axios（1\.20\.0）、ramda（0\.29\.0）、react（18\.3\.1）、buffer（^6\.0\.3）、formik（2\.4\.6）、i18next（22\.5\.1）、zustand（4\.4\.2）、dompurify（3\.4\.17）、js-logger（1\.6\.1）、react-dom（18\.3\.1）、classnames（2\.5\.1）、stream-http（3\.2\.0）、tailwindcss（3\.4\.14）、lucide-react（0\.577\.0）、react-helmet（^6\.1\.0）、os-browserify（0\.3\.0）、react-i18next（12\.3\.1）、vm-browserify（1\.1\.2）、@babel/runtime（7\.29\.7）、react-toastify（8\.0\.2）、tty-browserify（0\.0\.1）、path-browserify（^1\.0\.1）、https-browserify（1\.0\.0）、mixpanel-browser（^2\.45\.0）、react-router-dom（5\.3\.3）、crypto-browserify（3\.12\.1）、source-map-loader（4\.0\.1）、stream-browserify（^3\.0\.0）、@bigbinary/neetoui（8\.8\.3）、@honeybadger-io/js（6\.10\.1）、@bigbinary/neeto-cist（1\.0\.17）、@honeybadger-io/react（6\.1\.25）、@tanstack/react-query（5\.59\.20）、@bigbinary/neeto-atoms（1\.1\.2）、@bigbinary/neeto-icons（1\.20\.89）、@bigbinary/neeto-hotkeys（1\.0\.9）、@bigbinary/neeto-molecules（5\.9\.15）、@tailwindcss/container-queries（^0\.1\.1）、@tanstack/react-query-devtools（5\.59\.20）、@bigbinary/neeto-commons-frontend（4\.14\.8）、@bigbinary/neeto-filters-frontend（4\.6\.3）。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖，Yarn 需要手动安装。

### @bigbinary/neeto-tags-frontend 支持 TypeScript 吗？

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

### @bigbinary/neeto-tags-frontend 支持 ESM 还是 CommonJS？

同时提供 ES Module 与 CommonJS 入口，import 和 require\(\) 都可以使用，打包工具会自动选择合适的版本。

### @bigbinary/neeto-tags-frontend 需要什么版本的 Node\.js？

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

### @bigbinary/neeto-tags-frontend 可以商用吗？

@bigbinary/neeto-tags-frontend 使用 UNLICENSED 许可。作者声明为 UNLICENSED，即不授予公开使用许可（与公共领域的 Unlicense 不同）。使用前需获得作者授权。以上为概括，不构成法律意见，请以许可原文为准。

### @bigbinary/neeto-tags-frontend 的下载量有多少？

根据 npm 官方下载统计，@bigbinary/neeto-tags-frontend 在 2026/10/08 – 2026/11/06 这 30 天内被下载 37,243 次，日均约 1,241 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入，适合横向比较热度，不能直接等同于使用人数。

### @bigbinary/neeto-tags-frontend 还在维护吗？

最新版本 2\.4\.0 发布于 2026/11/03（5 天前）；至今共发布 186 个版本，其中过去 12 个月发布了 48 个；首次发布于 2022/06/27。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

