@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.
@@ -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;
@@ -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;
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);
@@ -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'
@@ -282,7 +282,9 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
282
282
  setJsxDomValues(jsxDomValues);
283
283
  }
284
284
 
285
- setVisible(false);
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.15.26",
3
+ "version": "1.15.27",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",