antd-management-fast-framework 1.2.3 → 1.2.7
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/es/customComponents/AnimalBox/RotateBox/index.d.ts +13 -0
- package/es/customComponents/AnimalBox/RotateBox/index.js +85 -0
- package/es/customComponents/DataPreviewDrawer/index.js +1 -1
- package/es/framework/Common/index.d.ts +4 -4
- package/es/framework/Common/index.js +8 -15
- package/es/framework/DataDrawer/Base/index.d.ts +1 -1
- package/es/framework/DataDrawer/Base/index.js +2 -2
- package/es/framework/DataDrawer/BaseAddDrawer/index.js +1 -1
- package/es/framework/DataDrawer/BaseNeedlessLoadDrawer/index.d.ts +1 -1
- package/es/framework/DataDrawer/BaseNeedlessLoadDrawer/index.js +3 -3
- package/es/framework/DataDrawer/BaseSaveDrawer/index.js +1 -1
- package/es/framework/DataForm/BaseAddForm/index.d.ts +2 -2
- package/es/framework/DataForm/BaseAddForm/index.js +6 -6
- package/es/framework/DataListView/Base/index.d.ts +14 -14
- package/es/framework/DataListView/Base/index.js +121 -32
- package/es/framework/DataListView/Base/index.less +0 -8
- package/es/framework/DataMenuContainer/index.d.ts +1 -1
- package/es/framework/DataMenuContainer/index.js +1 -1
- package/es/framework/DataModal/Base/index.d.ts +2 -2
- package/es/framework/DataModal/Base/index.js +3 -3
- package/es/framework/DataModal/BaseNeedlessLoadModal/index.d.ts +1 -1
- package/es/framework/DataModal/BaseNeedlessLoadModal/index.js +3 -3
- package/es/framework/DataMultiPageView/MultiPage/index.js +5 -5
- package/es/framework/DataMultiPageView/MultiPageDrawer/index.d.ts +2 -2
- package/es/framework/DataMultiPageView/MultiPageDrawer/index.js +3 -3
- package/es/framework/DataOperation/Base/index.d.ts +2 -2
- package/es/framework/DataOperation/Base/index.js +5 -5
- package/es/framework/DataOperation/BaseWindow/index.d.ts +1 -1
- package/es/framework/DataOperation/BaseWindow/index.js +2 -2
- package/es/framework/DataSinglePageView/SinglePage/index.js +4 -4
- package/es/framework/DataSinglePageView/SinglePageDrawer/index.d.ts +2 -2
- package/es/framework/DataSinglePageView/SinglePageDrawer/index.js +2 -2
- package/es/framework/DataSingleView/DataCore/index.js +1 -1
- package/es/framework/DataSingleView/DataLoad/index.d.ts +1 -1
- package/es/framework/DataSingleView/DataLoad/index.js +2 -2
- package/es/framework/DataTabContainer/index.js +2 -2
- package/es/utils/constants.d.ts +28 -7
- package/es/utils/constants.js +13 -3
- package/lib/customComponents/AnimalBox/RotateBox/index.d.ts +13 -0
- package/lib/customComponents/AnimalBox/RotateBox/index.js +85 -0
- package/lib/customComponents/DataPreviewDrawer/index.js +1 -1
- package/lib/framework/Common/index.d.ts +4 -4
- package/lib/framework/Common/index.js +8 -15
- package/lib/framework/DataDrawer/Base/index.d.ts +1 -1
- package/lib/framework/DataDrawer/Base/index.js +2 -2
- package/lib/framework/DataDrawer/BaseAddDrawer/index.js +1 -1
- package/lib/framework/DataDrawer/BaseNeedlessLoadDrawer/index.d.ts +1 -1
- package/lib/framework/DataDrawer/BaseNeedlessLoadDrawer/index.js +3 -3
- package/lib/framework/DataDrawer/BaseSaveDrawer/index.js +1 -1
- package/lib/framework/DataForm/BaseAddForm/index.d.ts +2 -2
- package/lib/framework/DataForm/BaseAddForm/index.js +6 -6
- package/lib/framework/DataListView/Base/index.d.ts +14 -14
- package/lib/framework/DataListView/Base/index.js +121 -32
- package/lib/framework/DataListView/Base/index.less +0 -8
- package/lib/framework/DataMenuContainer/index.d.ts +1 -1
- package/lib/framework/DataMenuContainer/index.js +1 -1
- package/lib/framework/DataModal/Base/index.d.ts +2 -2
- package/lib/framework/DataModal/Base/index.js +3 -3
- package/lib/framework/DataModal/BaseNeedlessLoadModal/index.d.ts +1 -1
- package/lib/framework/DataModal/BaseNeedlessLoadModal/index.js +3 -3
- package/lib/framework/DataMultiPageView/MultiPage/index.js +5 -5
- package/lib/framework/DataMultiPageView/MultiPageDrawer/index.d.ts +2 -2
- package/lib/framework/DataMultiPageView/MultiPageDrawer/index.js +3 -3
- package/lib/framework/DataOperation/Base/index.d.ts +2 -2
- package/lib/framework/DataOperation/Base/index.js +5 -5
- package/lib/framework/DataOperation/BaseWindow/index.d.ts +1 -1
- package/lib/framework/DataOperation/BaseWindow/index.js +2 -2
- package/lib/framework/DataSinglePageView/SinglePage/index.js +4 -4
- package/lib/framework/DataSinglePageView/SinglePageDrawer/index.d.ts +2 -2
- package/lib/framework/DataSinglePageView/SinglePageDrawer/index.js +2 -2
- package/lib/framework/DataSingleView/DataCore/index.js +1 -1
- package/lib/framework/DataSingleView/DataLoad/index.d.ts +1 -1
- package/lib/framework/DataSingleView/DataLoad/index.js +2 -2
- package/lib/framework/DataTabContainer/index.js +2 -2
- package/lib/utils/constants.d.ts +28 -7
- package/lib/utils/constants.js +13 -3
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default RotateBox;
|
|
2
|
+
declare class RotateBox extends React.PureComponent<any, any, any> {
|
|
3
|
+
constructor(props: any);
|
|
4
|
+
constructor(props: any, context: any);
|
|
5
|
+
}
|
|
6
|
+
declare namespace RotateBox {
|
|
7
|
+
namespace defaultProps {
|
|
8
|
+
const rotate: number;
|
|
9
|
+
const duration: number;
|
|
10
|
+
const onClick: null;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
import React from "react";
|
|
@@ -0,0 +1,85 @@
|
|
|
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 _rcTweenOne = _interopRequireDefault(require("rc-tween-one"));
|
|
13
|
+
|
|
14
|
+
var _tools = require("../../../utils/tools");
|
|
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 RotateBox = /*#__PURE__*/function (_PureComponent) {
|
|
43
|
+
_inherits(RotateBox, _PureComponent);
|
|
44
|
+
|
|
45
|
+
var _super = _createSuper(RotateBox);
|
|
46
|
+
|
|
47
|
+
function RotateBox() {
|
|
48
|
+
_classCallCheck(this, RotateBox);
|
|
49
|
+
|
|
50
|
+
return _super.apply(this, arguments);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
_createClass(RotateBox, [{
|
|
54
|
+
key: "render",
|
|
55
|
+
value: function render() {
|
|
56
|
+
var _this$props = this.props,
|
|
57
|
+
rotateCustom = _this$props.rotate,
|
|
58
|
+
durationCustom = _this$props.duration,
|
|
59
|
+
_onClick = _this$props.onClick,
|
|
60
|
+
children = _this$props.children;
|
|
61
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
62
|
+
onClick: function onClick() {
|
|
63
|
+
if ((0, _tools.isFunction)(_onClick)) {
|
|
64
|
+
_onClick();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}, /*#__PURE__*/_react["default"].createElement(_rcTweenOne["default"], {
|
|
68
|
+
animation: {
|
|
69
|
+
rotate: rotateCustom,
|
|
70
|
+
duration: durationCustom
|
|
71
|
+
}
|
|
72
|
+
}, children));
|
|
73
|
+
}
|
|
74
|
+
}]);
|
|
75
|
+
|
|
76
|
+
return RotateBox;
|
|
77
|
+
}(_react.PureComponent);
|
|
78
|
+
|
|
79
|
+
RotateBox.defaultProps = {
|
|
80
|
+
rotate: 0,
|
|
81
|
+
duration: 1000,
|
|
82
|
+
onClick: null
|
|
83
|
+
};
|
|
84
|
+
var _default = RotateBox;
|
|
85
|
+
exports["default"] = _default;
|
|
@@ -57,7 +57,7 @@ var DataPreviewDrawer = /*#__PURE__*/function (_Base) {
|
|
|
57
57
|
|
|
58
58
|
_this = _super.call(this, props);
|
|
59
59
|
_this.loadDataAfterMount = false;
|
|
60
|
-
_this.
|
|
60
|
+
_this.resetDataAfterLoad = false;
|
|
61
61
|
|
|
62
62
|
_this.renderTitleIcon = function () {
|
|
63
63
|
var icon = _this.props.icon;
|
|
@@ -118,20 +118,20 @@ declare class Common extends Core {
|
|
|
118
118
|
style?: null | undefined;
|
|
119
119
|
showIcon?: boolean | undefined;
|
|
120
120
|
}) => JSX.Element | null;
|
|
121
|
-
|
|
121
|
+
buildFormAdditionalConfig: () => {};
|
|
122
122
|
renderRefreshButton: () => JSX.Element;
|
|
123
123
|
getUploadTokenObject: () => never;
|
|
124
124
|
beforeVideoUpload: (file: any) => boolean;
|
|
125
125
|
pretreatmentImageUploadRemoteResponse: (response: any) => never;
|
|
126
126
|
pretreatmentFileBase64UploadRemoteResponse: (response: any) => never;
|
|
127
127
|
pretreatmentVideoUploadRemoteResponse: (response: any) => never;
|
|
128
|
-
|
|
128
|
+
establishToolBarConfig: () => null;
|
|
129
129
|
buildToolBar: () => JSX.Element | null;
|
|
130
130
|
buildToolBarWrapper: () => JSX.Element | null;
|
|
131
|
-
|
|
131
|
+
establishWrapperTypeConfig: () => {
|
|
132
132
|
mode: string;
|
|
133
133
|
};
|
|
134
|
-
|
|
134
|
+
establishHelpConfig: () => null;
|
|
135
135
|
buildHelp: () => JSX.Element | null;
|
|
136
136
|
buildHelpWrapper: () => JSX.Element | null;
|
|
137
137
|
buildCardCollection: (config: any) => JSX.Element;
|
|
@@ -989,7 +989,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
989
989
|
});
|
|
990
990
|
};
|
|
991
991
|
|
|
992
|
-
_this.
|
|
992
|
+
_this.buildFormAdditionalConfig = function () {
|
|
993
993
|
return {};
|
|
994
994
|
};
|
|
995
995
|
|
|
@@ -1062,12 +1062,12 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1062
1062
|
throw new Error(text);
|
|
1063
1063
|
};
|
|
1064
1064
|
|
|
1065
|
-
_this.
|
|
1065
|
+
_this.establishToolBarConfig = function () {
|
|
1066
1066
|
return null;
|
|
1067
1067
|
};
|
|
1068
1068
|
|
|
1069
1069
|
_this.buildToolBar = function () {
|
|
1070
|
-
var config = _this.
|
|
1070
|
+
var config = _this.establishToolBarConfig();
|
|
1071
1071
|
|
|
1072
1072
|
if ((config || null) == null) {
|
|
1073
1073
|
return null;
|
|
@@ -1148,18 +1148,18 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1148
1148
|
return toolBar;
|
|
1149
1149
|
};
|
|
1150
1150
|
|
|
1151
|
-
_this.
|
|
1151
|
+
_this.establishWrapperTypeConfig = function () {
|
|
1152
1152
|
return {
|
|
1153
1153
|
mode: _constants.contentConfig.wrapperType.page
|
|
1154
1154
|
};
|
|
1155
1155
|
};
|
|
1156
1156
|
|
|
1157
|
-
_this.
|
|
1157
|
+
_this.establishHelpConfig = function () {
|
|
1158
1158
|
return null;
|
|
1159
1159
|
};
|
|
1160
1160
|
|
|
1161
1161
|
_this.buildHelp = function () {
|
|
1162
|
-
var wrapperTypeConfig = _this.
|
|
1162
|
+
var wrapperTypeConfig = _this.establishWrapperTypeConfig() || {
|
|
1163
1163
|
mode: _constants.contentConfig.wrapperType.page
|
|
1164
1164
|
};
|
|
1165
1165
|
|
|
@@ -1169,7 +1169,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1169
1169
|
|
|
1170
1170
|
var mode = configData.mode;
|
|
1171
1171
|
|
|
1172
|
-
var config = _this.
|
|
1172
|
+
var config = _this.establishHelpConfig();
|
|
1173
1173
|
|
|
1174
1174
|
if ((config || null) == null) {
|
|
1175
1175
|
return null;
|
|
@@ -1205,13 +1205,6 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1205
1205
|
};
|
|
1206
1206
|
|
|
1207
1207
|
_this.buildHelpWrapper = function () {
|
|
1208
|
-
// const formContentWrapperTypeConfig = this.buildWrapperTypeConfig() || {
|
|
1209
|
-
// mode: contentConfig.wrapperType.page,
|
|
1210
|
-
// };
|
|
1211
|
-
// const configData = {
|
|
1212
|
-
// ...{ mode: contentConfig.wrapperType.page },
|
|
1213
|
-
// ...(formContentWrapperTypeConfig || {}),
|
|
1214
|
-
// };
|
|
1215
1208
|
var help = _this.buildHelp();
|
|
1216
1209
|
|
|
1217
1210
|
if ((help || null) == null) {
|
|
@@ -1222,7 +1215,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1222
1215
|
};
|
|
1223
1216
|
|
|
1224
1217
|
_this.buildCardCollection = function (config) {
|
|
1225
|
-
var formContentWrapperTypeConfig = _this.
|
|
1218
|
+
var formContentWrapperTypeConfig = _this.establishWrapperTypeConfig() || {
|
|
1226
1219
|
mode: _constants.cardConfig.wrapperType.page
|
|
1227
1220
|
};
|
|
1228
1221
|
|
|
@@ -36,7 +36,7 @@ declare class Base extends BaseWindow {
|
|
|
36
36
|
buildFormLayout: () => string;
|
|
37
37
|
renderForm: () => JSX.Element;
|
|
38
38
|
establishCardCollectionConfig: () => null;
|
|
39
|
-
|
|
39
|
+
establishWrapperTypeConfig: () => {
|
|
40
40
|
mode: string;
|
|
41
41
|
};
|
|
42
42
|
formContent: () => any;
|
|
@@ -170,7 +170,7 @@ var Base = /*#__PURE__*/function (_BaseWindow) {
|
|
|
170
170
|
metaOriginalData: metaOriginalData
|
|
171
171
|
});
|
|
172
172
|
|
|
173
|
-
var otherFormProps = _this.
|
|
173
|
+
var otherFormProps = _this.buildFormAdditionalConfig();
|
|
174
174
|
|
|
175
175
|
return /*#__PURE__*/_react["default"].createElement(_form["default"], _extends({
|
|
176
176
|
ref: _this.formRef,
|
|
@@ -184,7 +184,7 @@ var Base = /*#__PURE__*/function (_BaseWindow) {
|
|
|
184
184
|
return null;
|
|
185
185
|
};
|
|
186
186
|
|
|
187
|
-
_this.
|
|
187
|
+
_this.establishWrapperTypeConfig = function () {
|
|
188
188
|
return {
|
|
189
189
|
mode: _constants.cardConfig.wrapperType.drawer
|
|
190
190
|
};
|
|
@@ -60,7 +60,7 @@ var BaseAddDrawer = /*#__PURE__*/function (_BaseNeedlessLoadDraw) {
|
|
|
60
60
|
_this = _super.call(this, props);
|
|
61
61
|
|
|
62
62
|
_this.adjustWhenDidMount = function () {
|
|
63
|
-
_this.
|
|
63
|
+
_this.fillData({});
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
_this.buildBottomBarInnerDefaultConfigList = function () {
|
|
@@ -56,13 +56,13 @@ var BaseNeedlessLoadDrawer = /*#__PURE__*/function (_Base) {
|
|
|
56
56
|
_classCallCheck(this, BaseNeedlessLoadDrawer);
|
|
57
57
|
|
|
58
58
|
_this = _super.call(this, props);
|
|
59
|
-
_this.
|
|
59
|
+
_this.resetDataAfterLoad = false;
|
|
60
60
|
|
|
61
61
|
_this.buildInitialValues = function () {
|
|
62
|
-
return _this.
|
|
62
|
+
return _this.fillDefaultInitialValues();
|
|
63
63
|
};
|
|
64
64
|
|
|
65
|
-
_this.
|
|
65
|
+
_this.fillDefaultInitialValues = function () {
|
|
66
66
|
var initialValues = {};
|
|
67
67
|
initialValues[_constants.formNameCollection.createTime.name] = (0, _tools.formatDatetime)(new Date(), _constants.datetimeFormat.yearMonthDayHourMinute);
|
|
68
68
|
return initialValues;
|
|
@@ -23,12 +23,12 @@ declare class BaseAddForm extends DataCore {
|
|
|
23
23
|
externalData: null;
|
|
24
24
|
};
|
|
25
25
|
adjustWhenDidMount: () => void;
|
|
26
|
-
|
|
26
|
+
fillData: () => void;
|
|
27
27
|
afterFillForm: (initialValues: any) => void;
|
|
28
28
|
handleFormReset: () => void;
|
|
29
29
|
supplementSubmitRequestParams: (o: any) => any;
|
|
30
30
|
validate: (e: any) => void;
|
|
31
|
-
|
|
31
|
+
fillDefaultInitialValues: () => {};
|
|
32
32
|
renderModalInner: () => JSX.Element;
|
|
33
33
|
}
|
|
34
34
|
import DataCore from "../../DataSingleView/DataCore";
|
|
@@ -73,18 +73,18 @@ var BaseAddForm = /*#__PURE__*/function (_DataCore) {
|
|
|
73
73
|
|
|
74
74
|
_this = _super.call(this, props);
|
|
75
75
|
_this.loadDataAfterMount = false;
|
|
76
|
-
_this.
|
|
76
|
+
_this.resetDataAfterLoad = false;
|
|
77
77
|
_this.formRef = /*#__PURE__*/_react["default"].createRef();
|
|
78
78
|
|
|
79
79
|
_this.adjustWhenDidMount = function () {
|
|
80
|
-
_this.
|
|
80
|
+
_this.fillData();
|
|
81
81
|
};
|
|
82
82
|
|
|
83
83
|
_this.getTargetForm = function () {
|
|
84
84
|
return _this.formRef.current;
|
|
85
85
|
};
|
|
86
86
|
|
|
87
|
-
_this.
|
|
87
|
+
_this.fillData = function () {
|
|
88
88
|
var initialValues = _this.buildInitialValues();
|
|
89
89
|
|
|
90
90
|
if (initialValues == null) {
|
|
@@ -215,10 +215,10 @@ var BaseAddForm = /*#__PURE__*/function (_DataCore) {
|
|
|
215
215
|
};
|
|
216
216
|
|
|
217
217
|
_this.buildInitialValues = function () {
|
|
218
|
-
return _this.
|
|
218
|
+
return _this.fillDefaultInitialValues();
|
|
219
219
|
};
|
|
220
220
|
|
|
221
|
-
_this.
|
|
221
|
+
_this.fillDefaultInitialValues = function () {
|
|
222
222
|
var initialValues = {};
|
|
223
223
|
initialValues[_constants.formNameCollection.createTime.name] = (0, _tools.formatDatetime)(new Date(), _constants.datetimeFormat.yearMonthDayHourMinute);
|
|
224
224
|
return initialValues;
|
|
@@ -229,7 +229,7 @@ var BaseAddForm = /*#__PURE__*/function (_DataCore) {
|
|
|
229
229
|
|
|
230
230
|
var formLayout = _this.buildFormLayout();
|
|
231
231
|
|
|
232
|
-
var otherFormProps = _this.
|
|
232
|
+
var otherFormProps = _this.buildFormAdditionalConfig();
|
|
233
233
|
|
|
234
234
|
return /*#__PURE__*/_react["default"].createElement(_form["default"], _extends({
|
|
235
235
|
ref: _this.formRef,
|
|
@@ -29,12 +29,12 @@ declare class ListBase extends AuthorizationWrapper {
|
|
|
29
29
|
buildColumnItem: (o: any) => any;
|
|
30
30
|
getColumn: () => any;
|
|
31
31
|
getColumnMerged: () => any;
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
handleSearchReset: () => void;
|
|
33
|
+
handleAdditionalSearchReset: () => void;
|
|
34
34
|
handleSearch: () => void;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
getSearchCard: () => any;
|
|
36
|
+
buildSearchCardContent: (config: any) => JSX.Element | null;
|
|
37
|
+
buildSearchCardContentItem: (contentItem: any, contentIndex: any) => JSX.Element;
|
|
38
38
|
establishSearchCardConfig: () => {
|
|
39
39
|
list: ({
|
|
40
40
|
lg: number;
|
|
@@ -48,16 +48,16 @@ declare class ListBase extends AuthorizationWrapper {
|
|
|
48
48
|
dateRangeFieldName?: undefined;
|
|
49
49
|
})[];
|
|
50
50
|
};
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
buildSearchCardButtonCore: () => JSX.Element;
|
|
52
|
+
buildSearchCardButton: (ColMd?: number) => JSX.Element;
|
|
53
|
+
buildSearchCardRangePickerCore: (dateRangeFieldName: any, rangePickerProps?: null) => JSX.Element;
|
|
54
|
+
buildSearchCardRangePicker: (dateRangeFieldName: any, colLg?: number, rangePickerProps?: null) => JSX.Element;
|
|
55
|
+
buildSearchCardRow: () => JSX.Element | null;
|
|
56
56
|
fillSearchCardInitialValues: () => {};
|
|
57
|
-
|
|
57
|
+
buildSearchCard: () => JSX.Element | null;
|
|
58
58
|
renderForm: () => JSX.Element | null;
|
|
59
59
|
buildTableOtherConfig: () => {};
|
|
60
|
-
|
|
60
|
+
establishTableExpandableConfig: () => {};
|
|
61
61
|
restoreColumnsOtherConfigArray: () => void;
|
|
62
62
|
buildTableConfig: () => {
|
|
63
63
|
columns: any;
|
|
@@ -73,8 +73,8 @@ declare class ListBase extends AuthorizationWrapper {
|
|
|
73
73
|
renderAlertContent: () => string;
|
|
74
74
|
renderAlertOption: () => void;
|
|
75
75
|
renderAboveTable: () => JSX.Element | null;
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
establishDataContainerExtraActionCollectionConfig: () => never[];
|
|
77
|
+
buildDataContainerExtraActionCollection: () => any[];
|
|
78
78
|
renderExtraActionView: () => JSX.Element | null;
|
|
79
79
|
renderBatchActionMenu: () => never[];
|
|
80
80
|
renderBatchAction: () => JSX.Element | null;
|