antd-management-fast-framework 1.9.18 → 1.11.2
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/configGroup/configGeneral.d.ts +47 -0
- package/es/configGroup/configGeneral.js +61 -0
- package/es/configGroup/themeCollection.d.ts +29 -0
- package/es/configGroup/themeCollection.js +117 -0
- package/es/configGroup/webpackPlugin.d.ts +11 -0
- package/es/configGroup/webpackPlugin.js +166 -0
- package/es/customComponents/AMap/UIPoiPicker.js +2 -2
- package/es/customComponents/AMap/UIPositionPicker.js +2 -2
- package/es/customComponents/ActiveChart/index.js +22 -22
- package/es/customComponents/AnimalBox/FadeBox/index.js +8 -8
- package/es/customComponents/AnimalBox/QueueBox/index.js +5 -5
- package/es/customComponents/AnimalBox/QueueListBox/index.js +8 -8
- package/es/customComponents/AnimalBox/RotateBox/index.js +6 -6
- package/es/customComponents/ArticleListContent/index.js +13 -13
- package/es/customComponents/Authorized/Authorized.js +6 -6
- package/es/customComponents/Authorized/AuthorizedRoute.js +8 -8
- package/es/customComponents/Authorized/CheckPermissions.js +5 -5
- package/es/customComponents/Authorized/PromiseRender.js +11 -11
- package/es/customComponents/Authorized/Secured.js +8 -8
- package/es/customComponents/Authorized/index.js +6 -6
- package/es/customComponents/Authorized/renderAuthorize.js +2 -2
- package/es/customComponents/AvatarList/index.js +16 -16
- package/es/customComponents/Canvas/Bubbly/index.js +4 -4
- package/es/customComponents/Canvas/Core/index.js +7 -7
- package/es/customComponents/Canvas/RadarScanning/index.js +4 -4
- package/es/customComponents/Canvas/Spirit/index.js +4 -4
- package/es/customComponents/Canvas/index.js +6 -6
- package/es/customComponents/CenterBox/index.js +5 -5
- package/es/customComponents/Charts/Bar/index.js +12 -12
- package/es/customComponents/Charts/ChartCard/index.js +29 -29
- package/es/customComponents/Charts/Field/index.js +9 -9
- package/es/customComponents/Charts/Gauge/index.js +14 -14
- package/es/customComponents/Charts/MiniArea/index.js +13 -13
- package/es/customComponents/Charts/MiniBar/index.js +10 -10
- package/es/customComponents/Charts/MiniProgress/index.js +14 -14
- package/es/customComponents/Charts/Pie/index.js +33 -33
- package/es/customComponents/Charts/TagCloud/index.js +12 -12
- package/es/customComponents/Charts/TimelineChart/index.js +14 -14
- package/es/customComponents/Charts/WaterWave/index.js +12 -12
- package/es/customComponents/Charts/autoHeight.js +5 -5
- package/es/customComponents/Charts/bizcharts.js +3 -3
- package/es/customComponents/Charts/index.js +26 -26
- package/es/customComponents/ColorText/index.js +7 -7
- package/es/customComponents/Countdown/index.js +7 -7
- package/es/customComponents/DataPreviewDrawer/index.js +14 -14
- package/es/customComponents/DecorateAvatar/index.js +9 -9
- package/es/customComponents/DisplayCopyData/index.js +7 -7
- package/es/customComponents/EditableItem/index.js +15 -15
- package/es/customComponents/EditableLinkGroup/index.js +11 -11
- package/es/customComponents/Ellipsis/index.js +35 -26
- package/es/customComponents/Ellipsis/index.less +2 -1
- package/es/customComponents/EllipsisCustom/index.js +23 -23
- package/es/customComponents/EverySpace/index.js +5 -5
- package/es/customComponents/Exception/index.js +20 -20
- package/es/customComponents/Exception/typeConfig.js +2 -2
- package/es/customComponents/FigureRange/index.js +33 -33
- package/es/customComponents/FileBase64Upload/index.js +8 -8
- package/es/customComponents/FlexBox/index.js +23 -17
- package/es/customComponents/FlexText/index.d.ts +1 -0
- package/es/customComponents/FlexText/index.js +16 -8
- package/es/customComponents/FooterToolbar/index.js +11 -11
- package/es/customComponents/FromDisplayItem/index.js +6 -6
- package/es/customComponents/FunctionComponent/index.js +211 -200
- package/es/customComponents/GlobalFooter/index.js +10 -10
- package/es/customComponents/HelpBox/index.js +8 -8
- package/es/customComponents/HelpCard/index.js +6 -6
- package/es/customComponents/HtmlBox/index.js +6 -6
- package/es/customComponents/IconInfo/index.d.ts +5 -1
- package/es/customComponents/IconInfo/index.js +160 -68
- package/es/customComponents/ImageBox/index.js +48 -48
- package/es/customComponents/ImageContentPreview/index.js +18 -18
- package/es/customComponents/ImageUpload/index.js +31 -31
- package/es/customComponents/Login/LoginItem.js +18 -18
- package/es/customComponents/Login/LoginSubmit.js +6 -6
- package/es/customComponents/Login/LoginTab.js +8 -8
- package/es/customComponents/Login/index.js +19 -19
- package/es/customComponents/Login/loginContext.js +2 -2
- package/es/customComponents/Login/map.js +11 -11
- package/es/customComponents/MobileContainor/index.js +11 -11
- package/es/customComponents/NoticeIconCustom/NoticeList.js +26 -26
- package/es/customComponents/NoticeIconCustom/index.js +19 -19
- package/es/customComponents/NumberInfo/index.js +16 -16
- package/es/customComponents/PageLoading/index.d.ts +2 -0
- package/es/customComponents/PageLoading/index.js +13 -0
- package/es/customComponents/PercentageBox/index.js +4 -4
- package/es/customComponents/PriceBox/index.js +9 -9
- package/es/customComponents/Result/index.js +18 -18
- package/es/customComponents/StandardFormRow/index.js +9 -9
- package/es/customComponents/StandardTable/index.js +14 -14
- package/es/customComponents/StandardTableCustom/index.js +15 -15
- package/es/customComponents/StatusBar/index.js +9 -9
- package/es/customComponents/TagSelect/index.js +15 -15
- package/es/customComponents/TimeLineCustom/index.js +40 -40
- package/es/customComponents/Trend/index.js +7 -7
- package/es/customComponents/VerticalBox/index.js +8 -8
- package/es/customComponents/VideoUpload/index.js +35 -35
- package/es/framework/AuthorizationWrapper/index.js +4 -4
- package/es/framework/Base/index.d.ts +25 -2
- package/es/framework/Base/index.js +181 -14
- package/es/framework/ButtonExtension/SelectButton/Base/index.d.ts +1 -1
- package/es/framework/ButtonExtension/SelectButton/Base/index.js +8 -8
- package/es/framework/ButtonExtension/SelectButton/InteractiveBase/index.js +4 -4
- package/es/framework/Common/index.d.ts +18 -6
- package/es/framework/Common/index.js +328 -238
- package/es/framework/Core/index.js +4 -4
- package/es/framework/CustomBase/index.js +2 -2
- package/es/framework/CustomWrapper/Supplement/index.js +4 -4
- package/es/framework/CustomWrapper/SupplementCore/index.js +4 -4
- package/es/framework/CustomWrapper/SupplementWrapper/index.js +4 -4
- package/es/framework/DataDrawer/Base/index.d.ts +1 -1
- package/es/framework/DataDrawer/Base/index.js +28 -28
- package/es/framework/DataDrawer/BaseAddDrawer/index.js +5 -5
- package/es/framework/DataDrawer/BaseLoadDrawer/index.js +6 -10
- package/es/framework/DataDrawer/BaseNeedlessLoadDrawer/index.js +4 -4
- package/es/framework/DataDrawer/BaseSaveDrawer/index.js +4 -4
- package/es/framework/DataDrawer/BaseUpdateDrawer/index.js +4 -4
- package/es/framework/DataForm/BaseAddForm/index.js +52 -37
- package/es/framework/DataForm/BaseUpdateForm/index.js +48 -37
- package/es/framework/DataForm/BaseUpdateFormContent/index.js +7 -7
- package/es/framework/DataForm/BaseUpdateFormTab/index.js +4 -4
- package/es/framework/DataListView/Base/index.d.ts +2 -1
- package/es/framework/DataListView/Base/index.js +88 -94
- package/es/framework/DataListView/BatchAction/index.js +18 -18
- package/es/framework/DataListView/ColumnSetting/DndItem.js +4 -4
- package/es/framework/DataListView/ColumnSetting/index.js +37 -37
- package/es/framework/DataListView/DensityAction/index.js +12 -12
- package/es/framework/DataMenuContainer/index.d.ts +1 -1
- package/es/framework/DataMenuContainer/index.js +17 -17
- package/es/framework/DataModal/Base/index.d.ts +1 -1
- package/es/framework/DataModal/Base/index.js +27 -31
- package/es/framework/DataModal/BaseAddModal/index.js +4 -4
- package/es/framework/DataModal/BaseLoadModal/index.js +7 -15
- package/es/framework/DataModal/BaseNeedlessLoadModal/index.js +4 -4
- package/es/framework/DataModal/BaseSelectModal/index.js +4 -4
- package/es/framework/DataModal/BaseUpdateModal/index.js +4 -4
- package/es/framework/DataModal/BaseUpdateTransferModal/index.js +6 -6
- package/es/framework/DataMultiPageView/InnerMultiPage/index.js +4 -4
- package/es/framework/DataMultiPageView/MultiPage/index.js +9 -10
- package/es/framework/DataMultiPageView/MultiPageDrawer/index.js +57 -61
- package/es/framework/DataMultiPageView/MultiPageSelectDrawer/index.js +6 -6
- package/es/framework/DataOperation/Base/index.js +10 -10
- package/es/framework/DataOperation/BaseView/index.js +4 -4
- package/es/framework/DataOperation/BaseWindow/index.js +48 -37
- package/es/framework/DataSinglePageView/InnerSinglePage/index.js +4 -4
- package/es/framework/DataSinglePageView/SinglePage/index.js +7 -9
- package/es/framework/DataSinglePageView/SinglePageDrawer/index.js +50 -50
- package/es/framework/DataSinglePageView/SinglePageSelectDrawer/index.js +6 -6
- package/es/framework/DataSingleView/DataCore/index.d.ts +1 -1
- package/es/framework/DataSingleView/DataCore/index.js +23 -23
- package/es/framework/DataSingleView/DataLoad/index.js +4 -4
- package/es/framework/DataTabContainer/index.js +11 -11
- package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldBase/index.d.ts +2 -1
- package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldBase/index.js +13 -12
- package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldDrawerBase/index.js +5 -5
- package/es/framework/Wrapper/index.js +4 -4
- package/es/index.js +1 -1
- package/es/utils/Authorized.js +5 -5
- package/es/utils/Yuan.js +5 -5
- package/es/utils/actionAssist.js +70 -57
- package/es/utils/authority.d.ts +4 -0
- package/es/utils/authority.js +44 -5
- package/es/utils/cacheAssist.d.ts +85 -0
- package/es/utils/cacheAssist.js +313 -0
- package/es/utils/constants.d.ts +2 -0
- package/es/utils/constants.js +9 -3
- package/es/utils/defaultSettingsSpecial.d.ts +1 -0
- package/es/utils/defaultSettingsSpecial.js +10 -0
- package/es/utils/globalStorageAssist.d.ts +2 -2
- package/es/utils/globalStorageAssist.js +2 -2
- package/es/utils/proLayoutCollection.js +18 -14
- package/es/utils/request.js +7 -7
- package/es/utils/requestAssistor.d.ts +14 -14
- package/es/utils/requestAssistor.js +34 -11
- package/es/utils/tools.d.ts +1 -0
- package/es/utils/tools.js +40 -36
- package/es/utils/virtualRequest.js +4 -4
- package/package.json +14 -10
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 占位函数
|
|
3
|
+
*
|
|
4
|
+
* @export
|
|
5
|
+
* @returns
|
|
6
|
+
*/
|
|
7
|
+
export function empty(): {};
|
|
8
|
+
export namespace configGeneral {
|
|
9
|
+
export const hash: boolean;
|
|
10
|
+
export const alias: {};
|
|
11
|
+
export const antd: {};
|
|
12
|
+
export const analytics: boolean;
|
|
13
|
+
export namespace dva {
|
|
14
|
+
export const hmr: boolean;
|
|
15
|
+
}
|
|
16
|
+
export const locale: {
|
|
17
|
+
default: string;
|
|
18
|
+
antd: boolean;
|
|
19
|
+
baseNavigator: boolean;
|
|
20
|
+
};
|
|
21
|
+
export namespace targets {
|
|
22
|
+
export const ie: number;
|
|
23
|
+
}
|
|
24
|
+
export const title: boolean;
|
|
25
|
+
export const theme: {
|
|
26
|
+
'@border-radius-base': string;
|
|
27
|
+
};
|
|
28
|
+
export namespace define {
|
|
29
|
+
export const REACT_APP_ENV: string | boolean;
|
|
30
|
+
}
|
|
31
|
+
export const ignoreMomentLocale: boolean;
|
|
32
|
+
export namespace lessLoader {
|
|
33
|
+
export const javascriptEnabled: boolean;
|
|
34
|
+
}
|
|
35
|
+
export namespace manifest {
|
|
36
|
+
export const basePath: string;
|
|
37
|
+
}
|
|
38
|
+
export const history: {
|
|
39
|
+
type: string;
|
|
40
|
+
};
|
|
41
|
+
export const ssr: boolean;
|
|
42
|
+
export const mfsu: {};
|
|
43
|
+
export const fastRefresh: {};
|
|
44
|
+
export namespace extraCustomOption {
|
|
45
|
+
export const babelCompact: boolean;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.configGeneral = void 0;
|
|
7
|
+
exports.empty = empty;
|
|
8
|
+
var REACT_APP_ENV = process.env.REACT_APP_ENV;
|
|
9
|
+
var configGeneral = {
|
|
10
|
+
hash: true,
|
|
11
|
+
alias: {},
|
|
12
|
+
antd: {// dark: true,
|
|
13
|
+
},
|
|
14
|
+
analytics: false,
|
|
15
|
+
dva: {
|
|
16
|
+
hmr: true
|
|
17
|
+
},
|
|
18
|
+
locale: {
|
|
19
|
+
default: 'zh-CN',
|
|
20
|
+
antd: true,
|
|
21
|
+
baseNavigator: true
|
|
22
|
+
},
|
|
23
|
+
targets: {
|
|
24
|
+
ie: 11
|
|
25
|
+
},
|
|
26
|
+
title: false,
|
|
27
|
+
theme: {
|
|
28
|
+
'@border-radius-base': '4px'
|
|
29
|
+
},
|
|
30
|
+
define: {
|
|
31
|
+
REACT_APP_ENV: REACT_APP_ENV || false
|
|
32
|
+
},
|
|
33
|
+
ignoreMomentLocale: true,
|
|
34
|
+
lessLoader: {
|
|
35
|
+
javascriptEnabled: true
|
|
36
|
+
},
|
|
37
|
+
manifest: {
|
|
38
|
+
basePath: '/'
|
|
39
|
+
},
|
|
40
|
+
history: {
|
|
41
|
+
type: 'hash'
|
|
42
|
+
},
|
|
43
|
+
ssr: false,
|
|
44
|
+
mfsu: {},
|
|
45
|
+
fastRefresh: {},
|
|
46
|
+
extraCustomOption: {
|
|
47
|
+
babelCompact: false
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* 占位函数
|
|
52
|
+
*
|
|
53
|
+
* @export
|
|
54
|
+
* @returns
|
|
55
|
+
*/
|
|
56
|
+
|
|
57
|
+
exports.configGeneral = configGeneral;
|
|
58
|
+
|
|
59
|
+
function empty() {
|
|
60
|
+
return {};
|
|
61
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 占位函数
|
|
3
|
+
*
|
|
4
|
+
* @export
|
|
5
|
+
* @returns
|
|
6
|
+
*/
|
|
7
|
+
export function empty(): {};
|
|
8
|
+
export namespace configGeneral {
|
|
9
|
+
export const list: ({
|
|
10
|
+
key: string;
|
|
11
|
+
fileName: string;
|
|
12
|
+
theme: string;
|
|
13
|
+
modifyVars?: undefined;
|
|
14
|
+
} | {
|
|
15
|
+
key: string;
|
|
16
|
+
fileName: string;
|
|
17
|
+
modifyVars: {
|
|
18
|
+
'@primary-color': string;
|
|
19
|
+
};
|
|
20
|
+
theme?: undefined;
|
|
21
|
+
} | {
|
|
22
|
+
key: string;
|
|
23
|
+
theme: string;
|
|
24
|
+
fileName: string;
|
|
25
|
+
modifyVars: {
|
|
26
|
+
'@primary-color': string;
|
|
27
|
+
};
|
|
28
|
+
})[];
|
|
29
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.configGeneral = void 0;
|
|
7
|
+
exports.empty = empty;
|
|
8
|
+
var configGeneral = {
|
|
9
|
+
list: [{
|
|
10
|
+
key: 'dark',
|
|
11
|
+
fileName: 'dark.css',
|
|
12
|
+
theme: 'dark'
|
|
13
|
+
}, {
|
|
14
|
+
key: 'dust',
|
|
15
|
+
fileName: 'dust.css',
|
|
16
|
+
modifyVars: {
|
|
17
|
+
'@primary-color': '#F5222D'
|
|
18
|
+
}
|
|
19
|
+
}, {
|
|
20
|
+
key: 'volcano',
|
|
21
|
+
fileName: 'volcano.css',
|
|
22
|
+
modifyVars: {
|
|
23
|
+
'@primary-color': '#FA541C'
|
|
24
|
+
}
|
|
25
|
+
}, {
|
|
26
|
+
key: 'sunset',
|
|
27
|
+
fileName: 'sunset.css',
|
|
28
|
+
modifyVars: {
|
|
29
|
+
'@primary-color': '#FAAD14'
|
|
30
|
+
}
|
|
31
|
+
}, {
|
|
32
|
+
key: 'cyan',
|
|
33
|
+
fileName: 'cyan.css',
|
|
34
|
+
modifyVars: {
|
|
35
|
+
'@primary-color': '#13C2C2'
|
|
36
|
+
}
|
|
37
|
+
}, {
|
|
38
|
+
key: 'green',
|
|
39
|
+
fileName: 'green.css',
|
|
40
|
+
modifyVars: {
|
|
41
|
+
'@primary-color': '#52C41A'
|
|
42
|
+
}
|
|
43
|
+
}, {
|
|
44
|
+
key: 'geekblue',
|
|
45
|
+
fileName: 'geekblue.css',
|
|
46
|
+
modifyVars: {
|
|
47
|
+
'@primary-color': '#2F54EB'
|
|
48
|
+
}
|
|
49
|
+
}, {
|
|
50
|
+
key: 'purple',
|
|
51
|
+
fileName: 'purple.css',
|
|
52
|
+
modifyVars: {
|
|
53
|
+
'@primary-color': '#722ED1'
|
|
54
|
+
}
|
|
55
|
+
}, {
|
|
56
|
+
key: 'dust',
|
|
57
|
+
theme: 'dark',
|
|
58
|
+
fileName: 'dark-dust.css',
|
|
59
|
+
modifyVars: {
|
|
60
|
+
'@primary-color': '#F5222D'
|
|
61
|
+
}
|
|
62
|
+
}, {
|
|
63
|
+
key: 'volcano',
|
|
64
|
+
theme: 'dark',
|
|
65
|
+
fileName: 'dark-volcano.css',
|
|
66
|
+
modifyVars: {
|
|
67
|
+
'@primary-color': '#FA541C'
|
|
68
|
+
}
|
|
69
|
+
}, {
|
|
70
|
+
key: 'sunset',
|
|
71
|
+
theme: 'dark',
|
|
72
|
+
fileName: 'dark-sunset.css',
|
|
73
|
+
modifyVars: {
|
|
74
|
+
'@primary-color': '#FAAD14'
|
|
75
|
+
}
|
|
76
|
+
}, {
|
|
77
|
+
key: 'cyan',
|
|
78
|
+
theme: 'dark',
|
|
79
|
+
fileName: 'dark-cyan.css',
|
|
80
|
+
modifyVars: {
|
|
81
|
+
'@primary-color': '#13C2C2'
|
|
82
|
+
}
|
|
83
|
+
}, {
|
|
84
|
+
key: 'green',
|
|
85
|
+
theme: 'dark',
|
|
86
|
+
fileName: 'dark-green.css',
|
|
87
|
+
modifyVars: {
|
|
88
|
+
'@primary-color': '#52C41A'
|
|
89
|
+
}
|
|
90
|
+
}, {
|
|
91
|
+
key: 'geekblue',
|
|
92
|
+
theme: 'dark',
|
|
93
|
+
fileName: 'dark-geekblue.css',
|
|
94
|
+
modifyVars: {
|
|
95
|
+
'@primary-color': '#2F54EB'
|
|
96
|
+
}
|
|
97
|
+
}, {
|
|
98
|
+
key: 'purple',
|
|
99
|
+
theme: 'dark',
|
|
100
|
+
fileName: 'dark-purple.css',
|
|
101
|
+
modifyVars: {
|
|
102
|
+
'@primary-color': '#722ED1'
|
|
103
|
+
}
|
|
104
|
+
}]
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* 占位函数
|
|
108
|
+
*
|
|
109
|
+
* @export
|
|
110
|
+
* @returns
|
|
111
|
+
*/
|
|
112
|
+
|
|
113
|
+
exports.configGeneral = configGeneral;
|
|
114
|
+
|
|
115
|
+
function empty() {
|
|
116
|
+
return {};
|
|
117
|
+
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.empty = empty;
|
|
7
|
+
exports.webpackPlugin5 = exports.webpackPlugin = void 0;
|
|
8
|
+
|
|
9
|
+
var _path = _interopRequireDefault(require("path"));
|
|
10
|
+
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
|
|
13
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
14
|
+
|
|
15
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
16
|
+
|
|
17
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
18
|
+
|
|
19
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
20
|
+
|
|
21
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
22
|
+
|
|
23
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
24
|
+
|
|
25
|
+
function getModulePackageName(module) {
|
|
26
|
+
if (!module.context) return null;
|
|
27
|
+
|
|
28
|
+
var nodeModulesPath = _path.default.join(__dirname, '../node_modules/');
|
|
29
|
+
|
|
30
|
+
if (module.context.substring(0, nodeModulesPath.length) !== nodeModulesPath) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
var moduleRelativePath = module.context.substring(nodeModulesPath.length);
|
|
35
|
+
|
|
36
|
+
var _moduleRelativePath$s = moduleRelativePath.split(_path.default.sep),
|
|
37
|
+
_moduleRelativePath$s2 = _slicedToArray(_moduleRelativePath$s, 1),
|
|
38
|
+
moduleDirName = _moduleRelativePath$s2[0];
|
|
39
|
+
|
|
40
|
+
var packageName = moduleDirName; // handle tree shaking
|
|
41
|
+
|
|
42
|
+
if (packageName && packageName.match('^_')) {
|
|
43
|
+
// eslint-disable-next-line prefer-destructuring
|
|
44
|
+
var matchResult = packageName.match(/^_(@?[^@]+)/) || [];
|
|
45
|
+
|
|
46
|
+
if (matchResult.length > 0) {
|
|
47
|
+
packageName = packageName.match(/^_(@?[^@]+)/)[1];
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return packageName;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
var webpackPlugin = function webpackPlugin(config) {
|
|
55
|
+
// console.dir(config);
|
|
56
|
+
// config.profile(true);
|
|
57
|
+
// optimize chunks
|
|
58
|
+
config.optimization // .minimize(process.env.NODE_ENV === 'production' ? true : false)
|
|
59
|
+
// share the same chunks across different modules
|
|
60
|
+
.runtimeChunk(false).splitChunks({
|
|
61
|
+
chunks: 'async',
|
|
62
|
+
name: 'vendors',
|
|
63
|
+
// minSize: 30000,
|
|
64
|
+
// minChunks: 1, // 模块被引用>=1次,便分割
|
|
65
|
+
// maxAsyncRequests: 5, // 异步加载chunk的并发请求数量<=5
|
|
66
|
+
// maxInitialRequests: 3, // 一个入口并发加载的chunk数量<=3
|
|
67
|
+
maxInitialRequests: Infinity,
|
|
68
|
+
cacheGroups: {
|
|
69
|
+
// default: {
|
|
70
|
+
// // 模块缓存规则,设置为false,默认缓存组将禁用
|
|
71
|
+
// minChunks: 2, // 模块被引用>=2次,拆分至vendors公共模块
|
|
72
|
+
// priority: -20, // 优先级
|
|
73
|
+
// reuseExistingChunk: true, // 默认使用已有的模块
|
|
74
|
+
// },
|
|
75
|
+
vendors: {
|
|
76
|
+
test: function test(module) {
|
|
77
|
+
var packageName = getModulePackageName(module) || '';
|
|
78
|
+
|
|
79
|
+
if (packageName) {
|
|
80
|
+
return ['antd', 'bizcharts', 'gg-editor', 'g6', '@antv', 'l7', 'gg-editor-core', 'bizcharts-plugin-slider', 'braft-editor', 'classnames', 'lodash', 'numeral'].includes(packageName);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return false;
|
|
84
|
+
},
|
|
85
|
+
name: function name(module) {
|
|
86
|
+
var packageName = getModulePackageName(module);
|
|
87
|
+
|
|
88
|
+
if (packageName) {
|
|
89
|
+
if (['bizcharts', '@antv/data-set', '@ant-design/icons', '@antv/l7', '@antv/l7-maps', 'braft-editor', 'gg-editor'].indexOf(packageName) >= 0) {
|
|
90
|
+
return 'viz'; // visualization package
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
return 'misc';
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
exports.webpackPlugin = webpackPlugin;
|
|
102
|
+
|
|
103
|
+
var webpackPlugin5 = function webpackPlugin5(config, _ref) {
|
|
104
|
+
var env = _ref.env;
|
|
105
|
+
config.module.rule('mjs-rule').test(/.m?js/).resolve.set('fullySpecified', false);
|
|
106
|
+
config.optimization.store.delete('noEmitOnErrors');
|
|
107
|
+
console.log({
|
|
108
|
+
currentEnv: env
|
|
109
|
+
});
|
|
110
|
+
config.merge({
|
|
111
|
+
// mode: 'development',
|
|
112
|
+
optimization: {
|
|
113
|
+
emitOnErrors: true,
|
|
114
|
+
minimize: env === 'production',
|
|
115
|
+
concatenateModules: env === 'production',
|
|
116
|
+
splitChunks: {
|
|
117
|
+
// chunks: 'async',
|
|
118
|
+
// minSize: 1,
|
|
119
|
+
// minChunks: 2,
|
|
120
|
+
// automaticNameDelimiter: '.',
|
|
121
|
+
cacheGroups: {
|
|
122
|
+
default: {
|
|
123
|
+
minChunks: 2,
|
|
124
|
+
priority: -20,
|
|
125
|
+
reuseExistingChunk: true
|
|
126
|
+
},
|
|
127
|
+
viz: {
|
|
128
|
+
test: function test(module) {
|
|
129
|
+
var packageName = getModulePackageName(module) || '';
|
|
130
|
+
|
|
131
|
+
if (packageName) {
|
|
132
|
+
return ['antd', 'bizcharts', 'gg-editor', 'g6', '@antv', 'l7', 'gg-editor-core', 'bizcharts-plugin-slider', 'braft-editor', 'classnames', 'lodash', 'numeral'].includes(packageName);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
return false;
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
misc: {
|
|
139
|
+
test: function test(module) {
|
|
140
|
+
var packageName = getModulePackageName(module) || '';
|
|
141
|
+
|
|
142
|
+
if (packageName) {
|
|
143
|
+
return !['antd', 'bizcharts', 'gg-editor', 'g6', '@antv', 'l7', 'gg-editor-core', 'bizcharts-plugin-slider', 'braft-editor', 'classnames', 'lodash', 'numeral'].includes(packageName);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
return false;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
};
|
|
154
|
+
/**
|
|
155
|
+
* 占位函数
|
|
156
|
+
*
|
|
157
|
+
* @export
|
|
158
|
+
* @returns
|
|
159
|
+
*/
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
exports.webpackPlugin5 = webpackPlugin5;
|
|
163
|
+
|
|
164
|
+
function empty() {
|
|
165
|
+
return {};
|
|
166
|
+
}
|
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports
|
|
8
|
+
exports.default = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = require("react");
|
|
11
11
|
|
|
@@ -75,4 +75,4 @@ var UIPoiPicker = /*#__PURE__*/function (_PureComponent) {
|
|
|
75
75
|
}(_react.PureComponent);
|
|
76
76
|
|
|
77
77
|
var _default = UIPoiPicker;
|
|
78
|
-
exports
|
|
78
|
+
exports.default = _default;
|
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports
|
|
8
|
+
exports.default = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = require("react");
|
|
11
11
|
|
|
@@ -84,4 +84,4 @@ var UIPositionPicker = /*#__PURE__*/function (_PureComponent) {
|
|
|
84
84
|
}(_react.PureComponent);
|
|
85
85
|
|
|
86
86
|
var _default = UIPositionPicker;
|
|
87
|
-
exports
|
|
87
|
+
exports.default = _default;
|
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports
|
|
8
|
+
exports.default = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
@@ -15,11 +15,11 @@ var _NumberInfo = _interopRequireDefault(require("../NumberInfo"));
|
|
|
15
15
|
|
|
16
16
|
var _index = _interopRequireDefault(require("./index.less"));
|
|
17
17
|
|
|
18
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
19
|
|
|
20
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
21
|
|
|
22
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return {
|
|
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
23
|
|
|
24
24
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
25
25
|
|
|
@@ -120,16 +120,16 @@ var ActiveChart = /*#__PURE__*/function (_Component) {
|
|
|
120
120
|
value: function render() {
|
|
121
121
|
var _this$state$activeDat = this.state.activeData,
|
|
122
122
|
activeData = _this$state$activeDat === void 0 ? [] : _this$state$activeDat;
|
|
123
|
-
return /*#__PURE__*/_react
|
|
124
|
-
className: _index
|
|
125
|
-
}, /*#__PURE__*/_react
|
|
123
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
124
|
+
className: _index.default.activeChart
|
|
125
|
+
}, /*#__PURE__*/_react.default.createElement(_NumberInfo.default, {
|
|
126
126
|
subTitle: "\u76EE\u6807\u8BC4\u4F30",
|
|
127
127
|
total: "\u6709\u671B\u8FBE\u5230\u9884\u671F"
|
|
128
|
-
}), /*#__PURE__*/_react
|
|
128
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
129
129
|
style: {
|
|
130
130
|
marginTop: 32
|
|
131
131
|
}
|
|
132
|
-
}, /*#__PURE__*/_react
|
|
132
|
+
}, /*#__PURE__*/_react.default.createElement(_Charts.MiniArea, {
|
|
133
133
|
animate: false,
|
|
134
134
|
line: true,
|
|
135
135
|
borderWidth: 2,
|
|
@@ -146,23 +146,23 @@ var ActiveChart = /*#__PURE__*/function (_Component) {
|
|
|
146
146
|
line: false
|
|
147
147
|
},
|
|
148
148
|
data: activeData
|
|
149
|
-
})), activeData && /*#__PURE__*/_react
|
|
150
|
-
className: _index
|
|
151
|
-
}, /*#__PURE__*/_react
|
|
152
|
-
className: _index
|
|
153
|
-
}, /*#__PURE__*/_react
|
|
154
|
-
className: _index
|
|
155
|
-
})), /*#__PURE__*/_react
|
|
156
|
-
className: _index
|
|
157
|
-
}, /*#__PURE__*/_react
|
|
158
|
-
className: _index
|
|
159
|
-
}))), activeData && /*#__PURE__*/_react
|
|
160
|
-
className: _index
|
|
161
|
-
}, /*#__PURE__*/_react
|
|
149
|
+
})), activeData && /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
|
|
150
|
+
className: _index.default.activeChartGrid
|
|
151
|
+
}, /*#__PURE__*/_react.default.createElement("p", null, _toConsumableArray(activeData).sort()[activeData.length - 1].y + 200, " \u4EBF\u5143"), /*#__PURE__*/_react.default.createElement("p", null, _toConsumableArray(activeData).sort()[Math.floor(activeData.length / 2)].y, ' ', "\u4EBF\u5143")), /*#__PURE__*/_react.default.createElement("div", {
|
|
152
|
+
className: _index.default.dashedLine
|
|
153
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
154
|
+
className: _index.default.line
|
|
155
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
156
|
+
className: _index.default.dashedLine
|
|
157
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
158
|
+
className: _index.default.line
|
|
159
|
+
}))), activeData && /*#__PURE__*/_react.default.createElement("div", {
|
|
160
|
+
className: _index.default.activeChartLegend
|
|
161
|
+
}, /*#__PURE__*/_react.default.createElement("span", null, "00:00"), /*#__PURE__*/_react.default.createElement("span", null, activeData[Math.floor(activeData.length / 2)].x), /*#__PURE__*/_react.default.createElement("span", null, activeData[activeData.length - 1].x)));
|
|
162
162
|
}
|
|
163
163
|
}]);
|
|
164
164
|
|
|
165
165
|
return ActiveChart;
|
|
166
166
|
}(_react.Component);
|
|
167
167
|
|
|
168
|
-
exports
|
|
168
|
+
exports.default = ActiveChart;
|
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports
|
|
8
|
+
exports.default = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
@@ -13,11 +13,11 @@ var _rcAnimate = _interopRequireDefault(require("rc-animate"));
|
|
|
13
13
|
|
|
14
14
|
var _index = _interopRequireDefault(require("./index.less"));
|
|
15
15
|
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
17
|
|
|
18
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
19
|
|
|
20
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return {
|
|
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
21
|
|
|
22
22
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
23
23
|
|
|
@@ -58,13 +58,13 @@ var FadeBox = /*#__PURE__*/function (_PureComponent) {
|
|
|
58
58
|
bodyStyle = _this$props.bodyStyle,
|
|
59
59
|
show = _this$props.show,
|
|
60
60
|
children = _this$props.children;
|
|
61
|
-
return /*#__PURE__*/_react
|
|
62
|
-
className: _index
|
|
61
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
62
|
+
className: _index.default.fadeBox,
|
|
63
63
|
style: style || null
|
|
64
|
-
}, /*#__PURE__*/_react
|
|
64
|
+
}, /*#__PURE__*/_react.default.createElement(_rcAnimate.default, {
|
|
65
65
|
transitionName: "fade",
|
|
66
66
|
transitionAppear: true
|
|
67
|
-
}, show ? /*#__PURE__*/_react
|
|
67
|
+
}, show ? /*#__PURE__*/_react.default.createElement("div", {
|
|
68
68
|
style: bodyStyle || null
|
|
69
69
|
}, children) : null));
|
|
70
70
|
}
|
|
@@ -79,4 +79,4 @@ FadeBox.defaultProps = {
|
|
|
79
79
|
bodyStyle: null
|
|
80
80
|
};
|
|
81
81
|
var _default = FadeBox;
|
|
82
|
-
exports
|
|
82
|
+
exports.default = _default;
|
|
@@ -5,17 +5,17 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports
|
|
8
|
+
exports.default = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
12
|
var _QueueListBox = _interopRequireDefault(require("../QueueListBox"));
|
|
13
13
|
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
|
|
16
16
|
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); }
|
|
17
17
|
|
|
18
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return {
|
|
18
|
+
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; }
|
|
19
19
|
|
|
20
20
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
21
21
|
|
|
@@ -54,7 +54,7 @@ var QueueBox = /*#__PURE__*/function (_PureComponent) {
|
|
|
54
54
|
var _this$props = this.props,
|
|
55
55
|
show = _this$props.show,
|
|
56
56
|
children = _this$props.children;
|
|
57
|
-
return /*#__PURE__*/_react
|
|
57
|
+
return /*#__PURE__*/_react.default.createElement(_QueueListBox.default, {
|
|
58
58
|
show: show,
|
|
59
59
|
items: [{
|
|
60
60
|
hidden: (children || null) == null,
|
|
@@ -73,4 +73,4 @@ QueueBox.defaultProps = {
|
|
|
73
73
|
show: true
|
|
74
74
|
};
|
|
75
75
|
var _default = QueueBox;
|
|
76
|
-
exports
|
|
76
|
+
exports.default = _default;
|