@zgfe/modules-page 1.0.1-alpha.21 → 1.0.1-alpha.23
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/dist/esm/components/detail/index.js +1 -2
- package/dist/esm/components/detail/index.less +3 -3
- package/dist/esm/components/groupModal/index.less +2 -0
- package/dist/esm/components/topContent/index.js +1 -1
- package/dist/esm/modules/home/demo/index.js +42 -7
- package/dist/esm/modules/home/index.js +1 -0
- package/dist/esm/modules/home/style/index.less +6 -0
- package/dist/esm/modules/home/types.d.ts +1 -1
- package/package.json +3 -3
|
@@ -159,8 +159,7 @@ var DetailContent = function DetailContent(props) {
|
|
|
159
159
|
}, (_props$params2 = props.params) !== null && _props$params2 !== void 0 && _props$params2.userGroup && ((_props$params$userGro = props.params.userGroup) === null || _props$params$userGro === void 0 ? void 0 : _props$params$userGro.length) > 1 ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, "\u7528\u6237\u7FA4\uFF1A"), /*#__PURE__*/React.createElement("span", null, item.userGroup)) : null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, "\u6D4F\u89C8\uFF1A"), /*#__PURE__*/React.createElement("span", null, toThousands(item.viewTimes), "\u6B21"), /*#__PURE__*/React.createElement("span", null, toThousands(item.viewUser), "\u4EBA")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, "\u9875\u9762\u5185\u70B9\u51FB\uFF1A"), /*#__PURE__*/React.createElement("span", null, toThousands(item.clickTimes), "\u6B21"), /*#__PURE__*/React.createElement("span", null, toThousands(item.clickUser), "\u4EBA")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, "\u70B9\u51FB\u4EBA\u6570\u5360\u6BD4\uFF1A"), /*#__PURE__*/React.createElement("span", null, getNumPer(item.viewUser, item.clickUser)), /*#__PURE__*/React.createElement(Tooltip, {
|
|
160
160
|
title: "\u70B9\u51FB\u4EBA\u6570\u5360\u6BD4\uFF1D\u9875\u9762\u5185\u70B9\u51FB\u4EBA\u6570\uFF0F\u9875\u9762\u6D4F\u89C8\u4EBA\u6570"
|
|
161
161
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
162
|
-
type: "tishi"
|
|
163
|
-
className: "".concat(classPrefix, "-tip")
|
|
162
|
+
type: "tishi"
|
|
164
163
|
}))));
|
|
165
164
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
166
165
|
className: "".concat(classPrefix, "-content")
|
|
@@ -5,9 +5,6 @@
|
|
|
5
5
|
border: 1px solid #ecedf0;
|
|
6
6
|
border-radius: 8px;
|
|
7
7
|
|
|
8
|
-
&-tip:hover {
|
|
9
|
-
color: @primary-color;
|
|
10
|
-
}
|
|
11
8
|
&-top {
|
|
12
9
|
display: flex;
|
|
13
10
|
align-items: flex-start;
|
|
@@ -47,6 +44,9 @@
|
|
|
47
44
|
color: #9aa1a9;
|
|
48
45
|
font-size: 16px !important;
|
|
49
46
|
cursor: pointer;
|
|
47
|
+
&:hover {
|
|
48
|
+
color: @primary-color;
|
|
49
|
+
}
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -23,7 +23,7 @@ var TopContent = function TopContent(props) {
|
|
|
23
23
|
end: moment().subtract(0, 'days').format('YYYY-MM-DD')
|
|
24
24
|
};
|
|
25
25
|
setTime(props.value || initValue);
|
|
26
|
-
}, []);
|
|
26
|
+
}, [props.value]);
|
|
27
27
|
useEffect(function () {
|
|
28
28
|
if (!time) return;
|
|
29
29
|
props.onChange && props.onChange(time);
|
|
@@ -2,17 +2,52 @@ import React from 'react';
|
|
|
2
2
|
import { ModulesPage } from '@zgfe/modules-page';
|
|
3
3
|
import { DemoWrapper } from '@zgfe/business-lib';
|
|
4
4
|
var defaultValue = {
|
|
5
|
+
pageTitle: '进入百度首页894854121612',
|
|
5
6
|
appId: 225,
|
|
6
|
-
platform: 3,
|
|
7
7
|
module: 'page',
|
|
8
|
+
pageUrl: 'http://baidu.com/query/894854121612',
|
|
8
9
|
time: {
|
|
9
|
-
|
|
10
|
-
end: '2023-09-
|
|
11
|
-
|
|
10
|
+
unit: 'day',
|
|
11
|
+
end: '2023-09-14',
|
|
12
|
+
begin: '2023-08-31',
|
|
13
|
+
relative: [14, 0]
|
|
12
14
|
},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
filters: {
|
|
16
|
+
conditions: [{
|
|
17
|
+
attrId: 0,
|
|
18
|
+
propCategory: 'userProp',
|
|
19
|
+
values: ['实名'],
|
|
20
|
+
dimensionSub: 'is_anonymous',
|
|
21
|
+
label: '实名/匿名',
|
|
22
|
+
type: 1,
|
|
23
|
+
category: 'fixed',
|
|
24
|
+
operator: 'equal',
|
|
25
|
+
attrName: 'is_anonymous'
|
|
26
|
+
}, {
|
|
27
|
+
attrId: 0,
|
|
28
|
+
propCategory: 'userProp',
|
|
29
|
+
values: ['30', '1'],
|
|
30
|
+
dimensionSub: 'last_visit_time',
|
|
31
|
+
label: '最后一次访问时间',
|
|
32
|
+
type: 3,
|
|
33
|
+
category: 'fixed',
|
|
34
|
+
operator: 'relative',
|
|
35
|
+
attrName: 'last_visit_time'
|
|
36
|
+
}, {
|
|
37
|
+
attrId: 0,
|
|
38
|
+
propCategory: 'envProp',
|
|
39
|
+
type: 1,
|
|
40
|
+
operator: 'equal',
|
|
41
|
+
values: ['baidu'],
|
|
42
|
+
dimensionSub: 'website',
|
|
43
|
+
label: '来源域名',
|
|
44
|
+
attrName: 'website',
|
|
45
|
+
category: 'fixed'
|
|
46
|
+
}],
|
|
47
|
+
relation: 'and'
|
|
48
|
+
},
|
|
49
|
+
userGroup: [758, 757],
|
|
50
|
+
platform: 3
|
|
16
51
|
};
|
|
17
52
|
export default (function () {
|
|
18
53
|
var onClickWarn = function onClickWarn() {
|
|
@@ -220,6 +220,7 @@ var ModulesPage = function ModulesPage(props) {
|
|
|
220
220
|
setCurrentClickPage: setCurrentClickPage
|
|
221
221
|
}
|
|
222
222
|
}, /*#__PURE__*/React.createElement(BizLayout, {
|
|
223
|
+
className: classPrefix,
|
|
223
224
|
title: "\u9875\u9762\u5206\u6790",
|
|
224
225
|
hasCollapse: true,
|
|
225
226
|
topPanel: /*#__PURE__*/React.createElement(Skeleton, {
|
|
@@ -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,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-page",
|
|
3
|
-
"version": "1.0.1-alpha.
|
|
3
|
+
"version": "1.0.1-alpha.23",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "dumi dev",
|
|
6
6
|
"docs:build": "dumi build",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@types/lodash": "^4.14.197",
|
|
40
40
|
"@umijs/fabric": "^2.8.1",
|
|
41
41
|
"@umijs/test": "^3.0.5",
|
|
42
|
-
"@zgfe/business-lib": "1.1.81-page.
|
|
42
|
+
"@zgfe/business-lib": "1.1.81-page.17",
|
|
43
43
|
"antd": "^4.22.6",
|
|
44
44
|
"dumi": "^1.1.0",
|
|
45
45
|
"father": "^4.0.0-rc.2",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"prettier": "^2.2.1",
|
|
51
51
|
"yorkie": "^2.0.0"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "130d8c35db4e8636b4074b23313e9f330f2c3d77"
|
|
54
54
|
}
|