@chaoswise/ui 2.5.2 → 2.5.3
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/Ace/ace.js +6 -7
- package/lib/Ace/diff.js +6 -7
- package/lib/Ace/split.js +6 -7
- package/lib/Antd4Form/FormItemChildren.js +5 -6
- package/lib/CWSelect/antd-select.js +6 -7
- package/lib/CWTable/util.js +1 -1
- package/lib/CWTree/index.js +65 -64
- package/lib/CWUpload/upload/Upload.js +5 -6
- package/lib/CWUpload/upload/UploadList.js +5 -6
- package/lib/Checkbox/Checkbox.js +6 -7
- package/lib/Checkbox/Group.js +6 -7
- package/lib/ErrorBoundary/index.js +6 -7
- package/lib/FilterDropDown/drag.svg +17 -0
- package/lib/Menu/menu/MenuItem.js +5 -6
- package/lib/Menu/menu/SubMenu.js +5 -6
- package/lib/Menu/menu/index.js +6 -8
- package/lib/Modal/Modal.js +6 -7
- package/lib/ModuleFederation/ErrorBoundary/index.js +5 -6
- package/lib/QuickTransfer/CheckList.js +53 -0
- package/lib/QuickTransfer/TopicList.js +152 -0
- package/lib/Radio/Group.js +6 -7
- package/lib/Radio/Radio.js +6 -7
- package/lib/SiderMenu/Item.js +5 -6
- package/lib/SingleSpa/hooks/useErrorHandle.js +65 -0
- package/lib/SingleSpa/hooks/useModel.js +31 -0
- package/lib/SingleSpa/import-html/utils.js +14 -11
- package/lib/SingleSpa/index.js +35 -13
- package/lib/SingleSpa/singleSpa/single-spa.dev.js +11 -6
- package/lib/SingleSpa/system/amd.js +1 -0
- package/lib/SingleSpa/system/system.js +23 -16
- package/lib/SingleSpa/utils.js +15 -2
- package/lib/Table/index.js +29 -2
- package/lib/Table/util.js +15 -0
- package/lib/TimeRangeSlider/Refresh/index.js +161 -0
- package/lib/TimeRangeSlider/Refresh/index.less +26 -0
- package/lib/TimeRangeSlider/TimeRangeSliderCmp/assets/LimitAreaSvg.js +110 -0
- package/lib/TimeRangeSlider/TimeRangeSliderCmp/components/BottomSlider/BottomPlaceholder.js +70 -0
- package/lib/TimeRangeSlider/TimeRangeSliderCmp/components/BottomSlider/BottomTimeDateProcess.js +36 -0
- package/lib/TimeRangeSlider/TimeRangeSliderCmp/components/BottomSlider/index.js +38 -0
- package/lib/TimeRangeSlider/TimeRangeSliderCmp/components/BottomSlider/index.less +113 -0
- package/lib/TimeRangeSlider/TimeRangeSliderCmp/components/TopSlider/TopDateProcess.js +36 -0
- package/lib/TimeRangeSlider/TimeRangeSliderCmp/components/TopSlider/TopPlaceholder.js +36 -0
- package/lib/TimeRangeSlider/TimeRangeSliderCmp/components/TopSlider/index.js +31 -0
- package/lib/TimeRangeSlider/TimeRangeSliderCmp/components/TopSlider/index.less +79 -0
- package/lib/TimeRangeSlider/TimeRangeSliderCmp/hooks/useHover.js +31 -0
- package/lib/TimeRangeSlider/TimeRangeSliderCmp/hooks/useMouse.js +325 -0
- package/lib/TimeRangeSlider/TimeRangeSliderCmp/index.js +73 -0
- package/lib/TimeRangeSlider/TimeRangeSliderCmp/utils/index.js +227 -0
- package/lib/TimeRangeSlider/TimeSpan/index.js +81 -0
- package/lib/TimeRangeSlider/TimeSpan/index.less +12 -0
- package/lib/TimeRangeSlider/assets/Calendar.js +15 -0
- package/lib/TimeRangeSlider/assets/Calendar2.js +15 -0
- package/lib/TimeRangeSlider/assets/Recover.js +18 -0
- package/lib/TimeRangeSlider/assets/Refresh1.js +14 -0
- package/lib/TimeRangeSlider/assets/Refresh2.js +14 -0
- package/lib/TimeRangeSlider/assets/Refresh3.js +14 -0
- package/lib/TimeRangeSlider/assets/live.js +19 -0
- package/lib/TimeRangeSlider/assets/more.js +23 -0
- package/lib/TimeRangeSlider/index.js +480 -0
- package/lib/TimeRangeSlider/index.less +122 -0
- package/lib/TimeRangeSlider/locale/en_US.js +29 -0
- package/lib/TimeRangeSlider/locale/index.js +11 -0
- package/lib/TimeRangeSlider/locale/zh_CN.js +29 -0
- package/lib/TimeRangeSlider/locale/zh_TW.js +29 -0
- package/lib/TimeRangeSlider/utils/index.js +712 -0
- package/lib/TooltipText/ResizeObserverManager.js +56 -0
- package/lib/TooltipText/index.js +50 -60
- package/package.json +3 -2
package/lib/Ace/ace.js
CHANGED
|
@@ -4,13 +4,13 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4
4
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
function
|
|
8
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
9
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
10
8
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
11
|
-
function
|
|
12
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
9
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
13
10
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
13
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
14
14
|
import PropTypes from 'prop-types';
|
|
15
15
|
import React from 'react';
|
|
16
16
|
import { isEqual } from 'lodash-es';
|
|
@@ -19,11 +19,10 @@ import { getAceInstance, editorEvents, debounce, editorOptions } from './editorO
|
|
|
19
19
|
var ace = getAceInstance();
|
|
20
20
|
var ReactAce = /*#__PURE__*/function (_React$Component) {
|
|
21
21
|
_inherits(ReactAce, _React$Component);
|
|
22
|
-
var _super = _createSuper(ReactAce);
|
|
23
22
|
function ReactAce(props) {
|
|
24
23
|
var _this;
|
|
25
24
|
_classCallCheck(this, ReactAce);
|
|
26
|
-
_this =
|
|
25
|
+
_this = _callSuper(this, ReactAce, [props]);
|
|
27
26
|
editorEvents.forEach(function (method) {
|
|
28
27
|
_this[method] = _this[method].bind(_assertThisInitialized(_this));
|
|
29
28
|
});
|
package/lib/Ace/diff.js
CHANGED
|
@@ -4,24 +4,23 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4
4
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
function
|
|
8
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
9
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
10
8
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
11
|
-
function
|
|
12
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
9
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
13
10
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
13
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
14
14
|
import PropTypes from "prop-types";
|
|
15
15
|
import React from "react";
|
|
16
16
|
import split_1 from "./split";
|
|
17
17
|
import DiffMatchPatch from "diff-match-patch";
|
|
18
18
|
var DiffComponent = /*#__PURE__*/function (_React$Component) {
|
|
19
19
|
_inherits(DiffComponent, _React$Component);
|
|
20
|
-
var _super = _createSuper(DiffComponent);
|
|
21
20
|
function DiffComponent(props) {
|
|
22
21
|
var _this;
|
|
23
22
|
_classCallCheck(this, DiffComponent);
|
|
24
|
-
_this =
|
|
23
|
+
_this = _callSuper(this, DiffComponent, [props]);
|
|
25
24
|
_this.state = {
|
|
26
25
|
value: _this.props.value
|
|
27
26
|
};
|
package/lib/Ace/split.js
CHANGED
|
@@ -4,13 +4,13 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
4
4
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
function
|
|
8
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
9
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
10
8
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
11
|
-
function
|
|
12
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
9
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
13
10
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
11
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
13
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
14
14
|
import { getAceInstance, editorEvents, debounce, editorOptions } from "./editorOptions";
|
|
15
15
|
import { Range } from "@chaoswise/ace";
|
|
16
16
|
import ext_split_1 from "@chaoswise/ace/ace-builds/src-noconflict/ext-split";
|
|
@@ -20,11 +20,10 @@ import { isEqual, get } from "lodash-es";
|
|
|
20
20
|
var ace = getAceInstance();
|
|
21
21
|
var SplitComponent = /*#__PURE__*/function (_React$Component) {
|
|
22
22
|
_inherits(SplitComponent, _React$Component);
|
|
23
|
-
var _super = _createSuper(SplitComponent);
|
|
24
23
|
function SplitComponent(props) {
|
|
25
24
|
var _this;
|
|
26
25
|
_classCallCheck(this, SplitComponent);
|
|
27
|
-
_this =
|
|
26
|
+
_this = _callSuper(this, SplitComponent, [props]);
|
|
28
27
|
editorEvents.forEach(function (method) {
|
|
29
28
|
_this[method] = _this[method].bind(_assertThisInitialized(_this));
|
|
30
29
|
});
|
|
@@ -7,20 +7,19 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
7
7
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
8
8
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
9
9
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
10
|
-
function
|
|
11
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
12
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
13
11
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
14
12
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
15
|
-
function _isNativeReflectConstruct() {
|
|
13
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
16
14
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
15
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
16
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
17
17
|
import React, { Component } from 'react';
|
|
18
18
|
var FormItemChildren = /*#__PURE__*/function (_Component) {
|
|
19
19
|
_inherits(FormItemChildren, _Component);
|
|
20
|
-
var _super = _createSuper(FormItemChildren);
|
|
21
20
|
function FormItemChildren() {
|
|
22
21
|
_classCallCheck(this, FormItemChildren);
|
|
23
|
-
return
|
|
22
|
+
return _callSuper(this, FormItemChildren, arguments);
|
|
24
23
|
}
|
|
25
24
|
_createClass(FormItemChildren, [{
|
|
26
25
|
key: "shouldComponentUpdate",
|
|
@@ -9,13 +9,13 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
9
9
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
10
10
|
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, _toPropertyKey(descriptor.key), descriptor); } }
|
|
11
11
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
12
|
-
function
|
|
13
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
14
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
12
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
15
13
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
16
|
-
function
|
|
17
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
14
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
18
15
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
16
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
17
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
18
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
19
19
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
20
20
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
21
21
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
@@ -29,11 +29,10 @@ import './index.less';
|
|
|
29
29
|
var SelectSizes = ['default', 'large', 'small'];
|
|
30
30
|
var Select = /*#__PURE__*/function (_React$Component) {
|
|
31
31
|
_inherits(Select, _React$Component);
|
|
32
|
-
var _super = _createSuper(Select);
|
|
33
32
|
function Select(props) {
|
|
34
33
|
var _this;
|
|
35
34
|
_classCallCheck(this, Select);
|
|
36
|
-
_this =
|
|
35
|
+
_this = _callSuper(this, Select, [props]);
|
|
37
36
|
_defineProperty(_assertThisInitialized(_this), "saveSelect", function (node) {
|
|
38
37
|
_this.rcSelect = node;
|
|
39
38
|
});
|
package/lib/CWTable/util.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export var getKey = function getKey(record, rowKey) {
|
|
2
2
|
var key = record.key;
|
|
3
|
-
if (typeof rowKey ===
|
|
3
|
+
if (typeof rowKey === "string") key = record[rowKey];else if (typeof rowKey === "function") key = rowKey(record);
|
|
4
4
|
return key;
|
|
5
5
|
};
|
package/lib/CWTree/index.js
CHANGED
|
@@ -25,7 +25,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
25
25
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
26
26
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
27
27
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
28
|
-
import React, { Fragment, useState, useEffect, useMemo } from "react";
|
|
28
|
+
import React, { Fragment, useState, useEffect, useMemo, useCallback } from "react";
|
|
29
29
|
import isNull from "lodash-es/isNull";
|
|
30
30
|
import isUndefined from "lodash-es/isUndefined";
|
|
31
31
|
import PropTypes from "prop-types";
|
|
@@ -127,7 +127,7 @@ function CWTree(_ref) {
|
|
|
127
127
|
}
|
|
128
128
|
return createTree(treeData, searchValue, caseSensitive, rest.checkable);
|
|
129
129
|
}, [searchHighlight, treeData, searchValue, rest.checkable, caseSensitive]);
|
|
130
|
-
|
|
130
|
+
var buildMenu = useCallback(function (array) {
|
|
131
131
|
// 递归构建菜单解构
|
|
132
132
|
return array.map(function (item) {
|
|
133
133
|
if (item.children) {
|
|
@@ -142,8 +142,8 @@ function CWTree(_ref) {
|
|
|
142
142
|
}, item), item.title);
|
|
143
143
|
}
|
|
144
144
|
});
|
|
145
|
-
}
|
|
146
|
-
|
|
145
|
+
}, []);
|
|
146
|
+
var creatMenu = useCallback(function (treeTitle, treeKey, props) {
|
|
147
147
|
// 创建扩展菜单
|
|
148
148
|
var data = menuData(treeTitle, treeKey, props);
|
|
149
149
|
if (data.constructor === Array) {
|
|
@@ -159,8 +159,8 @@ function CWTree(_ref) {
|
|
|
159
159
|
}
|
|
160
160
|
}, buildMenu(data));
|
|
161
161
|
}
|
|
162
|
-
}
|
|
163
|
-
|
|
162
|
+
}, [menuData, onClickMenu, menuStyle]);
|
|
163
|
+
var creatButton = useCallback(function (icon, treeTitle, treeKey, props) {
|
|
164
164
|
// 创建扩展功能按钮
|
|
165
165
|
var data = menuData(treeTitle, treeKey, props);
|
|
166
166
|
return data.map(function (item) {
|
|
@@ -178,8 +178,8 @@ function CWTree(_ref) {
|
|
|
178
178
|
}
|
|
179
179
|
}, item.title));
|
|
180
180
|
});
|
|
181
|
-
}
|
|
182
|
-
|
|
181
|
+
}, [menuData, onClickMenu]);
|
|
182
|
+
var creatTitle = useCallback(function (icon, title, key, children, props) {
|
|
183
183
|
var menuDom = /*#__PURE__*/React.createElement(_Dropdown, {
|
|
184
184
|
overlay: creatMenu(title, key, props),
|
|
185
185
|
placement: "bottomLeft"
|
|
@@ -215,56 +215,51 @@ function CWTree(_ref) {
|
|
|
215
215
|
className: "cw-tree-treenode-extend-dropdown"
|
|
216
216
|
}, menuDom) : creatButton(icon, title, key, props))));
|
|
217
217
|
return titleDom;
|
|
218
|
-
}
|
|
219
|
-
function
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
beforeTitle = _createTitle.beforeTitle,
|
|
240
|
-
afterTitle = _createTitle.afterTitle,
|
|
241
|
-
searchStr = _createTitle.searchStr;
|
|
242
|
-
_title = index > -1 ? /*#__PURE__*/React.createElement("span", null, beforeTitle, /*#__PURE__*/React.createElement("span", {
|
|
243
|
-
style: searchHighlightStyle
|
|
244
|
-
}, searchStr), afterTitle) : /*#__PURE__*/React.createElement("span", null, title);
|
|
245
|
-
}
|
|
218
|
+
}, [menuData, extendType, tooltipPlacement, isDrawer, draggable, _showExtend, menuRender, localeObj, useTooltipText, creatButton, creatMenu]);
|
|
219
|
+
var innerTreeNode = useMemo(function () {
|
|
220
|
+
function creatTreeNode(data) {
|
|
221
|
+
// 创建树结构
|
|
222
|
+
return data.map(function (_props) {
|
|
223
|
+
var icon = _props.icon,
|
|
224
|
+
title = _props.title,
|
|
225
|
+
key = _props.key,
|
|
226
|
+
children = _props.children,
|
|
227
|
+
props = _objectWithoutProperties(_props, _excluded2);
|
|
228
|
+
var _title = title;
|
|
229
|
+
if (searchHighlight && typeof title === "string") {
|
|
230
|
+
var _createTitle = createTitle(caseSensitive, searchValue, title),
|
|
231
|
+
index = _createTitle.index,
|
|
232
|
+
beforeTitle = _createTitle.beforeTitle,
|
|
233
|
+
afterTitle = _createTitle.afterTitle,
|
|
234
|
+
searchStr = _createTitle.searchStr;
|
|
235
|
+
_title = index > -1 ? /*#__PURE__*/React.createElement("span", null, beforeTitle, /*#__PURE__*/React.createElement("span", {
|
|
236
|
+
style: searchHighlightStyle
|
|
237
|
+
}, searchStr), afterTitle) : /*#__PURE__*/React.createElement("span", null, title);
|
|
238
|
+
}
|
|
246
239
|
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
240
|
+
// renderItem 自定义
|
|
241
|
+
if (renderItem) {
|
|
242
|
+
_title = renderItem(_title, _props);
|
|
243
|
+
}
|
|
244
|
+
return /*#__PURE__*/React.createElement(TreeNode, _extends({
|
|
245
|
+
className: "cw-tree-treenode",
|
|
246
|
+
record: _props,
|
|
247
|
+
icon: icon ? icon : null,
|
|
248
|
+
title: menuData(_title, key, props) || menuRender ? creatTitle(icon, _title, key, children, props) : /*#__PURE__*/React.createElement("span", {
|
|
249
|
+
className: "cw-tree-treenode-content"
|
|
250
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
251
|
+
className: "cw-tree-treenode-title"
|
|
252
|
+
}, useTooltipText ? /*#__PURE__*/React.createElement(_TooltipText, {
|
|
253
|
+
title: title,
|
|
254
|
+
placement: "top"
|
|
255
|
+
}, _title) : _title)),
|
|
256
|
+
originTitle: title,
|
|
257
|
+
key: key
|
|
258
|
+
}, props), children && creatTreeNode(children));
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
return creatTreeNode(_treeData);
|
|
262
|
+
}, [_treeData, searchHighlight, caseSensitive, searchValue, searchHighlightStyle, menuData, menuRender, useTooltipText, renderItem, creatTitle]);
|
|
268
263
|
var _onExpand = function _onExpand(keys, e) {
|
|
269
264
|
setExpandedKeys(keys);
|
|
270
265
|
onExpand(keys, e);
|
|
@@ -297,6 +292,16 @@ function CWTree(_ref) {
|
|
|
297
292
|
}
|
|
298
293
|
return {};
|
|
299
294
|
}, [searchValue, expandedKeys]);
|
|
295
|
+
var onMouseEnter = function onMouseEnter(e) {
|
|
296
|
+
// 显示扩展部分
|
|
297
|
+
if (e.node.props.eventKey === _showExtend) {
|
|
298
|
+
return;
|
|
299
|
+
}
|
|
300
|
+
setShowExtend(e.node.props.eventKey);
|
|
301
|
+
};
|
|
302
|
+
var onMouseLeave = function onMouseLeave() {
|
|
303
|
+
setShowExtend("");
|
|
304
|
+
};
|
|
300
305
|
return /*#__PURE__*/React.createElement("div", {
|
|
301
306
|
className: "cw-tree-outer-wrapper"
|
|
302
307
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -317,15 +322,11 @@ function CWTree(_ref) {
|
|
|
317
322
|
expandAction: false,
|
|
318
323
|
multiple: multiple,
|
|
319
324
|
className: classnames("cw-tree", className),
|
|
320
|
-
onMouseEnter:
|
|
321
|
-
|
|
322
|
-
},
|
|
323
|
-
onMouseLeave: function onMouseLeave(e) {
|
|
324
|
-
return hideExtend(e);
|
|
325
|
-
},
|
|
325
|
+
onMouseEnter: onMouseEnter,
|
|
326
|
+
onMouseLeave: onMouseLeave,
|
|
326
327
|
draggable: draggable,
|
|
327
328
|
onExpand: _onExpand
|
|
328
|
-
}, expandedConfig, rest), children ? children :
|
|
329
|
+
}, expandedConfig, rest), children ? children : innerTreeNode)))), /*#__PURE__*/React.createElement("div", {
|
|
329
330
|
className: "cw-tree-footer"
|
|
330
331
|
}, extraFooter));
|
|
331
332
|
}
|
|
@@ -15,13 +15,13 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
15
15
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
17
17
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
18
|
-
function
|
|
19
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
20
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
18
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
21
19
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
22
20
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
23
|
-
function _isNativeReflectConstruct() {
|
|
21
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
24
22
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
23
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
24
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
25
25
|
// @ts-nocheck
|
|
26
26
|
import * as React from "react";
|
|
27
27
|
// import "./style/index.less";
|
|
@@ -37,11 +37,10 @@ import defaultLocale from "antd/es/locale/default";
|
|
|
37
37
|
import { ConfigConsumer } from "antd/es/config-provider";
|
|
38
38
|
var Upload = /*#__PURE__*/function (_React$Component) {
|
|
39
39
|
_inherits(Upload, _React$Component);
|
|
40
|
-
var _super = _createSuper(Upload);
|
|
41
40
|
function Upload(props) {
|
|
42
41
|
var _this;
|
|
43
42
|
_classCallCheck(this, Upload);
|
|
44
|
-
_this =
|
|
43
|
+
_this = _callSuper(this, Upload, [props]);
|
|
45
44
|
_this.saveUpload = function (node) {
|
|
46
45
|
_this.upload = node;
|
|
47
46
|
};
|
|
@@ -11,13 +11,13 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
11
11
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
12
12
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
13
13
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
14
|
-
function
|
|
15
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
16
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
14
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
17
15
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
18
16
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
19
|
-
function _isNativeReflectConstruct() {
|
|
17
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
20
18
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
19
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
20
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
21
21
|
// @ts-nocheck
|
|
22
22
|
import * as React from "react";
|
|
23
23
|
import Animate from "rc-animate";
|
|
@@ -38,11 +38,10 @@ export default function UploadList(props) {
|
|
|
38
38
|
}
|
|
39
39
|
var IUploadList = /*#__PURE__*/function (_React$Component) {
|
|
40
40
|
_inherits(IUploadList, _React$Component);
|
|
41
|
-
var _super = _createSuper(IUploadList);
|
|
42
41
|
function IUploadList() {
|
|
43
42
|
var _this;
|
|
44
43
|
_classCallCheck(this, IUploadList);
|
|
45
|
-
_this =
|
|
44
|
+
_this = _callSuper(this, IUploadList, arguments);
|
|
46
45
|
_this.handlePreview = function (file, e) {
|
|
47
46
|
var onPreview = _this.props.onPreview;
|
|
48
47
|
if (!onPreview) {
|
package/lib/Checkbox/Checkbox.js
CHANGED
|
@@ -8,13 +8,13 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
8
8
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
9
9
|
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, _toPropertyKey(descriptor.key), descriptor); } }
|
|
10
10
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
11
|
-
function
|
|
12
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
13
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
14
12
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
15
|
-
function
|
|
16
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
13
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
17
14
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
15
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
16
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
17
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
18
18
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
19
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
20
20
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
@@ -31,14 +31,13 @@ import Duigou01 from "./assets/duigou1";
|
|
|
31
31
|
import Duigou02 from "./assets/duigou2";
|
|
32
32
|
var Checkbox = /*#__PURE__*/function (_Component) {
|
|
33
33
|
_inherits(Checkbox, _Component);
|
|
34
|
-
var _super = _createSuper(Checkbox);
|
|
35
34
|
function Checkbox() {
|
|
36
35
|
var _this;
|
|
37
36
|
_classCallCheck(this, Checkbox);
|
|
38
37
|
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
39
38
|
_args[_key] = arguments[_key];
|
|
40
39
|
}
|
|
41
|
-
_this =
|
|
40
|
+
_this = _callSuper(this, Checkbox, [].concat(_args));
|
|
42
41
|
_defineProperty(_assertThisInitialized(_this), "saveCheckbox", function (node) {
|
|
43
42
|
_this.rcCheckbox = node;
|
|
44
43
|
});
|
package/lib/Checkbox/Group.js
CHANGED
|
@@ -12,13 +12,13 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
12
12
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13
13
|
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, _toPropertyKey(descriptor.key), descriptor); } }
|
|
14
14
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
15
|
-
function
|
|
16
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
17
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
15
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
18
16
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
19
|
-
function
|
|
20
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
17
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
21
18
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
19
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
20
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
21
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
22
22
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
23
23
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
24
24
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
@@ -32,11 +32,10 @@ import { ConfigConsumer } from "antd/es/config-provider";
|
|
|
32
32
|
import Checkbox from "./Checkbox";
|
|
33
33
|
var CheckboxGroup = /*#__PURE__*/function (_Component) {
|
|
34
34
|
_inherits(CheckboxGroup, _Component);
|
|
35
|
-
var _super = _createSuper(CheckboxGroup);
|
|
36
35
|
function CheckboxGroup(_props) {
|
|
37
36
|
var _this;
|
|
38
37
|
_classCallCheck(this, CheckboxGroup);
|
|
39
|
-
_this =
|
|
38
|
+
_this = _callSuper(this, CheckboxGroup, [_props]);
|
|
40
39
|
_defineProperty(_assertThisInitialized(_this), "cancelValue", function (value) {
|
|
41
40
|
_this.setState(function (_ref) {
|
|
42
41
|
var registeredValues = _ref.registeredValues;
|
|
@@ -2,13 +2,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
2
2
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3
3
|
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, _toPropertyKey(descriptor.key), descriptor); } }
|
|
4
4
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
|
-
function
|
|
6
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
7
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
8
6
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
9
|
-
function
|
|
10
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
8
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
10
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
11
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
12
12
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
14
14
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
@@ -18,11 +18,10 @@ import './history';
|
|
|
18
18
|
import './index.less';
|
|
19
19
|
var ErrorBoundary = /*#__PURE__*/function (_React$PureComponent) {
|
|
20
20
|
_inherits(ErrorBoundary, _React$PureComponent);
|
|
21
|
-
var _super = _createSuper(ErrorBoundary);
|
|
22
21
|
function ErrorBoundary(props) {
|
|
23
22
|
var _this;
|
|
24
23
|
_classCallCheck(this, ErrorBoundary);
|
|
25
|
-
_this =
|
|
24
|
+
_this = _callSuper(this, ErrorBoundary, [props]);
|
|
26
25
|
_defineProperty(_assertThisInitialized(_this), "timer", null);
|
|
27
26
|
_defineProperty(_assertThisInitialized(_this), "historyChange", function () {
|
|
28
27
|
_this.setState({
|