vxe-table 4.3.6 → 4.3.8

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 (73) hide show
  1. package/es/grid/src/grid.js +15 -5
  2. package/es/header/src/header.js +2 -2
  3. package/es/icon/style/{iconfont.1669214286403.ttf → iconfont.1673016604432.ttf} +0 -0
  4. package/es/icon/style/{iconfont.1669214286403.woff → iconfont.1673016604432.woff} +0 -0
  5. package/es/icon/style/{iconfont.1669214286403.woff2 → iconfont.1673016604432.woff2} +0 -0
  6. package/es/icon/style.css +565 -1
  7. package/es/{iconfont.1669214286403.ttf → iconfont.1673016604432.ttf} +0 -0
  8. package/es/{iconfont.1669214286403.woff → iconfont.1673016604432.woff} +0 -0
  9. package/es/{iconfont.1669214286403.woff2 → iconfont.1673016604432.woff2} +0 -0
  10. package/es/input/src/input.js +46 -5
  11. package/es/loading/src/loading.js +7 -2
  12. package/es/loading/style.css +1 -1
  13. package/es/style.css +1 -1
  14. package/es/style.min.css +1 -1
  15. package/es/table/src/table.js +12 -3
  16. package/es/table/src/util.js +25 -1
  17. package/es/table/style.css +1 -1
  18. package/es/tools/log.js +1 -1
  19. package/es/v-x-e-table/index.js +1 -1
  20. package/es/v-x-e-table/style.css +564 -1
  21. package/es/vxe-icon/style.css +564 -0
  22. package/es/vxe-loading/style.css +1 -1
  23. package/es/vxe-table/style.css +1 -1
  24. package/lib/grid/src/grid.js +19 -7
  25. package/lib/grid/src/grid.min.js +1 -1
  26. package/lib/header/src/header.js +1 -1
  27. package/lib/header/src/header.min.js +1 -1
  28. package/lib/icon/style/{iconfont.1669214286403.ttf → iconfont.1673016604432.ttf} +0 -0
  29. package/lib/icon/style/{iconfont.1669214286403.woff → iconfont.1673016604432.woff} +0 -0
  30. package/lib/icon/style/{iconfont.1669214286403.woff2 → iconfont.1673016604432.woff2} +0 -0
  31. package/lib/icon/style/style.css +565 -1
  32. package/lib/icon/style/style.min.css +565 -1
  33. package/lib/{iconfont.1669214286403.ttf → iconfont.1673016604432.ttf} +0 -0
  34. package/lib/{iconfont.1669214286403.woff → iconfont.1673016604432.woff} +0 -0
  35. package/lib/{iconfont.1669214286403.woff2 → iconfont.1673016604432.woff2} +0 -0
  36. package/lib/index.umd.js +107 -19
  37. package/lib/index.umd.min.js +1 -1
  38. package/lib/input/src/input.js +51 -5
  39. package/lib/input/src/input.min.js +1 -1
  40. package/lib/loading/src/loading.js +5 -2
  41. package/lib/loading/src/loading.min.js +1 -1
  42. package/lib/loading/style/style.css +1 -1
  43. package/lib/loading/style/style.min.css +1 -1
  44. package/lib/style.css +1 -1
  45. package/lib/style.min.css +1 -1
  46. package/lib/table/src/table.js +14 -3
  47. package/lib/table/src/table.min.js +1 -1
  48. package/lib/table/src/util.js +27 -2
  49. package/lib/table/src/util.min.js +1 -1
  50. package/lib/table/style/style.css +1 -1
  51. package/lib/table/style/style.min.css +1 -1
  52. package/lib/tools/log.js +1 -1
  53. package/lib/tools/log.min.js +1 -1
  54. package/lib/v-x-e-table/index.js +1 -1
  55. package/lib/v-x-e-table/index.min.js +1 -1
  56. package/lib/v-x-e-table/style/style.css +564 -1
  57. package/lib/v-x-e-table/style/style.min.css +1 -1
  58. package/lib/vxe-icon/style/style.css +564 -0
  59. package/lib/vxe-icon/style/style.min.css +1 -1
  60. package/lib/vxe-loading/style/style.css +1 -1
  61. package/lib/vxe-loading/style/style.min.css +1 -1
  62. package/lib/vxe-table/style/style.css +1 -1
  63. package/lib/vxe-table/style/style.min.css +1 -1
  64. package/package.json +1 -1
  65. package/packages/form/src/form.ts +1 -1
  66. package/packages/grid/src/grid.ts +18 -5
  67. package/packages/header/src/header.ts +2 -2
  68. package/packages/input/src/input.ts +35 -6
  69. package/packages/loading/src/loading.ts +6 -2
  70. package/packages/table/src/table.ts +12 -3
  71. package/packages/table/src/util.ts +33 -1
  72. package/styles/icon.scss +2 -0
  73. package/styles/loading.scss +2 -1
@@ -1,3 +1,12 @@
1
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
3
+ if (ar || !(i in from)) {
4
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
5
+ ar[i] = from[i];
6
+ }
7
+ }
8
+ return to.concat(ar || Array.prototype.slice.call(from));
9
+ };
1
10
  import { defineComponent, h, Teleport, ref, computed, reactive, inject, nextTick, watch, onUnmounted } from 'vue';
2
11
  import XEUtils from 'xe-utils';
3
12
  import GlobalConfig from '../../v-x-e-table/src/conf';
@@ -741,17 +750,23 @@ export default defineComponent({
741
750
  var dateMultipleValue = computeDateMultipleValue.value;
742
751
  if (isDateTimeType) {
743
752
  // 如果是datetime特殊类型
744
- var dateListValue = computeDateListValue.value;
753
+ var dateListValue = __spreadArray([], computeDateListValue.value, true);
745
754
  var datetimeRest_1 = [];
755
+ var eqIndex = XEUtils.findIndexOf(dateListValue, function (val) { return XEUtils.isDateSame(date, val, 'yyyyMMdd'); });
756
+ if (eqIndex === -1) {
757
+ dateListValue.push(date);
758
+ }
759
+ else {
760
+ dateListValue.splice(eqIndex, 1);
761
+ }
746
762
  dateListValue.forEach(function (item) {
747
- if (item && !XEUtils.isDateSame(date, item, 'yyyyMMdd')) {
763
+ if (item) {
748
764
  item.setHours(datetimePanelValue.getHours());
749
765
  item.setMinutes(datetimePanelValue.getMinutes());
750
766
  item.setSeconds(datetimePanelValue.getSeconds());
751
767
  datetimeRest_1.push(item);
752
768
  }
753
769
  });
754
- datetimeRest_1.push(date);
755
770
  emitModel(datetimeRest_1.map(function (date) { return XEUtils.toDateString(date, dateValueFormat); }).join(','), { type: 'update' });
756
771
  }
757
772
  else {
@@ -1206,10 +1221,36 @@ export default defineComponent({
1206
1221
  };
1207
1222
  var dateConfirmEvent = function () {
1208
1223
  var multiple = props.multiple;
1224
+ var datetimePanelValue = reactData.datetimePanelValue;
1209
1225
  var dateValue = computeDateValue.value;
1210
1226
  var isDateTimeType = computeIsDateTimeType.value;
1211
- if (isDateTimeType || multiple) {
1212
- dateChange(dateValue || reactData.currentDate);
1227
+ if (isDateTimeType) {
1228
+ var dateValueFormat_1 = computeDateValueFormat.value;
1229
+ if (multiple) {
1230
+ // 如果为多选
1231
+ var dateMultipleValue = computeDateMultipleValue.value;
1232
+ if (isDateTimeType) {
1233
+ // 如果是datetime特殊类型
1234
+ var dateListValue = __spreadArray([], computeDateListValue.value, true);
1235
+ var datetimeRest_2 = [];
1236
+ dateListValue.forEach(function (item) {
1237
+ if (item) {
1238
+ item.setHours(datetimePanelValue.getHours());
1239
+ item.setMinutes(datetimePanelValue.getMinutes());
1240
+ item.setSeconds(datetimePanelValue.getSeconds());
1241
+ datetimeRest_2.push(item);
1242
+ }
1243
+ });
1244
+ emitModel(datetimeRest_2.map(function (date) { return XEUtils.toDateString(date, dateValueFormat_1); }).join(','), { type: 'update' });
1245
+ }
1246
+ else {
1247
+ // 如果是日期类型
1248
+ emitModel(dateMultipleValue.join(','), { type: 'update' });
1249
+ }
1250
+ }
1251
+ else {
1252
+ dateChange(dateValue || reactData.currentDate);
1253
+ }
1213
1254
  }
1214
1255
  hidePanel();
1215
1256
  };
@@ -7,7 +7,8 @@ export default defineComponent({
7
7
  icon: String,
8
8
  text: String
9
9
  },
10
- setup: function (props) {
10
+ setup: function (props, _a) {
11
+ var slots = _a.slots;
11
12
  var computeLoadingIcon = computed(function () {
12
13
  return props.icon || GlobalConfig.icon.LOADING;
13
14
  });
@@ -22,7 +23,11 @@ export default defineComponent({
22
23
  class: ['vxe-loading', {
23
24
  'is--visible': props.modelValue
24
25
  }]
25
- }, [
26
+ }, slots.default ? [
27
+ h('div', {
28
+ class: 'vxe-loading--warpper'
29
+ }, slots.default({}))
30
+ ] : [
26
31
  h('div', {
27
32
  class: 'vxe-loading--chunk'
28
33
  }, [
@@ -41,7 +41,7 @@
41
41
  .vxe-loading.is--visible {
42
42
  display: block;
43
43
  }
44
- .vxe-loading > .vxe-loading--chunk {
44
+ .vxe-loading > .vxe-loading--chunk, .vxe-loading > .vxe-loading--warpper {
45
45
  width: 100%;
46
46
  position: absolute;
47
47
  top: 50%;