vxe-table 4.6.18 → 4.6.19

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 (47) hide show
  1. package/es/grid/src/grid.js +3 -3
  2. package/es/icon/style.css +1 -1
  3. package/es/radio/style.css +1 -1
  4. package/es/style.css +1 -1
  5. package/es/style.min.css +1 -1
  6. package/es/table/src/table.js +2 -2
  7. package/es/tools/log.js +1 -1
  8. package/es/v-x-e-table/index.js +1 -1
  9. package/es/vxe-radio/style.css +1 -1
  10. package/lib/grid/src/grid.js +3 -3
  11. package/lib/grid/src/grid.min.js +1 -1
  12. package/lib/icon/style/style.css +1 -1
  13. package/lib/icon/style/style.min.css +1 -1
  14. package/lib/index.umd.js +81 -34
  15. package/lib/index.umd.min.js +1 -1
  16. package/lib/radio/style/style.css +1 -1
  17. package/lib/radio/style/style.min.css +1 -1
  18. package/lib/style.css +1 -1
  19. package/lib/style.min.css +1 -1
  20. package/lib/table/src/table.js +2 -2
  21. package/lib/table/src/table.min.js +1 -1
  22. package/lib/tools/log.js +1 -1
  23. package/lib/tools/log.min.js +1 -1
  24. package/lib/v-x-e-table/index.js +1 -1
  25. package/lib/v-x-e-table/index.min.js +1 -1
  26. package/lib/vxe-radio/style/style.css +1 -1
  27. package/lib/vxe-radio/style/style.min.css +1 -1
  28. package/package.json +4 -4
  29. package/packages/grid/src/grid.ts +3 -3
  30. package/packages/table/src/table.ts +2 -2
  31. package/styles/checkbox.scss +1 -1
  32. package/styles/custom.scss +1 -1
  33. package/styles/export.scss +1 -1
  34. package/styles/radio.scss +1 -1
  35. package/types/v-x-e-table/index.d.ts +1 -1
  36. /package/es/icon/style/{iconfont.1720006583309.ttf → iconfont.1726118382121.ttf} +0 -0
  37. /package/es/icon/style/{iconfont.1720006583309.woff → iconfont.1726118382121.woff} +0 -0
  38. /package/es/icon/style/{iconfont.1720006583309.woff2 → iconfont.1726118382121.woff2} +0 -0
  39. /package/es/{iconfont.1720006583309.ttf → iconfont.1726118382121.ttf} +0 -0
  40. /package/es/{iconfont.1720006583309.woff → iconfont.1726118382121.woff} +0 -0
  41. /package/es/{iconfont.1720006583309.woff2 → iconfont.1726118382121.woff2} +0 -0
  42. /package/lib/icon/style/{iconfont.1720006583309.ttf → iconfont.1726118382121.ttf} +0 -0
  43. /package/lib/icon/style/{iconfont.1720006583309.woff → iconfont.1726118382121.woff} +0 -0
  44. /package/lib/icon/style/{iconfont.1720006583309.woff2 → iconfont.1726118382121.woff2} +0 -0
  45. /package/lib/{iconfont.1720006583309.ttf → iconfont.1726118382121.ttf} +0 -0
  46. /package/lib/{iconfont.1720006583309.woff → iconfont.1726118382121.woff} +0 -0
  47. /package/lib/{iconfont.1720006583309.woff2 → iconfont.1726118382121.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -2506,44 +2506,89 @@ const GlobalConfig = {
2506
2506
  };
2507
2507
  /* harmony default export */ var conf = (GlobalConfig);
2508
2508
  ;// CONCATENATED MODULE: ./node_modules/dom-zindex/es/index.esm.js
2509
+ var winDom = null;
2510
+ var bodyEl = null;
2509
2511
  var storeEl = null;
2510
2512
  var storeId = 'z-index-manage';
2513
+ var styleEl = null;
2514
+ var styleId = 'z-index-style';
2511
2515
  var storeMainKey = 'm';
2512
2516
  var storeSubKey = 's';
2513
2517
  var storeData = {
2514
2518
  m: 1000,
2515
2519
  s: 1000
2516
2520
  };
2517
- function isDocument() {
2518
- return typeof document !== 'undefined';
2521
+ function getDocument() {
2522
+ if (!winDom) {
2523
+ if (typeof document !== 'undefined') {
2524
+ winDom = document;
2525
+ }
2526
+ }
2527
+ return winDom;
2528
+ }
2529
+ function getBody() {
2530
+ if (winDom && !bodyEl) {
2531
+ bodyEl = winDom.body || winDom.getElementsByTagName('body')[0];
2532
+ }
2533
+ return bodyEl;
2519
2534
  }
2520
2535
  function getDomMaxZIndex() {
2521
2536
  var max = 0;
2522
- if (isDocument()) {
2523
- var allElem = document.body.getElementsByTagName('*');
2524
- for (var i = 0; i < allElem.length; i++) {
2525
- var elem = allElem[i];
2526
- if (elem && elem.style && elem.nodeType === 1) {
2527
- var zIndex = elem.style.zIndex;
2528
- if (zIndex && /^\d+$/.test(zIndex)) {
2529
- max = Math.max(max, Number(zIndex));
2537
+ var dom = getDocument();
2538
+ if (dom) {
2539
+ var body = getBody();
2540
+ if (body) {
2541
+ var allElem = body.getElementsByTagName('*');
2542
+ for (var i = 0; i < allElem.length; i++) {
2543
+ var elem = allElem[i];
2544
+ if (elem && elem.style && elem.nodeType === 1) {
2545
+ var zIndex = elem.style.zIndex;
2546
+ if (zIndex && /^\d+$/.test(zIndex)) {
2547
+ max = Math.max(max, Number(zIndex));
2548
+ }
2530
2549
  }
2531
2550
  }
2532
2551
  }
2533
2552
  }
2534
2553
  return max;
2535
2554
  }
2536
- function getDom() {
2555
+ function getStyle() {
2556
+ if (!styleEl) {
2557
+ var dom = getDocument();
2558
+ if (dom) {
2559
+ styleEl = dom.getElementById(styleId);
2560
+ if (!styleEl) {
2561
+ styleEl = dom.createElement('style');
2562
+ styleEl.id = styleId;
2563
+ dom.getElementsByTagName('head')[0].appendChild(styleEl);
2564
+ }
2565
+ }
2566
+ }
2567
+ return styleEl;
2568
+ }
2569
+ function updateVar() {
2570
+ var styEl = getStyle();
2571
+ if (styEl) {
2572
+ var prefixes = '--dom-';
2573
+ var propKey = '-z-index';
2574
+ styEl.innerHTML = ':root{' + prefixes + 'main' + propKey + ':' + getCurrent() + ';' + prefixes + 'sub' + propKey + ':' + getSubCurrent() + '}';
2575
+ }
2576
+ }
2577
+ function getStoreDom() {
2537
2578
  if (!storeEl) {
2538
- if (isDocument()) {
2539
- storeEl = document.getElementById(storeId);
2579
+ var dom = getDocument();
2580
+ if (dom) {
2581
+ storeEl = dom.getElementById(storeId);
2540
2582
  if (!storeEl) {
2541
- storeEl = document.createElement('div');
2542
- storeEl.id = storeId;
2543
- storeEl.style.display = 'none';
2544
- document.body.appendChild(storeEl);
2545
- setCurrent(storeData.m);
2546
- setSubCurrent(storeData.s);
2583
+ var body = getBody();
2584
+ if (body) {
2585
+ storeEl = dom.createElement('div');
2586
+ storeEl.id = storeId;
2587
+ storeEl.style.display = 'none';
2588
+ body.appendChild(storeEl);
2589
+ setCurrent(storeData.m);
2590
+ setSubCurrent(storeData.s);
2591
+ }
2547
2592
  }
2548
2593
  }
2549
2594
  }
@@ -2554,15 +2599,16 @@ function createSetHandle(key) {
2554
2599
  if (value) {
2555
2600
  value = Number(value);
2556
2601
  storeData[key] = value;
2557
- var doc = getDom();
2558
- if (doc) {
2559
- if (doc.dataset) {
2560
- doc.dataset[key] = value + '';
2602
+ var el = getStoreDom();
2603
+ if (el) {
2604
+ if (el.dataset) {
2605
+ el.dataset[key] = value + '';
2561
2606
  } else {
2562
- doc.setAttribute('data-' + key, value + '');
2607
+ el.setAttribute('data-' + key, value + '');
2563
2608
  }
2564
2609
  }
2565
2610
  }
2611
+ updateVar();
2566
2612
  return storeData[key];
2567
2613
  };
2568
2614
  }
@@ -2570,9 +2616,9 @@ var setCurrent = createSetHandle(storeMainKey);
2570
2616
  function createGetHandle(key, nextMethod) {
2571
2617
  return function getCurrent(currZindex) {
2572
2618
  var zIndex;
2573
- var doc = getDom();
2574
- if (doc) {
2575
- var domVal = doc.dataset ? doc.dataset[key] : doc.getAttribute('data-' + key);
2619
+ var el = getStoreDom();
2620
+ if (el) {
2621
+ var domVal = el.dataset ? el.dataset[key] : el.getAttribute('data-' + key);
2576
2622
  if (domVal) {
2577
2623
  zIndex = Number(domVal);
2578
2624
  }
@@ -2614,11 +2660,12 @@ var DomZIndex = {
2614
2660
  getSubNext: getSubNext,
2615
2661
  getMax: getDomMaxZIndex
2616
2662
  };
2663
+ updateVar();
2617
2664
  /* harmony default export */ var index_esm = (DomZIndex);
2618
2665
  ;// CONCATENATED MODULE: ./packages/tools/log.ts
2619
2666
 
2620
2667
  function getLog(message, params) {
2621
- return `[vxe-table v${"4.6.18"}] ${conf.i18n(message, params)}`;
2668
+ return `[vxe-table v${"4.6.19"}] ${conf.i18n(message, params)}`;
2622
2669
  }
2623
2670
  function outLog(type) {
2624
2671
  return function (message, params) {
@@ -5038,7 +5085,7 @@ function component(comp) {
5038
5085
  components[comp.name] = comp;
5039
5086
  }
5040
5087
  }
5041
- const version = "4.6.18";
5088
+ const version = "4.6.19";
5042
5089
  const tableVersion = version;
5043
5090
  const VXETable = {
5044
5091
  v,
@@ -22039,7 +22086,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
22039
22086
  const val = props[key];
22040
22087
  let num = 0;
22041
22088
  if (val) {
22042
- if (val === 'auto') {
22089
+ if (val === '100%' || val === 'auto') {
22043
22090
  num = parentHeight;
22044
22091
  } else {
22045
22092
  const excludeHeight = $xetable.getExcludeHeight();
@@ -27050,7 +27097,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
27050
27097
  const el = refElem.value;
27051
27098
  if (el) {
27052
27099
  const parentElem = el.parentNode;
27053
- const parentPaddingSize = height === 'auto' ? getPaddingTopBottomSize(parentElem) : 0;
27100
+ const parentPaddingSize = height === '100%' || height === 'auto' ? getPaddingTopBottomSize(parentElem) : 0;
27054
27101
  return Math.floor($xegrid ? $xegrid.getParentHeight() : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(getComputedStyle(parentElem).height) - parentPaddingSize);
27055
27102
  }
27056
27103
  return 0;
@@ -31798,9 +31845,9 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
31798
31845
  const tableProps = Object.assign({}, tableExtendProps);
31799
31846
  if (isZMax) {
31800
31847
  if (tableExtendProps.maxHeight) {
31801
- tableProps.maxHeight = 'auto';
31848
+ tableProps.maxHeight = '100%';
31802
31849
  } else {
31803
- tableProps.height = 'auto';
31850
+ tableProps.height = '100%';
31804
31851
  }
31805
31852
  }
31806
31853
  if (proxyConfig && isEnableConf(proxyOpts)) {
@@ -32898,7 +32945,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
32898
32945
  const topWrapper = refTopWrapper.value;
32899
32946
  const bottomWrapper = refBottomWrapper.value;
32900
32947
  const pagerWrapper = refPagerWrapper.value;
32901
- const parentPaddingSize = isZMax || height !== 'auto' ? 0 : getPaddingTopBottomSize(el.parentNode);
32948
+ const parentPaddingSize = isZMax || !(height === 'auto' || height === '100%') ? 0 : getPaddingTopBottomSize(el.parentNode);
32902
32949
  return parentPaddingSize + getPaddingTopBottomSize(el) + getOffsetHeight(formWrapper) + getOffsetHeight(toolbarWrapper) + getOffsetHeight(topWrapper) + getOffsetHeight(bottomWrapper) + getOffsetHeight(pagerWrapper);
32903
32950
  },
32904
32951
  getParentHeight() {