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组件能支持改变列的顺序和自定义列的冻结 #1781

Open
4 tasks done
158552511 opened this issue Apr 11, 2024 · 2 comments
Open
4 tasks done
Labels
feature 功能请求 Feature Request

Comments

@158552511
Copy link

议题条件

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

议题类型

疑是 BUG

使用版本

2.9.8

问题描述

表格组件能支持:

  1. 支持自由设置列的顺序
    业务系统展示列表数据时,不同用户的习惯不同,能让他们自由设置列的顺序那灵活度会大很多,体验也更好了。
  2. 支持设置列的冻结和解冻
    因为业务系统的表格列非常多,左右拖动表格水平滚动条时,往往会不忘记前面列的内容,如果能自由设置左边固定的列,那体验会好很多。

业务代码

截图补充

列顺序定义

浏览器

Chrome 64

演示地址

No response

友好承诺

  • 我承诺将本着相互尊重、理解和友善的态度进行交流,共同维护 Layui 良好的社区氛围。
@LSL1618
Copy link
Collaborator

LSL1618 commented Apr 11, 2024

table组件自带的勾选筛选列只是单纯的控制隐藏与显示列,并不能控制排序列和固定列。如果想要动态设置排序列和固定列,需要单独变更cols属性进行二次渲染。

@158552511
Copy link
Author

那能否增加动态设置列排序和固定列的功能,期待啊

@sentsim sentsim added the feature 功能请求 Feature Request label Apr 11, 2024
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

3 participants