antd-management-fast-framework 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/index.js +3 -9771
- package/package.json +7 -7
- package/es/configGroup/configGeneral.d.ts +0 -28
- package/es/configGroup/configGeneral.js +0 -36
- package/es/configGroup/index.d.ts +0 -2
- package/es/configGroup/themeCollection.d.ts +0 -7
- package/es/configGroup/themeCollection.js +0 -9
- package/es/configGroup/webpackPlugin.d.ts +0 -4
- package/es/configGroup/webpackPlugin.js +0 -351
- package/es/customComponents/ApplicationProvider/index.d.ts +0 -12
- package/es/customComponents/ApplicationWrapper/index.d.ts +0 -9
- package/es/customComponents/Bootstrap/index.d.ts +0 -3
- package/es/customComponents/Bootstrap/index.js +0 -67
- package/es/customComponents/DataPreviewDrawer/index.d.ts +0 -31
- package/es/customComponents/DataPreviewDrawer/index.js +0 -169
- package/es/customComponents/LoadingOverlay/index.d.ts +0 -6
- package/es/customComponents/LoadingOverloay/index.d.ts +0 -3
- package/es/customComponents/MobileContainor/MobileHtmlPreviewBox/index.d.ts +0 -10
- package/es/customComponents/MobileContainor/MobileHtmlPreviewBox/index.js +0 -83
- package/es/customComponents/MobileContainor/MobilePreviewArea/index.d.ts +0 -75
- package/es/customComponents/MobileContainor/MobilePreviewArea/index.js +0 -193
- package/es/customComponents/MobileContainor/MobilePreviewDrawer/index.d.ts +0 -54
- package/es/customComponents/MobileContainor/MobilePreviewDrawer/index.js +0 -157
- package/es/customComponents/MobileContainor/index.d.ts +0 -8
- package/es/customComponents/index.d.ts +0 -5
- package/es/framework/AuthorizationWrapper/index.js +0 -108
- package/es/framework/ButtonExtension/SelectButton/Base/index.js +0 -98
- package/es/framework/ButtonExtension/SelectButton/InteractiveBase/index.js +0 -149
- package/es/framework/Common/CardCollectionItemContent/index.d.ts +0 -14
- package/es/framework/Common/CommonInternal/index.d.ts +0 -167
- package/es/framework/Common/InternalMake/index.d.ts +0 -9
- package/es/framework/Common/index.js +0 -39
- package/es/framework/Core/index.js +0 -38
- package/es/framework/CustomWrapper/Supplement/index.js +0 -67
- package/es/framework/CustomWrapper/SupplementCore/index.js +0 -131
- package/es/framework/CustomWrapper/SupplementWrapper/index.js +0 -61
- package/es/framework/DataDrawer/Base/index.js +0 -335
- package/es/framework/DataDrawer/BaseAddDrawer/index.js +0 -95
- package/es/framework/DataDrawer/BaseLoadDrawer/index.js +0 -82
- package/es/framework/DataDrawer/BaseNeedlessLoadDrawer/index.js +0 -94
- package/es/framework/DataDrawer/BaseSaveDrawer/index.js +0 -85
- package/es/framework/DataDrawer/BaseUpdateDrawer/index.js +0 -83
- package/es/framework/DataForm/BaseAddForm/index.js +0 -261
- package/es/framework/DataForm/BaseUpdateForm/index.js +0 -183
- package/es/framework/DataForm/BaseUpdateFormContent/index.js +0 -72
- package/es/framework/DataForm/BaseUpdateFormTab/index.js +0 -66
- package/es/framework/DataListView/Base/index.js +0 -1261
- package/es/framework/DataListView/BatchAction/index.js +0 -73
- package/es/framework/DataListView/ColumnSetting/DndItem.js +0 -116
- package/es/framework/DataListView/ColumnSetting/index.js +0 -319
- package/es/framework/DataListView/DensityAction/index.js +0 -63
- package/es/framework/DataMenuContainer/index.js +0 -282
- package/es/framework/DataModal/Base/index.js +0 -231
- package/es/framework/DataModal/BaseAddModal/index.js +0 -72
- package/es/framework/DataModal/BaseLoadModal/index.js +0 -80
- package/es/framework/DataModal/BaseNeedlessLoadModal/index.js +0 -106
- package/es/framework/DataModal/BaseSelectModal/index.js +0 -74
- package/es/framework/DataModal/BaseUpdateModal/index.js +0 -62
- package/es/framework/DataModal/BaseUpdateTransferModal/index.js +0 -140
- package/es/framework/DataMultiPageView/InnerMultiPage/index.js +0 -82
- package/es/framework/DataMultiPageView/MultiPage/index.js +0 -299
- package/es/framework/DataMultiPageView/MultiPageDrawer/index.js +0 -457
- package/es/framework/DataMultiPageView/MultiPageSelectDrawer/index.js +0 -123
- package/es/framework/DataOperation/Base/index.js +0 -322
- package/es/framework/DataOperation/BaseView/index.js +0 -83
- package/es/framework/DataOperation/BaseWindow/index.js +0 -330
- package/es/framework/DataSinglePageView/InnerSinglePage/index.js +0 -82
- package/es/framework/DataSinglePageView/SinglePage/index.js +0 -254
- package/es/framework/DataSinglePageView/SinglePageDrawer/index.js +0 -438
- package/es/framework/DataSinglePageView/SinglePageSelectDrawer/index.js +0 -126
- package/es/framework/DataSingleView/DataCore/index.js +0 -260
- package/es/framework/DataSingleView/DataLoad/index.js +0 -151
- package/es/framework/DataTabContainer/index.js +0 -254
- package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldBase/index.js +0 -158
- package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldDrawerBase/index.js +0 -159
- package/es/framework/LayoutWrapper/index.d.ts +0 -2
- package/es/framework/Wrapper/index.js +0 -59
- package/es/get.js +0 -28
- package/es/getPrototypeOf.js +0 -76
- package/es/index2.js +0 -2075
- package/es/index3.js +0 -383
- package/es/models/index.d.ts +0 -1
- package/es/models/schedulingControl.d.ts +0 -46
- package/es/models/schedulingControl.js +0 -171
- package/es/objectSpread2.js +0 -40
- package/es/services/schedulingControl.js +0 -135
- package/es/slicedToArray.js +0 -43
- package/es/toConsumableArray.js +0 -19
- package/es/toPropertyKey.js +0 -19
- package/es/typeof.js +0 -11
- package/es/unsupportedIterableToArray.js +0 -16
- package/es/utils/appListDataAssist.js +0 -69
- package/es/utils/applicationAssist.js +0 -28
- package/es/utils/bootstrap.js +0 -58
- package/es/utils/layoutSettingAssist.js +0 -60
- package/es/utils/metaDataAssist.js +0 -69
- package/es/utils/storageAssist.js +0 -153
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import { _ as _objectSpread2 } from '../../../objectSpread2.js';
|
|
2
|
-
import { _ as _slicedToArray } from '../../../slicedToArray.js';
|
|
3
|
-
import { _ as _inherits, a as _classCallCheck, b as _createClass, c as _getPrototypeOf, d as _possibleConstructorReturn } from '../../../getPrototypeOf.js';
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { mobileTypeCollection, whetherNumber, drawerConfig, cardConfig } from 'antd-management-fast-common/es/utils/constants';
|
|
6
|
-
import { isObject } from 'antd-management-fast-common/es/utils/tools';
|
|
7
|
-
import { buildOptionItem } from 'antd-management-fast-component/es/customComponents/FunctionComponent';
|
|
8
|
-
import MobileSimulation from 'antd-management-fast-component/es/customComponents/MobileContainor/MobileSimulation';
|
|
9
|
-
import BaseNeedlessLoadDrawer from '../../../framework/DataDrawer/BaseNeedlessLoadDrawer/index.js';
|
|
10
|
-
import '../../../toPropertyKey.js';
|
|
11
|
-
import '../../../typeof.js';
|
|
12
|
-
import '../../../unsupportedIterableToArray.js';
|
|
13
|
-
import '../../../get.js';
|
|
14
|
-
import '../../../framework/DataDrawer/Base/index.js';
|
|
15
|
-
import '../../../toConsumableArray.js';
|
|
16
|
-
import '../../../index2.js';
|
|
17
|
-
import 'antd';
|
|
18
|
-
import 'antd-management-fast-common/es/utils/dynamicSetting';
|
|
19
|
-
import 'antd-management-fast-common/es/utils/requestAssistor';
|
|
20
|
-
import 'antd-management-fast-component/es/customComponents/AnimalBox/FadeBox';
|
|
21
|
-
import 'antd-management-fast-component/es/customComponents/AnimalBox/QueueBox';
|
|
22
|
-
import 'antd-management-fast-component/es/customComponents/AudioUpload';
|
|
23
|
-
import 'antd-management-fast-component/es/customComponents/ColorText';
|
|
24
|
-
import 'antd-management-fast-component/es/customComponents/Editor/TinymceWrapper';
|
|
25
|
-
import 'antd-management-fast-component/es/customComponents/FileBase64Upload';
|
|
26
|
-
import 'antd-management-fast-component/es/customComponents/FileUpload';
|
|
27
|
-
import 'antd-management-fast-component/es/customComponents/FlexBox';
|
|
28
|
-
import 'antd-management-fast-component/es/customComponents/FlexText';
|
|
29
|
-
import 'antd-management-fast-component/es/customComponents/FunctionSupplement/Whether';
|
|
30
|
-
import 'antd-management-fast-component/es/customComponents/HelpBox';
|
|
31
|
-
import 'antd-management-fast-component/es/customComponents/HelpCard';
|
|
32
|
-
import 'antd-management-fast-component/es/customComponents/HtmlBox';
|
|
33
|
-
import 'antd-management-fast-component/es/customComponents/Icon';
|
|
34
|
-
import 'antd-management-fast-component/es/customComponents/IconInfo';
|
|
35
|
-
import 'antd-management-fast-component/es/customComponents/ImageBox';
|
|
36
|
-
import 'antd-management-fast-component/es/customComponents/ImageUpload';
|
|
37
|
-
import 'antd-management-fast-component/es/customComponents/VideoUpload';
|
|
38
|
-
import '../../../utils/metaDataAssist.js';
|
|
39
|
-
import '../../../index3.js';
|
|
40
|
-
import 'antd-management-fast-common/es/utils/actionAssist';
|
|
41
|
-
import 'antd-management-fast-common/es/utils/dva';
|
|
42
|
-
import '../../../utils/storageAssist.js';
|
|
43
|
-
import 'antd-management-fast-common/es/utils/globalStorageAssist';
|
|
44
|
-
import 'antd-management-fast-common/es/utils/localStorageAssist';
|
|
45
|
-
import '../../../framework/Core/index.js';
|
|
46
|
-
import 'antd-management-fast-component/es/customComponents/BaseComponent';
|
|
47
|
-
import '../../../framework/DataOperation/BaseWindow/index.js';
|
|
48
|
-
import '../../../framework/DataOperation/Base/index.js';
|
|
49
|
-
import '../../../framework/AuthorizationWrapper/index.js';
|
|
50
|
-
import 'antd-management-fast-common/es/utils/authority';
|
|
51
|
-
import '../../../framework/CustomWrapper/SupplementWrapper/index.js';
|
|
52
|
-
import '../../../framework/CustomWrapper/Supplement/index.js';
|
|
53
|
-
import '../../../framework/CustomWrapper/SupplementCore/index.js';
|
|
54
|
-
|
|
55
|
-
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); }; }
|
|
56
|
-
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; } }
|
|
57
|
-
var MobilePreviewDrawer = /*#__PURE__*/function (_BaseNeedlessLoadDraw) {
|
|
58
|
-
_inherits(MobilePreviewDrawer, _BaseNeedlessLoadDraw);
|
|
59
|
-
var _super = _createSuper(MobilePreviewDrawer);
|
|
60
|
-
function MobilePreviewDrawer(props) {
|
|
61
|
-
var _this;
|
|
62
|
-
_classCallCheck(this, MobilePreviewDrawer);
|
|
63
|
-
_this = _super.call(this, props);
|
|
64
|
-
_this.resetDataAfterLoad = false;
|
|
65
|
-
_this.renderTitleIcon = function () {
|
|
66
|
-
return iconBuilder.picture();
|
|
67
|
-
};
|
|
68
|
-
_this.renderTitle = function () {
|
|
69
|
-
return '设备预览';
|
|
70
|
-
};
|
|
71
|
-
_this.establishExtraActionConfig = function () {
|
|
72
|
-
var mobileType = _this.state.mobileType;
|
|
73
|
-
var listConfig = [];
|
|
74
|
-
Object.entries(mobileTypeCollection).forEach(function (o, index) {
|
|
75
|
-
var _o = _slicedToArray(o, 2),
|
|
76
|
-
k = _o[0],
|
|
77
|
-
v = _o[1];
|
|
78
|
-
if (isObject(v)) {
|
|
79
|
-
var key = "mobileType_".concat(index);
|
|
80
|
-
listConfig.push({
|
|
81
|
-
key: key,
|
|
82
|
-
flag: k,
|
|
83
|
-
name: v.label,
|
|
84
|
-
alias: v.label,
|
|
85
|
-
description: '',
|
|
86
|
-
availability: whetherNumber.yes
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
return {
|
|
91
|
-
list: [{
|
|
92
|
-
buildType: drawerConfig.extraBuildType.flexSelect,
|
|
93
|
-
label: '模拟设备',
|
|
94
|
-
value: mobileType,
|
|
95
|
-
renderItemFunction: function renderItemFunction() {
|
|
96
|
-
return buildOptionItem({
|
|
97
|
-
list: listConfig
|
|
98
|
-
});
|
|
99
|
-
},
|
|
100
|
-
onChangeCallback: function onChangeCallback(v) {
|
|
101
|
-
_this.setState({
|
|
102
|
-
mobileType: v
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
}]
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
_this.establishCardCollectionConfig = function () {
|
|
109
|
-
var _this$props = _this.props,
|
|
110
|
-
alertVisible = _this$props.alertVisible,
|
|
111
|
-
alertAnimationType = _this$props.alertAnimationType,
|
|
112
|
-
alertMessage = _this$props.alertMessage,
|
|
113
|
-
alertDescription = _this$props.alertDescription,
|
|
114
|
-
alertIcon = _this$props.alertIcon,
|
|
115
|
-
alertType = _this$props.alertType,
|
|
116
|
-
alertButtonText = _this$props.alertButtonText,
|
|
117
|
-
afterAlertClick = _this$props.afterAlertClick;
|
|
118
|
-
var mobileType = _this.state.mobileType;
|
|
119
|
-
return {
|
|
120
|
-
list: [{
|
|
121
|
-
items: [{
|
|
122
|
-
lg: 24,
|
|
123
|
-
type: cardConfig.contentItemType.component,
|
|
124
|
-
component: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(MobileSimulation, {
|
|
125
|
-
alertVisible: alertVisible,
|
|
126
|
-
alertAnimationType: alertAnimationType,
|
|
127
|
-
alertMessage: alertMessage,
|
|
128
|
-
alertDescription: alertDescription,
|
|
129
|
-
alertIcon: alertIcon,
|
|
130
|
-
alertType: alertType,
|
|
131
|
-
alertButtonText: alertButtonText,
|
|
132
|
-
afterAlertClick: afterAlertClick,
|
|
133
|
-
mobileType: mobileType
|
|
134
|
-
}, _this.renderInnerViewWrapper()))
|
|
135
|
-
}]
|
|
136
|
-
}]
|
|
137
|
-
};
|
|
138
|
-
};
|
|
139
|
-
_this.renderInnerView = function () {
|
|
140
|
-
return null;
|
|
141
|
-
};
|
|
142
|
-
_this.renderInnerViewWrapper = function () {
|
|
143
|
-
return _this.renderInnerView();
|
|
144
|
-
};
|
|
145
|
-
_this.state = _objectSpread2(_objectSpread2({}, _this.state), {
|
|
146
|
-
placement: 'top',
|
|
147
|
-
height: '100vh',
|
|
148
|
-
showBottomBar: false,
|
|
149
|
-
mobileType: mobileTypeCollection.roughSketch.name
|
|
150
|
-
});
|
|
151
|
-
return _this;
|
|
152
|
-
}
|
|
153
|
-
return _createClass(MobilePreviewDrawer);
|
|
154
|
-
}(BaseNeedlessLoadDrawer);
|
|
155
|
-
MobilePreviewDrawer.defaultProps = {};
|
|
156
|
-
|
|
157
|
-
export { MobilePreviewDrawer as default };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export namespace MobileContainor {
|
|
2
|
-
export { MobileHtmlPreviewBox };
|
|
3
|
-
export { MobilePreviewDrawer };
|
|
4
|
-
export { MobilePreviewArea };
|
|
5
|
-
}
|
|
6
|
-
import { MobileHtmlPreviewBox } from "./MobileHtmlPreviewBox";
|
|
7
|
-
import { MobilePreviewDrawer } from "./MobilePreviewDrawer";
|
|
8
|
-
import { MobilePreviewArea } from "./MobilePreviewArea";
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { _ as _inherits, a as _classCallCheck, b as _createClass, c as _getPrototypeOf, d as _possibleConstructorReturn } from '../../getPrototypeOf.js';
|
|
2
|
-
import { checkHasAuthority } from 'antd-management-fast-common/es/utils/authority';
|
|
3
|
-
import { redirectToPath, isFunction, getDerivedStateFromPropsForUrlParams } from 'antd-management-fast-common/es/utils/tools';
|
|
4
|
-
import SupplementWrapper from '../CustomWrapper/SupplementWrapper/index.js';
|
|
5
|
-
import '../../toPropertyKey.js';
|
|
6
|
-
import '../../typeof.js';
|
|
7
|
-
import '../CustomWrapper/Supplement/index.js';
|
|
8
|
-
import '../CustomWrapper/SupplementCore/index.js';
|
|
9
|
-
import 'antd-management-fast-common/es/utils/globalStorageAssist';
|
|
10
|
-
import 'antd-management-fast-common/es/utils/requestAssistor';
|
|
11
|
-
import '../../index2.js';
|
|
12
|
-
import '../../objectSpread2.js';
|
|
13
|
-
import 'antd';
|
|
14
|
-
import 'react';
|
|
15
|
-
import 'antd-management-fast-common/es/utils/constants';
|
|
16
|
-
import 'antd-management-fast-common/es/utils/dynamicSetting';
|
|
17
|
-
import 'antd-management-fast-component/es/customComponents/AnimalBox/FadeBox';
|
|
18
|
-
import 'antd-management-fast-component/es/customComponents/AnimalBox/QueueBox';
|
|
19
|
-
import 'antd-management-fast-component/es/customComponents/AudioUpload';
|
|
20
|
-
import 'antd-management-fast-component/es/customComponents/ColorText';
|
|
21
|
-
import 'antd-management-fast-component/es/customComponents/Editor/TinymceWrapper';
|
|
22
|
-
import 'antd-management-fast-component/es/customComponents/FileBase64Upload';
|
|
23
|
-
import 'antd-management-fast-component/es/customComponents/FileUpload';
|
|
24
|
-
import 'antd-management-fast-component/es/customComponents/FlexBox';
|
|
25
|
-
import 'antd-management-fast-component/es/customComponents/FlexText';
|
|
26
|
-
import 'antd-management-fast-component/es/customComponents/FunctionComponent';
|
|
27
|
-
import 'antd-management-fast-component/es/customComponents/FunctionSupplement/Whether';
|
|
28
|
-
import 'antd-management-fast-component/es/customComponents/HelpBox';
|
|
29
|
-
import 'antd-management-fast-component/es/customComponents/HelpCard';
|
|
30
|
-
import 'antd-management-fast-component/es/customComponents/HtmlBox';
|
|
31
|
-
import 'antd-management-fast-component/es/customComponents/Icon';
|
|
32
|
-
import 'antd-management-fast-component/es/customComponents/IconInfo';
|
|
33
|
-
import 'antd-management-fast-component/es/customComponents/ImageBox';
|
|
34
|
-
import 'antd-management-fast-component/es/customComponents/ImageUpload';
|
|
35
|
-
import 'antd-management-fast-component/es/customComponents/VideoUpload';
|
|
36
|
-
import '../../utils/metaDataAssist.js';
|
|
37
|
-
import '../../index3.js';
|
|
38
|
-
import 'antd-management-fast-common/es/utils/actionAssist';
|
|
39
|
-
import 'antd-management-fast-common/es/utils/dva';
|
|
40
|
-
import '../../utils/storageAssist.js';
|
|
41
|
-
import 'antd-management-fast-common/es/utils/localStorageAssist';
|
|
42
|
-
import '../Core/index.js';
|
|
43
|
-
import 'antd-management-fast-component/es/customComponents/BaseComponent';
|
|
44
|
-
|
|
45
|
-
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); }; }
|
|
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
|
-
var AuthorizationWrapper = /*#__PURE__*/function (_SupplementWrapper) {
|
|
48
|
-
_inherits(AuthorizationWrapper, _SupplementWrapper);
|
|
49
|
-
var _super = _createSuper(AuthorizationWrapper);
|
|
50
|
-
function AuthorizationWrapper() {
|
|
51
|
-
var _this;
|
|
52
|
-
_classCallCheck(this, AuthorizationWrapper);
|
|
53
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
54
|
-
args[_key] = arguments[_key];
|
|
55
|
-
}
|
|
56
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
57
|
-
_this.componentAuthority = null;
|
|
58
|
-
_this.doDidMountTask = function () {
|
|
59
|
-
var needDoOther = false;
|
|
60
|
-
if (_this.componentAuthority == null) {
|
|
61
|
-
_this.init();
|
|
62
|
-
needDoOther = true;
|
|
63
|
-
} else if (_this.checkAuthority(_this.componentAuthority)) {
|
|
64
|
-
_this.init();
|
|
65
|
-
needDoOther = true;
|
|
66
|
-
} else {
|
|
67
|
-
var text = "\u7F3A\u5C11\u6743\u9650\uFF1A".concat(_this.componentAuthority);
|
|
68
|
-
showRuntimeError({
|
|
69
|
-
message: text
|
|
70
|
-
});
|
|
71
|
-
redirectToPath('/exception/404');
|
|
72
|
-
}
|
|
73
|
-
if (needDoOther) {
|
|
74
|
-
_this.adjustWhenDidMount();
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
_this.checkAuthority = function (auth) {
|
|
78
|
-
return checkHasAuthority(auth);
|
|
79
|
-
};
|
|
80
|
-
_this.getCurrentOperator = function () {
|
|
81
|
-
var currentOperator = _this.props.global.currentOperator;
|
|
82
|
-
return currentOperator;
|
|
83
|
-
};
|
|
84
|
-
_this.reloadCurrentOperator = function () {
|
|
85
|
-
var callback = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
86
|
-
_this.dispatchApi({
|
|
87
|
-
type: 'global/getCurrentOperator',
|
|
88
|
-
payload: {
|
|
89
|
-
force: true
|
|
90
|
-
}
|
|
91
|
-
}).then(function () {
|
|
92
|
-
if (isFunction(callback)) {
|
|
93
|
-
callback();
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
};
|
|
97
|
-
return _this;
|
|
98
|
-
}
|
|
99
|
-
_createClass(AuthorizationWrapper, null, [{
|
|
100
|
-
key: "getDerivedStateFromProps",
|
|
101
|
-
value: function getDerivedStateFromProps(nextProps, prevState) {
|
|
102
|
-
return getDerivedStateFromPropsForUrlParams(nextProps, prevState);
|
|
103
|
-
}
|
|
104
|
-
}]);
|
|
105
|
-
return AuthorizationWrapper;
|
|
106
|
-
}(SupplementWrapper);
|
|
107
|
-
|
|
108
|
-
export { AuthorizationWrapper as default };
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { _ as _objectSpread2 } from '../../../../objectSpread2.js';
|
|
2
|
-
import { _ as _inherits, a as _classCallCheck, b as _createClass, c as _getPrototypeOf, d as _possibleConstructorReturn } from '../../../../getPrototypeOf.js';
|
|
3
|
-
import { _ as _get } from '../../../../get.js';
|
|
4
|
-
import { Button } from 'antd';
|
|
5
|
-
import { showRuntimeError } from 'antd-management-fast-common/es/utils/tools';
|
|
6
|
-
import SupplementWrapper from '../../../CustomWrapper/SupplementWrapper/index.js';
|
|
7
|
-
import '../../../../toPropertyKey.js';
|
|
8
|
-
import '../../../../typeof.js';
|
|
9
|
-
import '../../../CustomWrapper/Supplement/index.js';
|
|
10
|
-
import '../../../CustomWrapper/SupplementCore/index.js';
|
|
11
|
-
import 'antd-management-fast-common/es/utils/globalStorageAssist';
|
|
12
|
-
import 'antd-management-fast-common/es/utils/requestAssistor';
|
|
13
|
-
import '../../../../index2.js';
|
|
14
|
-
import 'react';
|
|
15
|
-
import 'antd-management-fast-common/es/utils/constants';
|
|
16
|
-
import 'antd-management-fast-common/es/utils/dynamicSetting';
|
|
17
|
-
import 'antd-management-fast-component/es/customComponents/AnimalBox/FadeBox';
|
|
18
|
-
import 'antd-management-fast-component/es/customComponents/AnimalBox/QueueBox';
|
|
19
|
-
import 'antd-management-fast-component/es/customComponents/AudioUpload';
|
|
20
|
-
import 'antd-management-fast-component/es/customComponents/ColorText';
|
|
21
|
-
import 'antd-management-fast-component/es/customComponents/Editor/TinymceWrapper';
|
|
22
|
-
import 'antd-management-fast-component/es/customComponents/FileBase64Upload';
|
|
23
|
-
import 'antd-management-fast-component/es/customComponents/FileUpload';
|
|
24
|
-
import 'antd-management-fast-component/es/customComponents/FlexBox';
|
|
25
|
-
import 'antd-management-fast-component/es/customComponents/FlexText';
|
|
26
|
-
import 'antd-management-fast-component/es/customComponents/FunctionComponent';
|
|
27
|
-
import 'antd-management-fast-component/es/customComponents/FunctionSupplement/Whether';
|
|
28
|
-
import 'antd-management-fast-component/es/customComponents/HelpBox';
|
|
29
|
-
import 'antd-management-fast-component/es/customComponents/HelpCard';
|
|
30
|
-
import 'antd-management-fast-component/es/customComponents/HtmlBox';
|
|
31
|
-
import 'antd-management-fast-component/es/customComponents/Icon';
|
|
32
|
-
import 'antd-management-fast-component/es/customComponents/IconInfo';
|
|
33
|
-
import 'antd-management-fast-component/es/customComponents/ImageBox';
|
|
34
|
-
import 'antd-management-fast-component/es/customComponents/ImageUpload';
|
|
35
|
-
import 'antd-management-fast-component/es/customComponents/VideoUpload';
|
|
36
|
-
import '../../../../utils/metaDataAssist.js';
|
|
37
|
-
import '../../../../index3.js';
|
|
38
|
-
import 'antd-management-fast-common/es/utils/actionAssist';
|
|
39
|
-
import 'antd-management-fast-common/es/utils/dva';
|
|
40
|
-
import '../../../../utils/storageAssist.js';
|
|
41
|
-
import 'antd-management-fast-common/es/utils/localStorageAssist';
|
|
42
|
-
import '../../../Core/index.js';
|
|
43
|
-
import 'antd-management-fast-component/es/customComponents/BaseComponent';
|
|
44
|
-
|
|
45
|
-
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); }; }
|
|
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
|
-
var Base = /*#__PURE__*/function (_SupplementWrapper) {
|
|
48
|
-
_inherits(Base, _SupplementWrapper);
|
|
49
|
-
var _super = _createSuper(Base);
|
|
50
|
-
function Base(props) {
|
|
51
|
-
var _this;
|
|
52
|
-
_classCallCheck(this, Base);
|
|
53
|
-
_this = _super.call(this, props);
|
|
54
|
-
_this.loadDataAfterMount = false;
|
|
55
|
-
_this.showSelect = function () {
|
|
56
|
-
var text = 'showSelect 方法需要在上层进行实现';
|
|
57
|
-
showRuntimeError({
|
|
58
|
-
message: text
|
|
59
|
-
});
|
|
60
|
-
};
|
|
61
|
-
_this.getFieldData = function () {
|
|
62
|
-
return {
|
|
63
|
-
fieldText: '',
|
|
64
|
-
fieldTitle: '',
|
|
65
|
-
placeholder: '请选择'
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
_this.renderButton = function () {
|
|
69
|
-
var _this$props = _this.props,
|
|
70
|
-
children = _this$props.children,
|
|
71
|
-
buttonProps = _this$props.buttonProps;
|
|
72
|
-
var p = _objectSpread2(_objectSpread2({}, buttonProps || []), {
|
|
73
|
-
onClick: function onClick() {
|
|
74
|
-
_this.showSelect();
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
return /*#__PURE__*/React.createElement(Button, p, children);
|
|
78
|
-
};
|
|
79
|
-
_this.state = _objectSpread2(_objectSpread2({}, _this.state), {
|
|
80
|
-
selectData: null
|
|
81
|
-
});
|
|
82
|
-
return _this;
|
|
83
|
-
}
|
|
84
|
-
_createClass(Base, [{
|
|
85
|
-
key: "renderFurther",
|
|
86
|
-
value: function renderFurther() {
|
|
87
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, this.renderButton(), this.renderOther());
|
|
88
|
-
}
|
|
89
|
-
}], [{
|
|
90
|
-
key: "getDerivedStateFromProps",
|
|
91
|
-
value: function getDerivedStateFromProps(nextProps, prevState) {
|
|
92
|
-
return _get(_getPrototypeOf(Base), "getDerivedStateFromProps", this).call(this, nextProps, prevState);
|
|
93
|
-
}
|
|
94
|
-
}]);
|
|
95
|
-
return Base;
|
|
96
|
-
}(SupplementWrapper);
|
|
97
|
-
|
|
98
|
-
export { Base as default };
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import { _ as _objectSpread2 } from '../../../../objectSpread2.js';
|
|
2
|
-
import { _ as _inherits, a as _classCallCheck, b as _createClass, c as _getPrototypeOf, d as _possibleConstructorReturn } from '../../../../getPrototypeOf.js';
|
|
3
|
-
import { _ as _get } from '../../../../get.js';
|
|
4
|
-
import { selectModeCollection } from 'antd-management-fast-common/es/utils/constants';
|
|
5
|
-
import { toNumber, isFunction } from 'antd-management-fast-common/es/utils/tools';
|
|
6
|
-
import Base from '../Base/index.js';
|
|
7
|
-
import '../../../../toPropertyKey.js';
|
|
8
|
-
import '../../../../typeof.js';
|
|
9
|
-
import 'antd';
|
|
10
|
-
import '../../../CustomWrapper/SupplementWrapper/index.js';
|
|
11
|
-
import '../../../CustomWrapper/Supplement/index.js';
|
|
12
|
-
import '../../../CustomWrapper/SupplementCore/index.js';
|
|
13
|
-
import 'antd-management-fast-common/es/utils/globalStorageAssist';
|
|
14
|
-
import 'antd-management-fast-common/es/utils/requestAssistor';
|
|
15
|
-
import '../../../../index2.js';
|
|
16
|
-
import 'react';
|
|
17
|
-
import 'antd-management-fast-common/es/utils/dynamicSetting';
|
|
18
|
-
import 'antd-management-fast-component/es/customComponents/AnimalBox/FadeBox';
|
|
19
|
-
import 'antd-management-fast-component/es/customComponents/AnimalBox/QueueBox';
|
|
20
|
-
import 'antd-management-fast-component/es/customComponents/AudioUpload';
|
|
21
|
-
import 'antd-management-fast-component/es/customComponents/ColorText';
|
|
22
|
-
import 'antd-management-fast-component/es/customComponents/Editor/TinymceWrapper';
|
|
23
|
-
import 'antd-management-fast-component/es/customComponents/FileBase64Upload';
|
|
24
|
-
import 'antd-management-fast-component/es/customComponents/FileUpload';
|
|
25
|
-
import 'antd-management-fast-component/es/customComponents/FlexBox';
|
|
26
|
-
import 'antd-management-fast-component/es/customComponents/FlexText';
|
|
27
|
-
import 'antd-management-fast-component/es/customComponents/FunctionComponent';
|
|
28
|
-
import 'antd-management-fast-component/es/customComponents/FunctionSupplement/Whether';
|
|
29
|
-
import 'antd-management-fast-component/es/customComponents/HelpBox';
|
|
30
|
-
import 'antd-management-fast-component/es/customComponents/HelpCard';
|
|
31
|
-
import 'antd-management-fast-component/es/customComponents/HtmlBox';
|
|
32
|
-
import 'antd-management-fast-component/es/customComponents/Icon';
|
|
33
|
-
import 'antd-management-fast-component/es/customComponents/IconInfo';
|
|
34
|
-
import 'antd-management-fast-component/es/customComponents/ImageBox';
|
|
35
|
-
import 'antd-management-fast-component/es/customComponents/ImageUpload';
|
|
36
|
-
import 'antd-management-fast-component/es/customComponents/VideoUpload';
|
|
37
|
-
import '../../../../utils/metaDataAssist.js';
|
|
38
|
-
import '../../../../index3.js';
|
|
39
|
-
import 'antd-management-fast-common/es/utils/actionAssist';
|
|
40
|
-
import 'antd-management-fast-common/es/utils/dva';
|
|
41
|
-
import '../../../../utils/storageAssist.js';
|
|
42
|
-
import 'antd-management-fast-common/es/utils/localStorageAssist';
|
|
43
|
-
import '../../../Core/index.js';
|
|
44
|
-
import 'antd-management-fast-component/es/customComponents/BaseComponent';
|
|
45
|
-
|
|
46
|
-
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); }; }
|
|
47
|
-
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; } }
|
|
48
|
-
var InteractiveBase = /*#__PURE__*/function (_Base) {
|
|
49
|
-
_inherits(InteractiveBase, _Base);
|
|
50
|
-
var _super = _createSuper(InteractiveBase);
|
|
51
|
-
function InteractiveBase(props) {
|
|
52
|
-
var _this;
|
|
53
|
-
_classCallCheck(this, InteractiveBase);
|
|
54
|
-
_this = _super.call(this, props);
|
|
55
|
-
_this.showSelect = function () {
|
|
56
|
-
var selectMode = _this.props.selectMode;
|
|
57
|
-
if (toNumber(selectMode) === selectModeCollection.drawer) {
|
|
58
|
-
_this.showDrawer();
|
|
59
|
-
}
|
|
60
|
-
if (toNumber(selectMode) === selectModeCollection.modal) {
|
|
61
|
-
_this.showModal();
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
_this.showDrawer = function () {
|
|
65
|
-
_this.setState({
|
|
66
|
-
drawerVisible: true
|
|
67
|
-
});
|
|
68
|
-
};
|
|
69
|
-
_this.afterDrawerClose = function () {
|
|
70
|
-
_this.setState({
|
|
71
|
-
drawerVisible: false
|
|
72
|
-
});
|
|
73
|
-
};
|
|
74
|
-
_this.afterDrawerSelectSuccess = function (o) {
|
|
75
|
-
_this.afterSelectSuccessCore(o);
|
|
76
|
-
};
|
|
77
|
-
_this.showModal = function () {
|
|
78
|
-
_this.setState({
|
|
79
|
-
modalVisible: true
|
|
80
|
-
});
|
|
81
|
-
};
|
|
82
|
-
_this.afterModalSelectSuccess = function (o) {
|
|
83
|
-
_this.setState({
|
|
84
|
-
modalVisible: false
|
|
85
|
-
});
|
|
86
|
-
_this.afterSelectSuccessCore(o);
|
|
87
|
-
};
|
|
88
|
-
_this.afterModalCancel = function () {
|
|
89
|
-
_this.setState({
|
|
90
|
-
modalVisible: false
|
|
91
|
-
});
|
|
92
|
-
};
|
|
93
|
-
_this.afterSelectSuccessCore = function (o) {
|
|
94
|
-
if ((o || null) == null) {
|
|
95
|
-
return;
|
|
96
|
-
}
|
|
97
|
-
var afterSelect = _this.props.afterSelect;
|
|
98
|
-
_this.setState({
|
|
99
|
-
selectData: o
|
|
100
|
-
});
|
|
101
|
-
if (isFunction(afterSelect)) {
|
|
102
|
-
afterSelect(o);
|
|
103
|
-
}
|
|
104
|
-
};
|
|
105
|
-
_this.renderSelectDrawer = function () {
|
|
106
|
-
var text = '需要实现 renderSelectDrawer 方法';
|
|
107
|
-
showRuntimeError({
|
|
108
|
-
message: text
|
|
109
|
-
});
|
|
110
|
-
};
|
|
111
|
-
_this.renderSelectModal = function () {
|
|
112
|
-
var text = '需要实现 renderSelectModal 方法';
|
|
113
|
-
showRuntimeError({
|
|
114
|
-
message: text
|
|
115
|
-
});
|
|
116
|
-
};
|
|
117
|
-
_this.renderOther = function () {
|
|
118
|
-
var selectMode = _this.props.selectMode;
|
|
119
|
-
if (toNumber(selectMode) === selectModeCollection.drawer) {
|
|
120
|
-
return _this.renderSelectDrawer();
|
|
121
|
-
}
|
|
122
|
-
if (toNumber(selectMode) === selectModeCollection.modal) {
|
|
123
|
-
return _this.renderSelectModal();
|
|
124
|
-
}
|
|
125
|
-
var text = '无效的选择项渲染模式';
|
|
126
|
-
showRuntimeError({
|
|
127
|
-
message: text
|
|
128
|
-
});
|
|
129
|
-
return null;
|
|
130
|
-
};
|
|
131
|
-
_this.state = _objectSpread2(_objectSpread2({}, _this.state), {
|
|
132
|
-
drawerVisible: false,
|
|
133
|
-
modalVisible: false
|
|
134
|
-
});
|
|
135
|
-
return _this;
|
|
136
|
-
}
|
|
137
|
-
_createClass(InteractiveBase, null, [{
|
|
138
|
-
key: "getDerivedStateFromProps",
|
|
139
|
-
value: function getDerivedStateFromProps(nextProps, prevState) {
|
|
140
|
-
return _get(_getPrototypeOf(InteractiveBase), "getDerivedStateFromProps", this).call(this, nextProps, prevState);
|
|
141
|
-
}
|
|
142
|
-
}]);
|
|
143
|
-
return InteractiveBase;
|
|
144
|
-
}(Base);
|
|
145
|
-
InteractiveBase.defaultProps = {
|
|
146
|
-
selectMode: selectModeCollection.drawer
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
export { InteractiveBase as default };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export class AmfCardCollectionItemContent extends BaseComponent {
|
|
2
|
-
renderFurther(): JSX.Element;
|
|
3
|
-
}
|
|
4
|
-
export namespace AmfCardCollectionItemContent {
|
|
5
|
-
namespace defaultProps {
|
|
6
|
-
const mode: any;
|
|
7
|
-
const justify: string;
|
|
8
|
-
const align: string;
|
|
9
|
-
const gutter: number;
|
|
10
|
-
const items: never[];
|
|
11
|
-
const index: number;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
import { BaseComponent } from "antd-management-fast-component/es/customComponents/BaseComponent";
|