Skip to content

fix(edit_table): 修复双击编辑时单元格内容位移 - #45

Merged
feigeCode merged 1 commit into
feigeCode:devfrom
SWZ128:fix/cell-edit-unify-container
May 12, 2026
Merged

fix(edit_table): 修复双击编辑时单元格内容位移#45
feigeCode merged 1 commit into
feigeCode:devfrom
SWZ128:fix/cell-edit-unify-container

Conversation

@SWZ128

@SWZ128 SWZ128 commented May 12, 2026

Copy link
Copy Markdown

编辑模式和显示模式走了两套不同的布局路径,前者完全跳过
table_cell_size 和边框补偿,渲染的 Input 组件又自带 py/px,
导致文本位置不一致。

改动:

  • 统一 render_cell 的容器布局,两种模式共用 table_cell_size + 边框补偿
  • Input 新增 bare() 模式,跳过自带的 padding/height/items_center,
    让父容器完全控制布局,保留所有键盘/鼠标事件处理
Before After
before after

编辑模式和显示模式走了两套不同的布局路径,前者完全跳过
table_cell_size 和边框补偿,渲染的 Input 组件又自带 py/px,
导致文本位置不一致。

改动:
- 统一 render_cell 的容器布局,两种模式共用 table_cell_size + 边框补偿
- Input 新增 bare() 模式,跳过自带的 padding/height/items_center,
  让父容器完全控制布局,保留所有键盘/鼠标事件处理
@feigeCode
feigeCode merged commit 98daba6 into feigeCode:dev May 12, 2026
0 of 3 checks passed
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.

2 participants