@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.
@@ -24,6 +24,12 @@
24
24
  color: #6F7886;
25
25
  }
26
26
 
27
+ .titaui-dialog-qq-docs__cancel-btn:hover {
28
+ border-color: #2879FF;
29
+ color: #2879FF;
30
+ background-color: #fff;
31
+ }
32
+
27
33
  .titaui-dialog-qq-docs__search-null {
28
34
  height: 100%;
29
35
  display: flex;
@@ -36,7 +36,6 @@
36
36
  .titaui-user-message-msg-inform__item-photo {
37
37
  width: 32px;
38
38
  height: 32px;
39
- background-color: gray;
40
39
  border-radius: 50%;
41
40
  margin-top: 15px;
42
41
  margin-left: 8px;
@@ -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\u5E76\u8FDB\u5165\u4F01\u4E1A\u5FAE\u4FE1\u540E\u53F0"
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 activeMenu = menu.find(function (item) {
240
- var _item$href$split, _item$href$split$;
239
+ var _isUseNewMenu = window.BSGlobal.isUseNewMenu;
240
+ var activeMenu;
241
241
 
242
- 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$.split('?')[0]);
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);
@@ -23,7 +23,7 @@
23
23
  background: #fff;
24
24
  height: 16px;
25
25
  line-height: 16px;
26
- padding: 8px 24px;
26
+ padding: 8px 22px;
27
27
  border-radius: 0 0 4px 4px;
28
28
  font-size: 14px;
29
29
  color: #6F7886;
@@ -189,6 +189,7 @@ function PeriodSelector(_ref) {
189
189
  padding: '6px 12px'
190
190
  }
191
191
  }, /*#__PURE__*/_react["default"].createElement("span", {
192
+ className: "titaui-period-selector_value",
192
193
  style: {
193
194
  lineHeight: '18px',
194
195
  whiteSpace: 'nowrap'
@@ -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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.15.25",
3
+ "version": "1.15.28-beta.1",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",