[table] layui table 打印及导出建议
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- JavaScript
- Stars
- 30.6k
- Forks
- 7.4k
- Avg merge
- 7m
- Merged PRs (30d)
- 1
Description
议题条件
- 我确认已查看官方使用文档:https://layui.dev ,但没有找到相关解决方案。
- 我确认已在 Issues 中搜索过类似的问题,但没有找到相关解决方案。
- 我已仔细阅读: 🍀 Layui Issue 贡献指南
议题类型
功能请求
使用版本
v2.9.7
问题描述
作者您好,
工厂的实际生产使用中,无纸化办公做不到的,特别是小公司,故对于table的导出和打印有很多的需求。
这里大概写几点需求:
1,treeTable的缩进、图标的导出及打印;
2,table的等比例打印,比如有些空白列打印后很短但需求是要留足够的长度
3,图片列的打印及导出
4,页面的打印,使用环境中有大量的表单需要打印(如ECN变更单,订单页等)
希望作者能关注到这些需求,让layui 更加强大
业务代码
1
截图补充
No response
浏览器
edge
演示地址
No response
友好承诺
- 我承诺将本着相互尊重、理解和友善的态度进行交流,共同维护 Layui 良好的社区氛围。
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the table component and the official Layui documentation referenced in the issue. Review how treeTable indentation and icons, proportional column widths, image output, and page printing are currently handled. Done means defining and implementing the requested export and printing behavior, with coverage for the listed table and page scenarios.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100