# antd-enum-yesorno

> 适用于antd的枚举类型的数据结构

Latest version **1.0.1** (published 2018-05-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install antd-enum-yesorno
pnpm add antd-enum-yesorno
yarn add antd-enum-yesorno
bun add antd-enum-yesorno
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-05-10 |
| First published | 2018-05-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | 张鹏 |
| Maintainers | 326060588 |

## Links

- npm: https://www.npmjs.com/package/antd-enum-yesorno
- Repository: https://github.com/ht-net/antd-enum-yesorno
- Homepage: https://github.com/ht-net/antd-enum-yesorno#readme
- Issues: https://github.com/ht-net/antd-enum-yesorno/issues
- npm.io page: https://npm.io/package/antd-enum-yesorno

## Recent versions

- 1.0.1 (latest) — 2018-05-10
- 1.0.0 — 2018-05-10

## README

# antd-enum-yesorno

适用于antd的枚举类型的数据结构

```js
const ISSTATUS = {
  NO: {
    text: '否',
    value: 0,
    color: 'error',
  },
  YES: {
    text: '是',
    value: 1,
    color: 'success',
  },
};
```

## 使用
```js
ISSTATUS.YES.value
ISSTATUS.NO.value

Object.values(ISSTATUS)
Object.values(ISSTATUS).map(({ value }) => value)
Object.values(ISSTATUS).map(({ value }) => value + 1)

Object.values(ISSTATUS).find(({ value }) => value === 1)?.text

```

---
_Source: https://npm.io/package/antd-enum-yesorno · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
