@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.
- package/lib/components/dialog-qq-docs/index.css +2 -1
- package/lib/components/dialog-qq-docs/index.js +4 -2
- package/lib/components/dialog-upload-type/index.js +1 -1
- package/lib/components/file-list/components/single-file/index.js +1 -1
- package/lib/components/nav/index.css +2 -1
- package/lib/components/nav-top/index.js +1 -1
- package/lib/components/scroll-container/index.js +1 -0
- package/package.json +1 -1
|
@@ -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 (
|
|
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
|
|