@sheinx/base 3.9.9-beta.7 → 3.9.9-beta.8
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs-header.d.ts","sourceRoot":"","sources":["tabs-header.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAwBrD,QAAA,MAAM,UAAU,UAAW,eAAe,
|
|
1
|
+
{"version":3,"file":"tabs-header.d.ts","sourceRoot":"","sources":["tabs-header.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAwBrD,QAAA,MAAM,UAAU,UAAW,eAAe,4CAuSzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
package/cjs/tabs/tabs-header.js
CHANGED
|
@@ -170,10 +170,17 @@ var TabsHeader = function TabsHeader(props) {
|
|
|
170
170
|
return clearInterval(timer);
|
|
171
171
|
};
|
|
172
172
|
} else {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
173
|
+
// why timeout: 依然是微前端下的问题,初始化线段不对齐
|
|
174
|
+
setTimeout(function () {
|
|
175
|
+
setCurrentTabSize({
|
|
176
|
+
width: currentTab.offsetWidth,
|
|
177
|
+
height: currentTab.offsetHeight
|
|
178
|
+
});
|
|
179
|
+
setCurrentTabOffset({
|
|
180
|
+
offsetTop: currentTab.offsetTop || 0,
|
|
181
|
+
offsetLeft: currentTab.offsetLeft || 0
|
|
182
|
+
});
|
|
183
|
+
}, 0);
|
|
177
184
|
}
|
|
178
185
|
}, [active, tabs]);
|
|
179
186
|
var renderHeaderScrollBar = function renderHeaderScrollBar() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs-header.d.ts","sourceRoot":"","sources":["tabs-header.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAwBrD,QAAA,MAAM,UAAU,UAAW,eAAe,
|
|
1
|
+
{"version":3,"file":"tabs-header.d.ts","sourceRoot":"","sources":["tabs-header.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAwBrD,QAAA,MAAM,UAAU,UAAW,eAAe,4CAuSzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
package/esm/tabs/tabs-header.js
CHANGED
|
@@ -164,10 +164,17 @@ var TabsHeader = function TabsHeader(props) {
|
|
|
164
164
|
return clearInterval(timer);
|
|
165
165
|
};
|
|
166
166
|
} else {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
167
|
+
// why timeout: 依然是微前端下的问题,初始化线段不对齐
|
|
168
|
+
setTimeout(function () {
|
|
169
|
+
setCurrentTabSize({
|
|
170
|
+
width: currentTab.offsetWidth,
|
|
171
|
+
height: currentTab.offsetHeight
|
|
172
|
+
});
|
|
173
|
+
setCurrentTabOffset({
|
|
174
|
+
offsetTop: currentTab.offsetTop || 0,
|
|
175
|
+
offsetLeft: currentTab.offsetLeft || 0
|
|
176
|
+
});
|
|
177
|
+
}, 0);
|
|
171
178
|
}
|
|
172
179
|
}, [active, tabs]);
|
|
173
180
|
var renderHeaderScrollBar = function renderHeaderScrollBar() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheinx/base",
|
|
3
|
-
"version": "3.9.9-beta.
|
|
3
|
+
"version": "3.9.9-beta.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"module": "./esm/index.js",
|
|
11
11
|
"typings": "./cjs/index.d.ts",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@sheinx/hooks": "3.9.9-beta.
|
|
13
|
+
"@sheinx/hooks": "3.9.9-beta.8",
|
|
14
14
|
"immer": "^10.0.0",
|
|
15
15
|
"classnames": "^2.0.0",
|
|
16
16
|
"@shined/reactive": "^0.3.3"
|