@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.
@@ -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
  }
@@ -176,6 +176,8 @@
176
176
  background: #f2f3f4 !important;
177
177
  .bsicon {
178
178
  margin-right: 8px;
179
+ font-size: 16px !important;
180
+ line-height: 1;
179
181
  }
180
182
  &.ant-btn-text:hover {
181
183
  color: #fb5547 !important;
@@ -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
- begin: '2023-09-09',
10
- end: '2023-09-12',
11
- unit: 'day'
10
+ unit: 'day',
11
+ end: '2023-09-14',
12
+ begin: '2023-08-31',
13
+ relative: [14, 0]
12
14
  },
13
- userGroup: [0],
14
- pageTitle: '进入百度首页780300590145',
15
- pageUrl: 'http://baidu.com/query/780300590145'
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, {
@@ -29,4 +29,10 @@
29
29
  margin-top: 60px;
30
30
  background-color: #fff;
31
31
  }
32
+ .ant-btn {
33
+ .bsicon {
34
+ font-size: 16px !important;
35
+ line-height: 1;
36
+ }
37
+ }
32
38
  }
@@ -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.Page | ModulesPageTypes.PageGroup | undefined;
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.21",
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.16",
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": "292b16e7ca3558f9912b9b28a84bc9da0e46d37d"
53
+ "gitHead": "130d8c35db4e8636b4074b23313e9f330f2c3d77"
54
54
  }