@zgfe/modules-dm 1.0.4 → 1.0.5
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.
|
@@ -10,9 +10,9 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
10
10
|
|
|
11
11
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
12
12
|
|
|
13
|
-
import { IconFont } from '@zgfe/business-lib';
|
|
13
|
+
import { BizGlobalDataContext, IconFont } from '@zgfe/business-lib';
|
|
14
14
|
import { Tabs, Popover } from 'antd';
|
|
15
|
-
import React, { useState, useEffect } from 'react';
|
|
15
|
+
import React, { useState, useContext, useEffect } from 'react';
|
|
16
16
|
import './styles/index.less';
|
|
17
17
|
import { DmContext, upDatedDmFun } from '../../store';
|
|
18
18
|
import { ActionType } from '../../store/action';
|
|
@@ -20,6 +20,9 @@ import PlanList from '../dataPlan';
|
|
|
20
20
|
import DataCollection from '../dataCollection';
|
|
21
21
|
|
|
22
22
|
var DataManage = function DataManage(props) {
|
|
23
|
+
var _useContext = useContext(BizGlobalDataContext),
|
|
24
|
+
isDemo = _useContext.isDemo;
|
|
25
|
+
|
|
23
26
|
var classPrefix = 'data-manage';
|
|
24
27
|
var updateEventMetas = props.updateEventMetas;
|
|
25
28
|
|
|
@@ -49,6 +52,7 @@ var DataManage = function DataManage(props) {
|
|
|
49
52
|
collapsed = _useState4[0],
|
|
50
53
|
setCollapsed = _useState4[1];
|
|
51
54
|
|
|
55
|
+
console.log('isDemo', isDemo);
|
|
52
56
|
return /*#__PURE__*/React.createElement(DmContext.Provider, {
|
|
53
57
|
value: {
|
|
54
58
|
state: state,
|
|
@@ -59,7 +63,7 @@ var DataManage = function DataManage(props) {
|
|
|
59
63
|
}, /*#__PURE__*/React.createElement("div", {
|
|
60
64
|
className: "tabs-box ".concat(collapsed && 'tabs-collapsed')
|
|
61
65
|
}, /*#__PURE__*/React.createElement(Tabs, {
|
|
62
|
-
className: "tabs",
|
|
66
|
+
className: "tabs ".concat(isDemo && 'tabs-demo'),
|
|
63
67
|
defaultActiveKey: "0",
|
|
64
68
|
tabPosition: "left",
|
|
65
69
|
onChange: tabsChange
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-dm",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"module": "es/index.js",
|
|
5
5
|
"typings": "es/index.d.ts",
|
|
6
6
|
"license": "ISC",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"umi-request": "^1.4.0",
|
|
54
54
|
"yorkie": "^2.0.0"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "76cd44a41ee350fbc765c0aa5217fc8c3e010ebe",
|
|
57
57
|
"gitHooks": {
|
|
58
58
|
"pre-commit": "lint-staged"
|
|
59
59
|
}
|