Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Aug 25, 2020
1 parent 8f35273 commit 944e8c7
Show file tree
Hide file tree
Showing 3 changed files with 208 additions and 46 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ import VXETablePluginMenus from 'vxe-table-plugin-menus'
// ...

VXETable.use(VXETablePluginMenus)

// Enable copy
/*
import XEClipboard from 'xe-clipboard'
VXETable.use(VXETablePluginMenus, {
copy: XEClipboard.copy
})
*/
```

## API
Expand All @@ -36,6 +45,12 @@ VXETable.use(VXETablePluginMenus)
| REVERT_ROW | 还原行数据的值 ||
| REVERT_CHECKBOX_ROW | 还原复选框选中行数据的值 ||
| REVERT_ALL | 还原所有数据的值 ||
| MERGE_CELL | 如果启用 mouse-config.area 功能,临时合并区域范围内的单元格 ||
| CLEAR_MERGE_CELL | 如果启用 mouse-config.area 功能,清除区域范围内单元格的临时合并状态 ||
| CLEAR_ALL_MERGE | 清除所有单元格及表尾的临时合并状态 ||
| COPY_CELL | 复制单元格数据的值;如果启用 mouse-config.area 功能,则复制区域范围内的单元格数据,支持 Excel 和 WPS ||
| CUT_CELL | 剪贴单元格数据的值;如果启用 mouse-config.area 功能,则剪贴区域范围内的单元格数据,支持 Excel 和 WPS ||
| PASTE_CELL | 粘贴从表格中被复制的数据;如果启用 mouse-config.area 功能,则粘贴区域范围内的单元格数据,不支持读取剪贴板 ||
| INSERT_ROW | 插入数据 | records |
| INSERT_ACTIVED_ROW | 插入数据并激活编辑状态 | Array\<records, field\> |
| INSERT_AT_ROW | 插入数据到指定位置 | records |
Expand Down
Loading

0 comments on commit 944e8c7

Please sign in to comment.