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

DataTable group column 的列顺序错误 #1832

Closed
zanqwq opened this issue Dec 13, 2021 · 1 comment · Fixed by #1833
Closed

DataTable group column 的列顺序错误 #1832

zanqwq opened this issue Dec 13, 2021 · 1 comment · Fixed by #1833
Labels
bug Something isn't working

Comments

@zanqwq
Copy link
Contributor

zanqwq commented Dec 13, 2021

TuSimple/naive-ui version (版本)

2.21.5

Vue version (Vue 版本)

3.2.12

Browser and its version (浏览器及其版本)

Chrome Version 95.0.4638.69 (Official Build) (64-bit)

System and its version (系统及其版本)

Ubuntu 20.04.3 LTS

Node version (Node 版本)

Reappearance link (重现链接)

https://codesandbox.io/s/ancient-field-qtymc?file=/src/Demo.vue

Reappearance steps (重现步骤)

none, open the codesandbox link and you will see the error render result
无复现步骤, 打开 codesandbox link 就可以看见错误的渲染结果

Expected results (期望的结果)

  1. expect the box shadow of left fixed and right fixed columns should affect the whole column

  2. except the right fixed column render order as what we declare in the example code, i.e, a1, a2, b1, b2

  3. 期望 left fixed 和 right fixed column 的 box-shadow 可以作用到一整列

  4. 期望 right fixed column 的渲染顺序如代码中指定的一样, 即 a1, a2, b1, b2

image

Actual results (实际的结果)

  1. the box shadow of left fixed and right fixed columns only affect the top most group column

  2. the right fixed column render order is reversed, i.e, a2, a1, b2, b1

  3. left fixed 和 right fixed column 的 box-shadow 只作用在最顶层的 group column

  4. right fixed column 的渲染顺序是反转的, 即 a2, a1, b2, b1

image

Remarks (补充说明)

@github-actions github-actions bot added the untriaged need to sort label Dec 13, 2021
@zanqwq
Copy link
Contributor Author

zanqwq commented Dec 13, 2021

pr 已提交
#1833

@Talljack Talljack added bug Something isn't working and removed untriaged need to sort labels Dec 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants