# @aligov/pegasus

> 搭投组件

Latest version **1.0.2** (published 2021-10-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install @aligov/pegasus
pnpm add @aligov/pegasus
yarn add @aligov/pegasus
bun add @aligov/pegasus
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2021-10-27 |
| First published | 2021-06-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 65 |
| Unpacked size | 8.7 MB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | shenyu.wsy, liunian, tao1991123, itrip, xiazhiqiang, zhousufa, mo.zhou, guoliang.hgl, zwhu, daip, baizhao |
| Keywords | ice, react, component |

## Links

- npm: https://www.npmjs.com/package/@aligov/pegasus
- Homepage: https://unpkg.com/@aligov/pegasus@1.0.0-beta.3/build/index.html
- npm.io page: https://npm.io/package/@aligov/pegasus

## Dependencies (65)

- [uuid](https://npm.io/package/uuid.md) ^7.0.3
- [react](https://npm.io/package/react.md) ^16.8.6
- [lodash](https://npm.io/package/lodash.md) ^4.17.15
- [moment](https://npm.io/package/moment.md) ^2.24.0
- [core-js](https://npm.io/package/core-js.md) ^3.6.5
- [fs-extra](https://npm.io/package/fs-extra.md) ^8.1.0
- [@ice/form](https://npm.io/package/@ice/form.md) ^0.1.7
- [fbemitter](https://npm.io/package/fbemitter.md) ^2.1.1
- [rc-drawer](https://npm.io/package/rc-drawer.md) ^3.2.0
- [react-dnd](https://npm.io/package/react-dnd.md) 10.0.2
- [react-dom](https://npm.io/package/react-dom.md) ^16.8.6
- [classnames](https://npm.io/package/classnames.md) ^2.2.6
- [prop-types](https://npm.io/package/prop-types.md) ^15.5.8
- [typescript](https://npm.io/package/typescript.md) ^3.5.1
- [@alifd/next](https://npm.io/package/@alifd/next.md) ^1.15.5
- [@types/jest](https://npm.io/package/@types/jest.md) ^24.0.13
- [@types/node](https://npm.io/package/@types/node.md) ^12.0.7
- [form-render](https://npm.io/package/form-render.md) ^0.5.3
- [ice-scripts](https://npm.io/package/ice-scripts.md) ^2.1.2
- [react-color](https://npm.io/package/react-color.md) ^2.17.3
- [@aligov/icon](https://npm.io/package/@aligov/icon.md) ^1.0.8
- [@types/react](https://npm.io/package/@types/react.md) ^16.8.19
- [lodash.merge](https://npm.io/package/lodash.merge.md) ^4.6.2
- [yargs-parser](https://npm.io/package/yargs-parser.md) ^13.1.1
- [@aligov/wise1](https://npm.io/package/@aligov/wise1.md) 0.3.6
- [@aligov/su-cai](https://npm.io/package/@aligov/su-cai.md) ^2.0.1
- [@atlaskit/tree](https://npm.io/package/@atlaskit/tree.md) ^6.0.4
- [lodash.debounce](https://npm.io/package/lodash.debounce.md) ^4.0.8
- [react-json-view](https://npm.io/package/react-json-view.md) ^1.19.1
- [@types/react-dom](https://npm.io/package/@types/react-dom.md) ^16.8.4
- [react-router-dom](https://npm.io/package/react-router-dom.md) ^5.0.1
- [@icedesign/layout](https://npm.io/package/@icedesign/layout.md) ^1.0.8
- [@icedesign/qrcode](https://npm.io/package/@icedesign/qrcode.md) ^1.0.4
- [copy-to-clipboard](https://npm.io/package/copy-to-clipboard.md) ^3.2.0
- [ice-plugin-fusion](https://npm.io/package/ice-plugin-fusion.md) ^0.1.6
- [@aligov/retcodelog](https://npm.io/package/@aligov/retcodelog.md) ^0.3.2
- [@aligov/pegasus-sdk](https://npm.io/package/@aligov/pegasus-sdk.md) ^10.1.7
- [@icedesign/ellipsis](https://npm.io/package/@icedesign/ellipsis.md) ^1.0.4
- [react-addons-update](https://npm.io/package/react-addons-update.md) ^15.6.2
- [@aligov/descriptions](https://npm.io/package/@aligov/descriptions.md) ^1.0.2
- [@aligov/fr-comp-rich](https://npm.io/package/@aligov/fr-comp-rich.md) ^2.0.18
- [@aligov/fr-comp-rich2](https://npm.io/package/@aligov/fr-comp-rich2.md) ^2.0.18
- [@aligov/fr-comp-switch](https://npm.io/package/@aligov/fr-comp-switch.md) ^2.0.2
- [@aligov/fr-comp-upload](https://npm.io/package/@aligov/fr-comp-upload.md) ^2.0.2
- [@icedesign/form-binder](https://npm.io/package/@icedesign/form-binder.md) ^1.0.6
- [@icedesign/styled-menu](https://npm.io/package/@icedesign/styled-menu.md) ^1.0.6
- [@aligov/pegasus-builder](https://npm.io/package/@aligov/pegasus-builder.md) ^0.3.1
- [@icedesign/dynamic-icon](https://npm.io/package/@icedesign/dynamic-icon.md) ^0.1.8
- [@types/react-router-dom](https://npm.io/package/@types/react-router-dom.md) ^4.3.3
- [react-dnd-html5-backend](https://npm.io/package/react-dnd-html5-backend.md) 10.0.2
- [react-infinite-scroller](https://npm.io/package/react-infinite-scroller.md) ^1.2.4
- [@alifd/next-theme-loader](https://npm.io/package/@alifd/next-theme-loader.md) ^1.3.1
- [@alifd/theme-gov-customer](https://npm.io/package/@alifd/theme-gov-customer.md) ^0.7.7
- [@alifd/theme-gov-platform](https://npm.io/package/@alifd/theme-gov-platform.md) ^1.2.2
- [ice-plugin-modular-import](https://npm.io/package/ice-plugin-modular-import.md) ^0.1.0
- [url-search-params-polyfill](https://npm.io/package/url-search-params-polyfill.md) ^8.1.0
- [@aligov/components-ellipsis](https://npm.io/package/@aligov/components-ellipsis.md) ^1.0.13
- [@aligov/components-gov-table](https://npm.io/package/@aligov/components-gov-table.md) ^1.0.6
- [@aligov/components-img-thumb](https://npm.io/package/@aligov/components-img-thumb.md) ^1.0.1
- [@aligov/pegasus-post-message](https://npm.io/package/@aligov/pegasus-post-message.md) ^1.0.0
- [@aligov/components-easy-select](https://npm.io/package/@aligov/components-easy-select.md) ^1.0.1
- [@aligov/components-img-preview](https://npm.io/package/@aligov/components-img-preview.md) ^1.0.0
- [@types/react-infinite-scroller](https://npm.io/package/@types/react-infinite-scroller.md) ^1.2.1
- [@aligov/components-table-actions](https://npm.io/package/@aligov/components-table-actions.md) ^2.1.0
- [@aligov/components-use-form-table-hooks](https://npm.io/package/@aligov/components-use-form-table-hooks.md) ^1.3.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2021-10-27
- 1.1.0 — 2021-10-26
- 1.0.1 — 2021-10-26
- 1.0.0-beta.3 — 2021-06-17
- 1.0.0-beta.2 — 2021-06-16
- 1.0.0-beta.1 — 2021-06-10
- 1.0.0-beta.0 — 2021-06-09
- 1.0.0 — 2021-06-09

## README

# demo component

@aligov/pegasus

搭投组件

### 用法

```javascript
import React, { useState } from "react";
import { Pegasus, createPegasusActions } from '@aligov/pegasus';

function Test() {
  const [loading, setLoading] = useState<boolean>(false);
  const actions = createPegasusActions();

  const onPublish = async () => {
    try {
      setLoading(true);
      await actions.page.publish('release');
    } catch (error) {
      console.error(error);
    } finally {
      setLoading(false);
    }
  };

  return (
    <div>
      <Button type="primary" loading={loading} onClick={onPublish}>
        <Icon type="add" />
        发布
      </Button>
      <Pegasus />
    </div>
  );
}

```

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