pro-design-vue 1.0.0-rc.13 → 1.0.0-rc.14

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 (118) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.full.js +157 -91
  3. package/dist/index.full.min.js +8 -8
  4. package/dist/index.full.min.js.map +1 -1
  5. package/dist/index.full.min.mjs +8 -8
  6. package/dist/index.full.min.mjs.map +1 -1
  7. package/dist/index.full.mjs +157 -91
  8. package/es/components/form/src/layouts/QueryFilter.mjs +1 -2
  9. package/es/components/form/src/layouts/QueryFilter.mjs.map +1 -1
  10. package/es/components/table/src/components/Body/Body.vue.mjs.map +1 -1
  11. package/es/components/table/src/components/Body/Body.vue2.mjs +1 -2
  12. package/es/components/table/src/components/Body/Body.vue2.mjs.map +1 -1
  13. package/es/components/table/src/components/Body/BodyCell.mjs +1 -1
  14. package/es/components/table/src/components/Body/BodyCell.mjs.map +1 -1
  15. package/es/components/table/src/components/Body/BodyRow.vue.mjs.map +1 -1
  16. package/es/components/table/src/components/Body/BodyRow.vue2.mjs +3 -3
  17. package/es/components/table/src/components/Body/BodyRow.vue2.mjs.map +1 -1
  18. package/es/components/table/src/components/Drag/RowHandler.vue.mjs.map +1 -1
  19. package/es/components/table/src/components/Drag/RowHandler.vue2.mjs +17 -16
  20. package/es/components/table/src/components/Drag/RowHandler.vue2.mjs.map +1 -1
  21. package/es/components/table/src/components/Header/HeaderCellTitle.vue.mjs +18 -6
  22. package/es/components/table/src/components/Header/HeaderCellTitle.vue.mjs.map +1 -1
  23. package/es/components/table/src/components/Header/HeaderCellTitle.vue2.mjs +1 -0
  24. package/es/components/table/src/components/Header/HeaderCellTitle.vue2.mjs.map +1 -1
  25. package/es/components/table/src/components/Header/HeaderExtraCell.vue.mjs.map +1 -1
  26. package/es/components/table/src/components/Header/HeaderExtraCell.vue2.mjs +1 -0
  27. package/es/components/table/src/components/Header/HeaderExtraCell.vue2.mjs.map +1 -1
  28. package/es/components/table/src/components/InteralTable.vue.d.ts +18 -0
  29. package/es/components/table/src/components/InteralTable.vue.mjs.map +1 -1
  30. package/es/components/table/src/components/InteralTable.vue2.mjs +11 -5
  31. package/es/components/table/src/components/InteralTable.vue2.mjs.map +1 -1
  32. package/es/components/table/src/components/Table.d.ts +22 -4
  33. package/es/components/table/src/components/Table.mjs +45 -11
  34. package/es/components/table/src/components/Table.mjs.map +1 -1
  35. package/es/components/table/src/components/interface.d.ts +30 -3
  36. package/es/components/table/src/components/interface.mjs +9 -1
  37. package/es/components/table/src/components/interface.mjs.map +1 -1
  38. package/es/components/table/src/hooks/useCellProps.mjs +3 -1
  39. package/es/components/table/src/hooks/useCellProps.mjs.map +1 -1
  40. package/es/components/table/src/hooks/useContainer.mjs +1 -1
  41. package/es/components/table/src/hooks/useContainer.mjs.map +1 -1
  42. package/es/components/table/src/hooks/useFetchData.mjs +2 -1
  43. package/es/components/table/src/hooks/useFetchData.mjs.map +1 -1
  44. package/es/components/table/src/hooks/useHover.d.ts +3 -0
  45. package/es/components/table/src/hooks/useHover.mjs +3 -1
  46. package/es/components/table/src/hooks/useHover.mjs.map +1 -1
  47. package/es/components/table/src/hooks/usePagination.d.ts +1 -0
  48. package/es/components/table/src/hooks/usePagination.mjs +7 -2
  49. package/es/components/table/src/hooks/usePagination.mjs.map +1 -1
  50. package/es/components/table/src/utils/genProColumnToColumn.mjs +6 -4
  51. package/es/components/table/src/utils/genProColumnToColumn.mjs.map +1 -1
  52. package/es/components/table/src/utils/util.d.ts +1 -1
  53. package/es/components/table/src/utils/util.mjs +1 -1
  54. package/es/components/table/src/utils/util.mjs.map +1 -1
  55. package/es/index.d.ts +32 -3
  56. package/es/utils/validate.d.ts +1 -1
  57. package/es/utils/validate.mjs +1 -1
  58. package/es/utils/validate.mjs.map +1 -1
  59. package/es/version.d.ts +1 -1
  60. package/es/version.mjs +1 -1
  61. package/es/version.mjs.map +1 -1
  62. package/lib/components/form/src/layouts/QueryFilter.js +1 -2
  63. package/lib/components/form/src/layouts/QueryFilter.js.map +1 -1
  64. package/lib/components/table/src/components/Body/Body.vue.js.map +1 -1
  65. package/lib/components/table/src/components/Body/Body.vue2.js +1 -2
  66. package/lib/components/table/src/components/Body/Body.vue2.js.map +1 -1
  67. package/lib/components/table/src/components/Body/BodyCell.js +1 -1
  68. package/lib/components/table/src/components/Body/BodyCell.js.map +1 -1
  69. package/lib/components/table/src/components/Body/BodyRow.vue.js.map +1 -1
  70. package/lib/components/table/src/components/Body/BodyRow.vue2.js +3 -3
  71. package/lib/components/table/src/components/Body/BodyRow.vue2.js.map +1 -1
  72. package/lib/components/table/src/components/Drag/RowHandler.vue.js.map +1 -1
  73. package/lib/components/table/src/components/Drag/RowHandler.vue2.js +17 -16
  74. package/lib/components/table/src/components/Drag/RowHandler.vue2.js.map +1 -1
  75. package/lib/components/table/src/components/Header/HeaderCellTitle.vue.js +17 -5
  76. package/lib/components/table/src/components/Header/HeaderCellTitle.vue.js.map +1 -1
  77. package/lib/components/table/src/components/Header/HeaderCellTitle.vue2.js +1 -0
  78. package/lib/components/table/src/components/Header/HeaderCellTitle.vue2.js.map +1 -1
  79. package/lib/components/table/src/components/Header/HeaderExtraCell.vue.js.map +1 -1
  80. package/lib/components/table/src/components/Header/HeaderExtraCell.vue2.js +1 -0
  81. package/lib/components/table/src/components/Header/HeaderExtraCell.vue2.js.map +1 -1
  82. package/lib/components/table/src/components/InteralTable.vue.d.ts +18 -0
  83. package/lib/components/table/src/components/InteralTable.vue.js.map +1 -1
  84. package/lib/components/table/src/components/InteralTable.vue2.js +12 -6
  85. package/lib/components/table/src/components/InteralTable.vue2.js.map +1 -1
  86. package/lib/components/table/src/components/Table.d.ts +22 -4
  87. package/lib/components/table/src/components/Table.js +44 -10
  88. package/lib/components/table/src/components/Table.js.map +1 -1
  89. package/lib/components/table/src/components/interface.d.ts +30 -3
  90. package/lib/components/table/src/components/interface.js +9 -1
  91. package/lib/components/table/src/components/interface.js.map +1 -1
  92. package/lib/components/table/src/hooks/useCellProps.js +3 -1
  93. package/lib/components/table/src/hooks/useCellProps.js.map +1 -1
  94. package/lib/components/table/src/hooks/useContainer.js +1 -1
  95. package/lib/components/table/src/hooks/useContainer.js.map +1 -1
  96. package/lib/components/table/src/hooks/useFetchData.js +2 -1
  97. package/lib/components/table/src/hooks/useFetchData.js.map +1 -1
  98. package/lib/components/table/src/hooks/useHover.d.ts +3 -0
  99. package/lib/components/table/src/hooks/useHover.js +2 -0
  100. package/lib/components/table/src/hooks/useHover.js.map +1 -1
  101. package/lib/components/table/src/hooks/usePagination.d.ts +1 -0
  102. package/lib/components/table/src/hooks/usePagination.js +7 -1
  103. package/lib/components/table/src/hooks/usePagination.js.map +1 -1
  104. package/lib/components/table/src/utils/genProColumnToColumn.js +6 -4
  105. package/lib/components/table/src/utils/genProColumnToColumn.js.map +1 -1
  106. package/lib/components/table/src/utils/util.d.ts +1 -1
  107. package/lib/components/table/src/utils/util.js +1 -1
  108. package/lib/components/table/src/utils/util.js.map +1 -1
  109. package/lib/index.d.ts +32 -3
  110. package/lib/utils/validate.d.ts +1 -1
  111. package/lib/utils/validate.js +1 -1
  112. package/lib/utils/validate.js.map +1 -1
  113. package/lib/version.d.ts +1 -1
  114. package/lib/version.js +1 -1
  115. package/lib/version.js.map +1 -1
  116. package/package.json +1 -1
  117. package/theme-chalk/index.css +1 -1
  118. package/theme-chalk/src/table/table.less +1 -1
@@ -1,4 +1,4 @@
1
- /*! Pro Design Vue v1.0.0-rc.13 */
1
+ /*! Pro Design Vue v1.0.0-rc.14 */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('ant-design-vue'), require('vue')) :
@@ -16,7 +16,7 @@
16
16
  const SCROLL_FIXED_CLASS = `_scroll__fixed_`;
17
17
  const DEFAULT_NAMESPACE = "pro";
18
18
 
19
- const version$1 = "1.0.0-rc.13";
19
+ const version$1 = "1.0.0-rc.14";
20
20
 
21
21
  const makeInstaller = (components = []) => {
22
22
  const install = (app) => {
@@ -2206,13 +2206,13 @@
2206
2206
  function isNumber$2(val) {
2207
2207
  return is$1(val, "Number");
2208
2208
  }
2209
- function isPromise$1(val) {
2210
- return is$1(val, "Promise") && isObject$4(val) && isFunction$3(val.then) && isFunction$3(val.catch);
2209
+ function isPromise(val) {
2210
+ return is$1(val, "Promise") && isFunction$2(val.then) && isFunction$2(val.catch);
2211
2211
  }
2212
2212
  function isString$1(val) {
2213
2213
  return is$1(val, "String");
2214
2214
  }
2215
- function isFunction$3(val) {
2215
+ function isFunction$2(val) {
2216
2216
  return typeof val === "function";
2217
2217
  }
2218
2218
  function isArray$2(val) {
@@ -2256,7 +2256,7 @@
2256
2256
  ...okButtonProps
2257
2257
  },
2258
2258
  async onOk(...args) {
2259
- if (isPromise$1(onOk)) {
2259
+ if (isPromise(onOk)) {
2260
2260
  return await new Promise(() => {
2261
2261
  onOk == null ? void 0 : onOk(args);
2262
2262
  });
@@ -2507,7 +2507,7 @@
2507
2507
  var funcTag$2 = "[object Function]";
2508
2508
  var genTag$1 = "[object GeneratorFunction]";
2509
2509
  var proxyTag = "[object Proxy]";
2510
- function isFunction$2(value) {
2510
+ function isFunction$1(value) {
2511
2511
  if (!isObject$3(value)) {
2512
2512
  return false;
2513
2513
  }
@@ -2554,7 +2554,7 @@
2554
2554
  if (!isObject$3(value) || isMasked(value)) {
2555
2555
  return false;
2556
2556
  }
2557
- var pattern = isFunction$2(value) ? reIsNative : reIsHostCtor;
2557
+ var pattern = isFunction$1(value) ? reIsNative : reIsHostCtor;
2558
2558
  return pattern.test(toSource(value));
2559
2559
  }
2560
2560
 
@@ -2756,7 +2756,7 @@
2756
2756
  }
2757
2757
 
2758
2758
  function isArrayLike(value) {
2759
- return value != null && isLength(value.length) && !isFunction$2(value);
2759
+ return value != null && isLength(value.length) && !isFunction$1(value);
2760
2760
  }
2761
2761
 
2762
2762
  function isIterateeCall(value, index, object) {
@@ -4429,7 +4429,7 @@
4429
4429
  newValue = objValue;
4430
4430
  if (isArguments(objValue)) {
4431
4431
  newValue = toPlainObject(objValue);
4432
- } else if (!isObject$3(objValue) || isFunction$2(objValue)) {
4432
+ } else if (!isObject$3(objValue) || isFunction$1(objValue)) {
4433
4433
  newValue = initCloneObject(srcValue);
4434
4434
  }
4435
4435
  } else {
@@ -8480,7 +8480,7 @@
8480
8480
  });
8481
8481
  const isComponent = vue.computed(() => {
8482
8482
  const { icon } = props;
8483
- return !isString$1(icon) && (isObject$4(icon) || isFunction$3(icon));
8483
+ return !isString$1(icon) && (isObject$4(icon) || isFunction$2(icon));
8484
8484
  });
8485
8485
  return (_ctx, _cache) => {
8486
8486
  return isComponent.value ? (vue.openBlock(), vue.createBlock(
@@ -9144,7 +9144,7 @@
9144
9144
  return false;
9145
9145
  }
9146
9146
  }
9147
- function isFunction$1(value) {
9147
+ function isFunction(value) {
9148
9148
  return typeof value === "function";
9149
9149
  }
9150
9150
  var slice = Array.prototype.slice;
@@ -9152,7 +9152,7 @@
9152
9152
  return Array.from ? Array.from(value) : slice.call(value);
9153
9153
  }
9154
9154
  function forEach(data, callback) {
9155
- if (data && isFunction$1(callback)) {
9155
+ if (data && isFunction(callback)) {
9156
9156
  if (Array.isArray(data) || isNumber(data.length)) {
9157
9157
  toArray$1(data).forEach(function(value, key) {
9158
9158
  callback.call(data, value, key, data);
@@ -9366,7 +9366,7 @@
9366
9366
  }
9367
9367
  function dispatchEvent(element, type, data) {
9368
9368
  var event;
9369
- if (isFunction$1(Event) && isFunction$1(CustomEvent)) {
9369
+ if (isFunction(Event) && isFunction(CustomEvent)) {
9370
9370
  event = new CustomEvent(type, {
9371
9371
  detail: data,
9372
9372
  bubbles: true,
@@ -10105,19 +10105,19 @@
10105
10105
  var events$1 = {
10106
10106
  bind: function bind() {
10107
10107
  var element = this.element, options = this.options, cropper = this.cropper;
10108
- if (isFunction$1(options.cropstart)) {
10108
+ if (isFunction(options.cropstart)) {
10109
10109
  addListener(element, EVENT_CROP_START, options.cropstart);
10110
10110
  }
10111
- if (isFunction$1(options.cropmove)) {
10111
+ if (isFunction(options.cropmove)) {
10112
10112
  addListener(element, EVENT_CROP_MOVE, options.cropmove);
10113
10113
  }
10114
- if (isFunction$1(options.cropend)) {
10114
+ if (isFunction(options.cropend)) {
10115
10115
  addListener(element, EVENT_CROP_END, options.cropend);
10116
10116
  }
10117
- if (isFunction$1(options.crop)) {
10117
+ if (isFunction(options.crop)) {
10118
10118
  addListener(element, EVENT_CROP, options.crop);
10119
10119
  }
10120
- if (isFunction$1(options.zoom)) {
10120
+ if (isFunction(options.zoom)) {
10121
10121
  addListener(element, EVENT_ZOOM, options.zoom);
10122
10122
  }
10123
10123
  addListener(cropper, EVENT_POINTER_DOWN, this.onCropStart = this.cropStart.bind(this));
@@ -10138,19 +10138,19 @@
10138
10138
  },
10139
10139
  unbind: function unbind() {
10140
10140
  var element = this.element, options = this.options, cropper = this.cropper;
10141
- if (isFunction$1(options.cropstart)) {
10141
+ if (isFunction(options.cropstart)) {
10142
10142
  removeListener(element, EVENT_CROP_START, options.cropstart);
10143
10143
  }
10144
- if (isFunction$1(options.cropmove)) {
10144
+ if (isFunction(options.cropmove)) {
10145
10145
  removeListener(element, EVENT_CROP_MOVE, options.cropmove);
10146
10146
  }
10147
- if (isFunction$1(options.cropend)) {
10147
+ if (isFunction(options.cropend)) {
10148
10148
  removeListener(element, EVENT_CROP_END, options.cropend);
10149
10149
  }
10150
- if (isFunction$1(options.crop)) {
10150
+ if (isFunction(options.crop)) {
10151
10151
  removeListener(element, EVENT_CROP, options.crop);
10152
10152
  }
10153
- if (isFunction$1(options.zoom)) {
10153
+ if (isFunction(options.zoom)) {
10154
10154
  removeListener(element, EVENT_ZOOM, options.zoom);
10155
10155
  }
10156
10156
  removeListener(cropper, EVENT_POINTER_DOWN, this.onCropStart);
@@ -11555,7 +11555,7 @@
11555
11555
  this.crop();
11556
11556
  }
11557
11557
  this.setData(options.data);
11558
- if (isFunction$1(options.ready)) {
11558
+ if (isFunction(options.ready)) {
11559
11559
  addListener(element, EVENT_READY, options.ready, {
11560
11560
  once: true
11561
11561
  });
@@ -14766,7 +14766,7 @@
14766
14766
  });
14767
14767
  const icon = vue.computed(() => {
14768
14768
  const render = getSlot(props.iconRender, formSlotsContext);
14769
- if (isFunction$3(render)) {
14769
+ if (isFunction$2(render)) {
14770
14770
  return vue.createVNode(RenderVNode$1, {
14771
14771
  "vnode": render
14772
14772
  }, null);
@@ -14775,7 +14775,7 @@
14775
14775
  });
14776
14776
  const title = vue.computed(() => {
14777
14777
  const render = getSlot(props.title, formSlotsContext);
14778
- if (isFunction$3(render)) {
14778
+ if (isFunction$2(render)) {
14779
14779
  return vue.createVNode(RenderVNode$1, {
14780
14780
  "vnode": render
14781
14781
  }, null);
@@ -14889,7 +14889,7 @@
14889
14889
  });
14890
14890
  const icon = vue.computed(() => {
14891
14891
  const render = getSlot(props.iconRender, formSlotsContext);
14892
- if (isFunction$3(render)) {
14892
+ if (isFunction$2(render)) {
14893
14893
  return vue.createVNode(RenderVNode$1, {
14894
14894
  "vnode": render
14895
14895
  }, null);
@@ -14898,7 +14898,7 @@
14898
14898
  });
14899
14899
  const title = vue.computed(() => {
14900
14900
  const render = getSlot(props.title, formSlotsContext);
14901
- if (isFunction$3(render)) {
14901
+ if (isFunction$2(render)) {
14902
14902
  return vue.createVNode(RenderVNode$1, {
14903
14903
  "vnode": render
14904
14904
  }, null);
@@ -14907,7 +14907,7 @@
14907
14907
  });
14908
14908
  const description = vue.computed(() => {
14909
14909
  const render = getSlot(props.description, formSlotsContext);
14910
- if (isFunction$3(render)) {
14910
+ if (isFunction$2(render)) {
14911
14911
  return vue.createVNode(RenderVNode$1, {
14912
14912
  "vnode": render
14913
14913
  }, null);
@@ -17103,7 +17103,6 @@
17103
17103
  }
17104
17104
  if (props.defaultColsNumber !== void 0) {
17105
17105
  const oneRowControlsNumber = 24 / spanSize.value.span - 1;
17106
- console.log("\u{1F680} ~ showLength ~ oneRowControlsNumber:", oneRowControlsNumber);
17107
17106
  return props.defaultColsNumber > oneRowControlsNumber ? oneRowControlsNumber : props.defaultColsNumber;
17108
17107
  }
17109
17108
  return Math.max(1, 24 / spanSize.value.span - 1);
@@ -17140,7 +17139,7 @@
17140
17139
  }
17141
17140
  return void 0;
17142
17141
  });
17143
- const [collapsed, setCollapsed] = useMergedState$1(() => props.defaultCollapsed && !!props.submitter, {
17142
+ const [collapsed, setCollapsed] = useMergedState$1(() => props.defaultCollapsed && props.submitter !== false, {
17144
17143
  value: vue.computed(() => props.collapsed),
17145
17144
  onChange: (val) => {
17146
17145
  emit("collapse", val);
@@ -19753,6 +19752,7 @@
19753
19752
  }, props.rowHoverDelay.value + 50);
19754
19753
  };
19755
19754
  const hoverContext = {
19755
+ rowHover: props.rowHover,
19756
19756
  hoverColumnKey,
19757
19757
  hoverRowKey,
19758
19758
  handleCellHover,
@@ -19763,6 +19763,7 @@
19763
19763
  };
19764
19764
  const useInjectHover = () => {
19765
19765
  return vue.inject(HoverContextKey, {
19766
+ rowHover: vue.computed(() => void 0),
19766
19767
  hoverRowKey: vue.ref(),
19767
19768
  hoverColumnKey: vue.ref(),
19768
19769
  handleCellHover: () => {
@@ -19784,9 +19785,6 @@
19784
19785
  function is(val, type) {
19785
19786
  return toString.call(val) === `[object ${type}]`;
19786
19787
  }
19787
- function isFunction(val) {
19788
- return typeof val === "function";
19789
- }
19790
19788
  function isArray(val) {
19791
19789
  return val && Array.isArray(val);
19792
19790
  }
@@ -19980,9 +19978,6 @@
19980
19978
  currentData.splice(indexs[indexsLen - 1], 1);
19981
19979
  return currentData;
19982
19980
  }
19983
- function isPromise(val) {
19984
- return is(val, "Promise") && isObject(val) && isFunction(val.then) && isFunction(val.catch);
19985
- }
19986
19981
  function ensureValidVNode(vnodes) {
19987
19982
  return vnodes.some(
19988
19983
  (vnode) => !vue.isVNode(vnode) || vnode.type !== vue.Comment && !(vnode.type === vue.Fragment && !ensureValidVNode(vnode.children))
@@ -20065,7 +20060,8 @@
20065
20060
  type: [Number, String]
20066
20061
  },
20067
20062
  size: {
20068
- type: String
20063
+ type: String,
20064
+ default: "middle"
20069
20065
  },
20070
20066
  bordered: {
20071
20067
  type: Boolean,
@@ -20161,6 +20157,10 @@
20161
20157
  type: Number,
20162
20158
  default: 59
20163
20159
  },
20160
+ rowHover: {
20161
+ type: Boolean,
20162
+ default: void 0
20163
+ },
20164
20164
  rowKey: {
20165
20165
  type: [Function, String]
20166
20166
  },
@@ -20275,6 +20275,9 @@
20275
20275
  "onUpdate:dataSource": {
20276
20276
  type: Function
20277
20277
  },
20278
+ "onUpdate:columns": {
20279
+ type: Function
20280
+ },
20278
20281
  columnEmptyText: {
20279
20282
  type: [String, Boolean],
20280
20283
  default: "-"
@@ -20358,8 +20361,9 @@
20358
20361
 
20359
20362
  const mergePropsAndPagination = ({ pagination }, intl) => {
20360
20363
  if (pagination) {
20361
- const { current, pageSize, total, showTotal, showSizeChanger } = pagination;
20364
+ const { current, pageSize, total, showTotal, showSizeChanger, ...rest } = pagination;
20362
20365
  return {
20366
+ ...rest,
20363
20367
  current: current || 1,
20364
20368
  total: total || 0,
20365
20369
  pageSize: pageSize || 10,
@@ -20853,7 +20857,7 @@
20853
20857
  var _a2;
20854
20858
  return (_a2 = props.columnsState) == null ? void 0 : _a2.persistenceKey;
20855
20859
  },
20856
- columnsMap,
20860
+ () => columnsMap.value,
20857
20861
  () => {
20858
20862
  var _a2;
20859
20863
  return (_a2 = props.columnsState) == null ? void 0 : _a2.persistenceType;
@@ -20914,8 +20918,8 @@
20914
20918
  var _a;
20915
20919
  const { columns, counter } = params;
20916
20920
  return (_a = columns == null ? void 0 : columns.map((columnProps, columnsIndex) => {
20917
- var _a2, _b;
20918
- const { key, dataIndex, disable, valueEnum } = columnProps;
20921
+ var _a2, _b, _c;
20922
+ const { key, dataIndex, disable, valueEnum, width } = columnProps;
20919
20923
  const columnKey = genColumnKey(
20920
20924
  // key || (dataIndex ? `${dataIndex.toString()}-${columnsIndex}` : ''),
20921
20925
  key || (dataIndex == null ? void 0 : dataIndex.toString()),
@@ -20924,18 +20928,20 @@
20924
20928
  const config = counter.columnsMap.value[columnKey] || {
20925
20929
  fixed: columnProps.fixed
20926
20930
  };
20931
+ console.log("\u{1F680} ~ ?.map ~ config:", config);
20927
20932
  const tempColumns = {
20928
20933
  index: columnsIndex,
20929
20934
  key: columnKey,
20930
20935
  ...columnProps,
20931
20936
  valueEnum,
20932
20937
  fixed: config.fixed,
20933
- disable: (_a2 = config.disable) != null ? _a2 : disable,
20938
+ width: (_a2 = config.width) != null ? _a2 : width,
20939
+ disable: (_b = config.disable) != null ? _b : disable,
20934
20940
  // width: columnProps.width || (columnProps.fixed ? 200 : undefined),
20935
20941
  children: columnProps.children ? genProColumnToColumn(
20936
20942
  {
20937
20943
  ...params,
20938
- columns: (_b = columnProps == null ? void 0 : columnProps.children) != null ? _b : []
20944
+ columns: (_c = columnProps == null ? void 0 : columnProps.children) != null ? _c : []
20939
20945
  },
20940
20946
  { ...columnProps, key: columnKey }
20941
20947
  ) : void 0
@@ -24470,6 +24476,7 @@
24470
24476
  }
24471
24477
 
24472
24478
  const DEFAULT_PAGE_SIZE = 10;
24479
+ const PAGE_SIZE_OPTIONS = ["5", "10", "20", "50"];
24473
24480
  function getPaginationParam(pagination, mergedPagination) {
24474
24481
  const param = {
24475
24482
  current: mergedPagination.current,
@@ -24499,7 +24506,11 @@
24499
24506
  return result;
24500
24507
  }
24501
24508
  function usePagination(total, props, mergedData, onChange) {
24502
- const innerPagination = vue.reactive({ current: 1, pageSize: DEFAULT_PAGE_SIZE });
24509
+ const innerPagination = vue.reactive({
24510
+ current: 1,
24511
+ pageSize: DEFAULT_PAGE_SIZE,
24512
+ pageSizeOptions: PAGE_SIZE_OPTIONS
24513
+ });
24503
24514
  const size = vue.computed(() => props.size);
24504
24515
  const mergedPagination = vue.computed(() => {
24505
24516
  const { pagination } = props;
@@ -24729,7 +24740,9 @@
24729
24740
  if (copyCustomCellProps.rowSpan > 1) {
24730
24741
  mergeCellStyles.height = `${getRowHeight(rowIndex, copyCustomCellProps.rowSpan) - 1}px`;
24731
24742
  }
24732
- cellProps.props = Object.assign({}, copyCustomCellProps, { style: mergeCellStyles });
24743
+ cellProps.props = Object.assign({}, copyCustomCellProps, {
24744
+ style: { ...copyCustomCellProps.style, ...mergeCellStyles }
24745
+ });
24733
24746
  return cellProps;
24734
24747
  };
24735
24748
  vue.watchEffect(() => {
@@ -25754,6 +25767,7 @@
25754
25767
  var _a, _b;
25755
25768
  return [
25756
25769
  typeof props.column.title == "function" ? props.column.title({
25770
+ column: props.column.originColumn,
25757
25771
  sortColumns: sortColumns.value,
25758
25772
  sortColumn: (_a = sortColumns.value[0]) == null ? void 0 : _a.column,
25759
25773
  sortOrder: (_b = sortColumns.value[0]) == null ? void 0 : _b.order
@@ -25854,16 +25868,28 @@
25854
25868
  1040
25855
25869
  /* FULL_PROPS, DYNAMIC_SLOTS */
25856
25870
  )) : vue.createCommentVNode("v-if", true),
25857
- _ctx.column.headerTooltip ? (vue.openBlock(), vue.createBlock(_component_Tooltip, {
25858
- key: 1,
25859
- title: _ctx.column.headerTooltip
25860
- }, {
25871
+ _ctx.column.headerTooltip ? (vue.openBlock(), vue.createBlock(_component_Tooltip, { key: 1 }, {
25872
+ title: vue.withCtx(() => [
25873
+ _ctx.column.headerTooltip === true ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.title), { key: 0 })) : (vue.openBlock(), vue.createElementBlock(
25874
+ vue.Fragment,
25875
+ { key: 1 },
25876
+ [
25877
+ vue.createTextVNode(
25878
+ vue.toDisplayString(_ctx.column.headerTooltip),
25879
+ 1
25880
+ /* TEXT */
25881
+ )
25882
+ ],
25883
+ 64
25884
+ /* STABLE_FRAGMENT */
25885
+ ))
25886
+ ]),
25861
25887
  default: vue.withCtx(() => [
25862
25888
  vue.createVNode(_component_InfoCircleOutlined, { style: { "margin-inline-start": "3px", "font-size": "12px" } })
25863
25889
  ]),
25864
25890
  _: 1
25865
25891
  /* STABLE */
25866
- }, 8, ["title"])) : vue.createCommentVNode("v-if", true)
25892
+ })) : vue.createCommentVNode("v-if", true)
25867
25893
  ], 14, _hoisted_1$d);
25868
25894
  }
25869
25895
  var HeaderCellTitle = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["render", _sfc_render$w]]);
@@ -27048,6 +27074,7 @@
27048
27074
  var _a, _b;
27049
27075
  return vue.h(vue.Fragment, [
27050
27076
  typeof props.column.title == "function" ? props.column.title({
27077
+ column: props.column.originColumn,
27051
27078
  sortColumns: sortColumns.value,
27052
27079
  sortColumn: (_a = sortColumns.value[0]) == null ? void 0 : _a.column,
27053
27080
  sortOrder: (_b = sortColumns.value[0]) == null ? void 0 : _b.order
@@ -28477,28 +28504,29 @@
28477
28504
  event: rowDragEvent.value
28478
28505
  });
28479
28506
  }
28507
+ } else {
28508
+ return [
28509
+ vue.createVNode(
28510
+ "span",
28511
+ { class: `${prefixCls.value}-drag-ghost-image-icon`, innerHTML: dragIcon2 },
28512
+ null
28513
+ ),
28514
+ vue.createVNode(
28515
+ "span",
28516
+ {
28517
+ class: `${prefixCls.value}-drag-ghost-image-label`,
28518
+ style: { maxWidth: `${parentOffsetWidth}px` }
28519
+ },
28520
+ [(_a = slots.label) == null ? void 0 : _a.call(slots)]
28521
+ )
28522
+ ];
28480
28523
  }
28481
- return [
28482
- vue.createVNode(
28483
- "span",
28484
- { class: `${prefixCls.value}-drag-ghost-image-icon`, innerHTML: dragIcon2 },
28485
- null
28486
- ),
28487
- vue.createVNode(
28488
- "span",
28489
- {
28490
- class: `${prefixCls.value}-drag-ghost-image-label`,
28491
- style: { maxWidth: `${parentOffsetWidth}px` }
28492
- },
28493
- [(_a = slots.label) == null ? void 0 : _a.call(slots)]
28494
- )
28495
- ];
28496
28524
  };
28497
28525
  const renderDragGhost = () => {
28498
28526
  if (!dragGhostImage) {
28499
28527
  dragGhostImage = vue.createVNode(renderDragGhostImage);
28528
+ vue.render(dragGhostImage, dragGhostDom);
28500
28529
  }
28501
- vue.render(dragGhostImage, dragGhostDom);
28502
28530
  };
28503
28531
  vue.watch(
28504
28532
  [prefixCls],
@@ -28904,7 +28932,7 @@
28904
28932
  newValue: modelValue.value,
28905
28933
  oldValue
28906
28934
  });
28907
- if (isPromise$1(result)) {
28935
+ if (isPromise(result)) {
28908
28936
  result.then((res) => {
28909
28937
  res && emit("closeEditor", [props.cellKey]);
28910
28938
  }).catch(() => {
@@ -29124,7 +29152,7 @@
29124
29152
  recordIndexs
29125
29153
  })) != null ? _c2 : value;
29126
29154
  const beforeOpen = (_e2 = (_d2 = tableContext.props) == null ? void 0 : _d2.onBeforeOpenEditor) == null ? void 0 : _e2.call(_d2, cellRenderArgs);
29127
- if (isPromise$1(beforeOpen)) {
29155
+ if (isPromise(beforeOpen)) {
29128
29156
  beforeOpen.then((res) => {
29129
29157
  var _a3, _b3;
29130
29158
  if (res) {
@@ -29145,7 +29173,7 @@
29145
29173
  ...cellRenderArgs,
29146
29174
  oldValue: oldValuesMap.value[key]
29147
29175
  });
29148
- if (isPromise$1(beforeClose)) {
29176
+ if (isPromise(beforeClose)) {
29149
29177
  beforeClose.then((res) => {
29150
29178
  var _a3, _b3;
29151
29179
  if (res) {
@@ -29272,7 +29300,7 @@
29272
29300
  // }),
29273
29301
  shouldOpen: (isEllipsis) => {
29274
29302
  var _a2;
29275
- return (tooltipProps == null ? void 0 : tooltipProps.shouldOpen) ? (_a2 = tooltipProps == null ? void 0 : tooltipProps.shouldOpen) == null ? void 0 : _a2.call(tooltipProps, isEllipsis, cellRenderArgs) : isEllipsis;
29303
+ return (tooltipProps == null ? void 0 : tooltipProps.shouldOpen) ? (_a2 = tooltipProps == null ? void 0 : tooltipProps.shouldOpen) == null ? void 0 : _a2.call(tooltipProps, isEllipsis, cellRenderArgs) : true;
29276
29304
  },
29277
29305
  onCellLeave: () => {
29278
29306
  emit("cellLeave");
@@ -29904,7 +29932,7 @@
29904
29932
  () => (props.type === "center" ? tableContext.centerRowColumnsMap.value.get(props.rowKey) : columns.value).filter((item) => !!item)
29905
29933
  );
29906
29934
  const { tooltipOpen, leftPopupContainer, centerPopupContainer, rightPopupContainer } = useInjectBody();
29907
- const { handleCellBlur, handleCellHover, hoverRowKey, hoverColumnKey } = useInjectHover();
29935
+ const { handleCellBlur, handleCellHover, hoverRowKey, hoverColumnKey, rowHover } = useInjectHover();
29908
29936
  const popupContainer = vue.computed(
29909
29937
  () => props.type === "left" ? leftPopupContainer.value : props.type === "center" ? centerPopupContainer.value : props.type === "right" ? rightPopupContainer.value : null
29910
29938
  );
@@ -29913,7 +29941,7 @@
29913
29941
  vue.watch(
29914
29942
  [isRowHover, bodyRow],
29915
29943
  () => {
29916
- bodyRow.value && (isRowHover.value ? addClass(bodyRow.value, `${props.prefixCls}-row-hover`) : removeClass(bodyRow.value, `${props.prefixCls}-row-hover`));
29944
+ bodyRow.value && rowHover.value && (isRowHover.value ? addClass(bodyRow.value, `${props.prefixCls}-row-hover`) : removeClass(bodyRow.value, `${props.prefixCls}-row-hover`));
29917
29945
  },
29918
29946
  { immediate: true, flush: "post" }
29919
29947
  );
@@ -29980,7 +30008,7 @@
29980
30008
  {
29981
30009
  [`${prefixCls}-row`]: true,
29982
30010
  [`${prefixCls}-row-level-${indent}`]: true,
29983
- [`${prefixCls}-row-hover`]: isRowHover.value,
30011
+ [`${prefixCls}-row-hover`]: isRowHover.value && rowHover.value,
29984
30012
  [`${prefixCls}-row-dragging`]: isDragging.value,
29985
30013
  [`${prefixCls}-row-dragging-insert-target`]: tableContext.insertToRowKey.value === props.rowKey,
29986
30014
  [`${prefixCls}-row-odd`]: !isEven,
@@ -30657,8 +30685,7 @@
30657
30685
  };
30658
30686
  });
30659
30687
  const bodyViewportStyle = vue.computed(() => ({
30660
- width: `calc(100% + ${tableContext.showVerticalScrollbar.value ? tableContext.scrollBarSize.value || 15 : 0}px)`,
30661
- // width: `calc(100% + 0px)`,
30688
+ width: `calc(100% + ${tableContext.showVerticalScrollbar.value ? tableContext.scrollBarSize.value : 0}px)`,
30662
30689
  overflowX: "hidden",
30663
30690
  overflowY: "auto",
30664
30691
  height: "100%"
@@ -31944,9 +31971,14 @@
31944
31971
  var _a;
31945
31972
  const width = col.width;
31946
31973
  const result = (_a = props.onResizeColumn) == null ? void 0 : _a.call(props, w, col, action);
31947
- if (result !== false && !(width === w && col.width === w)) {
31948
- col.width = width !== col.width ? col.width : w;
31949
- vue.triggerRef(rawColumns);
31974
+ if (result !== false) {
31975
+ if (!(width === w && col.width === w)) {
31976
+ col.width = width !== col.width ? col.width : w;
31977
+ vue.triggerRef(rawColumns);
31978
+ }
31979
+ if (action === "end") {
31980
+ emit("update:columns", rawColumns.value, "resize");
31981
+ }
31950
31982
  }
31951
31983
  },
31952
31984
  onRowDragEnd: (opt) => {
@@ -32120,7 +32152,7 @@
32120
32152
  rawColumns.value.splice(index, 1);
32121
32153
  }
32122
32154
  vue.triggerRef(rawColumns);
32123
- emit("update:columns", rawColumns.value);
32155
+ emit("update:columns", rawColumns.value, "drag");
32124
32156
  };
32125
32157
  if (isPromise(dragEnd)) {
32126
32158
  dragEnd.then(() => {
@@ -33702,7 +33734,8 @@
33702
33734
  const {
33703
33735
  hoverRowKey
33704
33736
  } = useProvideHover({
33705
- rowHoverDelay: vue.computed(() => props.rowHoverDelay)
33737
+ rowHoverDelay: vue.computed(() => props.rowHoverDelay),
33738
+ rowHover: vue.computed(() => props.rowHover)
33706
33739
  });
33707
33740
  const mergedPrefixCls = vue.computed(() => {
33708
33741
  var _a2;
@@ -33746,10 +33779,7 @@
33746
33779
  if (props.pagination === false) {
33747
33780
  return false;
33748
33781
  }
33749
- if (!props.request) {
33750
- return Object.assign({}, pagination.value, props.pagination);
33751
- }
33752
- return Object.assign({}, props.pagination, pagination.value);
33782
+ return pagination.value;
33753
33783
  });
33754
33784
  const formSubmitLoading = vue.computed(() => {
33755
33785
  if (typeof loading.value === "boolean") {
@@ -33811,9 +33841,44 @@
33811
33841
  };
33812
33842
  return loopFilter(tableColumn.value);
33813
33843
  });
33844
+ const onColumnsChange = (rawColumns, action) => {
33845
+ var _a2;
33846
+ const newMap = {
33847
+ ...counter.columnsMap.value
33848
+ };
33849
+ const newColumns = rawColumns.map((item) => genColumnKey(item.key, item.index));
33850
+ if (action === "resize") {
33851
+ const loopSetWidth = (rawColumns2) => {
33852
+ rawColumns2.forEach((item) => {
33853
+ var _a3;
33854
+ const key = genColumnKey(item.key, item.index);
33855
+ const newSetting = {
33856
+ ...newMap[key]
33857
+ };
33858
+ if ((_a3 = item.children) == null ? void 0 : _a3.length) {
33859
+ loopSetWidth(item.children);
33860
+ } else {
33861
+ newSetting.width = item.width;
33862
+ newMap[key] = newSetting;
33863
+ }
33864
+ });
33865
+ };
33866
+ loopSetWidth(rawColumns);
33867
+ } else {
33868
+ newColumns.forEach((key, order) => {
33869
+ newMap[key] = {
33870
+ ...newMap[key] || {},
33871
+ order
33872
+ };
33873
+ });
33874
+ }
33875
+ counter.setColumnsMap(newMap);
33876
+ counter.setSortKeyColumns(newColumns);
33877
+ (_a2 = props["onUpdate:columns"]) == null ? void 0 : _a2.call(props, rawColumns, action);
33878
+ };
33814
33879
  const formItems = vue.computed(() => {
33815
33880
  var _a2, _b, _c;
33816
- if (!props.search) {
33881
+ if (props.search === false) {
33817
33882
  return [];
33818
33883
  }
33819
33884
  if ((_b = (_a2 = props.search) == null ? void 0 : _a2.items) == null ? void 0 : _b.length) {
@@ -33825,12 +33890,12 @@
33825
33890
  }
33826
33891
  return true;
33827
33892
  }).map((item) => {
33828
- return {
33893
+ return omitKeysAndUndefined({
33829
33894
  ...item,
33830
33895
  width: void 0,
33831
33896
  tooltip: item.headerTooltip,
33832
33897
  name: item.dataIndex
33833
- };
33898
+ }, ["dataIndex", "width", "tooltip", "disable"]);
33834
33899
  });
33835
33900
  });
33836
33901
  const preserveRecordsRef = vue.ref(/* @__PURE__ */ new Map());
@@ -33985,7 +34050,7 @@
33985
34050
  actions: slots.alertActions
33986
34051
  }), vue.createVNode(InteralTable, vue.mergeProps({
33987
34052
  "ref": table
33988
- }, omit(props, ["onChange", "onUpdate:pagination", "onUpdate:selectedRowKeys"]), {
34053
+ }, omit(props, ["onChange", "onUpdate:pagination", "onUpdate:selectedRowKeys", "onUpdate:columns"]), {
33989
34054
  "prefixCls": mergedPrefixCls.value,
33990
34055
  "columns": mergeColumns || [],
33991
34056
  "size": counter.tableSize.value,
@@ -33996,7 +34061,8 @@
33996
34061
  "expandIcon": expandIcon,
33997
34062
  "expandedRowRender": expandedRowRender,
33998
34063
  "hasContextmenuPopup": !!slots.contextmenuPopup,
33999
- "onChange": onTableChange
34064
+ "onChange": onTableChange,
34065
+ "onUpdate:columns": onColumnsChange
34000
34066
  }), {
34001
34067
  ...slots,
34002
34068
  footer: props.footer || slots.footer