vxe-pc-ui 4.20.23 → 4.20.25

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 (56) hide show
  1. package/dist/all.esm.js +104 -70
  2. package/dist/style.css +1 -1
  3. package/dist/style.mini.css +1 -1
  4. package/es/icon/style.css +1 -1
  5. package/es/icon/style.mini.css +1 -1
  6. package/es/index.d.ts +3 -0
  7. package/es/index.esm.js +11 -0
  8. package/es/index.js +11 -0
  9. package/es/space/src/space.js +3 -3
  10. package/es/style.css +16457 -0
  11. package/es/style.mini.css +1 -0
  12. package/es/switch/src/switch.js +32 -9
  13. package/es/ui/index.js +1 -1
  14. package/es/ui/src/log.js +1 -1
  15. package/es/vxe-icon/style.css +1 -1
  16. package/es/vxe-icon/style.mini.css +1 -1
  17. package/lib/icon/style/style.css +1 -1
  18. package/lib/icon/style/style.mini.css +1 -1
  19. package/lib/index.common.js +11 -0
  20. package/lib/index.js +11 -0
  21. package/lib/index.umd.js +84 -50
  22. package/lib/index.umd.min.js +3 -3
  23. package/lib/space/src/space.js +3 -3
  24. package/lib/style.css +1 -1
  25. package/lib/style.mini.css +1 -1
  26. package/lib/switch/src/switch.js +31 -8
  27. package/lib/ui/index.js +1 -1
  28. package/lib/ui/src/log.js +1 -1
  29. package/lib/vxe-icon/style/style.css +1 -1
  30. package/lib/vxe-icon/style/style.mini.css +1 -1
  31. package/package.json +3 -3
  32. package/packages/index.ts +17 -0
  33. package/packages/space/src/space.ts +3 -3
  34. package/packages/switch/src/switch.ts +36 -10
  35. package/types/components/switch.d.ts +1 -1
  36. /package/dist/{iconfont.1792977610373.ttf → iconfont.1792992046297.ttf} +0 -0
  37. /package/dist/{iconfont.1792977610373.woff → iconfont.1792992046297.woff} +0 -0
  38. /package/dist/{iconfont.1792977610373.woff2 → iconfont.1792992046297.woff2} +0 -0
  39. /package/es/icon/{iconfont.1792977610373.ttf → iconfont.1792992046297.ttf} +0 -0
  40. /package/es/icon/{iconfont.1792977610373.woff → iconfont.1792992046297.woff} +0 -0
  41. /package/es/icon/{iconfont.1792977610373.woff2 → iconfont.1792992046297.woff2} +0 -0
  42. /package/es/{iconfont.1792977610373.ttf → iconfont.1792992046297.ttf} +0 -0
  43. /package/es/{iconfont.1792977610373.woff → iconfont.1792992046297.woff} +0 -0
  44. /package/es/{iconfont.1792977610373.woff2 → iconfont.1792992046297.woff2} +0 -0
  45. /package/es/vxe-icon/{iconfont.1792977610373.ttf → iconfont.1792992046297.ttf} +0 -0
  46. /package/es/vxe-icon/{iconfont.1792977610373.woff → iconfont.1792992046297.woff} +0 -0
  47. /package/es/vxe-icon/{iconfont.1792977610373.woff2 → iconfont.1792992046297.woff2} +0 -0
  48. /package/lib/icon/style/{iconfont.1792977610373.ttf → iconfont.1792992046297.ttf} +0 -0
  49. /package/lib/icon/style/{iconfont.1792977610373.woff → iconfont.1792992046297.woff} +0 -0
  50. /package/lib/icon/style/{iconfont.1792977610373.woff2 → iconfont.1792992046297.woff2} +0 -0
  51. /package/lib/{iconfont.1792977610373.ttf → iconfont.1792992046297.ttf} +0 -0
  52. /package/lib/{iconfont.1792977610373.woff → iconfont.1792992046297.woff} +0 -0
  53. /package/lib/{iconfont.1792977610373.woff2 → iconfont.1792992046297.woff2} +0 -0
  54. /package/lib/vxe-icon/style/{iconfont.1792977610373.ttf → iconfont.1792992046297.ttf} +0 -0
  55. /package/lib/vxe-icon/style/{iconfont.1792977610373.woff → iconfont.1792992046297.woff} +0 -0
  56. /package/lib/vxe-icon/style/{iconfont.1792977610373.woff2 → iconfont.1792992046297.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -6,7 +6,7 @@
6
6
  define(['vue', 'xe-utils'], factory);
7
7
  } else {
8
8
  root = typeof globalThis !== 'undefined' ? globalThis : root || self;
9
- root.VxeUIGantt = factory(root.Vue, root.XEUtils);
9
+ root.VxeUI = factory(root.Vue, root.XEUtils);
10
10
  }
11
11
  })(this, function (vue, xe_utils) {
12
12
  var _requires = {
@@ -2311,7 +2311,7 @@ function checkDynamic() {
2311
2311
 
2312
2312
  // packages_temp/ui/src/log.ts
2313
2313
  var { log: log2 } = VxeUI;
2314
- var uiVersion = `ui v${"4.20.23"}`;
2314
+ var uiVersion = `ui v${"4.20.25"}`;
2315
2315
  function createComponentLog(name) {
2316
2316
  const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : "";
2317
2317
  const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : "";
@@ -2326,7 +2326,7 @@ var warnLog = log2.create("warn", uiVersion);
2326
2326
  var errLog = log2.create("error", uiVersion);
2327
2327
 
2328
2328
  // packages_temp/ui/index.ts
2329
- var version2 = "4.20.23";
2329
+ var version2 = "4.20.25";
2330
2330
  VxeUI.uiVersion = version2;
2331
2331
  VxeUI.dynamicApp = dynamicApp;
2332
2332
  function config(options) {
@@ -41938,8 +41938,8 @@ var space_default = defineVxeComponent({
41938
41938
  rowGap = gap[0];
41939
41939
  columGap = gap[1];
41940
41940
  } else {
41941
- rowGap = gap.rowGap || "";
41942
- columGap = gap.columGap || "";
41941
+ rowGap = import_xe_utils113.default.eqNull(gap.rowGap) ? "" : gap.rowGap;
41942
+ columGap = import_xe_utils113.default.eqNull(gap.columGap) ? "" : gap.columGap;
41943
41943
  }
41944
41944
  }
41945
41945
  if (width) {
@@ -41980,7 +41980,7 @@ var space_default = defineVxeComponent({
41980
41980
  const separatorSlot = slots.separator;
41981
41981
  const srStys = {};
41982
41982
  if (separatorWidth) {
41983
- srStys.width = toCssUnit(itemWidth);
41983
+ srStys.width = toCssUnit(separatorWidth);
41984
41984
  }
41985
41985
  const itemStys = {};
41986
41986
  if (itemWidth) {
@@ -42109,6 +42109,18 @@ var steps_default2 = VxeSteps;
42109
42109
  // packages_temp/switch/src/switch.ts
42110
42110
  var import_vue88 = require("vue");
42111
42111
  var import_xe_utils115 = __toESM(require("xe-utils"));
42112
+ function createReactData21() {
42113
+ return {
42114
+ isActivated: false,
42115
+ hasAnimat: false,
42116
+ offsetLeft: 0
42117
+ };
42118
+ }
42119
+ function createInternalData20() {
42120
+ return {
42121
+ // atTimeout: undefined
42122
+ };
42123
+ }
42112
42124
  var switch_default = defineVxeComponent({
42113
42125
  name: "VxeSwitch",
42114
42126
  props: {
@@ -42152,12 +42164,8 @@ var switch_default = defineVxeComponent({
42152
42164
  const formItemInfo = (0, import_vue88.inject)("xeFormItemInfo", null);
42153
42165
  const xID = import_xe_utils115.default.uniqueId();
42154
42166
  const { computeSize } = useSize(props);
42155
- const reactData = (0, import_vue88.reactive)({
42156
- isActivated: false,
42157
- hasAnimat: false,
42158
- offsetLeft: 0
42159
- });
42160
- const internalData = {};
42167
+ const reactData = (0, import_vue88.reactive)(createReactData21());
42168
+ const internalData = createInternalData20();
42161
42169
  const $xeSwitch = {
42162
42170
  xID,
42163
42171
  props,
@@ -42204,7 +42212,10 @@ var switch_default = defineVxeComponent({
42204
42212
  const isReadonly = computeIsReadonly.value;
42205
42213
  if (!(isDisabled || isReadonly)) {
42206
42214
  const isChecked = computeIsChecked.value;
42207
- clearTimeout(internalData.atTimeout);
42215
+ const { atTimeout } = internalData;
42216
+ if (atTimeout) {
42217
+ clearTimeout(atTimeout);
42218
+ }
42208
42219
  const value = isChecked ? props.closeValue : props.openValue;
42209
42220
  reactData.hasAnimat = true;
42210
42221
  emitModel(value);
@@ -42251,6 +42262,7 @@ var switch_default = defineVxeComponent({
42251
42262
  Object.assign($xeSwitch, switchMethods);
42252
42263
  const renderVN = () => {
42253
42264
  const { openIcon, closeIcon, openActiveIcon, closeActiveIcon } = props;
42265
+ const { hasAnimat, isActivated } = reactData;
42254
42266
  const vSize = computeSize.value;
42255
42267
  const isChecked = computeIsChecked.value;
42256
42268
  const onShowLabel = computeOnShowLabel.value;
@@ -42268,9 +42280,10 @@ var switch_default = defineVxeComponent({
42268
42280
  return (0, import_vue88.h)("div", {
42269
42281
  class: ["vxe-switch", isChecked ? "is--on" : "is--off", {
42270
42282
  [`size--${vSize}`]: vSize,
42283
+ "is--active": isActivated,
42271
42284
  "is--disabled": isDisabled,
42272
42285
  "is--readonly": isReadonly,
42273
- "is--animat": reactData.hasAnimat
42286
+ "is--animat": hasAnimat
42274
42287
  }]
42275
42288
  }, [
42276
42289
  (0, import_vue88.h)("button", {
@@ -42308,6 +42321,16 @@ var switch_default = defineVxeComponent({
42308
42321
  ])
42309
42322
  ]);
42310
42323
  };
42324
+ (0, import_vue88.onBeforeUnmount)(() => {
42325
+ const { atTimeout } = internalData;
42326
+ if (atTimeout) {
42327
+ clearTimeout(atTimeout);
42328
+ }
42329
+ });
42330
+ (0, import_vue88.onUnmounted)(() => {
42331
+ import_xe_utils115.default.assign(reactData, createReactData21());
42332
+ import_xe_utils115.default.assign(internalData, createInternalData20());
42333
+ });
42311
42334
  $xeSwitch.renderVN = renderVN;
42312
42335
  return $xeSwitch;
42313
42336
  },
@@ -42455,7 +42478,7 @@ var { errLog: errLog19 } = createComponentLog("table-select");
42455
42478
  function getRowUniqueId() {
42456
42479
  return import_xe_utils118.default.uniqueId("row_");
42457
42480
  }
42458
- function createReactData21() {
42481
+ function createReactData22() {
42459
42482
  return {
42460
42483
  initialized: false,
42461
42484
  searchValue: "",
@@ -42471,7 +42494,7 @@ function createReactData21() {
42471
42494
  isActivated: false
42472
42495
  };
42473
42496
  }
42474
- function createInternalData20() {
42497
+ function createInternalData21() {
42475
42498
  return {
42476
42499
  // hpTimeout: undefined,
42477
42500
  // vpTimeout: undefined,
@@ -42560,8 +42583,8 @@ var table_select_default = defineVxeComponent({
42560
42583
  const refOptionPanel = (0, import_vue90.ref)();
42561
42584
  const refInpSearch = (0, import_vue90.ref)();
42562
42585
  const refGrid = (0, import_vue90.ref)();
42563
- const reactData = (0, import_vue90.reactive)(createReactData21());
42564
- const internalData = createInternalData20();
42586
+ const reactData = (0, import_vue90.reactive)(createReactData22());
42587
+ const internalData = createInternalData21();
42565
42588
  const refMaps = {
42566
42589
  refElem
42567
42590
  };
@@ -43306,8 +43329,8 @@ var table_select_default = defineVxeComponent({
43306
43329
  globalEvents11.off($xeTableSelect, "blur");
43307
43330
  globalEvents11.off($xeTableSelect, "resize");
43308
43331
  globalEvents11.off($xeTableSelect, "scroll");
43309
- import_xe_utils118.default.assign(reactData, createReactData21());
43310
- import_xe_utils118.default.assign(internalData, createInternalData20());
43332
+ import_xe_utils118.default.assign(reactData, createReactData22());
43333
+ import_xe_utils118.default.assign(internalData, createInternalData21());
43311
43334
  });
43312
43335
  (0, import_vue90.nextTick)(() => {
43313
43336
  if (!VxeTableGridComponent) {
@@ -43337,10 +43360,10 @@ var table_select_default2 = VxeTableSelect;
43337
43360
  // packages_temp/table-transfer/src/table-transfer.ts
43338
43361
  var import_vue91 = require("vue");
43339
43362
  var import_xe_utils119 = __toESM(require("xe-utils"));
43340
- function createReactData22() {
43363
+ function createReactData23() {
43341
43364
  return {};
43342
43365
  }
43343
- function createInternalData21() {
43366
+ function createInternalData22() {
43344
43367
  return {};
43345
43368
  }
43346
43369
  var table_transfer_default = defineVxeComponent({
@@ -43358,8 +43381,8 @@ var table_transfer_default = defineVxeComponent({
43358
43381
  const { emit } = context;
43359
43382
  const xID = import_xe_utils119.default.uniqueId();
43360
43383
  const refElem = (0, import_vue91.ref)();
43361
- const reactData = (0, import_vue91.reactive)(createReactData22());
43362
- const internalData = createInternalData21();
43384
+ const reactData = (0, import_vue91.reactive)(createReactData23());
43385
+ const internalData = createInternalData22();
43363
43386
  const refMaps = {
43364
43387
  refElem
43365
43388
  };
@@ -43388,8 +43411,8 @@ var table_transfer_default = defineVxeComponent({
43388
43411
  }, []);
43389
43412
  };
43390
43413
  (0, import_vue91.onBeforeUnmount)(() => {
43391
- import_xe_utils119.default.assign(reactData, createReactData22());
43392
- import_xe_utils119.default.assign(internalData, createInternalData21());
43414
+ import_xe_utils119.default.assign(reactData, createReactData23());
43415
+ import_xe_utils119.default.assign(internalData, createInternalData22());
43393
43416
  });
43394
43417
  $xeTableTransfer.renderVN = renderVN;
43395
43418
  return $xeTableTransfer;
@@ -45471,10 +45494,10 @@ var tour_default2 = VxeTour;
45471
45494
  // packages_temp/transfer/src/transfer.ts
45472
45495
  var import_vue100 = require("vue");
45473
45496
  var import_xe_utils128 = __toESM(require("xe-utils"));
45474
- function createReactData23() {
45497
+ function createReactData24() {
45475
45498
  return {};
45476
45499
  }
45477
- function createInternalData22() {
45500
+ function createInternalData23() {
45478
45501
  return {};
45479
45502
  }
45480
45503
  var transfer_default = defineVxeComponent({
@@ -45492,8 +45515,8 @@ var transfer_default = defineVxeComponent({
45492
45515
  const { emit, slots } = context;
45493
45516
  const xID = import_xe_utils128.default.uniqueId();
45494
45517
  const refElem = (0, import_vue100.ref)();
45495
- const reactData = (0, import_vue100.reactive)(createReactData23());
45496
- const internalData = createInternalData22();
45518
+ const reactData = (0, import_vue100.reactive)(createReactData24());
45519
+ const internalData = createInternalData23();
45497
45520
  const refMaps = {
45498
45521
  refElem
45499
45522
  };
@@ -45544,8 +45567,8 @@ var transfer_default = defineVxeComponent({
45544
45567
  ]);
45545
45568
  };
45546
45569
  (0, import_vue100.onBeforeUnmount)(() => {
45547
- import_xe_utils128.default.assign(reactData, createReactData23());
45548
- import_xe_utils128.default.assign(internalData, createInternalData22());
45570
+ import_xe_utils128.default.assign(reactData, createReactData24());
45571
+ import_xe_utils128.default.assign(internalData, createInternalData23());
45549
45572
  });
45550
45573
  $xeTransfer.renderVN = renderVN;
45551
45574
  return $xeTransfer;
@@ -45635,7 +45658,7 @@ var { getDefVal: getDefVal6 } = baseUtils7;
45635
45658
  function getNodeUniqueId2() {
45636
45659
  return import_xe_utils129.default.uniqueId("node_");
45637
45660
  }
45638
- function createReactData24() {
45661
+ function createReactData25() {
45639
45662
  return {
45640
45663
  parentHeight: 0,
45641
45664
  customHeight: 0,
@@ -45663,7 +45686,7 @@ function createReactData24() {
45663
45686
  }
45664
45687
  };
45665
45688
  }
45666
- function createInternalData23() {
45689
+ function createInternalData24() {
45667
45690
  return {
45668
45691
  // initialized: false,
45669
45692
  // lastFilterValue: '',
@@ -45871,8 +45894,8 @@ var tree_default = defineVxeComponent({
45871
45894
  const refDragTipElem = (0, import_vue102.ref)();
45872
45895
  const refTooltip2 = (0, import_vue102.ref)();
45873
45896
  const crossTreeDragNodeInfo2 = getCrossTreeDragNodeInfo();
45874
- const internalData = createInternalData23();
45875
- const reactData = (0, import_vue102.reactive)(createReactData24());
45897
+ const internalData = createInternalData24();
45898
+ const reactData = (0, import_vue102.reactive)(createReactData25());
45876
45899
  const { computeSize } = useFns11.useSize(props);
45877
45900
  const { computeIsVScrollbar } = useFns11.useVScrollbar(props);
45878
45901
  const refMaps = {
@@ -49133,8 +49156,8 @@ var tree_default = defineVxeComponent({
49133
49156
  scrollObserver.disconnect();
49134
49157
  }
49135
49158
  globalEvents13.off($xeTree, "resize");
49136
- import_xe_utils129.default.assign(reactData, createReactData24());
49137
- import_xe_utils129.default.assign(internalData, createInternalData23());
49159
+ import_xe_utils129.default.assign(reactData, createReactData25());
49160
+ import_xe_utils129.default.assign(internalData, createInternalData24());
49138
49161
  });
49139
49162
  reactData.selectRadioKey = enModelValue(props.checkNodeKey);
49140
49163
  loadData(props.data || []);
@@ -49165,7 +49188,7 @@ var { warnLog: warnLog19, errLog: errLog22 } = createComponentLog("tree-select")
49165
49188
  function getOptUniqueId2() {
49166
49189
  return import_xe_utils130.default.uniqueId("node_");
49167
49190
  }
49168
- function createReactData25() {
49191
+ function createReactData26() {
49169
49192
  return {
49170
49193
  initialized: false,
49171
49194
  searchValue: "",
@@ -49181,7 +49204,7 @@ function createReactData25() {
49181
49204
  lazyOptFlag: 1
49182
49205
  };
49183
49206
  }
49184
- function createInternalData24() {
49207
+ function createInternalData25() {
49185
49208
  return {
49186
49209
  // hpTimeout: undefined,
49187
49210
  fullOptionList: [],
@@ -49329,8 +49352,8 @@ var tree_select_default = defineVxeComponent({
49329
49352
  const refTreeWrapper = (0, import_vue103.ref)();
49330
49353
  const refOptionPanel = (0, import_vue103.ref)();
49331
49354
  const refTree = (0, import_vue103.ref)();
49332
- const reactData = (0, import_vue103.reactive)(createReactData25());
49333
- const internalData = createInternalData24();
49355
+ const reactData = (0, import_vue103.reactive)(createReactData26());
49356
+ const internalData = createInternalData25();
49334
49357
  const refMaps = {
49335
49358
  refElem
49336
49359
  };
@@ -50103,8 +50126,8 @@ var tree_select_default = defineVxeComponent({
50103
50126
  globalEvents.off($xeTreeSelect, "blur");
50104
50127
  globalEvents.off($xeTreeSelect, "resize");
50105
50128
  globalEvents.off($xeTreeSelect, "scroll");
50106
- import_xe_utils130.default.assign(reactData, createReactData25());
50107
- import_xe_utils130.default.assign(internalData, createInternalData24());
50129
+ import_xe_utils130.default.assign(reactData, createReactData26());
50130
+ import_xe_utils130.default.assign(internalData, createInternalData25());
50108
50131
  });
50109
50132
  (0, import_vue103.provide)("$xeTreeSelect", $xeTreeSelect);
50110
50133
  $xeTreeSelect.renderVN = renderVN;
@@ -50226,7 +50249,7 @@ var saveLocalFile = (options) => {
50226
50249
 
50227
50250
  // packages_temp/upload/src/upload.ts
50228
50251
  var { warnLog: warnLog20, errLog: errLog23 } = createComponentLog("upload");
50229
- function createReactData26() {
50252
+ function createReactData27() {
50230
50253
  return {
50231
50254
  isDragUploadStatus: false,
50232
50255
  showMorePopup: false,
@@ -50238,7 +50261,7 @@ function createReactData26() {
50238
50261
  dragTipText: ""
50239
50262
  };
50240
50263
  }
50241
- function createInternalData25() {
50264
+ function createInternalData26() {
50242
50265
  return {
50243
50266
  moreId: import_xe_utils132.default.uniqueId("upload"),
50244
50267
  imagePreviewTypes: ["jpg", "jpeg", "png", "gif"],
@@ -50454,8 +50477,8 @@ var upload_default = defineVxeComponent({
50454
50477
  const refPopupElem = (0, import_vue104.ref)();
50455
50478
  const refDragLineElem = (0, import_vue104.ref)();
50456
50479
  const refModalDragLineElem = (0, import_vue104.ref)();
50457
- const reactData = (0, import_vue104.reactive)(createReactData26());
50458
- const internalData = createInternalData25();
50480
+ const reactData = (0, import_vue104.reactive)(createReactData27());
50481
+ const internalData = createInternalData26();
50459
50482
  const refMaps = {
50460
50483
  refElem
50461
50484
  };
@@ -51995,8 +52018,8 @@ var upload_default = defineVxeComponent({
51995
52018
  globalEvents.off($xeUpload, "paste");
51996
52019
  globalEvents.off($xeUpload, "click");
51997
52020
  globalEvents.off($xeUpload, "blur");
51998
- import_xe_utils132.default.assign(reactData, createReactData26());
51999
- import_xe_utils132.default.assign(internalData, createInternalData25());
52021
+ import_xe_utils132.default.assign(reactData, createReactData27());
52022
+ import_xe_utils132.default.assign(internalData, createInternalData26());
52000
52023
  });
52001
52024
  updateFileList();
52002
52025
  $xeUpload.renderVN = renderVN;
@@ -52445,6 +52468,17 @@ var saveFile = saveLocalFile;
52445
52468
  var readFile = readLocalFile;
52446
52469
 
52447
52470
  // packages_temp/index.ts
52471
+ if (typeof window !== "undefined") {
52472
+ if (!window.VxeUIAll) {
52473
+ window.VxeUIAll = components_exports;
52474
+ }
52475
+ if (!window.VxeUIBase) {
52476
+ window.VxeUIBase = components_exports;
52477
+ }
52478
+ if (!window.VxeUI) {
52479
+ window.VxeUI = components_exports;
52480
+ }
52481
+ }
52448
52482
  var index_default = components_exports;
52449
52483
 
52450
52484
  return module.exports;