diff --git a/docs/zh-CN/components/table.md b/docs/zh-CN/components/table.md index 8d6565ade..936464fcd 100755 --- a/docs/zh-CN/components/table.md +++ b/docs/zh-CN/components/table.md @@ -1844,6 +1844,7 @@ popOver 的其它配置请参考 [popover](./popover) | affixRow | `Array` | | 底部总结行 | | itemBadge | [`BadgeSchema`](./badge) | | 行角标配置 | | autoFillHeight | `boolean` | | 内容区域自适应高度 | +| resizable | `boolean` | `true` | 列宽度是否支持调整 | ## 列配置属性表 diff --git a/packages/amis/src/renderers/Table/index.tsx b/packages/amis/src/renderers/Table/index.tsx index 15c6b9b93..b5ab89f15 100644 --- a/packages/amis/src/renderers/Table/index.tsx +++ b/packages/amis/src/renderers/Table/index.tsx @@ -1503,7 +1503,8 @@ export default class Table extends React.Component { @autobind handleColResizeMouseMove(e: MouseEvent) { const moveX = e.clientX - this.lineStartX; - this.resizeLine.style.left = this.resizeLineLeft + moveX + 'px'; + // 光标right为-4px,列宽改变时会自动跟随,不需要单独处理位置 + // this.resizeLine.style.left = this.resizeLineLeft + moveX + 'px'; this.targetTh.style.width = this.targetThWidth + moveX + 'px'; }