Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于Table组件功能的建议 #1890

Open
4 tasks done
BaselineDevloper opened this issue May 11, 2024 · 4 comments
Open
4 tasks done

关于Table组件功能的建议 #1890

BaselineDevloper opened this issue May 11, 2024 · 4 comments
Labels
feature 功能请求 Feature Request

Comments

@BaselineDevloper
Copy link

议题条件

  • 我确认已查看官方使用文档:https://layui.dev ,但没有找到相关解决方案。
  • 我确认已在 Issues 中搜索过类似的问题,但没有找到相关解决方案。
  • 我已仔细阅读: 🍀 Layui Issue 贡献指南

议题类型

功能请求

使用版本

v2.9.9

问题描述

1、在表格的单元的内容超长的处理上,能否增加其它样式,我已经看到了一些改进(已经新增了点击内容超长后出现的下拉按钮,会将单元格展开显示),但如果能增加样式控制就更好了(我目前不得不使用layui-soul-table这个组件,它的overflow: 'tips'效果不错,但它没有跟layui同步更新)
2、layui-soul-table的列数据筛选、自定义展开内容的功能也很不错。
3、使用table列排序时,访问后台接口时丢失查询条件。

既然是大版本升级,我很期待layui能将这些功能变为“原生”的。

业务代码

where: {
            filters: getFilters($("#tracking-subscription-search")),
            carrierCode: listVO.carrierCode,
            succeed:$("#succeed :selected").val(),
            firmId: $("#firmId").val(),
            orderByField: "spiderTime",
            orderType: "desc"
        }

在数据表格中,通过查询或初始化加载时,可以正确获得filters、carrierCode、succeed、firmId、orderByField、orderType,的值,向后台提交的数据是“{"pageNum":1,"pageSize":50,"filters":"{\"groupOp\":\"AND\",\"rules\":[]}","carrierCode":"COSCO","succeed":"","orderByField":"spiderTime","orderType":"desc"},但点击列上面的排序图标后,向后台提交的数据变成了“{"pageNum":1,"pageSize":50,"filters":"{\"groupOp\":\"AND\",\"rules\":[]}","carrierCode":"","succeed":"","orderByField":"attemptCount","orderType":"asc"}”,“spiderTime”是初始化时候的排序字段,“attemptCount”是支持排序的列,除了分页信息和排序字段显示,其它内容丢失了。

截图补充

No response

浏览器

Edge v124.0.2478.80

演示地址

No response

友好承诺

  • 我承诺将本着相互尊重、理解和友善的态度进行交流,共同维护 Layui 良好的社区氛围。
@Sight-wcg Sight-wcg added the feature 功能请求 Feature Request label May 12, 2024
@sentsim
Copy link
Member

sentsim commented May 13, 2024

大版本还早。下个版本依然是小版本迭代:2.9.10

@sinbh
Copy link

sinbh commented May 15, 2024

是的, 我也认为 table超长之后 用tip,要比现在更方便美观, 比如 github的Issues列表, 鼠标放上去之后的tip, 显示的内容更多, 使用效果也很好, 虽然现在能自定义实现初级的tip, 但还是希望官方能收录这个功能.

@15810208908
Copy link

看我现在的版本,已优化了,可以使用我现在的版本了.
#1900

@hulang
Copy link

hulang commented May 22, 2024

一直用我们叶落阁主layui-soul-table

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 功能请求 Feature Request
Projects
None yet
Development

No branches or pull requests

6 participants