1.1.7 • Published 3 years ago

report-render v1.1.7

Weekly downloads
71
License
-
Repository
github
Last release
3 years ago

report-render

Install

npm install report-render --save

Import

import ReportRender from 'report-render'

Vue.use(ReportRender)

Use

<report-render ref="myReport" :reportData="reportData" :watermarkData="watermarkData"></report-render>

Properties

NameRequiredTypeDefaultDescription
reportDatatrueJSON{}报表数据结构
watermarkDatatrueJSON{}报表水印

reportData说明

NameRequiredTypeDefaultDescription
chartstrueArray[]图表集合
chart_chapter_collapsiblefalseBooleanfalse是否开启折叠模式
ownerfalseString""报表创建人
view_userfalseString""报表联系人
category_namefalseString""报表分类
view_layoutfalseJSON{}报表布局
version_namefalseString""报表版本

watermarkData说明

NameRequiredTypeDefaultDescription
watermark_showtrueBooleantrue是否显示水印
watermark_txttrueString""水印文字
watermark_xfalseNumber0水印起始位置x轴坐标
watermark_yfalseNumber0水印起始位置Y轴坐标
watermark_x_spacefalseNumber0水印x轴间隔
watermark_y_spacefalseNumber0水印y轴间隔
watermark_colorfalseString#54585a水印字体颜色
watermark_fontsizefalseString14px水印字体大小
watermark_alphafalseNumber0.15水印透明度
watermark_widthfalseNumber300水印宽度
watermark_heightfalseNumber200水印高度
watermark_anglefalseNumber30水印倾斜度数

Methods

NameDescriptionE.g
removeWatermark手动移除水印this.$refs.myReport.removeWatermark()
1.1.7

3 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago