@titaui/pc 1.13.2-beta.18 → 1.13.2-beta.19
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/create-okr-modal/index.js +1 -4
- package/lib/components/dialog-upload/util.js +1 -19
- package/lib/components/dynamic/dynamic-item/components/okr-progress/index.js +3 -2
- package/lib/components/dynamic/dynamic-item/components/schedule/index.js +5 -1
- package/lib/components/dynamic/dynamic-item/components/table-row-okr/index.css +12 -0
- package/lib/components/dynamic/dynamic-item/components/table-row-okr/index.js +13 -2
- package/lib/components/dynamic/dynamic-item/components/table-row-okr/utils.js +56 -0
- package/lib/components/dynamic/dynamic-item/components/task-progress/render-row.js +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.css +16 -1
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.js +51 -9
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +27 -10
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +6 -4
- package/lib/components/dynamic/dynamic-item/index.js +23 -3
- package/lib/components/dynamic/request-api.js +9 -2
- package/lib/components/file-list/components/single-file/index.css +0 -29
- package/lib/components/file-list/components/single-file/index.js +28 -18
- package/lib/components/file-list/index.js +1 -2
- package/lib/components/nav-top/components/app-center/index.js +1 -6
- package/lib/components/nav-top/components/menu/index.js +14 -44
- package/lib/components/nav-top/index.css +0 -6
- package/lib/components/nav-top/index.js +2 -138
- package/lib/components/nav-top/request.apis.js +2 -10
- package/lib/components/okr-detail/schedule/components/kr-progress/index.js +1 -4
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +1 -1
- package/lib/components/rich-editor/plugins/inline/color/commond.js +3 -3
- package/lib/components/rich-editor-at/index.js +85 -13
- package/lib/components/scroll-container/index.js +6 -27
- package/lib/components/search-input/index.css +2 -2
- package/lib/components/search-input/index.js +0 -4
- package/lib/components/upload/index.js +455 -273
- package/lib/components/version-change-modal/index.js +3 -1
- package/lib/index.js +0 -8
- package/lib/utils/mock-bsglobal.js +1837 -0
- package/lib/utils/open-data.js +68 -77
- package/lib/utils/tools.js +1 -11
- package/package.json +3 -2
- package/lib/components/checkbox-list/index.css +0 -31
- package/lib/components/checkbox-list/index.js +0 -68
- package/lib/components/dialog-qq-docs/index.css +0 -106
- package/lib/components/dialog-qq-docs/index.js +0 -501
- package/lib/components/dialog-qq-docs/request-apis.js +0 -16
- package/lib/components/dialog-qq-docs/utils.js +0 -83
- package/lib/components/dialog-select/index.css +0 -9
- package/lib/components/dialog-select/index.js +0 -48
- package/lib/components/dialog-upload/img/folder.svg +0 -40
- package/lib/components/dialog-upload/img/form.svg +0 -38
- package/lib/components/dialog-upload/img/mind.svg +0 -39
- package/lib/components/dialog-upload-type/assets/folder.svg +0 -20
- package/lib/components/dialog-upload-type/assets/qq-docs.svg +0 -20
- package/lib/components/dialog-upload-type/components/upload-type-item/index.css +0 -14
- package/lib/components/dialog-upload-type/components/upload-type-item/index.js +0 -36
- package/lib/components/dialog-upload-type/index.css +0 -7
- package/lib/components/dialog-upload-type/index.js +0 -75
- package/lib/components/file-preview/index.css +0 -44
- package/lib/components/file-preview/index.js +0 -68
- package/lib/components/loading/assets/loading.gif +0 -0
- package/lib/components/loading/index.css +0 -28
- package/lib/components/loading/index.js +0 -64
- package/lib/components/nav/index.css +0 -37
- package/lib/components/nav/index.js +0 -31
- package/lib/components/okr-guide/constant.js +0 -23
- package/lib/components/okr-guide/img/left-img.jpg +0 -0
- package/lib/components/okr-guide/index.css +0 -148
- package/lib/components/okr-guide/index.js +0 -244
- package/lib/components/okr-guide/request-api.js +0 -57
- package/lib/components/upload/upload.js +0 -555
|
@@ -23,12 +23,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
23
23
|
|
|
24
24
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
25
|
|
|
26
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
27
|
-
|
|
28
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
29
|
-
|
|
30
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
31
|
-
|
|
32
26
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
33
27
|
|
|
34
28
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
@@ -65,24 +59,15 @@ var ScrollContainer = /*#__PURE__*/function (_PureComponent) {
|
|
|
65
59
|
|
|
66
60
|
_this = _super.call(this, props);
|
|
67
61
|
|
|
68
|
-
_this.onEndScroll = function (
|
|
69
|
-
var _e$target = e.target,
|
|
70
|
-
clientHeight = _e$target.clientHeight,
|
|
71
|
-
scrollHeight = _e$target.scrollHeight,
|
|
72
|
-
scrollTop = _e$target.scrollTop;
|
|
73
|
-
if (clientHeight + scrollTop >= scrollHeight - 50) _this.props.onScrollBottom(e);
|
|
62
|
+
_this.onEndScroll = function () {
|
|
74
63
|
_this.scrolling = false;
|
|
75
64
|
|
|
76
65
|
if (!_this.pressed && _this.started) {
|
|
77
|
-
_this.processEnd(
|
|
66
|
+
_this.processEnd();
|
|
78
67
|
}
|
|
79
68
|
};
|
|
80
69
|
|
|
81
70
|
_this.onScroll = function (e) {
|
|
82
|
-
var _e$target2 = e.target,
|
|
83
|
-
clientHeight = _e$target2.clientHeight,
|
|
84
|
-
scrollHeight = _e$target2.scrollHeight,
|
|
85
|
-
scrollTop = _e$target2.scrollTop;
|
|
86
71
|
var container = _this.container.current; // Ignore the internal scrolls
|
|
87
72
|
|
|
88
73
|
if (container.scrollLeft !== _this.scrollLeft || container.scrollTop !== _this.scrollTop) {
|
|
@@ -90,13 +75,7 @@ var ScrollContainer = /*#__PURE__*/function (_PureComponent) {
|
|
|
90
75
|
|
|
91
76
|
_this.processScroll(e);
|
|
92
77
|
|
|
93
|
-
_this.onEndScroll(
|
|
94
|
-
target: {
|
|
95
|
-
clientHeight: clientHeight,
|
|
96
|
-
scrollHeight: scrollHeight,
|
|
97
|
-
scrollTop: scrollTop
|
|
98
|
-
}
|
|
99
|
-
});
|
|
78
|
+
_this.onEndScroll();
|
|
100
79
|
}
|
|
101
80
|
};
|
|
102
81
|
|
|
@@ -372,14 +351,14 @@ var ScrollContainer = /*#__PURE__*/function (_PureComponent) {
|
|
|
372
351
|
}
|
|
373
352
|
}, {
|
|
374
353
|
key: "processEnd",
|
|
375
|
-
value: function processEnd(
|
|
354
|
+
value: function processEnd() {
|
|
376
355
|
var onEndScroll = this.props.onEndScroll;
|
|
377
356
|
var container = this.container.current;
|
|
378
357
|
|
|
379
358
|
if (container && onEndScroll) {
|
|
380
|
-
onEndScroll(
|
|
359
|
+
onEndScroll({
|
|
381
360
|
external: !this.internal
|
|
382
|
-
})
|
|
361
|
+
});
|
|
383
362
|
}
|
|
384
363
|
|
|
385
364
|
this.pressed = false;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
.search-input-box .clear-input-icon {
|
|
24
24
|
color: #c2cbd1;
|
|
25
25
|
position: absolute;
|
|
26
|
-
font-size:
|
|
26
|
+
font-size: 14px;
|
|
27
27
|
right: 32px;
|
|
28
28
|
top: 50%;
|
|
29
29
|
transform: translate(0, -50%);
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
.search-input-box > input {
|
|
42
42
|
background: #ffffff;
|
|
43
43
|
border: 1px solid #e9edf0;
|
|
44
|
-
border-radius:
|
|
44
|
+
border-radius: 16px;
|
|
45
45
|
width: 100%;
|
|
46
46
|
height: 100%;
|
|
47
47
|
padding: 0 44px 0 11px;
|
|
@@ -58,10 +58,6 @@ function _default(props) {
|
|
|
58
58
|
height: 30
|
|
59
59
|
}, props.style);
|
|
60
60
|
|
|
61
|
-
(0, _react.useEffect)(function () {
|
|
62
|
-
setValue(props.value);
|
|
63
|
-
if (!props.value) setClearIconState(false);
|
|
64
|
-
}, [props.value]);
|
|
65
61
|
var inputClassName = focus ? "search-input-focus" : "";
|
|
66
62
|
var iconClassName = focus ? "search-input-icon-focus" : "";
|
|
67
63
|
var clearIconStyle = {
|