vxe-pc-ui 4.20.12 → 4.20.13

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 (35) hide show
  1. package/dist/all.esm.js +16 -8
  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/style.css +1 -1
  6. package/es/style.min.css +1 -1
  7. package/es/tabs/src/tabs.js +14 -6
  8. package/es/ui/index.js +1 -1
  9. package/es/ui/src/log.js +1 -1
  10. package/lib/icon/style/style.css +1 -1
  11. package/lib/icon/style/style.min.css +1 -1
  12. package/lib/index.umd.js +16 -8
  13. package/lib/index.umd.min.js +1 -1
  14. package/lib/style.css +1 -1
  15. package/lib/style.min.css +1 -1
  16. package/lib/tabs/src/tabs.js +14 -6
  17. package/lib/tabs/src/tabs.min.js +1 -1
  18. package/lib/ui/index.js +1 -1
  19. package/lib/ui/index.min.js +1 -1
  20. package/lib/ui/src/log.js +1 -1
  21. package/lib/ui/src/log.min.js +1 -1
  22. package/package.json +1 -1
  23. package/packages/tabs/src/tabs.ts +14 -6
  24. /package/es/icon/{iconfont.1792405538010.ttf → iconfont.1792480474156.ttf} +0 -0
  25. /package/es/icon/{iconfont.1792405538010.woff → iconfont.1792480474156.woff} +0 -0
  26. /package/es/icon/{iconfont.1792405538010.woff2 → iconfont.1792480474156.woff2} +0 -0
  27. /package/es/{iconfont.1792405538010.ttf → iconfont.1792480474156.ttf} +0 -0
  28. /package/es/{iconfont.1792405538010.woff → iconfont.1792480474156.woff} +0 -0
  29. /package/es/{iconfont.1792405538010.woff2 → iconfont.1792480474156.woff2} +0 -0
  30. /package/lib/icon/style/{iconfont.1792405538010.ttf → iconfont.1792480474156.ttf} +0 -0
  31. /package/lib/icon/style/{iconfont.1792405538010.woff → iconfont.1792480474156.woff} +0 -0
  32. /package/lib/icon/style/{iconfont.1792405538010.woff2 → iconfont.1792480474156.woff2} +0 -0
  33. /package/lib/{iconfont.1792405538010.ttf → iconfont.1792480474156.ttf} +0 -0
  34. /package/lib/{iconfont.1792405538010.woff → iconfont.1792480474156.woff} +0 -0
  35. /package/lib/{iconfont.1792405538010.woff2 → iconfont.1792480474156.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.20.12"}`;
104
+ const uiVersion = `ui v${"4.20.13"}`;
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$j = log.create('warn', uiVersion);
116
116
  log.create('error', uiVersion);
117
117
 
118
- const version = "4.20.12";
118
+ const version = "4.20.13";
119
119
  VxeUI.uiVersion = version;
120
120
  VxeUI.dynamicApp = dynamicApp;
121
121
  function config(options) {
@@ -41795,7 +41795,7 @@ var VxeTabsComponent = defineVxeComponent({
41795
41795
  if (index > -1) {
41796
41796
  const tabEl = children[index];
41797
41797
  if (tabEl) {
41798
- const tabHeight = tabEl.clientHeight;
41798
+ let tabHeight = tabEl.clientHeight;
41799
41799
  const tabWidth = tabEl.clientWidth;
41800
41800
  if (tabType === 'card') {
41801
41801
  lintWidth = tabWidth;
@@ -41808,8 +41808,12 @@ var VxeTabsComponent = defineVxeComponent({
41808
41808
  lintTop = tabEl.offsetTop - 1;
41809
41809
  }
41810
41810
  else {
41811
- lintHeight = Math.max(4, Math.floor(tabHeight * 0.6));
41812
- lintTop = tabEl.offsetTop + Math.floor((tabHeight - lintHeight) / 2);
41811
+ const tabStyle = getComputedStyle(tabEl);
41812
+ const paddingTop = XEUtils.toNumber(tabStyle.paddingTop);
41813
+ const paddingBottom = XEUtils.toNumber(tabStyle.paddingBottom);
41814
+ tabHeight -= (paddingTop + paddingBottom);
41815
+ lintHeight = Math.max(4, tabHeight);
41816
+ lintTop = tabEl.offsetTop + paddingTop + Math.floor((tabHeight - lintHeight) / 2);
41813
41817
  }
41814
41818
  }
41815
41819
  }
@@ -41819,7 +41823,7 @@ var VxeTabsComponent = defineVxeComponent({
41819
41823
  if (index > -1) {
41820
41824
  const tabEl = children[index];
41821
41825
  if (tabEl) {
41822
- const tabWidth = tabEl.clientWidth;
41826
+ let tabWidth = tabEl.clientWidth;
41823
41827
  if (tabType === 'card') {
41824
41828
  lintWidth = tabWidth + 1;
41825
41829
  lintLeft = tabEl.offsetLeft;
@@ -41829,8 +41833,12 @@ var VxeTabsComponent = defineVxeComponent({
41829
41833
  lintLeft = tabEl.offsetLeft - 1;
41830
41834
  }
41831
41835
  else {
41832
- lintWidth = Math.max(4, Math.floor(tabWidth * 0.6));
41833
- lintLeft = tabEl.offsetLeft + Math.floor((tabWidth - lintWidth) / 2);
41836
+ const tabStyle = getComputedStyle(tabEl);
41837
+ const paddingLeft = XEUtils.toNumber(tabStyle.paddingLeft);
41838
+ const paddingRight = XEUtils.toNumber(tabStyle.paddingRight);
41839
+ tabWidth -= (paddingLeft + paddingRight);
41840
+ lintWidth = Math.max(4, tabWidth);
41841
+ lintLeft = tabEl.offsetLeft + paddingLeft + Math.floor((tabWidth - lintWidth) / 2);
41834
41842
  }
41835
41843
  }
41836
41844
  }