@icreate/ics-chromely-plugin-report-js-sdk
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
70
30561
1