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.cache['test'] 获取到的数据排序后重载(搜索或翻页等操作)时没有LAY_INDEX #1834

Open
4 tasks done
tznb1 opened this issue Apr 25, 2024 · 2 comments
Open
4 tasks done
Labels
bug 疑是 BUG

Comments

@tznb1
Copy link

tznb1 commented Apr 25, 2024

议题条件

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

议题类型

疑是 BUG

使用版本

v2.9.8

问题描述

第一次初始化后通过table.cache['test']
获取的数据有LAY_INDEX
在之后有重载的动作,如翻页 切换每页显示数量等
在获取的数据就没有LAY_INDEX了
不知道是不是bug

业务代码

..

截图补充

No response

浏览器

360极速浏览器 122.0.6261.95 X64

演示地址

No response

友好承诺

  • 我承诺将本着相互尊重、理解和友善的态度进行交流,共同维护 Layui 良好的社区氛围。
@Sight-wcg Sight-wcg added the need reproduce 需要提供最小化的重现示例 label Apr 25, 2024
Copy link

@tznb1 你好,请提供一个最小化的重现,以便我们为你协助排查问题。良好的重现应当包括但不仅限于:

  • 产生问题的详细步骤
  • 与问题相关的完整代码
  • 在线 Demo (推荐通过 stackblitzcodepen 创建)

详见:🍀 Layui Issue 贡献指南
延伸:👉 为什么要提供最小化重现?

@tznb1
Copy link
Author

tznb1 commented Apr 25, 2024

Demo.tar.gz 演示Dome

初次获取
重载后获取

@Sight-wcg Sight-wcg added bug 疑是 BUG and removed need reproduce 需要提供最小化的重现示例 labels Apr 25, 2024
@Sight-wcg Sight-wcg changed the title table.cache['test'] 获取到的数据如果有重载(搜索或翻页等操作)时没有LAY_INDEX table.cache['test'] 获取到的数据排序后重载(搜索或翻页等操作)时没有LAY_INDEX Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 疑是 BUG
Projects
None yet
Development

No branches or pull requests

2 participants