Closed flashclub closed 5 months ago
各种ts报错,例如设置margin和footer: margin 设置为 { left: 10, top: 20, right: 10, bottom: 20 } 时报错,需要设置为 { unitMode: "html", left: 10, top: 20, right: 10, bottom: 20 } footer: 设置为 footer(document.getElementById("footer"), { skipPage: 1 })报错:
{ left: 10, top: 20, right: 10, bottom: 20 }
{ unitMode: "html", left: 10, top: 20, right: 10, bottom: 20 }
类型“{ skipPage: number; }”的参数不能赋给类型“{ pageNumSelector: string; pageTotalSelector: string; skipPage: number; }”的参数。 类型“{ skipPage: number; }”缺少类型“{ pageNumSelector: string; pageTotalSelector: string; skipPage: number; }”中的以下属性: pageNumSelector, pageTotalSelector
下一版会优化
已在0.1.5版本优化了ts类型
各种ts报错,例如设置margin和footer: margin 设置为
{ left: 10, top: 20, right: 10, bottom: 20 }
时报错,需要设置为{ unitMode: "html", left: 10, top: 20, right: 10, bottom: 20 }
footer: 设置为 footer(document.getElementById("footer"), { skipPage: 1 })报错: