vxe-pc-ui 4.20.12 → 4.20.14
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.
- package/dist/all.esm.js +16 -8
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/icon/style.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/tabs/src/tabs.js +14 -6
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +16 -8
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/tabs/src/tabs.js +14 -6
- package/lib/tabs/src/tabs.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +1 -1
- package/packages/tabs/src/tabs.ts +14 -6
- /package/es/icon/{iconfont.1792405538010.ttf → iconfont.1792653813073.ttf} +0 -0
- /package/es/icon/{iconfont.1792405538010.woff → iconfont.1792653813073.woff} +0 -0
- /package/es/icon/{iconfont.1792405538010.woff2 → iconfont.1792653813073.woff2} +0 -0
- /package/es/{iconfont.1792405538010.ttf → iconfont.1792653813073.ttf} +0 -0
- /package/es/{iconfont.1792405538010.woff → iconfont.1792653813073.woff} +0 -0
- /package/es/{iconfont.1792405538010.woff2 → iconfont.1792653813073.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1792405538010.ttf → iconfont.1792653813073.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1792405538010.woff → iconfont.1792653813073.woff} +0 -0
- /package/lib/icon/style/{iconfont.1792405538010.woff2 → iconfont.1792653813073.woff2} +0 -0
- /package/lib/{iconfont.1792405538010.ttf → iconfont.1792653813073.ttf} +0 -0
- /package/lib/{iconfont.1792405538010.woff → iconfont.1792653813073.woff} +0 -0
- /package/lib/{iconfont.1792405538010.woff2 → iconfont.1792653813073.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.
|
|
104
|
+
const uiVersion = `ui v${"4.20.14"}`;
|
|
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.
|
|
118
|
+
const version = "4.20.14";
|
|
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
|
-
|
|
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
|
-
|
|
41812
|
-
|
|
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
|
-
|
|
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
|
-
|
|
41833
|
-
|
|
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
|
}
|