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

flx(component): TableColumn Invalid setting attribute resizable #7680

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

heart-to-the-sea
Copy link

@heart-to-the-sea heart-to-the-sea commented Jun 21, 2024

close#7669

@webvs2
Copy link
Contributor

webvs2 commented Jun 24, 2024

image
在使用当前修改方案测试的时候,似乎鼠标拖拽的起始落点不对,我在解决问题的也注意到了在attr 设置resizable的时候,在其中的拖拽计算出来了问题
@heart-to-the-sea

@heart-to-the-sea
Copy link
Author

image 在使用当前修改方案测试的时候,似乎鼠标拖拽的起始落点不对,我在解决问题的也注意到了在attr 设置resizable的时候,在其中的拖拽计算出来了问题 @heart-to-the-sea

你可以将测试使用的demo提供给我一份,首先确定该问题是不是我们当前这个修改所导致的

@webvs2
Copy link
Contributor

webvs2 commented Jun 24, 2024

demo.txt
测试用例

@webvs2
Copy link
Contributor

webvs2 commented Jun 24, 2024

修改标题:
flx(component): TableColumn Invalid setting attribute resizable

@heart-to-the-sea
Copy link
Author

heart-to-the-sea commented Jun 24, 2024

demo.txt 测试用例

该问题产生的原因是设置的列的宽度小于实际表格占用的总宽度,导致了列宽初始化时与实际有差别,同时导致鼠标移动出现偏差,该问题在使用columns方式一样存在, 该问题产生的原因与本次修改的关系不大,应该是一个由来已久的问题

@heart-to-the-sea heart-to-the-sea changed the title fix(Table): he page does not respond to drag issues when the drag column is set using the <ATableColumn> tag #7669 flx(component): TableColumn Invalid setting attribute resizable #7669 Jun 24, 2024
@heart-to-the-sea
Copy link
Author

修改标题: flx(component): TableColumn Invalid setting attribute resizable

已修改

@heart-to-the-sea
Copy link
Author

demo.txt 测试用例
// 如果有一列作为自适应,则不会出现该问题
image
// 如果不不存在自适应列,则使用任何方式都会存在该问题,这个问题应该不是当前修改导致的
image

@heart-to-the-sea heart-to-the-sea changed the title flx(component): TableColumn Invalid setting attribute resizable #7669 flx(component): TableColumn Invalid setting attribute resizable Jun 24, 2024
@heart-to-the-sea heart-to-the-sea changed the title flx(component): TableColumn Invalid setting attribute resizable flx(component): TableColumn Invalid setting attribute resizable Jun 24, 2024
@heart-to-the-sea
Copy link
Author

image 在使用当前修改方案测试的时候,似乎鼠标拖拽的起始落点不对,我在解决问题的也注意到了在attr 设置resizable的时候,在其中的拖拽计算出来了问题 @heart-to-the-sea

这个问题原因好象是如果都指定了宽度,但总宽度小于表格宽度,那么分布方式会变为比例而不是数值分割

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants