@titaui/pc 1.13.2-beta.10 → 1.13.2-beta.13

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.
@@ -59,7 +59,8 @@
59
59
 
60
60
  .titaui-dialog-qq-docs__nav {
61
61
  margin-top: 15px;
62
- height: 28px;
62
+ padding-bottom: 8px;
63
+ height: max-content;
63
64
  transition: all .3s;
64
65
  box-shadow: 0px 4px 8px 0px rgba(127, 145, 180, 0.1);
65
66
  }
@@ -411,7 +411,8 @@ var DialogQQDocs = function DialogQQDocs(_ref) {
411
411
  setCheckListData(dataList);
412
412
  }, [changeNavPath]);
413
413
  var onSearchHandler = (0, _react.useCallback)(function (e) {
414
- // 清空搜索后,恢复到搜索前的状态
414
+ if (searchContent === e) return; // 清空搜索后,恢复到搜索前的状态
415
+
415
416
  if (!e) {
416
417
  setSearchContent(e);
417
418
  setNavPath(_toConsumableArray(catchNavPath));
@@ -423,7 +424,7 @@ var DialogQQDocs = function DialogQQDocs(_ref) {
423
424
  catchNavPath = navPath;
424
425
  onSearch(e);
425
426
  setSearchContent(e);
426
- }, [navPath]);
427
+ }, [navPath, searchContent]);
427
428
  var onScrollBottomHandler = (0, _react.useCallback)(function () {
428
429
  if (isEnd) return;
429
430
  next();
@@ -452,6 +453,7 @@ var DialogQQDocs = function DialogQQDocs(_ref) {
452
453
  var isSearchNull = checkListData.length === 0 && searchContent;
453
454
  var onCloseHandler = (0, _react.useCallback)(function () {
454
455
  setSearchContent('');
456
+ setNavPath(defaultnNavPath);
455
457
  if (restProps.onClose) restProps.onClose();
456
458
  }, [restProps.onClose]);
457
459
  return /*#__PURE__*/_react["default"].createElement(_dialog["default"], _extends({
@@ -61,7 +61,7 @@ var DialogUploadType = function DialogUploadType(_ref) {
61
61
  icon: _qqDocs["default"]
62
62
  })
63
63
  }];
64
- }, []);
64
+ }, [localComponent, onSelectQQDocs]);
65
65
  return /*#__PURE__*/_react["default"].createElement(_dialogSelect["default"], _extends({
66
66
  title: "\u9009\u62E9\u4E0A\u4F20\u65B9\u5F0F"
67
67
  }, restProps, {
@@ -78,7 +78,7 @@ var SingleFile = function SingleFile(_ref) {
78
78
  style: {
79
79
  backgroundColor: backGroundColor
80
80
  }
81
- }, /*#__PURE__*/_react["default"].createElement("div", {
81
+ }, showDownload && /*#__PURE__*/_react["default"].createElement("div", {
82
82
  className: "".concat(prefix, "__download-line")
83
83
  }, /*#__PURE__*/_react["default"].createElement("i", {
84
84
  className: (0, _classnames["default"])('tu-icon-APP-xiazai', "".concat(prefix, "__download-line__icon"))
@@ -1,5 +1,6 @@
1
1
  .titaui-nav {
2
2
  display: flex;
3
+ flex-wrap: wrap;
3
4
  }
4
5
 
5
6
  .titaui-nav_item {
@@ -7,9 +8,9 @@
7
8
  font-size: 14px;
8
9
  font-weight: 400;
9
10
  color: #89919F;
10
- line-height: 20px;
11
11
  cursor: pointer;
12
12
  transition: color .3s;
13
+ white-space: nowrap;
13
14
  }
14
15
 
15
16
  .titaui-nav_item:hover {
@@ -296,7 +296,7 @@ var NavTop = function NavTop() {
296
296
  var hasSetting = res.hasSetting,
297
297
  onthers = _objectWithoutProperties(res, _excluded);
298
298
 
299
- if (!isHasOkr() && !hasSetting) {
299
+ if (isHasOkr() && !hasSetting) {
300
300
  console.log(hasSetting, '66666666633');
301
301
  setOkrGuideVisible(true);
302
302
  }
@@ -70,6 +70,7 @@ var ScrollContainer = /*#__PURE__*/function (_PureComponent) {
70
70
  clientHeight = _e$target.clientHeight,
71
71
  scrollHeight = _e$target.scrollHeight,
72
72
  scrollTop = _e$target.scrollTop;
73
+ console.log("".concat(clientHeight, " + ").concat(scrollTop, " === ").concat(scrollHeight));
73
74
  if (clientHeight + scrollTop === scrollHeight) _this.props.onScrollBottom(e);
74
75
  _this.scrolling = false;
75
76
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.13.2-beta.10",
3
+ "version": "1.13.2-beta.13",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",