print-kit
print-kit copied to clipboard
web打印工具,为页面添加页眉页脚页码,正确将页面分页。
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.11 to 4.17.21. Commits f299b52 Bump to v4.17.21 c4847eb Improve performance of toNumber, trim and trimEnd on large input strings 3469357 Prevent command injection through _.template's variable...
Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 3.0.0 to 4.1.1. Release notes Sourced from ansi-regex's releases. v4.1.0 Support more escape code like links (#29) 96200bb https://github.com/chalk/ansi-regex/compare/v4.0.0...v4.1.0 Commits 64735d2 v4.1.1 75a657d Fix potential ReDoS (#37)...
Bumps [chownr](https://github.com/isaacs/chownr) from 1.0.1 to 1.1.1. Commits 7a5c3d5 1.1.1 03eb97e Fix bug working on network-path files on windows 76c21fa 1.1.0 e8f0dc7 auto-publish scripts b196e0e add tests for old readdir support...
Bumps [minimist](https://github.com/minimistjs/minimist) and [mkdirp](https://github.com/isaacs/node-mkdirp). These dependencies needed to be updated together. Updates `minimist` from 1.2.0 to 1.2.8 Changelog Sourced from minimist's changelog. v1.2.8 - 2023-02-09 Merged [Fix] Fix long option...
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2. Release notes Sourced from decode-uri-component's releases. v0.2.2 Prevent overwriting previously decoded tokens 980e0bf https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.1...v0.2.2 v0.2.1 Switch to GitHub workflows 76abc93 Fix issue where decode...
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.1.0 to 1.4.2. Release notes Sourced from loader-utils's releases. v1.4.2 1.4.2 (2022-11-11) Bug Fixes ReDoS problem (#226) (17cbf8f) v1.4.1 1.4.1 (2022-11-07) Bug Fixes security problem (#220) (4504e34)...
红线为 page-footer,只有1个下边框。下面是打印预览: 第1页  第2页  第3页 
代码执行内部报错
按照使用说明,给打印的地方添加 data-paged属性,再建了一个id为 layoutedContainer 的div,然后调用 ``` PrintLayouter.layout( 'div[data-paged="group-container"]', '#layoutedContainer', true, () => { window.print() } ) ``` 