ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

flx(component): TableColumn Invalid setting attribute `resizable`

Open heart-to-the-sea opened this issue 1 year ago • 9 comments
trafficstars

close#7669

heart-to-the-sea avatar Jun 21 '24 16:06 heart-to-the-sea

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

webvs2 avatar Jun 24 '24 03:06 webvs2

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

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

heart-to-the-sea avatar Jun 24 '24 07:06 heart-to-the-sea

demo.txt 测试用例

webvs2 avatar Jun 24 '24 07:06 webvs2

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

webvs2 avatar Jun 24 '24 07:06 webvs2

demo.txt 测试用例

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

heart-to-the-sea avatar Jun 24 '24 08:06 heart-to-the-sea

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

已修改

heart-to-the-sea avatar Jun 24 '24 08:06 heart-to-the-sea

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

heart-to-the-sea avatar Jun 24 '24 08:06 heart-to-the-sea

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

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

heart-to-the-sea avatar Jun 28 '24 23:06 heart-to-the-sea

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Aug 28 '24 02:08 github-actions[bot]