hy-print
v0.1.5
Published
print for table
Readme
//element和id二选一必选一个。
interface printType {
id? : string|undefined|null
//dom元素
element?: Element | undefined | null,
//开启样式克隆,会克隆大部分样式到iframe
clone: boolean,
//类型,目前支持normal
type: "hyOnlyTable" | "canvas" | "print.js" | "normal" ;
markWater?: {
//文字
text:string
//x轴间距
gapX:number
//y轴间距
gapY:number
}
//目前不支持引入css
css?: any
}