assui 2.0.78 → 2.0.79
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/es/keep-tab/index.js +6 -2
- package/lib/keep-tab/index.js +6 -2
- package/package.json +2 -2
package/es/keep-tab/index.js
CHANGED
|
@@ -91,7 +91,7 @@ var KeepTab = function KeepTab(props) {
|
|
|
91
91
|
|
|
92
92
|
var arrayChildren = toArray(children);
|
|
93
93
|
React.useEffect(function () {
|
|
94
|
-
var _a
|
|
94
|
+
var _a;
|
|
95
95
|
|
|
96
96
|
if (!('activeKey' in props)) {
|
|
97
97
|
var resultActiveTab = find(arrayChildren, {
|
|
@@ -103,7 +103,11 @@ var KeepTab = function KeepTab(props) {
|
|
|
103
103
|
setTabActiveKey(arrayChildren[0].key);
|
|
104
104
|
}
|
|
105
105
|
} else {
|
|
106
|
-
|
|
106
|
+
setTimeout(function () {
|
|
107
|
+
var _a;
|
|
108
|
+
|
|
109
|
+
setUrlParams((_a = {}, _a[saveActiveKeyName] = tabActiveKey, _a));
|
|
110
|
+
}, 50);
|
|
107
111
|
}
|
|
108
112
|
}, [tabActiveKey]);
|
|
109
113
|
|
package/lib/keep-tab/index.js
CHANGED
|
@@ -145,7 +145,7 @@ var KeepTab = function KeepTab(props) {
|
|
|
145
145
|
|
|
146
146
|
var arrayChildren = toArray_1["default"](children);
|
|
147
147
|
React.useEffect(function () {
|
|
148
|
-
var _a
|
|
148
|
+
var _a;
|
|
149
149
|
|
|
150
150
|
if (!('activeKey' in props)) {
|
|
151
151
|
var resultActiveTab = lodash_1.find(arrayChildren, {
|
|
@@ -157,7 +157,11 @@ var KeepTab = function KeepTab(props) {
|
|
|
157
157
|
setTabActiveKey(arrayChildren[0].key);
|
|
158
158
|
}
|
|
159
159
|
} else {
|
|
160
|
-
|
|
160
|
+
setTimeout(function () {
|
|
161
|
+
var _a;
|
|
162
|
+
|
|
163
|
+
setUrlParams((_a = {}, _a[saveActiveKeyName] = tabActiveKey, _a));
|
|
164
|
+
}, 50);
|
|
161
165
|
}
|
|
162
166
|
}, [tabActiveKey]);
|
|
163
167
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "assui",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.79",
|
|
4
4
|
"description": "react ui library",
|
|
5
5
|
"author": "jason <usochen@gmail.com>",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"node": ">=10.0.0"
|
|
70
70
|
},
|
|
71
71
|
"license": "MIT",
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "cb6ed72b950a3e5c510a8c37ec6f6771849ad4c4"
|
|
73
73
|
}
|