@zgfe/modules-page 1.0.8-lijingyu1538.1 → 1.0.17-zhongyuan.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -35
- package/dist/esm/components/content/index.less +116 -116
- package/dist/esm/components/content/utils.js +15 -9
- package/dist/esm/components/detail/index.js +2 -2
- package/dist/esm/components/detail/index.less +80 -80
- package/dist/esm/components/groupModal/index.js +1 -1
- package/dist/esm/components/groupModal/index.less +198 -198
- package/dist/esm/components/pageSelect/index.js +71 -4
- package/dist/esm/components/pageSelect/index.less +109 -57
- package/dist/esm/components/searchPanel/index.js +5 -5
- package/dist/esm/components/searchPanel/index.less +33 -33
- package/dist/esm/components/searchPanel/util.js +4 -4
- package/dist/esm/components/topContent/index.d.ts +1 -1
- package/dist/esm/components/topContent/index.js +5 -5
- package/dist/esm/components/topContent/index.less +10 -10
- package/dist/esm/modules/empty/index.less +95 -95
- package/dist/esm/modules/home/demo/index.js +54 -50
- package/dist/esm/modules/home/index.js +28 -5
- package/dist/esm/modules/home/style/index.less +59 -45
- package/dist/esm/modules/home/types.d.ts +1 -1
- package/package.json +10 -3
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
@import '~@zgfe/business-lib/es/assets/styles/inner.less';
|
|
2
|
-
|
|
3
|
-
.page-search-panel {
|
|
4
|
-
&-title.ant-form-item {
|
|
5
|
-
margin-bottom: 8px;
|
|
6
|
-
padding-left: 24px;
|
|
7
|
-
color: @text-color-secondary;
|
|
8
|
-
font-weight: 500;
|
|
9
|
-
.ant-form-item-control-input {
|
|
10
|
-
min-height: 20px;
|
|
11
|
-
.ant-form-item-control-input-content {
|
|
12
|
-
height: 20px;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&-item3.ant-form-item:not(.page-search-panel-hidden) {
|
|
18
|
-
margin-bottom: 20px;
|
|
19
|
-
}
|
|
20
|
-
&-item1.ant-form-item {
|
|
21
|
-
margin-bottom: 20px !important;
|
|
22
|
-
}
|
|
23
|
-
&-item2.ant-form-item {
|
|
24
|
-
margin-bottom: 4px !important;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&-hidden.ant-form-item {
|
|
28
|
-
margin-bottom: 16px;
|
|
29
|
-
.ant-form-item-control-input {
|
|
30
|
-
min-height: 0;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
1
|
+
@import '~@zgfe/business-lib/es/assets/styles/inner.less';
|
|
2
|
+
|
|
3
|
+
.page-search-panel {
|
|
4
|
+
&-title.ant-form-item {
|
|
5
|
+
margin-bottom: 8px;
|
|
6
|
+
padding-left: 24px;
|
|
7
|
+
color: @text-color-secondary;
|
|
8
|
+
font-weight: 500;
|
|
9
|
+
.ant-form-item-control-input {
|
|
10
|
+
min-height: 20px;
|
|
11
|
+
.ant-form-item-control-input-content {
|
|
12
|
+
height: 20px;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&-item3.ant-form-item:not(.page-search-panel-hidden) {
|
|
18
|
+
margin-bottom: 20px;
|
|
19
|
+
}
|
|
20
|
+
&-item1.ant-form-item {
|
|
21
|
+
margin-bottom: 20px !important;
|
|
22
|
+
}
|
|
23
|
+
&-item2.ant-form-item {
|
|
24
|
+
margin-bottom: 4px !important;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&-hidden.ant-form-item {
|
|
28
|
+
margin-bottom: 16px;
|
|
29
|
+
.ant-form-item-control-input {
|
|
30
|
+
min-height: 0;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -28,10 +28,10 @@ export var formatValue = function formatValue(source) {
|
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
-
/**
|
|
32
|
-
* 筛选条件当未选择值时,不查询
|
|
33
|
-
* @param filters 筛选条件数组
|
|
34
|
-
* @returns
|
|
31
|
+
/**
|
|
32
|
+
* 筛选条件当未选择值时,不查询
|
|
33
|
+
* @param filters 筛选条件数组
|
|
34
|
+
* @returns
|
|
35
35
|
*/
|
|
36
36
|
function getConditionList(filters) {
|
|
37
37
|
if (!filters || !filters.conditions) return;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './index.less';
|
|
3
|
-
import { DatePickerTypes } from '@zgfe/business-lib/es/
|
|
3
|
+
import { DatePickerTypes } from '@zgfe/business-lib/es/datePickerV2/types';
|
|
4
4
|
declare const TopContent: React.FC<{
|
|
5
5
|
value?: DatePickerTypes.Value;
|
|
6
6
|
type?: string;
|
|
@@ -6,9 +6,9 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import React, { useEffect, useState, useContext } from 'react';
|
|
8
8
|
import "./index.less";
|
|
9
|
-
import {
|
|
9
|
+
import { IconFont, BizGlobalDataContext, BizDatePickerV2 } from '@zgfe/business-lib';
|
|
10
10
|
import { Button } from 'antd';
|
|
11
|
-
import { DatePickerTypes } from '@zgfe/business-lib/es/
|
|
11
|
+
import { DatePickerTypes } from '@zgfe/business-lib/es/datePickerV2/types';
|
|
12
12
|
import moment from 'moment';
|
|
13
13
|
var TopContent = function TopContent(props) {
|
|
14
14
|
var _useState = useState(),
|
|
@@ -32,10 +32,10 @@ var TopContent = function TopContent(props) {
|
|
|
32
32
|
}, [time]);
|
|
33
33
|
return /*#__PURE__*/React.createElement("div", {
|
|
34
34
|
className: "top-content"
|
|
35
|
-
}, /*#__PURE__*/React.createElement(
|
|
36
|
-
value: time,
|
|
37
|
-
mode: "simple",
|
|
35
|
+
}, /*#__PURE__*/React.createElement(BizDatePickerV2, {
|
|
38
36
|
includeToday: true,
|
|
37
|
+
dateTypeList: [DatePickerTypes.Unit.day],
|
|
38
|
+
value: time,
|
|
39
39
|
onChange: setTime
|
|
40
40
|
}), props.hidden ? null : props.type === 'pageGroup' ? /*#__PURE__*/React.createElement(Button, {
|
|
41
41
|
type: "primary",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
.top-content {
|
|
2
|
-
display: flex;
|
|
3
|
-
justify-content: space-between;
|
|
4
|
-
font-size: 14px;
|
|
5
|
-
.ant-btn {
|
|
6
|
-
.bsicon {
|
|
7
|
-
margin-right: 8px;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
1
|
+
.top-content {
|
|
2
|
+
display: flex;
|
|
3
|
+
justify-content: space-between;
|
|
4
|
+
font-size: 14px;
|
|
5
|
+
.ant-btn {
|
|
6
|
+
.bsicon {
|
|
7
|
+
margin-right: 8px;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -1,95 +1,95 @@
|
|
|
1
|
-
.empty-panel {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
justify-content: space-between;
|
|
5
|
-
width: 100%;
|
|
6
|
-
min-width: 850px;
|
|
7
|
-
height: 100%;
|
|
8
|
-
overflow: auto;
|
|
9
|
-
background: url(./img/bg.png);
|
|
10
|
-
background-size: cover;
|
|
11
|
-
&-content {
|
|
12
|
-
width: 406px;
|
|
13
|
-
margin-left: 136px;
|
|
14
|
-
p {
|
|
15
|
-
color: #9aa1a9;
|
|
16
|
-
font-size: 14px;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
&-content2 {
|
|
20
|
-
width: 400px;
|
|
21
|
-
p {
|
|
22
|
-
margin-bottom: 0;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
&-title {
|
|
26
|
-
margin-bottom: 24px;
|
|
27
|
-
font-weight: 500;
|
|
28
|
-
font-size: 28px;
|
|
29
|
-
}
|
|
30
|
-
&-title-secondary {
|
|
31
|
-
margin-top: 24px;
|
|
32
|
-
margin-bottom: 8px;
|
|
33
|
-
font-weight: 500;
|
|
34
|
-
font-size: 16px;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&-code-container {
|
|
38
|
-
position: relative;
|
|
39
|
-
height: 200px;
|
|
40
|
-
margin: 8px 0;
|
|
41
|
-
padding: 16px;
|
|
42
|
-
background: #fafafb;
|
|
43
|
-
border-radius: 8px;
|
|
44
|
-
&:hover {
|
|
45
|
-
.empty-panel-code-copy {
|
|
46
|
-
display: flex;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
& > div:not(.empty-panel-code-copy) {
|
|
51
|
-
color: #354354;
|
|
52
|
-
font-size: 14px;
|
|
53
|
-
line-height: 22px;
|
|
54
|
-
word-wrap: break-word;
|
|
55
|
-
span {
|
|
56
|
-
margin-left: 8px;
|
|
57
|
-
color: #9aa1a9;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
&-code {
|
|
62
|
-
margin-left: 16px;
|
|
63
|
-
}
|
|
64
|
-
&-code-copy {
|
|
65
|
-
position: absolute;
|
|
66
|
-
top: 16px;
|
|
67
|
-
right: 16px;
|
|
68
|
-
display: flex;
|
|
69
|
-
display: none;
|
|
70
|
-
align-items: center;
|
|
71
|
-
height: 24px;
|
|
72
|
-
padding: 0 8px;
|
|
73
|
-
background: #f2f3f4;
|
|
74
|
-
border-radius: 4px;
|
|
75
|
-
cursor: pointer;
|
|
76
|
-
&:hover {
|
|
77
|
-
background: #e6e7ea;
|
|
78
|
-
}
|
|
79
|
-
&:focus {
|
|
80
|
-
background-color: #ccd0d4;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
span {
|
|
84
|
-
margin-right: 8px;
|
|
85
|
-
margin-left: 0 !important;
|
|
86
|
-
font-size: 16px !important;
|
|
87
|
-
line-height: 1;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
&-img {
|
|
92
|
-
height: 100%;
|
|
93
|
-
// max-width: 50%;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
1
|
+
.empty-panel {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: space-between;
|
|
5
|
+
width: 100%;
|
|
6
|
+
min-width: 850px;
|
|
7
|
+
height: 100%;
|
|
8
|
+
overflow: auto;
|
|
9
|
+
background: url(./img/bg.png);
|
|
10
|
+
background-size: cover;
|
|
11
|
+
&-content {
|
|
12
|
+
width: 406px;
|
|
13
|
+
margin-left: 136px;
|
|
14
|
+
p {
|
|
15
|
+
color: #9aa1a9;
|
|
16
|
+
font-size: 14px;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
&-content2 {
|
|
20
|
+
width: 400px;
|
|
21
|
+
p {
|
|
22
|
+
margin-bottom: 0;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
&-title {
|
|
26
|
+
margin-bottom: 24px;
|
|
27
|
+
font-weight: 500;
|
|
28
|
+
font-size: 28px;
|
|
29
|
+
}
|
|
30
|
+
&-title-secondary {
|
|
31
|
+
margin-top: 24px;
|
|
32
|
+
margin-bottom: 8px;
|
|
33
|
+
font-weight: 500;
|
|
34
|
+
font-size: 16px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&-code-container {
|
|
38
|
+
position: relative;
|
|
39
|
+
height: 200px;
|
|
40
|
+
margin: 8px 0;
|
|
41
|
+
padding: 16px;
|
|
42
|
+
background: #fafafb;
|
|
43
|
+
border-radius: 8px;
|
|
44
|
+
&:hover {
|
|
45
|
+
.empty-panel-code-copy {
|
|
46
|
+
display: flex;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
& > div:not(.empty-panel-code-copy) {
|
|
51
|
+
color: #354354;
|
|
52
|
+
font-size: 14px;
|
|
53
|
+
line-height: 22px;
|
|
54
|
+
word-wrap: break-word;
|
|
55
|
+
span {
|
|
56
|
+
margin-left: 8px;
|
|
57
|
+
color: #9aa1a9;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
&-code {
|
|
62
|
+
margin-left: 16px;
|
|
63
|
+
}
|
|
64
|
+
&-code-copy {
|
|
65
|
+
position: absolute;
|
|
66
|
+
top: 16px;
|
|
67
|
+
right: 16px;
|
|
68
|
+
display: flex;
|
|
69
|
+
display: none;
|
|
70
|
+
align-items: center;
|
|
71
|
+
height: 24px;
|
|
72
|
+
padding: 0 8px;
|
|
73
|
+
background: #f2f3f4;
|
|
74
|
+
border-radius: 4px;
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
&:hover {
|
|
77
|
+
background: #e6e7ea;
|
|
78
|
+
}
|
|
79
|
+
&:focus {
|
|
80
|
+
background-color: #ccd0d4;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
span {
|
|
84
|
+
margin-right: 8px;
|
|
85
|
+
margin-left: 0 !important;
|
|
86
|
+
font-size: 16px !important;
|
|
87
|
+
line-height: 1;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&-img {
|
|
92
|
+
height: 100%;
|
|
93
|
+
// max-width: 50%;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -1,54 +1,59 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ModulesPage } from '@zgfe/modules-page';
|
|
3
3
|
import { DemoWrapper } from '@zgfe/business-lib';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
4
|
+
// const defaultValue = {
|
|
5
|
+
// pageTitle: '进入百度首页894854121612',
|
|
6
|
+
// appId: 225,
|
|
7
|
+
// module: 'page',
|
|
8
|
+
// pageUrl: 'http://baidu.com/query/894854121612',
|
|
9
|
+
// time: {
|
|
10
|
+
// unit: 'day',
|
|
11
|
+
// end: '2023-09-14',
|
|
12
|
+
// begin: '2023-08-31',
|
|
13
|
+
// relative: [14, 0],
|
|
14
|
+
// },
|
|
15
|
+
// filters: {
|
|
16
|
+
// conditions: [
|
|
17
|
+
// {
|
|
18
|
+
// attrId: 0,
|
|
19
|
+
// propCategory: 'userProp',
|
|
20
|
+
// values: ['实名'],
|
|
21
|
+
// dimensionSub: 'is_anonymous',
|
|
22
|
+
// label: '实名/匿名',
|
|
23
|
+
// type: 1,
|
|
24
|
+
// category: 'fixed',
|
|
25
|
+
// operator: 'equal',
|
|
26
|
+
// attrName: 'is_anonymous',
|
|
27
|
+
// },
|
|
28
|
+
// {
|
|
29
|
+
// attrId: 0,
|
|
30
|
+
// propCategory: 'userProp',
|
|
31
|
+
// values: ['30', '1'],
|
|
32
|
+
// dimensionSub: 'last_visit_time',
|
|
33
|
+
// label: '最后一次访问时间',
|
|
34
|
+
// type: 3,
|
|
35
|
+
// category: 'fixed',
|
|
36
|
+
// operator: 'relative',
|
|
37
|
+
// attrName: 'last_visit_time',
|
|
38
|
+
// },
|
|
39
|
+
// {
|
|
40
|
+
// attrId: 0,
|
|
41
|
+
// propCategory: 'envProp',
|
|
42
|
+
// type: 1,
|
|
43
|
+
// operator: 'equal',
|
|
44
|
+
// values: ['baidu'],
|
|
45
|
+
// dimensionSub: 'website',
|
|
46
|
+
// label: '来源域名',
|
|
47
|
+
// attrName: 'website',
|
|
48
|
+
// category: 'fixed',
|
|
49
|
+
// },
|
|
50
|
+
// ],
|
|
51
|
+
// relation: 'and',
|
|
52
|
+
// },
|
|
53
|
+
// userGroup: [758, 757],
|
|
54
|
+
// platform: 3,
|
|
55
|
+
// };
|
|
56
|
+
|
|
52
57
|
export default (function () {
|
|
53
58
|
var onClickWarn = function onClickWarn() {
|
|
54
59
|
console.log('onClickWarn');
|
|
@@ -58,14 +63,13 @@ export default (function () {
|
|
|
58
63
|
};
|
|
59
64
|
return /*#__PURE__*/React.createElement(DemoWrapper, {
|
|
60
65
|
needMeta: true,
|
|
61
|
-
defaultApp:
|
|
66
|
+
defaultApp: 2
|
|
62
67
|
}, /*#__PURE__*/React.createElement("div", {
|
|
63
68
|
style: {
|
|
64
69
|
height: 750,
|
|
65
70
|
overflow: 'auto'
|
|
66
71
|
}
|
|
67
72
|
}, /*#__PURE__*/React.createElement(ModulesPage, {
|
|
68
|
-
value: defaultValue,
|
|
69
73
|
onClickWarn: onClickWarn,
|
|
70
74
|
onChange: onChange
|
|
71
75
|
})));
|
|
@@ -98,7 +98,9 @@ var ModulesPage = function ModulesPage(props) {
|
|
|
98
98
|
var _useContext = useContext(BizGlobalDataContext),
|
|
99
99
|
eventGroupList = _useContext.eventGroupList,
|
|
100
100
|
currentApp = _useContext.currentApp,
|
|
101
|
-
authority = _useContext.authority
|
|
101
|
+
authority = _useContext.authority,
|
|
102
|
+
router = _useContext.router,
|
|
103
|
+
routes = _useContext.routes;
|
|
102
104
|
// 是否是没进行埋点分析
|
|
103
105
|
var isEmpty = useMemo(function () {
|
|
104
106
|
var flag = true;
|
|
@@ -211,13 +213,33 @@ var ModulesPage = function ModulesPage(props) {
|
|
|
211
213
|
setEditGroup(data);
|
|
212
214
|
setShowGroup(true);
|
|
213
215
|
};
|
|
216
|
+
// app页面分析
|
|
217
|
+
var handleAppPageAnalysis = function handleAppPageAnalysis() {
|
|
218
|
+
router === null || router === void 0 || router.push({
|
|
219
|
+
name: "".concat(routes.appAnalyseVisual, "/2"),
|
|
220
|
+
query: {
|
|
221
|
+
// tab: key,
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
};
|
|
214
225
|
var render = /*#__PURE__*/React.createElement("div", {
|
|
215
226
|
className: "".concat(classPrefix, "-top-render")
|
|
216
|
-
}, /*#__PURE__*/React.createElement(
|
|
227
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
228
|
+
className: "".concat(classPrefix, "-top-render-title")
|
|
229
|
+
}, "\u9875\u9762\u5206\u6790"), /*#__PURE__*/React.createElement(Button, {
|
|
217
230
|
type: "primary",
|
|
218
231
|
disabled: loading || !result || !result.length || !authority[100144],
|
|
219
232
|
onClick: props.onClickWarn
|
|
220
233
|
}, "\u8BBE\u7F6E\u6D41\u5931\u9884\u8B66"));
|
|
234
|
+
// 查看App页面分析
|
|
235
|
+
var renderApp = /*#__PURE__*/React.createElement("div", {
|
|
236
|
+
className: "".concat(classPrefix, "-top-render")
|
|
237
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
238
|
+
className: "".concat(classPrefix, "-top-render-title")
|
|
239
|
+
}, "\u9875\u9762\u5206\u6790"), /*#__PURE__*/React.createElement(Button, {
|
|
240
|
+
type: "primary",
|
|
241
|
+
onClick: handleAppPageAnalysis
|
|
242
|
+
}, "App\u9875\u9762\u5206\u6790"));
|
|
221
243
|
if (isEmpty) return /*#__PURE__*/React.createElement(EmptyPanel, null);
|
|
222
244
|
return /*#__PURE__*/React.createElement(ModulesPageContext.Provider, {
|
|
223
245
|
value: {
|
|
@@ -227,8 +249,9 @@ var ModulesPage = function ModulesPage(props) {
|
|
|
227
249
|
setCurrentClickPage: setCurrentClickPage
|
|
228
250
|
}
|
|
229
251
|
}, /*#__PURE__*/React.createElement(BizLayout, {
|
|
230
|
-
className: classPrefix
|
|
231
|
-
title
|
|
252
|
+
className: classPrefix
|
|
253
|
+
// title="页面分析"
|
|
254
|
+
,
|
|
232
255
|
hasCollapse: true,
|
|
233
256
|
topPanel: /*#__PURE__*/React.createElement(Skeleton, {
|
|
234
257
|
loading: pageLoading,
|
|
@@ -241,7 +264,7 @@ var ModulesPage = function ModulesPage(props) {
|
|
|
241
264
|
value: searchValue,
|
|
242
265
|
onChange: onChange
|
|
243
266
|
})),
|
|
244
|
-
topRender: props.onClickWarn ? render :
|
|
267
|
+
topRender: props.onClickWarn ? render : renderApp,
|
|
245
268
|
collapseRef: selectRef
|
|
246
269
|
}, /*#__PURE__*/React.createElement(Spin, {
|
|
247
270
|
spinning: pageLoading
|
|
@@ -1,45 +1,59 @@
|
|
|
1
|
-
.modules-page {
|
|
2
|
-
&-top-render {
|
|
3
|
-
display: flex;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
margin-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
min-height:
|
|
34
|
-
margin-top:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
1
|
+
.modules-page {
|
|
2
|
+
&-top-render {
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: space-between;
|
|
6
|
+
height: 38px;
|
|
7
|
+
margin-top: -8px;
|
|
8
|
+
margin-bottom: 8px;
|
|
9
|
+
line-height: 38px;
|
|
10
|
+
.ant-btn {
|
|
11
|
+
padding: 4px 16px;
|
|
12
|
+
}
|
|
13
|
+
&-title {
|
|
14
|
+
color: var(--io-N-, #021429);
|
|
15
|
+
font-weight: 500;
|
|
16
|
+
font-size: 16px;
|
|
17
|
+
font-family: 'PingFang SC';
|
|
18
|
+
font-style: normal;
|
|
19
|
+
line-height: 20px; /* 125% */
|
|
20
|
+
letter-spacing: 0.016px;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
.ant-btn-primary[disabled] {
|
|
24
|
+
color: #fff;
|
|
25
|
+
background: #d0dfff;
|
|
26
|
+
border-color: #d0dfff;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&-spin {
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
min-height: 400px;
|
|
34
|
+
margin-top: 24px;
|
|
35
|
+
border: 1px solid #ecedf0;
|
|
36
|
+
border-radius: 8px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&-content {
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
width: 100%;
|
|
44
|
+
min-height: 300px;
|
|
45
|
+
margin-top: 60px;
|
|
46
|
+
background-color: #fff;
|
|
47
|
+
}
|
|
48
|
+
.ant-btn {
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
.bsicon {
|
|
52
|
+
font-size: 16px !important;
|
|
53
|
+
line-height: 1;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
.biz-layout-top {
|
|
57
|
+
padding: 16px;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -41,6 +41,6 @@ export declare namespace ModulesPageTypes {
|
|
|
41
41
|
export declare const ModulesPageContext: import("react").Context<{
|
|
42
42
|
pageList: ModulesPageTypes.Page[];
|
|
43
43
|
pageGroupList: ModulesPageTypes.PageGroup[];
|
|
44
|
-
currentClickPage?: ModulesPageTypes.
|
|
44
|
+
currentClickPage?: ModulesPageTypes.PageGroup | ModulesPageTypes.Page | undefined;
|
|
45
45
|
setCurrentClickPage?: ((data: ModulesPageTypes.Page) => void) | undefined;
|
|
46
46
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-page",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17-zhongyuan.3",
|
|
4
|
+
"private": false,
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
4
8
|
"scripts": {
|
|
5
9
|
"start": "dumi dev",
|
|
6
10
|
"docs:build": "dumi build",
|
|
@@ -30,6 +34,8 @@
|
|
|
30
34
|
]
|
|
31
35
|
},
|
|
32
36
|
"dependencies": {
|
|
37
|
+
"echarts": "^5.6.0",
|
|
38
|
+
"echarts-for-react": "^3.0.2",
|
|
33
39
|
"react": "^17.0.0"
|
|
34
40
|
},
|
|
35
41
|
"devDependencies": {
|
|
@@ -39,7 +45,7 @@
|
|
|
39
45
|
"@types/lodash": "^4.14.197",
|
|
40
46
|
"@umijs/fabric": "^2.8.1",
|
|
41
47
|
"@umijs/test": "^3.0.5",
|
|
42
|
-
"@zgfe/business-lib": "1.2.
|
|
48
|
+
"@zgfe/business-lib": "1.2.70-hxd.1",
|
|
43
49
|
"antd": "^4.22.6",
|
|
44
50
|
"dumi": "^1.1.0",
|
|
45
51
|
"father": "^4.0.0-rc.2",
|
|
@@ -48,7 +54,8 @@
|
|
|
48
54
|
"lint-staged": "^10.0.7",
|
|
49
55
|
"lodash": "^4.17.21",
|
|
50
56
|
"prettier": "^2.2.1",
|
|
57
|
+
"rc-virtual-list": "^3.14.2",
|
|
51
58
|
"yorkie": "^2.0.0"
|
|
52
59
|
},
|
|
53
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "ab5b488304d001d07b9f821ce4617452442830e9"
|
|
54
61
|
}
|