@titaui/pc 1.15.26 → 1.15.27
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/lib/components/dialog-qq-docs/index.css +6 -0
- package/lib/components/nav-top/components/user-message/components/inform/index.css +0 -1
- package/lib/components/nav-top/index.js +21 -4
- package/lib/components/okr-flow/mini-map/index.css +1 -1
- package/lib/components/period-selector/index.js +1 -0
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +4 -1
- package/package.json +1 -1
|
@@ -236,11 +236,28 @@ var NavTop = function NavTop() {
|
|
|
236
236
|
var hash = window.location.hash.split('?')[0] || '';
|
|
237
237
|
|
|
238
238
|
if (hash) {
|
|
239
|
-
var
|
|
240
|
-
|
|
239
|
+
var _isUseNewMenu = window.BSGlobal.isUseNewMenu;
|
|
240
|
+
var activeMenu;
|
|
241
241
|
|
|
242
|
-
|
|
243
|
-
|
|
242
|
+
if (!_isUseNewMenu) {
|
|
243
|
+
// 老版本的menu
|
|
244
|
+
activeMenu = menu.find(function (item) {
|
|
245
|
+
var _item$href$split, _item$href$split$, _item$href$split$$spl, _item$href$split$$spl2, _item$href$split$$spl3;
|
|
246
|
+
|
|
247
|
+
return hash.includes((_item$href$split = item.href.split('#')) === null || _item$href$split === void 0 ? void 0 : (_item$href$split$ = _item$href$split[1]) === null || _item$href$split$ === void 0 ? void 0 : (_item$href$split$$spl = _item$href$split$.split('?')) === null || _item$href$split$$spl === void 0 ? void 0 : (_item$href$split$$spl2 = _item$href$split$$spl[0]) === null || _item$href$split$$spl2 === void 0 ? void 0 : (_item$href$split$$spl3 = _item$href$split$$spl2.split('/')) === null || _item$href$split$$spl3 === void 0 ? void 0 : _item$href$split$$spl3[0]);
|
|
248
|
+
});
|
|
249
|
+
} else {
|
|
250
|
+
//新版本menu
|
|
251
|
+
activeMenu = menu.find(function (item) {
|
|
252
|
+
var _item$href$split2, _item$href$split2$, _item$href$split2$$sp;
|
|
253
|
+
|
|
254
|
+
return hash.includes((_item$href$split2 = item.href.split('#')) === null || _item$href$split2 === void 0 ? void 0 : (_item$href$split2$ = _item$href$split2[1]) === null || _item$href$split2$ === void 0 ? void 0 : (_item$href$split2$$sp = _item$href$split2$.split('?')) === null || _item$href$split2$$sp === void 0 ? void 0 : _item$href$split2$$sp[0]);
|
|
255
|
+
}) || menu.find(function (item) {
|
|
256
|
+
var _item$href$split3, _item$href$split3$, _item$href$split3$$sp, _item$href$split3$$sp2, _item$href$split3$$sp3;
|
|
257
|
+
|
|
258
|
+
return hash.includes((_item$href$split3 = item.href.split('#')) === null || _item$href$split3 === void 0 ? void 0 : (_item$href$split3$ = _item$href$split3[1]) === null || _item$href$split3$ === void 0 ? void 0 : (_item$href$split3$$sp = _item$href$split3$.split('?')) === null || _item$href$split3$$sp === void 0 ? void 0 : (_item$href$split3$$sp2 = _item$href$split3$$sp[0]) === null || _item$href$split3$$sp2 === void 0 ? void 0 : (_item$href$split3$$sp3 = _item$href$split3$$sp2.split('/')) === null || _item$href$split3$$sp3 === void 0 ? void 0 : _item$href$split3$$sp3[0]);
|
|
259
|
+
});
|
|
260
|
+
}
|
|
244
261
|
|
|
245
262
|
if (hash.includes('homepage')) {
|
|
246
263
|
setActiveMenuId(99999);
|
|
@@ -282,7 +282,9 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
282
282
|
setJsxDomValues(jsxDomValues);
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
|
|
285
|
+
setTimeout(function () {
|
|
286
|
+
setVisible(false);
|
|
287
|
+
}, 0);
|
|
286
288
|
};
|
|
287
289
|
|
|
288
290
|
var onCancelHandler = function onCancelHandler() {
|
|
@@ -310,6 +312,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
310
312
|
}, (0, _openData.isWechat)() ? jsxDomValues : selectedText || /*#__PURE__*/_react["default"].createElement("span", {
|
|
311
313
|
className: "persel-selector-field__text-holder"
|
|
312
314
|
}, placeholder))));
|
|
315
|
+
if (!visible && noText) return null;
|
|
313
316
|
return /*#__PURE__*/_react["default"].createElement(_context.CommonContext.Provider, {
|
|
314
317
|
value: {
|
|
315
318
|
sourceFrom: sourceFrom,
|