vxe-table 3.17.8 → 3.17.10

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 (49) hide show
  1. package/es/components.js +1 -1
  2. package/es/grid/src/grid.js +5 -4
  3. package/es/style.css +1 -1
  4. package/es/table/src/body.js +3 -3
  5. package/es/table/src/footer.js +1 -1
  6. package/es/table/src/header.js +2 -2
  7. package/es/table/src/methods.js +37 -21
  8. package/es/table/src/table.js +3 -7
  9. package/es/table/src/util.js +6 -0
  10. package/es/ui/index.js +1 -1
  11. package/es/ui/src/log.js +1 -1
  12. package/lib/components.js +17 -18
  13. package/lib/components.min.js +1 -1
  14. package/lib/grid/src/grid.js +5 -25
  15. package/lib/grid/src/grid.min.js +1 -1
  16. package/lib/index.umd.js +70 -66
  17. package/lib/index.umd.min.js +1 -1
  18. package/lib/style.css +1 -1
  19. package/lib/table/src/body.js +3 -2
  20. package/lib/table/src/body.min.js +1 -1
  21. package/lib/table/src/footer.js +1 -1
  22. package/lib/table/src/footer.min.js +1 -1
  23. package/lib/table/src/header.js +3 -2
  24. package/lib/table/src/header.min.js +1 -1
  25. package/lib/table/src/methods.js +48 -27
  26. package/lib/table/src/methods.min.js +1 -1
  27. package/lib/table/src/table.js +3 -7
  28. package/lib/table/src/table.min.js +1 -1
  29. package/lib/table/src/util.js +6 -0
  30. package/lib/table/src/util.min.js +1 -1
  31. package/lib/ui/index.js +1 -1
  32. package/lib/ui/index.min.js +1 -1
  33. package/lib/ui/src/log.js +1 -1
  34. package/lib/ui/src/log.min.js +1 -1
  35. package/package.json +1 -1
  36. package/packages/components.ts +1 -1
  37. package/packages/grid/src/grid.ts +34 -32
  38. package/packages/table/src/body.ts +3 -3
  39. package/packages/table/src/footer.ts +1 -1
  40. package/packages/table/src/header.ts +2 -2
  41. package/packages/table/src/methods.ts +39 -21
  42. package/packages/table/src/table.ts +3 -7
  43. package/packages/table/src/util.ts +7 -0
  44. /package/es/{iconfont.1754905462391.ttf → iconfont.1755133667514.ttf} +0 -0
  45. /package/es/{iconfont.1754905462391.woff → iconfont.1755133667514.woff} +0 -0
  46. /package/es/{iconfont.1754905462391.woff2 → iconfont.1755133667514.woff2} +0 -0
  47. /package/lib/{iconfont.1754905462391.ttf → iconfont.1755133667514.ttf} +0 -0
  48. /package/lib/{iconfont.1754905462391.woff → iconfont.1755133667514.woff} +0 -0
  49. /package/lib/{iconfont.1754905462391.woff2 → iconfont.1755133667514.woff2} +0 -0
package/es/components.js CHANGED
@@ -1,4 +1,4 @@
1
- import { VxeUI } from '@vxe-ui/core';
1
+ import { VxeUI } from './ui';
2
2
  import { VxeColumn } from './column';
3
3
  import { VxeColgroup } from './colgroup';
4
4
  import { VxeGrid } from './grid';
@@ -47,9 +47,7 @@ export default {
47
47
  mixins: [
48
48
  globalMixins.sizeMixin
49
49
  ],
50
- props: Object.assign(Object.assign({
51
- // 以下仅用于类型
52
- round: { type: Boolean, default: () => getConfig().table.round }, height: [Number, String], minHeight: { type: [Number, String], default: () => getConfig().table.minHeight }, maxHeight: [Number, String], seqConfig: Object, sortConfig: Object, filterConfig: Object, editConfig: [Boolean, Object], loading: Boolean, validConfig: Object, editRules: Object, animat: { type: Boolean, default: () => getConfig().table.animat } }, tableProps), { layouts: Array, columns: Array, pagerConfig: Object, proxyConfig: Object, toolbarConfig: Object, formConfig: Object, zoomConfig: Object, size: {
50
+ props: Object.assign(Object.assign({}, tableProps), { layouts: Array, columns: Array, pagerConfig: Object, proxyConfig: Object, toolbarConfig: Object, formConfig: Object, zoomConfig: Object, size: {
53
51
  type: String,
54
52
  default: () => getConfig().grid.size || getConfig().size
55
53
  } }),
@@ -1158,7 +1156,10 @@ export default {
1158
1156
  zoom() {
1159
1157
  const $xeGrid = this;
1160
1158
  const reactData = $xeGrid.reactData;
1161
- return $xeGrid[reactData.isZMax ? 'revert' : 'maximize']();
1159
+ if (reactData.isZMax) {
1160
+ return $xeGrid.revert();
1161
+ }
1162
+ return $xeGrid.maximize();
1162
1163
  },
1163
1164
  isMaximized() {
1164
1165
  const $xeGrid = this;