vxe-pc-ui 4.12.3 → 4.12.5

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 (104) hide show
  1. package/es/backtop/src/backtop.js +11 -1
  2. package/es/checkbox/style.css +2 -2
  3. package/es/checkbox/style.min.css +1 -1
  4. package/es/icon/style.css +1 -1
  5. package/es/link/style.css +4 -0
  6. package/es/link/style.min.css +1 -1
  7. package/es/list/src/list.js +15 -11
  8. package/es/number-input/style.css +15 -1
  9. package/es/number-input/style.min.css +1 -1
  10. package/es/password-input/style.css +23 -30
  11. package/es/password-input/style.min.css +1 -1
  12. package/es/row/style.css +0 -2
  13. package/es/row/style.min.css +1 -1
  14. package/es/style.css +1 -1
  15. package/es/style.min.css +1 -1
  16. package/es/text/style.css +4 -0
  17. package/es/text/style.min.css +1 -1
  18. package/es/tree/src/tree.js +1 -1
  19. package/es/tree-select/src/tree-select.js +18 -14
  20. package/es/ui/index.js +2 -4
  21. package/es/ui/src/log.js +1 -1
  22. package/es/upload/src/upload.js +26 -18
  23. package/es/vxe-checkbox/style.css +2 -2
  24. package/es/vxe-checkbox/style.min.css +1 -1
  25. package/es/vxe-link/style.css +4 -0
  26. package/es/vxe-link/style.min.css +1 -1
  27. package/es/vxe-number-input/style.css +15 -1
  28. package/es/vxe-number-input/style.min.css +1 -1
  29. package/es/vxe-password-input/style.css +23 -30
  30. package/es/vxe-password-input/style.min.css +1 -1
  31. package/es/vxe-row/style.css +0 -2
  32. package/es/vxe-row/style.min.css +1 -1
  33. package/es/vxe-text/style.css +4 -0
  34. package/es/vxe-text/style.min.css +1 -1
  35. package/lib/backtop/src/backtop.js +13 -1
  36. package/lib/backtop/src/backtop.min.js +1 -1
  37. package/lib/checkbox/style/style.css +2 -2
  38. package/lib/checkbox/style/style.min.css +1 -1
  39. package/lib/icon/style/style.css +1 -1
  40. package/lib/icon/style/style.min.css +1 -1
  41. package/lib/index.umd.js +75 -49
  42. package/lib/index.umd.min.js +1 -1
  43. package/lib/link/style/style.css +4 -0
  44. package/lib/link/style/style.min.css +1 -1
  45. package/lib/list/src/list.js +14 -10
  46. package/lib/list/src/list.min.js +1 -1
  47. package/lib/number-input/style/style.css +15 -1
  48. package/lib/number-input/style/style.min.css +1 -1
  49. package/lib/password-input/style/style.css +23 -30
  50. package/lib/password-input/style/style.min.css +1 -1
  51. package/lib/row/style/style.css +0 -2
  52. package/lib/row/style/style.min.css +1 -1
  53. package/lib/style.css +1 -1
  54. package/lib/style.min.css +1 -1
  55. package/lib/text/style/style.css +4 -0
  56. package/lib/text/style/style.min.css +1 -1
  57. package/lib/tree/src/tree.js +1 -1
  58. package/lib/tree/src/tree.min.js +1 -1
  59. package/lib/tree-select/src/tree-select.js +17 -13
  60. package/lib/tree-select/src/tree-select.min.js +1 -1
  61. package/lib/ui/index.js +2 -4
  62. package/lib/ui/index.min.js +1 -1
  63. package/lib/ui/src/log.js +1 -1
  64. package/lib/ui/src/log.min.js +1 -1
  65. package/lib/upload/src/upload.js +25 -17
  66. package/lib/upload/src/upload.min.js +1 -1
  67. package/lib/vxe-checkbox/style/style.css +2 -2
  68. package/lib/vxe-checkbox/style/style.min.css +1 -1
  69. package/lib/vxe-link/style/style.css +4 -0
  70. package/lib/vxe-link/style/style.min.css +1 -1
  71. package/lib/vxe-number-input/style/style.css +15 -1
  72. package/lib/vxe-number-input/style/style.min.css +1 -1
  73. package/lib/vxe-password-input/style/style.css +23 -30
  74. package/lib/vxe-password-input/style/style.min.css +1 -1
  75. package/lib/vxe-row/style/style.css +0 -2
  76. package/lib/vxe-row/style/style.min.css +1 -1
  77. package/lib/vxe-text/style/style.css +4 -0
  78. package/lib/vxe-text/style/style.min.css +1 -1
  79. package/package.json +1 -1
  80. package/packages/backtop/src/backtop.ts +13 -1
  81. package/packages/list/src/list.ts +16 -11
  82. package/packages/tree/src/tree.ts +1 -1
  83. package/packages/tree-select/src/tree-select.ts +19 -14
  84. package/packages/ui/index.ts +0 -1
  85. package/packages/upload/src/upload.ts +28 -18
  86. package/styles/components/checkbox.scss +2 -2
  87. package/styles/components/link.scss +4 -0
  88. package/styles/components/number-input.scss +12 -1
  89. package/styles/components/password-input.scss +18 -51
  90. package/styles/components/row.scss +0 -2
  91. package/styles/components/text.scss +4 -0
  92. package/types/components/table.d.ts +13 -0
  93. /package/es/icon/{iconfont.1768480281073.ttf → iconfont.1768625343222.ttf} +0 -0
  94. /package/es/icon/{iconfont.1768480281073.woff → iconfont.1768625343222.woff} +0 -0
  95. /package/es/icon/{iconfont.1768480281073.woff2 → iconfont.1768625343222.woff2} +0 -0
  96. /package/es/{iconfont.1768480281073.ttf → iconfont.1768625343222.ttf} +0 -0
  97. /package/es/{iconfont.1768480281073.woff → iconfont.1768625343222.woff} +0 -0
  98. /package/es/{iconfont.1768480281073.woff2 → iconfont.1768625343222.woff2} +0 -0
  99. /package/lib/icon/style/{iconfont.1768480281073.ttf → iconfont.1768625343222.ttf} +0 -0
  100. /package/lib/icon/style/{iconfont.1768480281073.woff → iconfont.1768625343222.woff} +0 -0
  101. /package/lib/icon/style/{iconfont.1768480281073.woff2 → iconfont.1768625343222.woff2} +0 -0
  102. /package/lib/{iconfont.1768480281073.ttf → iconfont.1768625343222.ttf} +0 -0
  103. /package/lib/{iconfont.1768480281073.woff → iconfont.1768625343222.woff} +0 -0
  104. /package/lib/{iconfont.1768480281073.woff2 → iconfont.1768625343222.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -2390,7 +2390,7 @@ if (typeof window !== 'undefined') {
2390
2390
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
2391
2391
  var es_array_push = __webpack_require__(4114);
2392
2392
  ;// CONCATENATED MODULE: ./node_modules/@vxe-ui/core/es/src/core.js
2393
- const coreVersion = "4.2.20";
2393
+ const coreVersion = "4.2.21";
2394
2394
  const VxeCore = {
2395
2395
  coreVersion,
2396
2396
  uiVersion: '',
@@ -2990,7 +2990,7 @@ function createLog(type, name) {
2990
2990
  return msg;
2991
2991
  };
2992
2992
  }
2993
- const version = "4.2.20";
2993
+ const version = "4.2.21";
2994
2994
  const log = {
2995
2995
  create: createLog,
2996
2996
  warn: createLog('warn', `v${version}`),
@@ -3661,14 +3661,14 @@ function checkDynamic() {
3661
3661
  }
3662
3662
  ;// CONCATENATED MODULE: ./packages/ui/src/log.ts
3663
3663
 
3664
- const log_version = `ui v${"4.12.3"}`;
3664
+ const log_version = `ui v${"4.12.5"}`;
3665
3665
  const warnLog = log.create('warn', log_version);
3666
3666
  const errLog = log.create('error', log_version);
3667
3667
  ;// CONCATENATED MODULE: ./packages/ui/index.ts
3668
3668
 
3669
3669
 
3670
3670
 
3671
- const ui_version = "4.12.3";
3671
+ const ui_version = "4.12.5";
3672
3672
  index_esm_VxeUI.uiVersion = ui_version;
3673
3673
  index_esm_VxeUI.dynamicApp = dynamicApp;
3674
3674
  function config(options) {
@@ -3863,9 +3863,7 @@ setConfig({
3863
3863
  },
3864
3864
  layoutAside: {},
3865
3865
  layoutBody: {
3866
- backtopConfig: {
3867
- position: 'fixed'
3868
- }
3866
+ backtopConfig: {}
3869
3867
  },
3870
3868
  layoutContainer: {},
3871
3869
  layoutFooter: {},
@@ -7679,7 +7677,7 @@ function createReactData() {
7679
7677
  $backtop: $xeBacktop
7680
7678
  }, params));
7681
7679
  };
7682
- const showBacktop = () => {
7680
+ const updateZIndex = () => {
7683
7681
  const {
7684
7682
  position,
7685
7683
  zIndex
@@ -7694,6 +7692,9 @@ function createReactData() {
7694
7692
  reactData.backtopZindex = nextZIndex();
7695
7693
  }
7696
7694
  }
7695
+ };
7696
+ const showBacktop = () => {
7697
+ updateZIndex();
7697
7698
  reactData.showBtn = true;
7698
7699
  };
7699
7700
  const hideBacktop = () => {
@@ -7822,10 +7823,19 @@ function createReactData() {
7822
7823
  class: 'vxe-backtop--bottom-wrapper'
7823
7824
  }, bottomSlot({})) : renderEmptyElement($xeBacktop)]);
7824
7825
  };
7826
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.position, () => {
7827
+ updateZIndex();
7828
+ });
7825
7829
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.target, () => {
7826
7830
  handleTargetElement();
7827
7831
  });
7828
7832
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
7833
+ const {
7834
+ showTop
7835
+ } = props;
7836
+ if (showTop) {
7837
+ updateZIndex();
7838
+ }
7829
7839
  handleTargetElement();
7830
7840
  });
7831
7841
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onBeforeUnmount)(() => {
@@ -28955,6 +28965,17 @@ const Link = VxeLink;
28955
28965
 
28956
28966
 
28957
28967
 
28968
+ function list_createReactData() {
28969
+ return {
28970
+ scrollYLoad: false,
28971
+ bodyHeight: 0,
28972
+ customHeight: 0,
28973
+ customMaxHeight: 0,
28974
+ parentHeight: 0,
28975
+ topSpaceHeight: 0,
28976
+ items: []
28977
+ };
28978
+ }
28958
28979
  function list_createInternalData() {
28959
28980
  return {
28960
28981
  resizeObserver: undefined,
@@ -29001,15 +29022,7 @@ function list_createInternalData() {
29001
29022
  const {
29002
29023
  computeSize
29003
29024
  } = useSize(props);
29004
- const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
29005
- scrollYLoad: false,
29006
- bodyHeight: 0,
29007
- customHeight: 0,
29008
- customMaxHeight: 0,
29009
- parentHeight: 0,
29010
- topSpaceHeight: 0,
29011
- items: []
29012
- });
29025
+ const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)(list_createReactData());
29013
29026
  const internalData = list_createInternalData();
29014
29027
  const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
29015
29028
  const refVirtualWrapper = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
@@ -29381,7 +29394,7 @@ function list_createInternalData() {
29381
29394
  }
29382
29395
  globalEvents.on($xeList, 'resize', recalculate);
29383
29396
  });
29384
- (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUnmounted)(() => {
29397
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onBeforeUnmount)(() => {
29385
29398
  const {
29386
29399
  resizeObserver
29387
29400
  } = internalData;
@@ -29389,6 +29402,7 @@ function list_createInternalData() {
29389
29402
  resizeObserver.disconnect();
29390
29403
  }
29391
29404
  globalEvents.off($xeList, 'resize');
29405
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(reactData, list_createReactData());
29392
29406
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(internalData, list_createInternalData());
29393
29407
  });
29394
29408
  $xeList.renderVN = renderVN;
@@ -42809,7 +42823,7 @@ function tree_createReactData() {
42809
42823
  filterValue: filterStr
42810
42824
  });
42811
42825
  } : item => {
42812
- return String(item[titleField]).toLowerCase().indexOf(filterStr) > -1;
42826
+ return String(item[titleField]).toLowerCase().indexOf(filterStr.toLowerCase()) > -1;
42813
42827
  };
42814
42828
  const bafParams = {
42815
42829
  $tree: $xeTree,
@@ -45252,6 +45266,20 @@ const Tree = VxeTree;
45252
45266
  function tree_select_getOptUniqueId() {
45253
45267
  return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId('node_');
45254
45268
  }
45269
+ function tree_select_createReactData() {
45270
+ return {
45271
+ initialized: false,
45272
+ searchValue: '',
45273
+ searchLoading: false,
45274
+ panelIndex: 0,
45275
+ panelStyle: {},
45276
+ panelPlacement: null,
45277
+ triggerFocusPanel: false,
45278
+ visiblePanel: false,
45279
+ isAniVisible: false,
45280
+ isActivated: false
45281
+ };
45282
+ }
45255
45283
  function tree_select_createInternalData() {
45256
45284
  return {
45257
45285
  // hpTimeout: undefined,
@@ -45357,18 +45385,7 @@ function tree_select_createInternalData() {
45357
45385
  const refTreeWrapper = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
45358
45386
  const refOptionPanel = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
45359
45387
  const refTree = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
45360
- const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
45361
- initialized: false,
45362
- searchValue: '',
45363
- searchLoading: false,
45364
- panelIndex: 0,
45365
- panelStyle: {},
45366
- panelPlacement: null,
45367
- triggerFocusPanel: false,
45368
- visiblePanel: false,
45369
- isAniVisible: false,
45370
- isActivated: false
45371
- });
45388
+ const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)(tree_select_createReactData());
45372
45389
  const internalData = tree_select_createInternalData();
45373
45390
  const refMaps = {
45374
45391
  refElem
@@ -46147,11 +46164,12 @@ function tree_select_createInternalData() {
46147
46164
  globalEvents.on($xeTreeSelect, 'blur', handleGlobalBlurEvent);
46148
46165
  globalEvents.on($xeTreeSelect, 'resize', handleGlobalResizeEvent);
46149
46166
  });
46150
- (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUnmounted)(() => {
46167
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onBeforeUnmount)(() => {
46151
46168
  globalEvents.off($xeTreeSelect, 'mousewheel');
46152
46169
  globalEvents.off($xeTreeSelect, 'mousedown');
46153
46170
  globalEvents.off($xeTreeSelect, 'blur');
46154
46171
  globalEvents.off($xeTreeSelect, 'resize');
46172
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(reactData, tree_select_createReactData());
46155
46173
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(internalData, tree_select_createInternalData());
46156
46174
  });
46157
46175
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeTreeSelect', $xeTreeSelect);
@@ -46315,6 +46333,26 @@ const saveLocalFile = options => {
46315
46333
 
46316
46334
 
46317
46335
 
46336
+ function upload_createReactData() {
46337
+ return {
46338
+ isDragUploadStatus: false,
46339
+ showMorePopup: false,
46340
+ isActivated: false,
46341
+ fileList: [],
46342
+ fileCacheMaps: {},
46343
+ isDragMove: false,
46344
+ dragIndex: -1,
46345
+ dragTipText: ''
46346
+ };
46347
+ }
46348
+ function upload_createInternalData() {
46349
+ return {
46350
+ moreId: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId('upload'),
46351
+ imagePreviewTypes: ['jpg', 'jpeg', 'png', 'gif'],
46352
+ prevDragIndex: -1
46353
+ // prevDragPos: ''
46354
+ };
46355
+ }
46318
46356
  /* harmony default export */ var upload = (defineVxeComponent({
46319
46357
  name: 'VxeUpload',
46320
46358
  props: {
@@ -46510,22 +46548,8 @@ const saveLocalFile = options => {
46510
46548
  const refPopupElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
46511
46549
  const refDragLineElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
46512
46550
  const refModalDragLineElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
46513
- const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
46514
- isDragUploadStatus: false,
46515
- showMorePopup: false,
46516
- isActivated: false,
46517
- fileList: [],
46518
- fileCacheMaps: {},
46519
- isDragMove: false,
46520
- dragIndex: -1,
46521
- dragTipText: ''
46522
- });
46523
- const internalData = {
46524
- moreId: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId('upload'),
46525
- imagePreviewTypes: ['jpg', 'jpeg', 'png', 'gif'],
46526
- prevDragIndex: -1
46527
- // prevDragPos: ''
46528
- };
46551
+ const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)(upload_createReactData());
46552
+ const internalData = upload_createInternalData();
46529
46553
  const refMaps = {
46530
46554
  refElem
46531
46555
  };
@@ -48130,11 +48154,13 @@ const saveLocalFile = options => {
48130
48154
  globalEvents.on($xeUpload, 'mousedown', handleGlobalMousedownEvent);
48131
48155
  globalEvents.on($xeUpload, 'blur', handleGlobalBlurEvent);
48132
48156
  });
48133
- (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUnmounted)(() => {
48157
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onBeforeUnmount)(() => {
48134
48158
  reactData.isDragUploadStatus = false;
48135
48159
  globalEvents.off($xeUpload, 'paste');
48136
48160
  globalEvents.off($xeUpload, 'mousedown');
48137
48161
  globalEvents.off($xeUpload, 'blur');
48162
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(reactData, upload_createReactData());
48163
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(internalData, upload_createInternalData());
48138
48164
  });
48139
48165
  updateFileList();
48140
48166
  $xeUpload.renderVN = renderVN;