Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@icreate/ics-chromely-plugin-report-js-sdk

Package Overview
Dependencies
Maintainers
6
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@icreate/ics-chromely-plugin-report-js-sdk - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

6

dist/lib/core/report.js

@@ -17,6 +17,6 @@ "use strict";

* @Date: 2022-05-06 15:04:22
* @LastEditors: 刘邓
* @LastEditTime: 2022-05-09 16:15:51
* @LastEditors: 文贝
* @LastEditTime: 2022-07-27 18:06:02
* @Description:
* @FilePath: \src\core\report.ts
* @FilePath: \ics-chromely-plugin-report\src\core\report.ts
*/

@@ -23,0 +23,0 @@ var ics_chromely_js_sdk_1 = require("@icreate/ics-chromely-js-sdk");

@@ -6,3 +6,3 @@ export default class Report {

clearData(): Promise<any>;
registerData(name: string, data: string): Promise<any>;
registerData(name: string, data: Array<any>): Promise<any>;
doublePass(value: Boolean): Promise<any>;

@@ -9,0 +9,0 @@ load(fileName: string): Promise<any>;

{
"name": "@icreate/ics-chromely-plugin-report-js-sdk",
"version": "0.0.1",
"version": "0.0.2",
"description": "提供报表设计、清空、预览、打印、注册数据源等功能",

@@ -25,3 +25,3 @@ "keywords": [],

"build": "tsc --module commonjs && rollup -c rollup.config.ts",
"build-bak": "tsc --module commonjs && rollup -c rollup.config.ts && typedoc --out docs --target es6 --theme minimal --mode file src",
"build-bak": "tsc --module commonjs && rollup -c rollup.config.ts",
"start": "rollup -c rollup.config.ts -w",

@@ -125,2 +125,2 @@ "test": "jest --coverage",

}
}
}
<!--
* @Author: 文贝
* @Date: 2022-02-08 21:36:57
* @LastEditors: 刘邓
* @LastEditTime: 2022-05-10 17:16:53
* @LastEditors: 文贝
* @LastEditTime: 2022-07-27 18:08:22
* @Descripttion:
* @FilePath: \README.md
* @FilePath: \ics-chromely-plugin-report\README.md
-->

@@ -25,22 +25,18 @@ ### Usage

```javascript
import { LocalLogger, BrowserHelper, WindowHelper, Chromely } from '@icreate/ics-chromely-plugin-report-js-sdk'
import { reportHelper } from '@icreate/ics-chromely-plugin-report-js-sdk'
```
### LocalLogger
### reportHelper
```javascript
// 指定文件加载报表
load(fileName: string): Promise<any>
// 根据Id加载报表
loadFromId(reportId: string): Promise<any>
// 清空数据源
clearData(): Promise<any>
// 注册数据源
registerData(name: string, data: string): Promise<any>
registerData(name: string, data: Array<any>): Promise<any>
// 设置双面打印
doublePass(value: Boolean): Promise<any>
// 指定文件加载报表
load(fileName: string): Promise<any>
// 根据Id加载报表
loadFromId(reportId: string): Promise<any>
// 导出pdf
ExportToPdf(fileName: string): Promise<any>
// 导出html
exportToHtml(fileName: string): Promise<any>
// 准备报表

@@ -56,4 +52,20 @@ prepare(append: Boolean): Promise<any>

print(printerName: string): Promise<any>
// 导出pdf
ExportToPdf(fileName: string): Promise<any>
// 导出html
exportToHtml(fileName: string): Promise<any>
// 释放报表
dispose(): Promise<any>
```
### 示例
```javascript
reportHelper.load('xxxx.frx')
reportHelper.clearData()
reportHelper.registerData('患者基本信息',[{ id:"1",name:"张三"}])
reportHelper.design() //设计报表
reportHelper.show() //预览报表
reportHelper.print() //打印报表
```

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc