# @bigbinary/neeto-site-blocks 中文文档

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

版本：2\.4\.7
npm 元数据更新时间：2026-11-01T02:30:49.658Z
中文译文更新时间：2026-11-08T02:27:46.034Z
软件包许可：MIT

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

原始 npm 页面：https://www.npmjs.com/package/%40bigbinary/neeto-site-blocks
原文对照：https://npmcn.com/package/%40bigbinary/neeto-site-blocks/?lang=original
源码仓库：https://github.com/bigbinary/neeto-site-blocks

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

- 包体积（解压后）：4.8 MB，11 个文件
- 模块格式：ESM + CJS
- TypeScript 类型：包内自带
- Node.js 要求：\>=18\.12
- 运行依赖：0 个
- peer 依赖：axios 1\.18\.0，ramda 0\.29\.0，react 18\.2\.0，react-dom 18\.2\.0，classnames 2\.3\.1，prop-types 15\.8\.1，tailwindcss ^3\.4\.1，framer-motion 11\.2\.14，@babel/runtime 7\.17\.9，styled-components ^5\.3\.6，@bigbinary/neeto-cist latest，react-frame-component 5\.2\.5，@bigbinary/neeto-commons-frontend latest
- 首次发布：2022-08-26T08:50:02.669Z
- 最新版本发布：2026-11-01T02:30:49.488Z
- 近 30 天下载量：2506（2026-10-08 至 2026-11-06，npm 官方下载统计）
- 已发布版本数：371（近 12 个月 22 个）

## 中文简介

需要现场的常见块

## 安装

```sh
npm install @bigbinary/neeto-site-blocks
```

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

## README

# @ bigbinary/ 需要到现场块

netoSiteBlocks是图书馆,为网站在Neto-site的构件服务. 它用于 [`neeto-site-web`](https://github.com/bigbinary/neeto-site-web) 财务报告和审定财务报表 [`neeto-site-eui`](https://github.com/bigbinary/neeto-site-eui) 服务于街区.

## 安装

```
yarn add @bigbinary/neeto-site-blocks
```

## 使用量

### 例如: 特征与正确图像

#### 道具

1.  **编号**:指定块的ID.
2.  **配置**: 包含块配置的对象。 它包含以下密钥:
    1.  **设计**:指定块的设计.
    2.  **属性**: 指定块的属性.
3.  **类Name**:要指定外部类名.

这里有一个例子 如何使用 `FeatureWithRightImage` 块.

```js
import { FeatureWithImage } from "@bigbinary/neeto-site-blocks";

configurations: {
      properties: {
        content: {
          title: "Title",
          description: "Description",
          position: "left",
        },
        buttons: [],
        image: {
          src:
            "https://tailwindui.com/img/component-images/inbox-app-screenshot-2.jpg",
          position: "right",
        },
        backgroundImage: {
          src: "",
        },
      },
      design: {
        body: {
          backgroundColor: "#FFFFFF",
          paddingVertical: 20,
          borderTop: {
            borderStyle: "none",
            borderWidth: 0,
            borderColor: "#FFFFFF",
          },
          borderBottom: {
            borderStyle: "none",
            borderWidth: 0,
            borderColor: "#FFFFFF",
          },
        },
        title: {
          fontSize: "3xl",
          fontWeight: "extrabold",
          color: "#2F3941",
          marginTop: 0,
          marginBottom: 5,
          lineHeight: "none",
          letterSpacing: "normal",
        },
        description: {
          fontSize: "base",
          fontWeight: "normal",
          color: "#68737D",
          marginTop: 0,
          marginBottom: 8,
          lineHeight: "normal",
          letterSpacing: "normal",
        },
        buttons: {
          fontSize: "sm",
          fontWeight: "medium",
          color: "#FFFFFF",
          backgroundColor: "#4F46E5",
          border: {
            borderStyle: "none",
            borderWidth: 0,
            borderColor: "#4F46E5",
          },
          borderRadius: "sm",
          paddingHorizontal: 4,
          paddingVertical: 2,
          letterSpacing: "normal",
        },
        image: {
          width: "3/4",
          borderRadius: "sm",
        },
        backgroundImage: {
          backgroundSize: "cover",
          backgroundPosition: "center",
          backgroundRepeat: "no-repeat",
        },
      },
    },

const FeatureWithImageBlock = () => {
  return (
    <FeatureWithImage
      id="feature-with-right-image"
      configuration={configuration}
      className="my-10"
    />
  );
};
```

## 发展

通过执行以下命令安装所有依赖性

```bash
yarn install
yarn start
```

这将为建造不同的街区开辟一个游乐场.

# 建造并放出.

这个 `@bigbinary/neeto-site-blocks` 软件包在将公关与 `patch`, (中文(简体) ), `minor` 或者说 `major` 标签到 `main` 树枝。 这个 `patch` 标签用于错误修正, `minor` 标签用于新特性和 `major` 标签用于断开更改。 你可以去检查 `Create and publish releases` gitHub 动作中的工作流程 现场更新.

如果不能添加标签,可以手动发布软件包. 首先,你需要创建一个公关 更新 `package.json` 文件并合并到 `main` 树枝。 合并公关后,您需要 创建 [新 github 释放](https://github.com/bigbinary/neeto-site-blocks/releases/new) 从主分支。 无论何时 创建新版本编号的新版本, github 动作将自动发布已建软件包 没有。 你可以去检查 `Publish to npm` gitHub Actions中的工作流程获取实时更新.

请注意,在发布软件包之前,需要验证一些neto网络应用程序中的功能 本地使用 `yalc` 软件包管理器。 雅尔克的用法在影片中解释: [https://youtu.be/QBiYGP0Rhe0 页面存档备份,存于互联网档案馆](https://youtu.be/QBiYGP0Rhe0)

## 常见问题

### @bigbinary/neeto-site-blocks 是什么？

需要现场的常见块

### 如何安装 @bigbinary/neeto-site-blocks？

在项目目录运行 npm install @bigbinary/neeto-site-blocks，或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖：axios（1\.18\.0）、ramda（0\.29\.0）、react（18\.2\.0）、react-dom（18\.2\.0）、classnames（2\.3\.1）、prop-types（15\.8\.1）、tailwindcss（^3\.4\.1）、framer-motion（11\.2\.14）、@babel/runtime（7\.17\.9）、styled-components（^5\.3\.6）、@bigbinary/neeto-cist（latest）、react-frame-component（5\.2\.5）、@bigbinary/neeto-commons-frontend（latest）。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖，Yarn 需要手动安装。

### @bigbinary/neeto-site-blocks 支持 TypeScript 吗？

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

### @bigbinary/neeto-site-blocks 支持 ESM 还是 CommonJS？

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

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

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

### @bigbinary/neeto-site-blocks 可以商用吗？

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

### @bigbinary/neeto-site-blocks 的下载量有多少？

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

### @bigbinary/neeto-site-blocks 还在维护吗？

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

