vxe-pc-ui 4.18.6 → 4.18.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 (51) hide show
  1. package/dist/all.esm.js +28 -13
  2. package/dist/style.css +1 -1
  3. package/dist/style.min.css +1 -1
  4. package/es/icon/style.css +1 -1
  5. package/es/modal/index.js +8 -4
  6. package/es/modal/src/modal.js +18 -7
  7. package/es/style.css +1 -1
  8. package/es/style.min.css +1 -1
  9. package/es/ui/index.js +1 -1
  10. package/es/ui/src/log.js +1 -1
  11. package/lib/icon/style/style.css +1 -1
  12. package/lib/icon/style/style.min.css +1 -1
  13. package/lib/index.umd.js +37 -13
  14. package/lib/index.umd.min.js +1 -1
  15. package/lib/modal/index.js +8 -4
  16. package/lib/modal/index.min.js +1 -1
  17. package/lib/modal/src/modal.js +27 -7
  18. package/lib/modal/src/modal.min.js +1 -1
  19. package/lib/style.css +1 -1
  20. package/lib/style.min.css +1 -1
  21. package/lib/ui/index.js +1 -1
  22. package/lib/ui/index.min.js +1 -1
  23. package/lib/ui/src/log.js +1 -1
  24. package/lib/ui/src/log.min.js +1 -1
  25. package/package.json +1 -1
  26. package/packages/modal/index.ts +8 -4
  27. package/packages/modal/src/modal.ts +19 -7
  28. package/types/components/column.d.ts +15 -15
  29. package/types/components/grid.d.ts +3 -3
  30. package/types/components/table-module/edit.d.ts +12 -12
  31. package/types/components/table-module/filter.d.ts +3 -3
  32. package/types/components/table-module/validator.d.ts +5 -5
  33. package/types/components/table-plugins/extend-cell-area.d.ts +32 -32
  34. package/types/components/table.d.ts +217 -217
  35. package/types/components/toolbar.d.ts +1 -1
  36. package/types/handles/form-design.d.ts +1 -1
  37. package/types/handles/table.d.ts +1 -1
  38. package/types/ui/interceptor.d.ts +5 -5
  39. package/types/ui/renderer.d.ts +12 -12
  40. /package/es/icon/{iconfont.1788860378031.ttf → iconfont.1788953836807.ttf} +0 -0
  41. /package/es/icon/{iconfont.1788860378031.woff → iconfont.1788953836807.woff} +0 -0
  42. /package/es/icon/{iconfont.1788860378031.woff2 → iconfont.1788953836807.woff2} +0 -0
  43. /package/es/{iconfont.1788860378031.ttf → iconfont.1788953836807.ttf} +0 -0
  44. /package/es/{iconfont.1788860378031.woff → iconfont.1788953836807.woff} +0 -0
  45. /package/es/{iconfont.1788860378031.woff2 → iconfont.1788953836807.woff2} +0 -0
  46. /package/lib/icon/style/{iconfont.1788860378031.ttf → iconfont.1788953836807.ttf} +0 -0
  47. /package/lib/icon/style/{iconfont.1788860378031.woff → iconfont.1788953836807.woff} +0 -0
  48. /package/lib/icon/style/{iconfont.1788860378031.woff2 → iconfont.1788953836807.woff2} +0 -0
  49. /package/lib/{iconfont.1788860378031.ttf → iconfont.1788953836807.ttf} +0 -0
  50. /package/lib/{iconfont.1788860378031.woff → iconfont.1788953836807.woff} +0 -0
  51. /package/lib/{iconfont.1788860378031.woff2 → iconfont.1788953836807.woff2} +0 -0
package/dist/all.esm.js CHANGED
@@ -101,7 +101,7 @@ function checkDynamic() {
101
101
  }
102
102
 
103
103
  const { log } = VxeUI;
104
- const uiVersion = `ui v${"4.18.6"}`;
104
+ const uiVersion = `ui v${"4.18.8"}`;
105
105
  function createComponentLog(name) {
106
106
  const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
107
107
  const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
@@ -115,7 +115,7 @@ function createComponentLog(name) {
115
115
  const warnLog$i = log.create('warn', uiVersion);
116
116
  log.create('error', uiVersion);
117
117
 
118
- const version = "4.18.6";
118
+ const version = "4.18.8";
119
119
  VxeUI.uiVersion = version;
120
120
  VxeUI.dynamicApp = dynamicApp;
121
121
  function config(options) {
@@ -30242,7 +30242,11 @@ var VxeModalComponent = defineVxeComponent({
30242
30242
  return transfer;
30243
30243
  });
30244
30244
  const computeIsMsg = computed(() => {
30245
- return props.type === 'message' || props.type === 'notification';
30245
+ const { type } = props;
30246
+ return type === 'message' || type === 'notification';
30247
+ });
30248
+ const computeIsModal = computed(() => {
30249
+ return props.type === 'modal';
30246
30250
  });
30247
30251
  const computeIsMinimizeStatus = computed(() => {
30248
30252
  return reactData.zoomStatus === 'minimize';
@@ -30693,9 +30697,10 @@ var VxeModalComponent = defineVxeComponent({
30693
30697
  }
30694
30698
  };
30695
30699
  const openModal = () => {
30696
- const { remember, showFooter } = props;
30700
+ const { remember, showFooter, fullscreen } = props;
30697
30701
  const { initialized, visible } = reactData;
30698
30702
  const isMsg = computeIsMsg.value;
30703
+ const isModal = computeIsModal.value;
30699
30704
  if (!initialized) {
30700
30705
  reactData.initialized = true;
30701
30706
  }
@@ -30709,7 +30714,7 @@ var VxeModalComponent = defineVxeComponent({
30709
30714
  setTimeout(() => {
30710
30715
  reactData.contentVisible = true;
30711
30716
  nextTick(() => {
30712
- if (!props.fullscreen) {
30717
+ if (!(isModal && fullscreen)) {
30713
30718
  recalculate();
30714
30719
  }
30715
30720
  if (showFooter) {
@@ -30743,7 +30748,7 @@ var VxeModalComponent = defineVxeComponent({
30743
30748
  restorePosStorage();
30744
30749
  }
30745
30750
  else {
30746
- if (props.fullscreen) {
30751
+ if (isModal && fullscreen) {
30747
30752
  nextTick(() => handleMaximize());
30748
30753
  }
30749
30754
  else {
@@ -31160,7 +31165,9 @@ var VxeModalComponent = defineVxeComponent({
31160
31165
  return handleZoom();
31161
31166
  },
31162
31167
  minimize() {
31163
- if (!reactData.visible) {
31168
+ const { visible } = reactData;
31169
+ const isModal = computeIsModal.value;
31170
+ if (!isModal || !visible) {
31164
31171
  return Promise.resolve({
31165
31172
  status: false
31166
31173
  });
@@ -31168,7 +31175,9 @@ var VxeModalComponent = defineVxeComponent({
31168
31175
  return handleMinimize();
31169
31176
  },
31170
31177
  maximize() {
31171
- if (!reactData.visible) {
31178
+ const { visible } = reactData;
31179
+ const isModal = computeIsModal.value;
31180
+ if (!isModal || !visible) {
31172
31181
  return Promise.resolve({
31173
31182
  status: false
31174
31183
  });
@@ -31176,7 +31185,9 @@ var VxeModalComponent = defineVxeComponent({
31176
31185
  return handleMaximize();
31177
31186
  },
31178
31187
  revert() {
31179
- if (!reactData.visible) {
31188
+ const { visible } = reactData;
31189
+ const isModal = computeIsModal.value;
31190
+ if (!isModal || !visible) {
31180
31191
  return Promise.resolve({
31181
31192
  status: false
31182
31193
  });
@@ -31551,7 +31562,8 @@ function openAlert(content, title, options) {
31551
31562
  type: 'alert',
31552
31563
  lockScroll: true,
31553
31564
  showHeader: true,
31554
- showFooter: true
31565
+ showFooter: true,
31566
+ fullscreen: false
31555
31567
  }, content, title, options);
31556
31568
  }
31557
31569
  function openConfirm(content, title, options) {
@@ -31560,7 +31572,8 @@ function openConfirm(content, title, options) {
31560
31572
  status: 'question',
31561
31573
  lockScroll: true,
31562
31574
  showHeader: true,
31563
- showFooter: true
31575
+ showFooter: true,
31576
+ fullscreen: false
31564
31577
  }, content, title, options);
31565
31578
  }
31566
31579
  function openMessage(content, options) {
@@ -31569,7 +31582,8 @@ function openMessage(content, options) {
31569
31582
  mask: false,
31570
31583
  lockView: false,
31571
31584
  lockScroll: false,
31572
- showHeader: false
31585
+ showHeader: false,
31586
+ fullscreen: false
31573
31587
  }, content, '', options);
31574
31588
  }
31575
31589
  function openNotification(content, title, options) {
@@ -31581,7 +31595,8 @@ function openNotification(content, title, options) {
31581
31595
  showHeader: true,
31582
31596
  draggable: false,
31583
31597
  position: 'top-right',
31584
- width: 320
31598
+ width: 320,
31599
+ fullscreen: false
31585
31600
  }, content, title, options);
31586
31601
  }
31587
31602
  const ModalController = {