# yach.open.ui

Yach 开放平台业务组件库

## 功能

- ✨ 为 Yach 开放平台设计的通用业务 UI 组件
- ✨ 使用具有可预测的静态类型的 TypeScript 编写

## 环境支持

| IE / Edge  | Firefox         | Chrome          | Safari          | Electron        |
| ---------- | --------------- | --------------- | --------------- | --------------- |
| IE11, Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions |

## 安装

```sh
$ yarn add yach.open.ui
```

## 使用

[https://yach-open-doc-dev.zhiyinlou.com/more/open_ui.html](https://yach-open-doc-dev.zhiyinlou.com/more/open_ui.html)

## 开发者
~~node 确认是 x64 版本，自测 v14.13.0 可安装成功~~

2025-08-04 更新：不限制 node 版本，可直接运行 `npm i` 进行安装

实测：

安装：v16.13.2、v20.1.0 可安装成功

编译：

v16.13.2 对应的 package 中的命令为
```sh
"build": "npm run compile && NODE_OPTIONS='--max-old-space-size=4096' npm run dist",
```

v20.1.0 对应的 package 中的命令为
```sh
"build": "npm run compile && NODE_OPTIONS='--max-old-space-size=4096 --openssl-legacy-provider' npm run dist",
```

### 安装

```sh
$ npm i
```

### 开发

```sh
$ npm run dev
```

### 构建

```sh
$ npm run build
```

### 发布（注意发布后 npmmirror 可能存在未同步的情况，需手动同步）

```sh
$ npm run p:beta  # or yarn p
```
