@canvas-components/react-list-table 0.3.45 → 0.3.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/index.cjs +1042 -1833
- package/dist/index.d.cts +9 -2
- package/dist/index.d.ts +9 -2
- package/dist/index.js +1046 -1837
- package/package.json +6 -4
package/README.md
CHANGED
|
@@ -250,6 +250,8 @@ const printPresets: ReactListTablePrintPreset[] = [
|
|
|
250
250
|
|
|
251
251
|
配置名称显示在打印配置弹窗顶部。列通过 `key` 对应表格列;列宽单位为毫米。需要缓存预设选择和用户调整时提供 `storageKey` 并保持弹窗中的本地缓存选项开启。
|
|
252
252
|
|
|
253
|
+
右键直接打印(包括选择模板打印)会先显示“每次打印页数”设置,默认每批 50 页。可通过 `directPrintPagesPerBatch={20}` 修改默认值,用户仍可在开始前调整。每批只生成并加载指定数量的实际打印页(包括自动续页),关闭浏览器打印窗口后释放该批 iframe;点击“继续下一批”才生成后续批次,也可以取消剩余任务。浏览器无法区分打印窗口中的“打印”和“取消”,因此批次之间不会自动继续。
|
|
254
|
+
|
|
253
255
|
```tsx
|
|
254
256
|
import { useMemo, useRef } from "react";
|
|
255
257
|
import {
|