antd-management-fast-framework 1.1.15 → 1.1.27
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/customComponents/AnimalBox/FadeBox/index.d.ts +13 -0
- package/lib/customComponents/AnimalBox/FadeBox/index.js +82 -0
- package/lib/customComponents/AnimalBox/FadeBox/index.less +59 -0
- package/lib/customComponents/AnimalBox/QueueBox/index.d.ts +14 -0
- package/lib/customComponents/AnimalBox/QueueBox/index.js +117 -0
- package/lib/customComponents/AnimalBox/QueueBox/index.less +16 -0
- package/lib/customComponents/DataPreviewDrawer/index.js +1 -0
- package/lib/framework/Common/index.d.ts +7 -7
- package/lib/framework/Common/index.js +39 -29
- package/lib/framework/DataDrawer/Base/index.d.ts +1 -1
- package/lib/framework/DataDrawer/Base/index.js +1 -1
- package/lib/framework/DataDrawer/BaseAddDrawer/index.d.ts +2 -2
- package/lib/framework/DataDrawer/BaseAddDrawer/index.js +4 -4
- package/lib/framework/DataDrawer/BaseNeedlessLoadDrawer/index.d.ts +5 -0
- package/lib/framework/DataDrawer/BaseNeedlessLoadDrawer/index.js +86 -0
- package/lib/framework/DataForm/BaseAddForm/index.d.ts +1 -0
- package/lib/framework/DataForm/BaseAddForm/index.js +5 -0
- package/lib/framework/DataListView/Base/index.d.ts +0 -9
- package/lib/framework/DataListView/Base/index.js +0 -186
- package/lib/framework/DataModal/Base/index.d.ts +1 -1
- package/lib/framework/DataModal/Base/index.js +1 -1
- package/lib/framework/DataModal/BaseAddModal/index.d.ts +2 -7
- package/lib/framework/DataModal/BaseAddModal/index.js +11 -61
- package/lib/framework/DataModal/BaseNeedlessLoadModal/index.d.ts +10 -0
- package/lib/framework/DataModal/BaseNeedlessLoadModal/index.js +135 -0
- package/lib/framework/DataMultiPageView/MultiPage/index.js +1 -0
- package/lib/framework/DataMultiPageView/MultiPageDrawer/index.d.ts +4 -0
- package/lib/framework/DataMultiPageView/MultiPageDrawer/index.js +1 -0
- package/lib/framework/DataOperation/Base/index.d.ts +16 -0
- package/lib/framework/DataOperation/Base/index.js +116 -77
- package/lib/framework/DataOperation/BaseWindow/index.d.ts +0 -6
- package/lib/framework/DataOperation/BaseWindow/index.js +0 -12
- package/lib/framework/DataSinglePageView/SinglePage/index.js +1 -0
- package/lib/framework/DataSinglePageView/SinglePageDrawer/index.d.ts +4 -0
- package/lib/framework/DataSinglePageView/SinglePageDrawer/index.js +1 -0
- package/lib/framework/DataSingleView/DataCore/index.d.ts +0 -7
- package/lib/framework/DataSingleView/DataCore/index.js +0 -26
- package/lib/framework/DataTabContainer/index.js +1 -1
- package/lib/utils/actionAssist.js +3 -1
- package/lib/utils/constants.d.ts +19 -5
- package/lib/utils/constants.js +14 -1
- package/lib/utils/requestAssistor.js +4 -2
- package/lib/utils/tools.d.ts +4 -1
- package/lib/utils/tools.js +56 -5
- package/package.json +4 -5
- package/src/customComponents/AnimalBox/FadeBox/index.jsx +26 -0
- package/src/customComponents/AnimalBox/FadeBox/index.less +59 -0
- package/src/customComponents/AnimalBox/QueueBox/index.jsx +72 -0
- package/src/customComponents/AnimalBox/QueueBox/index.less +16 -0
- package/src/customComponents/Authorized/Authorized.jsx +1 -0
- package/src/customComponents/Authorized/AuthorizedRoute.jsx +1 -0
- package/src/customComponents/DataPreviewDrawer/index.jsx +2 -0
- package/src/framework/Common/index.jsx +41 -35
- package/src/framework/DataDrawer/Base/index.jsx +1 -1
- package/src/framework/DataDrawer/BaseAddDrawer/index.jsx +2 -2
- package/src/framework/DataDrawer/BaseNeedlessLoadDrawer/index.jsx +37 -0
- package/src/framework/DataForm/BaseAddForm/index.jsx +6 -0
- package/src/framework/DataListView/Base/index.jsx +0 -181
- package/src/framework/DataModal/Base/index.jsx +1 -1
- package/src/framework/DataModal/BaseAddModal/index.jsx +3 -49
- package/src/framework/DataModal/BaseNeedlessLoadModal/index.jsx +83 -0
- package/src/framework/DataMultiPageView/MultiPage/index.jsx +3 -0
- package/src/framework/DataMultiPageView/MultiPageDrawer/index.jsx +2 -0
- package/src/framework/DataOperation/Base/index.jsx +43 -0
- package/src/framework/DataOperation/BaseWindow/index.jsx +0 -11
- package/src/framework/DataSinglePageView/SinglePage/index.jsx +2 -0
- package/src/framework/DataSinglePageView/SinglePageDrawer/index.jsx +2 -0
- package/src/framework/DataSingleView/DataCore/index.jsx +1 -33
- package/src/framework/DataTabContainer/index.jsx +1 -1
- package/src/utils/actionAssist.js +3 -1
- package/src/utils/constants.js +13 -0
- package/src/utils/requestAssistor.js +2 -0
- package/src/utils/tools.js +56 -4
- package/LICENSE.md +0 -21
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default FadeBox;
|
|
2
|
+
declare class FadeBox extends React.PureComponent<any, any, any> {
|
|
3
|
+
constructor(props: any);
|
|
4
|
+
constructor(props: any, context: any);
|
|
5
|
+
}
|
|
6
|
+
declare namespace FadeBox {
|
|
7
|
+
namespace defaultProps {
|
|
8
|
+
const show: boolean;
|
|
9
|
+
const style: null;
|
|
10
|
+
const bodyStyle: null;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
import React from "react";
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _rcAnimate = _interopRequireDefault(require("rc-animate"));
|
|
13
|
+
|
|
14
|
+
var _index = _interopRequireDefault(require("./index.less"));
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
|
+
|
|
20
|
+
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; }
|
|
21
|
+
|
|
22
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
23
|
+
|
|
24
|
+
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); } }
|
|
25
|
+
|
|
26
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
27
|
+
|
|
28
|
+
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 } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
29
|
+
|
|
30
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
31
|
+
|
|
32
|
+
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); }; }
|
|
33
|
+
|
|
34
|
+
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); }
|
|
35
|
+
|
|
36
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
37
|
+
|
|
38
|
+
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; } }
|
|
39
|
+
|
|
40
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
41
|
+
|
|
42
|
+
var FadeBox = /*#__PURE__*/function (_PureComponent) {
|
|
43
|
+
_inherits(FadeBox, _PureComponent);
|
|
44
|
+
|
|
45
|
+
var _super = _createSuper(FadeBox);
|
|
46
|
+
|
|
47
|
+
function FadeBox() {
|
|
48
|
+
_classCallCheck(this, FadeBox);
|
|
49
|
+
|
|
50
|
+
return _super.apply(this, arguments);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
_createClass(FadeBox, [{
|
|
54
|
+
key: "render",
|
|
55
|
+
value: function render() {
|
|
56
|
+
var _this$props = this.props,
|
|
57
|
+
style = _this$props.style,
|
|
58
|
+
bodyStyle = _this$props.bodyStyle,
|
|
59
|
+
show = _this$props.show,
|
|
60
|
+
children = _this$props.children;
|
|
61
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
62
|
+
className: _index["default"].fadeBox,
|
|
63
|
+
style: style || null
|
|
64
|
+
}, /*#__PURE__*/_react["default"].createElement(_rcAnimate["default"], {
|
|
65
|
+
transitionName: "fade",
|
|
66
|
+
transitionAppear: true
|
|
67
|
+
}, show ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
68
|
+
style: bodyStyle || null
|
|
69
|
+
}, children) : null));
|
|
70
|
+
}
|
|
71
|
+
}]);
|
|
72
|
+
|
|
73
|
+
return FadeBox;
|
|
74
|
+
}(_react.PureComponent);
|
|
75
|
+
|
|
76
|
+
FadeBox.defaultProps = {
|
|
77
|
+
show: true,
|
|
78
|
+
style: null,
|
|
79
|
+
bodyStyle: null
|
|
80
|
+
};
|
|
81
|
+
var _default = FadeBox;
|
|
82
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
@import '~antd/lib/style/themes/default.less';
|
|
2
|
+
|
|
3
|
+
.fadeBox {
|
|
4
|
+
.fade-enter {
|
|
5
|
+
opacity: 0;
|
|
6
|
+
animation-duration: 0.5s;
|
|
7
|
+
animation-play-state: paused;
|
|
8
|
+
animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);
|
|
9
|
+
animation-fill-mode: both;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.fade-appear {
|
|
13
|
+
opacity: 0;
|
|
14
|
+
animation-duration: 0.5s;
|
|
15
|
+
animation-play-state: paused;
|
|
16
|
+
animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);
|
|
17
|
+
animation-fill-mode: both;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.fade-leave {
|
|
21
|
+
animation-duration: 0.5s;
|
|
22
|
+
animation-play-state: paused;
|
|
23
|
+
animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);
|
|
24
|
+
animation-fill-mode: both;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.fade-enter.fade-enter-active {
|
|
28
|
+
animation-name: fadeIn;
|
|
29
|
+
animation-play-state: running;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.fade-appear.fade-appear-active {
|
|
33
|
+
animation-name: fadeIn;
|
|
34
|
+
animation-play-state: running;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.fade-leave.fade-leave-active {
|
|
38
|
+
animation-name: fadeOut;
|
|
39
|
+
animation-play-state: running;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@keyframes fadeIn {
|
|
43
|
+
0% {
|
|
44
|
+
opacity: 0;
|
|
45
|
+
}
|
|
46
|
+
100% {
|
|
47
|
+
opacity: 1;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@keyframes fadeOut {
|
|
52
|
+
0% {
|
|
53
|
+
opacity: 1;
|
|
54
|
+
}
|
|
55
|
+
100% {
|
|
56
|
+
opacity: 0;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default QueueBox;
|
|
2
|
+
declare class QueueBox extends React.PureComponent<any, any, any> {
|
|
3
|
+
constructor(props: any);
|
|
4
|
+
constructor(props: any, context: any);
|
|
5
|
+
}
|
|
6
|
+
declare namespace QueueBox {
|
|
7
|
+
namespace defaultProps {
|
|
8
|
+
const show: boolean;
|
|
9
|
+
const style: null;
|
|
10
|
+
const items: never[];
|
|
11
|
+
const itemStyle: null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
import React from "react";
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _rcQueueAnim = _interopRequireDefault(require("rc-queue-anim"));
|
|
13
|
+
|
|
14
|
+
var _tools = require("../../../utils/tools");
|
|
15
|
+
|
|
16
|
+
var _index = _interopRequireDefault(require("./index.less"));
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
20
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
|
+
|
|
22
|
+
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; }
|
|
23
|
+
|
|
24
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
25
|
+
|
|
26
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
27
|
+
|
|
28
|
+
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; }
|
|
29
|
+
|
|
30
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
31
|
+
|
|
32
|
+
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); } }
|
|
33
|
+
|
|
34
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
35
|
+
|
|
36
|
+
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 } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
37
|
+
|
|
38
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
39
|
+
|
|
40
|
+
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); }; }
|
|
41
|
+
|
|
42
|
+
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); }
|
|
43
|
+
|
|
44
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
45
|
+
|
|
46
|
+
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; } }
|
|
47
|
+
|
|
48
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
49
|
+
|
|
50
|
+
var QueueBox = /*#__PURE__*/function (_PureComponent) {
|
|
51
|
+
_inherits(QueueBox, _PureComponent);
|
|
52
|
+
|
|
53
|
+
var _super = _createSuper(QueueBox);
|
|
54
|
+
|
|
55
|
+
function QueueBox() {
|
|
56
|
+
_classCallCheck(this, QueueBox);
|
|
57
|
+
|
|
58
|
+
return _super.apply(this, arguments);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
_createClass(QueueBox, [{
|
|
62
|
+
key: "render",
|
|
63
|
+
value: function render() {
|
|
64
|
+
var _this$props = this.props,
|
|
65
|
+
style = _this$props.style,
|
|
66
|
+
show = _this$props.show,
|
|
67
|
+
itemStyle = _this$props.itemStyle,
|
|
68
|
+
items = _this$props.items;
|
|
69
|
+
var listData = (0, _tools.isArray)(items) ? items : [];
|
|
70
|
+
var listItem = [];
|
|
71
|
+
listData.forEach(function (o, index) {
|
|
72
|
+
var _builder$hidden$style = _objectSpread(_objectSpread(_objectSpread({}, {
|
|
73
|
+
builder: function builder() {
|
|
74
|
+
return null;
|
|
75
|
+
},
|
|
76
|
+
hidden: false,
|
|
77
|
+
style: null
|
|
78
|
+
}), o), {
|
|
79
|
+
key: "queue_box_item_".concat(index)
|
|
80
|
+
}),
|
|
81
|
+
key = _builder$hidden$style.key,
|
|
82
|
+
builder = _builder$hidden$style.builder,
|
|
83
|
+
hidden = _builder$hidden$style.hidden,
|
|
84
|
+
liStyle = _builder$hidden$style.style;
|
|
85
|
+
|
|
86
|
+
if (!hidden) {
|
|
87
|
+
if ((0, _tools.isFunction)(builder)) {
|
|
88
|
+
var item = builder(key);
|
|
89
|
+
listItem.push( /*#__PURE__*/_react["default"].createElement("li", {
|
|
90
|
+
key: key,
|
|
91
|
+
style: _objectSpread(_objectSpread({}, itemStyle || {}), liStyle || {})
|
|
92
|
+
}, item));
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
97
|
+
className: _index["default"].queueBox,
|
|
98
|
+
style: style || null
|
|
99
|
+
}, /*#__PURE__*/_react["default"].createElement(_rcQueueAnim["default"], {
|
|
100
|
+
component: "ul",
|
|
101
|
+
type: ['right', 'left'],
|
|
102
|
+
leaveReverse: true
|
|
103
|
+
}, show ? listItem : null));
|
|
104
|
+
}
|
|
105
|
+
}]);
|
|
106
|
+
|
|
107
|
+
return QueueBox;
|
|
108
|
+
}(_react.PureComponent);
|
|
109
|
+
|
|
110
|
+
QueueBox.defaultProps = {
|
|
111
|
+
show: true,
|
|
112
|
+
style: null,
|
|
113
|
+
items: [],
|
|
114
|
+
itemStyle: null
|
|
115
|
+
};
|
|
116
|
+
var _default = QueueBox;
|
|
117
|
+
exports["default"] = _default;
|
|
@@ -118,15 +118,15 @@ declare class Common extends Core {
|
|
|
118
118
|
pretreatmentImageUploadRemoteResponse: (response: any) => never;
|
|
119
119
|
pretreatmentFileBase64UploadRemoteResponse: (response: any) => never;
|
|
120
120
|
pretreatmentVideoUploadRemoteResponse: (response: any) => never;
|
|
121
|
-
|
|
121
|
+
buildToolBarConfig: () => null;
|
|
122
|
+
buildToolBar: () => JSX.Element | null;
|
|
123
|
+
buildToolBarWrapper: () => JSX.Element | null;
|
|
124
|
+
buildWrapperTypeConfig: () => {
|
|
122
125
|
mode: string;
|
|
123
126
|
};
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
buildFormContentHelpConfig: () => null;
|
|
128
|
-
buildFormContentHelp: () => JSX.Element | null;
|
|
129
|
-
buildFormContentHelpWrapper: () => JSX.Element | null;
|
|
127
|
+
buildHelpConfig: () => null;
|
|
128
|
+
buildHelp: () => JSX.Element | null;
|
|
129
|
+
buildHelpWrapper: () => JSX.Element | null;
|
|
130
130
|
buildFormContent: (config: any) => JSX.Element;
|
|
131
131
|
buildFormContentItem: (mode: any, contentItems: any, contentIndex: any) => JSX.Element;
|
|
132
132
|
}
|
|
@@ -203,6 +203,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
203
203
|
(0, _tools.showRuntimeError)({
|
|
204
204
|
message: text
|
|
205
205
|
});
|
|
206
|
+
(0, _tools.recordObject)(_assertThisInitialized(_this));
|
|
206
207
|
|
|
207
208
|
_this.setState({
|
|
208
209
|
dataLoading: false,
|
|
@@ -1020,18 +1021,12 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1020
1021
|
throw new Error(text);
|
|
1021
1022
|
};
|
|
1022
1023
|
|
|
1023
|
-
_this.
|
|
1024
|
-
return {
|
|
1025
|
-
mode: _constants.formContentConfig.wrapperType.page
|
|
1026
|
-
};
|
|
1027
|
-
};
|
|
1028
|
-
|
|
1029
|
-
_this.buildFormContentToolBarConfig = function () {
|
|
1024
|
+
_this.buildToolBarConfig = function () {
|
|
1030
1025
|
return null;
|
|
1031
1026
|
};
|
|
1032
1027
|
|
|
1033
|
-
_this.
|
|
1034
|
-
var config = _this.
|
|
1028
|
+
_this.buildToolBar = function () {
|
|
1029
|
+
var config = _this.buildToolBarConfig();
|
|
1035
1030
|
|
|
1036
1031
|
if ((config || null) == null) {
|
|
1037
1032
|
return null;
|
|
@@ -1079,6 +1074,15 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1079
1074
|
type: "vertical"
|
|
1080
1075
|
})
|
|
1081
1076
|
}, toolList.map(function (o) {
|
|
1077
|
+
var _hidden = _objectSpread(_objectSpread({}, {
|
|
1078
|
+
hidden: false
|
|
1079
|
+
}), o !== null && o !== void 0 ? o : {}),
|
|
1080
|
+
hidden = _hidden.hidden;
|
|
1081
|
+
|
|
1082
|
+
if (hidden) {
|
|
1083
|
+
return null;
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1082
1086
|
return /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
1083
1087
|
key: o.key,
|
|
1084
1088
|
title: o.title || ''
|
|
@@ -1104,8 +1108,8 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1104
1108
|
}));
|
|
1105
1109
|
};
|
|
1106
1110
|
|
|
1107
|
-
_this.
|
|
1108
|
-
var toolBar = _this.
|
|
1111
|
+
_this.buildToolBarWrapper = function () {
|
|
1112
|
+
var toolBar = _this.buildToolBar();
|
|
1109
1113
|
|
|
1110
1114
|
if ((toolBar || null) == null) {
|
|
1111
1115
|
return null;
|
|
@@ -1114,22 +1118,28 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1114
1118
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, toolBar);
|
|
1115
1119
|
};
|
|
1116
1120
|
|
|
1117
|
-
_this.
|
|
1121
|
+
_this.buildWrapperTypeConfig = function () {
|
|
1122
|
+
return {
|
|
1123
|
+
mode: _constants.contentConfig.wrapperType.page
|
|
1124
|
+
};
|
|
1125
|
+
};
|
|
1126
|
+
|
|
1127
|
+
_this.buildHelpConfig = function () {
|
|
1118
1128
|
return null;
|
|
1119
1129
|
};
|
|
1120
1130
|
|
|
1121
|
-
_this.
|
|
1122
|
-
var
|
|
1123
|
-
mode: _constants.
|
|
1131
|
+
_this.buildHelp = function () {
|
|
1132
|
+
var wrapperTypeConfig = _this.buildWrapperTypeConfig() || {
|
|
1133
|
+
mode: _constants.contentConfig.wrapperType.page
|
|
1124
1134
|
};
|
|
1125
1135
|
|
|
1126
1136
|
var configData = _objectSpread(_objectSpread({}, {
|
|
1127
|
-
mode: _constants.
|
|
1128
|
-
}),
|
|
1137
|
+
mode: _constants.contentConfig.wrapperType.page
|
|
1138
|
+
}), wrapperTypeConfig || {});
|
|
1129
1139
|
|
|
1130
1140
|
var mode = configData.mode;
|
|
1131
1141
|
|
|
1132
|
-
var config = _this.
|
|
1142
|
+
var config = _this.buildHelpConfig();
|
|
1133
1143
|
|
|
1134
1144
|
if ((config || null) == null) {
|
|
1135
1145
|
return null;
|
|
@@ -1154,8 +1164,8 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1154
1164
|
}
|
|
1155
1165
|
|
|
1156
1166
|
return /*#__PURE__*/_react["default"].createElement(_HelpCard["default"], {
|
|
1157
|
-
border: mode !== _constants.
|
|
1158
|
-
compact: mode === _constants.
|
|
1167
|
+
border: mode !== _constants.contentConfig.wrapperType.model && mode !== _constants.contentConfig.wrapperType.drawer,
|
|
1168
|
+
compact: mode === _constants.contentConfig.wrapperType.model,
|
|
1159
1169
|
helpBoxProps: {
|
|
1160
1170
|
title: title || '操作帮助',
|
|
1161
1171
|
showNumber: showNumber || false,
|
|
@@ -1164,31 +1174,31 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1164
1174
|
});
|
|
1165
1175
|
};
|
|
1166
1176
|
|
|
1167
|
-
_this.
|
|
1168
|
-
var formContentWrapperTypeConfig = _this.
|
|
1169
|
-
mode: _constants.
|
|
1177
|
+
_this.buildHelpWrapper = function () {
|
|
1178
|
+
var formContentWrapperTypeConfig = _this.buildWrapperTypeConfig() || {
|
|
1179
|
+
mode: _constants.contentConfig.wrapperType.page
|
|
1170
1180
|
};
|
|
1171
1181
|
|
|
1172
1182
|
var configData = _objectSpread(_objectSpread({}, {
|
|
1173
|
-
mode: _constants.
|
|
1183
|
+
mode: _constants.contentConfig.wrapperType.page
|
|
1174
1184
|
}), formContentWrapperTypeConfig || {});
|
|
1175
1185
|
|
|
1176
1186
|
var mode = configData.mode;
|
|
1177
1187
|
|
|
1178
|
-
var help = _this.
|
|
1188
|
+
var help = _this.buildHelp();
|
|
1179
1189
|
|
|
1180
1190
|
if ((help || null) == null) {
|
|
1181
1191
|
return null;
|
|
1182
1192
|
}
|
|
1183
1193
|
|
|
1184
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, mode !== _constants.
|
|
1194
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, mode !== _constants.contentConfig.wrapperType.model ? /*#__PURE__*/_react["default"].createElement(_EverySpace["default"], {
|
|
1185
1195
|
size: 22,
|
|
1186
1196
|
direction: "horizontal"
|
|
1187
1197
|
}) : null, help);
|
|
1188
1198
|
};
|
|
1189
1199
|
|
|
1190
1200
|
_this.buildFormContent = function (config) {
|
|
1191
|
-
var formContentWrapperTypeConfig = _this.
|
|
1201
|
+
var formContentWrapperTypeConfig = _this.buildWrapperTypeConfig() || {
|
|
1192
1202
|
mode: _constants.formContentConfig.wrapperType.page
|
|
1193
1203
|
};
|
|
1194
1204
|
|
|
@@ -1212,7 +1222,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1212
1222
|
});
|
|
1213
1223
|
}
|
|
1214
1224
|
|
|
1215
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _this.
|
|
1225
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _this.buildToolBarWrapper(), listData.map(function (item, index) {
|
|
1216
1226
|
var key = "formContent_key_".concat(index);
|
|
1217
1227
|
|
|
1218
1228
|
if ((0, _tools.stringIsNullOrWhiteSpace)(item)) {
|
|
@@ -1400,7 +1410,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1400
1410
|
key: keyHelpBox
|
|
1401
1411
|
}, o));
|
|
1402
1412
|
}) : /*#__PURE__*/_react["default"].createElement(_HelpBox["default"], instruction) : null)));
|
|
1403
|
-
}), _this.
|
|
1413
|
+
}), _this.buildHelpWrapper());
|
|
1404
1414
|
};
|
|
1405
1415
|
|
|
1406
1416
|
_this.buildFormContentItem = function (mode, contentItems, contentIndex) {
|