@titaui/pc 1.12.99-beta.1 → 1.13.2-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.
- package/lib/components/checkbox-list/index.css +18 -0
- package/lib/components/checkbox-list/index.js +66 -0
- package/lib/components/dialog-qq-docs/index.css +90 -0
- package/lib/components/dialog-qq-docs/index.js +488 -0
- package/lib/components/dialog-qq-docs/request-apis.js +16 -0
- package/lib/components/dialog-qq-docs/utils.js +76 -0
- package/lib/components/dialog-select/index.css +9 -0
- package/lib/components/dialog-select/index.js +48 -0
- package/lib/components/dialog-upload-type/assets/folder.svg +20 -0
- package/lib/components/dialog-upload-type/assets/qq-docs.svg +20 -0
- package/lib/components/dialog-upload-type/components/upload-type-item/index.css +14 -0
- package/lib/components/dialog-upload-type/components/upload-type-item/index.js +36 -0
- package/lib/components/dialog-upload-type/index.css +7 -0
- package/lib/components/dialog-upload-type/index.js +75 -0
- package/lib/components/dynamic/dynamic-item/components/okr-progress/index.js +1 -2
- package/lib/components/dynamic/dynamic-item/components/table-row-okr/index.css +0 -12
- package/lib/components/dynamic/dynamic-item/components/table-row-okr/index.js +2 -13
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.css +1 -16
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.js +9 -52
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +10 -27
- package/lib/components/dynamic/dynamic-item/index.js +3 -23
- package/lib/components/dynamic/request-api.js +2 -9
- package/lib/components/file-list/components/single-file/index.js +3 -1
- package/lib/components/file-list/index.js +2 -1
- package/lib/components/file-preview/index.css +37 -0
- package/lib/components/file-preview/index.js +68 -0
- package/lib/components/loading/assets/loading.gif +0 -0
- package/lib/components/loading/index.css +23 -0
- package/lib/components/loading/index.js +30 -0
- package/lib/components/nav/index.css +23 -0
- package/lib/components/nav/index.js +31 -0
- package/lib/components/nav-top/components/app-center/index.css +1 -1
- package/lib/components/nav-top/components/menu/index.js +15 -15
- package/lib/components/nav-top/index.js +19 -4
- package/lib/components/okr-detail/detail-header/delete-confirm/delete-confirm.js +33 -29
- package/lib/components/rich-editor-at/index.js +13 -94
- package/lib/components/scroll-container/index.js +27 -6
- package/lib/components/search-input/index.js +3 -0
- package/lib/components/upload/index.js +260 -456
- package/lib/components/upload/upload.js +555 -0
- package/lib/utils/tools.js +11 -1
- package/package.json +1 -1
- package/lib/components/dynamic/dynamic-item/components/table-row-okr/utils.js +0 -62
|
@@ -23,6 +23,12 @@ 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
|
+
|
|
26
32
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
27
33
|
|
|
28
34
|
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); } }
|
|
@@ -59,15 +65,24 @@ var ScrollContainer = /*#__PURE__*/function (_PureComponent) {
|
|
|
59
65
|
|
|
60
66
|
_this = _super.call(this, props);
|
|
61
67
|
|
|
62
|
-
_this.onEndScroll = function () {
|
|
68
|
+
_this.onEndScroll = function (e) {
|
|
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) _this.props.onScrollBottom(e);
|
|
63
74
|
_this.scrolling = false;
|
|
64
75
|
|
|
65
76
|
if (!_this.pressed && _this.started) {
|
|
66
|
-
_this.processEnd();
|
|
77
|
+
_this.processEnd(e);
|
|
67
78
|
}
|
|
68
79
|
};
|
|
69
80
|
|
|
70
81
|
_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;
|
|
71
86
|
var container = _this.container.current; // Ignore the internal scrolls
|
|
72
87
|
|
|
73
88
|
if (container.scrollLeft !== _this.scrollLeft || container.scrollTop !== _this.scrollTop) {
|
|
@@ -75,7 +90,13 @@ var ScrollContainer = /*#__PURE__*/function (_PureComponent) {
|
|
|
75
90
|
|
|
76
91
|
_this.processScroll(e);
|
|
77
92
|
|
|
78
|
-
_this.onEndScroll(
|
|
93
|
+
_this.onEndScroll({
|
|
94
|
+
target: {
|
|
95
|
+
clientHeight: clientHeight,
|
|
96
|
+
scrollHeight: scrollHeight,
|
|
97
|
+
scrollTop: scrollTop
|
|
98
|
+
}
|
|
99
|
+
});
|
|
79
100
|
}
|
|
80
101
|
};
|
|
81
102
|
|
|
@@ -351,14 +372,14 @@ var ScrollContainer = /*#__PURE__*/function (_PureComponent) {
|
|
|
351
372
|
}
|
|
352
373
|
}, {
|
|
353
374
|
key: "processEnd",
|
|
354
|
-
value: function processEnd() {
|
|
375
|
+
value: function processEnd(e) {
|
|
355
376
|
var onEndScroll = this.props.onEndScroll;
|
|
356
377
|
var container = this.container.current;
|
|
357
378
|
|
|
358
379
|
if (container && onEndScroll) {
|
|
359
|
-
onEndScroll({
|
|
380
|
+
onEndScroll(_objectSpread(_objectSpread({}, e), {}, {
|
|
360
381
|
external: !this.internal
|
|
361
|
-
});
|
|
382
|
+
}));
|
|
362
383
|
}
|
|
363
384
|
|
|
364
385
|
this.pressed = false;
|
|
@@ -58,6 +58,9 @@ function _default(props) {
|
|
|
58
58
|
height: 30
|
|
59
59
|
}, props.style);
|
|
60
60
|
|
|
61
|
+
(0, _react.useEffect)(function () {
|
|
62
|
+
setValue(props.value);
|
|
63
|
+
}, [props.value]);
|
|
61
64
|
var inputClassName = focus ? "search-input-focus" : "";
|
|
62
65
|
var iconClassName = focus ? "search-input-icon-focus" : "";
|
|
63
66
|
var clearIconStyle = {
|