# @beisen-platform/print-form

> ```javascript # 点击form的取消需要的回调函数 onCancel = () => { console.log('onCancel......') } # 点击form的打印按钮需要的回调函数 onSave = () => { console.log('onSave......') } # form初始化过程中需要调用的loading openLoading = () => { console.log('openLoading....

Latest version **1.0.13** (published 2019-08-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install @beisen-platform/print-form
pnpm add @beisen-platform/print-form
yarn add @beisen-platform/print-form
bun add @beisen-platform/print-form
```

## 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.13 |
| Published | 2019-08-13 |
| First published | 2018-12-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 31.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | beisencorp |

## Links

- npm: https://www.npmjs.com/package/@beisen-platform/print-form
- Repository: git@gitlab.beisencorp.com:ux-share-platform/ux-print-form
- npm.io page: https://npm.io/package/@beisen-platform/print-form

## Dependencies (2)

- [@beisen-platform/loading](https://npm.io/package/@beisen-platform/loading.md)
- [@beisen-platform/platform-tip](https://npm.io/package/@beisen-platform/platform-tip.md) 1.x.x

## Recent versions

- 1.0.13 (latest) — 2019-08-13
- 1.0.12-rc.3 — 2019-08-05
- 1.0.11-rc.2 — 2019-08-05
- 1.0.11-rc.1 — 2019-08-05
- 1.0.12-rc.2 — 2019-07-27
- 1.0.12 — 2019-07-27
- 1.0.11 — 2019-07-24
- 1.0.10-rc.4 — 2019-07-19
- 1.0.10-rc.3 — 2019-07-17
- 1.0.10-rc.2 — 2019-07-15
- 1.0.10-rc.1 — 2019-07-10
- 1.0.10 — 2019-07-08
- 1.0.8-rc.3 — 2019-07-02
- 1.0.8-rc.2 — 2019-06-14
- 1.0.8-rc.1 — 2019-04-28
- … 11 more at https://npm.io/package/@beisen-platform/print-form/versions

## README

#### 打印的form
#### 需要传递props
```javascript
	# 点击form的取消需要的回调函数
	onCancel = () => {
		console.log('onCancel......')
  	}
	# 点击form的打印按钮需要的回调函数
  	onSave = () => {
    	console.log('onSave......')
  	}
	# form初始化过程中需要调用的loading
  	openLoading = () => {
    	console.log('openLoading......')
  	}
  	# form api请求回来后需要取消loading
  	closeLoading = () => {
    	console.log('closeLoading......')
  	}
  	
    popOptions = {
      data: {
        ids: "cf63ca5a-481d-442c-bf5b-cb89b0341feb"
      },
      detailViewCode: "",
      cmpContext: {
        app: "BeisenCloudDemo",
        application: "BeisenCloudDemo",
        currentViewName: "BeisenCloudDemo_wfbdzw0602",
        metaObjName: "BeisenCloudDemo.ceshi0602",
        tenantID: 100013,
        viewName: "BeisenCloudDemo.SingleObjectListView.all"
      },
      printData: [
        {text: "wwh1111", value: "wwh18", type: "template"},
        {text: "wwh测试导入2", value: "wwh17", type: "template"},
        {text: "wwh测试实体改名、字段改名、删除字段", value: "wwh2", type: "template"},
        {text: "wwh-场景-搜索表单详情页", value:"wwh6", type: "template"},
        {text: "wwh打印模板1", value: "wwh1", type: "template"},
        {text: "wwh关联对象和主对象", value: "wwh7", type: "template"}
      ] 
    };
```

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