Skip to content

v2.12.0

Compare
Choose a tag to compare
@huangshuwei huangshuwei released this 16 Dec 14:19
· 908 commits to master since this release

Feature

Feature Shortcuts
The active cell starts editing F2
Stop editing and stay in the current cell Ctrl + Enter
Wrap text in editing cell Alt + Enter
Empty active cell contents Delete
Clear the contents of the active cell and starts editing BackSpace
Empty the contents of the active cell and fill in the blanks Space
Stops editing and moves the active cell down Enter
Stops editing and moves the active cell up Shift + Enter
Stops editing and moves the active cell to the right Tab
Stops editing and moves the active cell to the left Shift + Tab
It supports directly filling text in editable cells -
When long text input is supported, the edit box automatically expands and contracts -
Feature Shortcuts
Move the active cell up
Move the active cell to the right
Move the active cell down
Move the active cell to the left
Move the active cell down Enter
Move the active cell up Shift + Enter
Move the active cell to the right Tab
Move the active cell to the left Shift + Tab

Breaking Changes

  • Cell edit Details

    • Remove cell full row editing
    • Remove cell edit by single click
    • Remove Enter key to switch cell editing status
    • Remove the property stopEditingWhenCellLoseFocus of editOption
    • Remove the property textSelectedWhenCellFocus of editOption
    • Remove instance method stopAllEditingCell
    • Remove the parameters of the instance method stopEditingCell

Style

  • Modify the elements used by the outer border and set the border radius #418
  • Add css var @ve-table-column-fixed-border-color
  • Add css var @ve-table-td-editing-line-height

Feature

功能 快捷键
活动单元格进入编辑状态 F2
停止编辑状态,并停留在当前单元格 Ctrl + Enter
单元格内文本换行 Alt + Enter
清空活动单元格内容 Delete
清空活动单元格内容,并进入编辑状态 BackSpace
清空活动单元格内容并填入空格 Space
停止编辑状态并向下移动活动单元格 Enter
停止编辑状态并向上移动活动单元格 Shift + Enter
停止编辑状态并向右移动活动单元格 Tab
停止编辑状态并向左移动活动单元格 Shift + Tab
支持在可编辑单元格直接输入文本并进入编辑状态 -
支持长文本输入时,编辑框自动伸缩功能 -
功能 快捷键
向上移动活动单元格
向右移动活动单元格
向下移动活动单元格
向左移动活动单元格
向下移动活动单元格 Enter
向上移动活动单元格 Shift + Enter
向右移动活动单元格 Tab
向左移动活动单元格 Shift + Tab

Breaking Changes

  • 单元格编辑功能非兼容性更新 查看详情

    • 废弃单元格整行编辑功能
    • 废弃单击进入编辑状态
    • 废弃 Enter键切换单元格编辑状态
    • 废弃参数 stopEditingWhenCellLoseFocus
    • 废弃属性 textSelectedWhenCellFocus
    • 废弃示例方法 stopAllEditingCell
    • 去除实例方法 stopEditingCell 的参数

Style

  • 修改外边框作用的元素,设置 border-radius 更简单 #418
  • 新增主题变量 @ve-table-column-fixed-border-color
  • 新增主题变量 @ve-table-td-editing-line-height