@titaui/pc 1.15.25 → 1.15.28-beta.1
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 +22 -5
- 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 +5 -1
- package/package.json +1 -1
|
@@ -178,7 +178,7 @@ var NavTop = function NavTop() {
|
|
|
178
178
|
window.titaTracker("action").record({
|
|
179
179
|
productName: "邀请同事",
|
|
180
180
|
actionGroup: "PC",
|
|
181
|
-
actionName: "\u7BA1\u7406\u5458\u70B9\u51FB\
|
|
181
|
+
actionName: "\u7BA1\u7406\u5458\u70B9\u51FB\u8FDB\u5165\u4F01\u4E1A\u5FAE\u4FE1\u540E\u53F0"
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
184
|
} else {
|
|
@@ -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, _item$href$split2, _item$href$split2$, _item$href$split2$$sp, _item$href$split2$$sp2, _item$href$split2$$sp3;
|
|
246
|
+
|
|
247
|
+
return hash.includes(item.href.startsWith("#/") ? (_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] : (_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$$sp2 = _item$href$split2$$sp[0]) === null || _item$href$split2$$sp2 === void 0 ? void 0 : (_item$href$split2$$sp3 = _item$href$split2$$sp2.split('/')) === null || _item$href$split2$$sp3 === void 0 ? void 0 : _item$href$split2$$sp3[0]);
|
|
248
|
+
});
|
|
249
|
+
} else {
|
|
250
|
+
//新版本menu
|
|
251
|
+
activeMenu = menu.find(function (item) {
|
|
252
|
+
var _item$href$split3, _item$href$split3$, _item$href$split3$$sp, _item$href$split4, _item$href$split4$, _item$href$split4$$sp;
|
|
253
|
+
|
|
254
|
+
return hash.includes(item.href.startsWith("#/") ? (_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$$sp[0] : (_item$href$split4 = item.href.split('#')) === null || _item$href$split4 === void 0 ? void 0 : (_item$href$split4$ = _item$href$split4[1]) === null || _item$href$split4$ === void 0 ? void 0 : (_item$href$split4$$sp = _item$href$split4$.split('?')) === null || _item$href$split4$$sp === void 0 ? void 0 : _item$href$split4$$sp[0]);
|
|
255
|
+
}) || menu.find(function (item) {
|
|
256
|
+
var _item$href$split5, _item$href$split5$, _item$href$split5$$sp, _item$href$split5$$sp2, _item$href$split5$$sp3;
|
|
257
|
+
|
|
258
|
+
return hash.includes((_item$href$split5 = item.href.split('#')) === null || _item$href$split5 === void 0 ? void 0 : (_item$href$split5$ = _item$href$split5[1]) === null || _item$href$split5$ === void 0 ? void 0 : (_item$href$split5$$sp = _item$href$split5$.split('?')) === null || _item$href$split5$$sp === void 0 ? void 0 : (_item$href$split5$$sp2 = _item$href$split5$$sp[0]) === null || _item$href$split5$$sp2 === void 0 ? void 0 : (_item$href$split5$$sp3 = _item$href$split5$$sp2.split('/')) === null || _item$href$split5$$sp3 === void 0 ? void 0 : _item$href$split5$$sp3[0]);
|
|
259
|
+
});
|
|
260
|
+
}
|
|
244
261
|
|
|
245
262
|
if (hash.includes('homepage')) {
|
|
246
263
|
setActiveMenuId(99999);
|
|
@@ -223,7 +223,6 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
223
223
|
});
|
|
224
224
|
|
|
225
225
|
var onOkHandler = function onOkHandler(selectNodes, e) {
|
|
226
|
-
setVisible(false);
|
|
227
226
|
setSelected(selectNodes);
|
|
228
227
|
var texts = [];
|
|
229
228
|
var users = [];
|
|
@@ -282,6 +281,10 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
282
281
|
setSelectedText(text);
|
|
283
282
|
setJsxDomValues(jsxDomValues);
|
|
284
283
|
}
|
|
284
|
+
|
|
285
|
+
setTimeout(function () {
|
|
286
|
+
setVisible(false);
|
|
287
|
+
}, 0);
|
|
285
288
|
};
|
|
286
289
|
|
|
287
290
|
var onCancelHandler = function onCancelHandler() {
|
|
@@ -309,6 +312,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
309
312
|
}, (0, _openData.isWechat)() ? jsxDomValues : selectedText || /*#__PURE__*/_react["default"].createElement("span", {
|
|
310
313
|
className: "persel-selector-field__text-holder"
|
|
311
314
|
}, placeholder))));
|
|
315
|
+
if (!visible && noText) return null;
|
|
312
316
|
return /*#__PURE__*/_react["default"].createElement(_context.CommonContext.Provider, {
|
|
313
317
|
value: {
|
|
314
318
|
sourceFrom: sourceFrom,
|