@zgfe/business-lib 1.2.53 → 1.2.54-ljy.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/addToPanel/index.js +7 -7
- package/package.json +59 -59
package/es/addToPanel/index.js
CHANGED
|
@@ -27,7 +27,7 @@ import _ from 'lodash';
|
|
|
27
27
|
import WholeChart from './components/wholeChart';
|
|
28
28
|
export var classPrefix = 'biz-addtopanel';
|
|
29
29
|
var BizAddToPanel = function BizAddToPanel(props) {
|
|
30
|
-
var _props$params2, _props$
|
|
30
|
+
var _props$params2, _props$params3, _props$params4;
|
|
31
31
|
var refForm = useRef();
|
|
32
32
|
var _useState = useState(false),
|
|
33
33
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -175,8 +175,8 @@ var BizAddToPanel = function BizAddToPanel(props) {
|
|
|
175
175
|
setLoading(false);
|
|
176
176
|
});
|
|
177
177
|
}
|
|
178
|
-
var showBox = function showBox(type,
|
|
179
|
-
if (
|
|
178
|
+
var showBox = function showBox(type, overall) {
|
|
179
|
+
if (overall) {
|
|
180
180
|
var _props$styleOptions, _props$styleOptions$f, _props$params;
|
|
181
181
|
var options = (_props$styleOptions = props.styleOptions) === null || _props$styleOptions === void 0 ? void 0 : (_props$styleOptions$f = _props$styleOptions.find(function (item) {
|
|
182
182
|
return RegExp(item.value, 'g').test(type);
|
|
@@ -248,8 +248,8 @@ var BizAddToPanel = function BizAddToPanel(props) {
|
|
|
248
248
|
onFinish: onSubmit,
|
|
249
249
|
initialValues: Object.assign(((_props$params2 = props.params) === null || _props$params2 === void 0 ? void 0 : _props$params2.overall) ? {
|
|
250
250
|
showList: 'dynamic',
|
|
251
|
-
chartType: ((_props$
|
|
252
|
-
} : {}, props.defaultValue),
|
|
251
|
+
chartType: ((_props$params3 = props.params) === null || _props$params3 === void 0 ? void 0 : _props$params3.chartType.indexOf('number')) != -1 ? 'number' : (_props$params4 = props.params) === null || _props$params4 === void 0 ? void 0 : _props$params4.chartType
|
|
252
|
+
} : {}, (props === null || props === void 0 ? void 0 : props.defaultValue) || {}),
|
|
253
253
|
requiredMark: false
|
|
254
254
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
255
255
|
label: "\u770B\u677F",
|
|
@@ -317,10 +317,10 @@ var BizAddToPanel = function BizAddToPanel(props) {
|
|
|
317
317
|
noStyle: true,
|
|
318
318
|
shouldUpdate: true
|
|
319
319
|
}, function (_ref) {
|
|
320
|
-
var _props$
|
|
320
|
+
var _props$params5;
|
|
321
321
|
var getFieldValue = _ref.getFieldValue;
|
|
322
322
|
var type = getFieldValue('chartType');
|
|
323
|
-
return showBox(type, (_props$
|
|
323
|
+
return showBox(type, (_props$params5 = props.params) === null || _props$params5 === void 0 ? void 0 : _props$params5.overall);
|
|
324
324
|
})));
|
|
325
325
|
};
|
|
326
326
|
BizAddToPanel.defaultProps = {
|
package/package.json
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
"name": "@zgfe/business-lib",
|
|
3
|
+
"version": "1.2.54-ljy.2",
|
|
4
|
+
"module": "es/index.js",
|
|
5
|
+
"typings": "es/index.d.ts",
|
|
6
|
+
"files": [
|
|
7
|
+
"es",
|
|
8
|
+
"config.js"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "father-build",
|
|
12
|
+
"deploy": "npm run docs:build && npm run docs:deploy",
|
|
13
|
+
"docs:build": "dumi build",
|
|
14
|
+
"docs:deploy": "gh-pages -d docs-dist",
|
|
15
|
+
"prepublishOnly": "npm run build",
|
|
16
|
+
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
|
17
|
+
"pub": "lerna publish",
|
|
18
|
+
"start": "dumi dev",
|
|
19
|
+
"test": "umi-test",
|
|
20
|
+
"test:coverage": "umi-test --coverage"
|
|
21
|
+
},
|
|
22
|
+
"lint-staged": {
|
|
23
|
+
"*.{js,jsx,less,md,json}": [
|
|
24
|
+
"prettier --write"
|
|
9
25
|
],
|
|
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
|
-
"@umijs/fabric": "^2.8.1",
|
|
47
|
-
"@umijs/test": "^3.0.5",
|
|
48
|
-
"antd": "4.24.16",
|
|
49
|
-
"dumi": "^1.1.0",
|
|
50
|
-
"father-build": "^1.17.2",
|
|
51
|
-
"gh-pages": "^3.0.0",
|
|
52
|
-
"lint-staged": "^10.0.7",
|
|
53
|
-
"lodash": "^4.17.21",
|
|
54
|
-
"prettier": "^2.2.1",
|
|
55
|
-
"react": "^16.12.0 || ^17.0.0",
|
|
56
|
-
"yorkie": "^2.0.0"
|
|
57
|
-
},
|
|
58
|
-
"gitHead": "ba9a9d18dfdcab3ac09e1b55b17d549a04b29045",
|
|
59
|
-
"gitHooks": {
|
|
60
|
-
"pre-commit": "lint-staged"
|
|
61
|
-
}
|
|
26
|
+
"*.ts?(x)": [
|
|
27
|
+
"prettier --parser=typescript --write"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@types/qs": "^6.9.7",
|
|
32
|
+
"axios": "^0.26.1",
|
|
33
|
+
"babel-plugin-import": "^1.13.3",
|
|
34
|
+
"echarts": "^5.3.2",
|
|
35
|
+
"echarts-for-react": "^3.0.2",
|
|
36
|
+
"lerna": "^4.0.0",
|
|
37
|
+
"rc-virtual-list": "^3.4.8",
|
|
38
|
+
"react-infinite-scroll-component": "^6.1.0",
|
|
39
|
+
"umi-request": "^1.4.0"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@testing-library/jest-dom": "^5.15.1",
|
|
43
|
+
"@testing-library/react": "^12.1.2",
|
|
44
|
+
"@types/jest": "^27.0.3",
|
|
45
|
+
"@types/lodash": "^4.14.182",
|
|
46
|
+
"@umijs/fabric": "^2.8.1",
|
|
47
|
+
"@umijs/test": "^3.0.5",
|
|
48
|
+
"antd": "4.24.16",
|
|
49
|
+
"dumi": "^1.1.0",
|
|
50
|
+
"father-build": "^1.17.2",
|
|
51
|
+
"gh-pages": "^3.0.0",
|
|
52
|
+
"lint-staged": "^10.0.7",
|
|
53
|
+
"lodash": "^4.17.21",
|
|
54
|
+
"prettier": "^2.2.1",
|
|
55
|
+
"react": "^16.12.0 || ^17.0.0",
|
|
56
|
+
"yorkie": "^2.0.0"
|
|
57
|
+
},
|
|
58
|
+
"gitHead": "d4de8f7c92c69ca2a788ddea816200db5e34a38a",
|
|
59
|
+
"gitHooks": {
|
|
60
|
+
"pre-commit": "lint-staged"
|
|
61
|
+
}
|
|
62
62
|
}
|