vxe-table 3.19.35 → 3.19.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/es/style.css +1 -1
  2. package/es/table/src/cell.js +55 -25
  3. package/es/table/src/methods.js +36 -0
  4. package/es/table/src/props.js +2 -0
  5. package/es/table/src/table.js +5 -0
  6. package/es/ui/index.js +4 -1
  7. package/es/ui/src/log.js +1 -1
  8. package/lib/index.umd.js +85 -27
  9. package/lib/index.umd.min.js +1 -1
  10. package/lib/style.css +1 -1
  11. package/lib/table/src/cell.js +65 -25
  12. package/lib/table/src/cell.min.js +1 -1
  13. package/lib/table/src/methods.js +44 -0
  14. package/lib/table/src/methods.min.js +1 -1
  15. package/lib/table/src/props.js +2 -0
  16. package/lib/table/src/props.min.js +1 -1
  17. package/lib/table/src/table.js +5 -0
  18. package/lib/table/src/table.min.js +1 -1
  19. package/lib/ui/index.js +4 -1
  20. package/lib/ui/index.min.js +1 -1
  21. package/lib/ui/src/log.js +1 -1
  22. package/lib/ui/src/log.min.js +1 -1
  23. package/package.json +1 -1
  24. package/packages/table/src/cell.ts +55 -25
  25. package/packages/table/src/methods.ts +40 -0
  26. package/packages/table/src/props.ts +2 -0
  27. package/packages/table/src/table.ts +6 -0
  28. package/packages/ui/index.ts +3 -0
  29. /package/es/{iconfont.1766728191601.ttf → iconfont.1767063889499.ttf} +0 -0
  30. /package/es/{iconfont.1766728191601.woff → iconfont.1767063889499.woff} +0 -0
  31. /package/es/{iconfont.1766728191601.woff2 → iconfont.1767063889499.woff2} +0 -0
  32. /package/lib/{iconfont.1766728191601.ttf → iconfont.1767063889499.ttf} +0 -0
  33. /package/lib/{iconfont.1766728191601.woff → iconfont.1767063889499.woff} +0 -0
  34. /package/lib/{iconfont.1766728191601.woff2 → iconfont.1767063889499.woff2} +0 -0
@@ -296,6 +296,8 @@ export const tableProps = {
296
296
  virtualYConfig: Object as PropType<VxeTablePropTypes.VirtualYConfig>,
297
297
  // 滚动条配置项
298
298
  scrollbarConfig: Object as PropType<VxeTablePropTypes.ScrollbarConfig>,
299
+ // 可撤销配置项
300
+ undoHistoryConfig: Object as PropType<VxeTablePropTypes.UndoHistoryConfig>,
299
301
  // (即将废弃)优化相关
300
302
  animat: { type: Boolean, default: () => getConfig().table.animat },
301
303
  // (可能会被废弃的参数,不要使用)
@@ -1575,6 +1575,12 @@ export default {
1575
1575
  }
1576
1576
  return []
1577
1577
  },
1578
+ computeUndoHistoryOpts () {
1579
+ const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
1580
+ const props = $xeTable
1581
+
1582
+ return Object.assign({}, getConfig().table.undoHistoryConfig, props.undoHistoryConfig)
1583
+ },
1578
1584
  tabsResizeFlag () {
1579
1585
  const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
1580
1586
  const $xeTabs = $xeTable.$xeTabs
@@ -262,6 +262,9 @@ VxeUI.setConfig({
262
262
  // position: 'right',
263
263
  visible: true
264
264
  }
265
+ },
266
+ undoHistoryConfig: {
267
+ isEditRow: true
265
268
  }
266
269
  },
267
270
  grid: {