@zgfe/business-lib 1.2.55 → 1.2.56
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.
|
@@ -9,8 +9,8 @@ import React, { useState } from 'react';
|
|
|
9
9
|
import '../styles/style.less';
|
|
10
10
|
import IconFont from '../../icon/iconFont';
|
|
11
11
|
var StyleList = function StyleList(props) {
|
|
12
|
-
var _props$value;
|
|
13
|
-
var _useState = useState((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.split(',')),
|
|
12
|
+
var _props$value, _props$value$split;
|
|
13
|
+
var _useState = useState((_props$value = props.value) === null || _props$value === void 0 ? void 0 : (_props$value$split = _props$value.split(',')) === null || _props$value$split === void 0 ? void 0 : _props$value$split.reverse()),
|
|
14
14
|
_useState2 = _slicedToArray(_useState, 2),
|
|
15
15
|
tab = _useState2[0],
|
|
16
16
|
setTab = _useState2[1];
|
|
@@ -20,7 +20,7 @@ var StyleList = function StyleList(props) {
|
|
|
20
20
|
return /*#__PURE__*/React.createElement("div", {
|
|
21
21
|
className: "".concat(classPrefix, "-drop")
|
|
22
22
|
}, /*#__PURE__*/React.createElement(Radio.Group, {
|
|
23
|
-
value: tab && tab[
|
|
23
|
+
value: tab && tab[1]
|
|
24
24
|
}, /*#__PURE__*/React.createElement(Space, null, (_data$children = data.children) === null || _data$children === void 0 ? void 0 : _data$children.map(function (item) {
|
|
25
25
|
return /*#__PURE__*/React.createElement(Radio, {
|
|
26
26
|
key: item.value,
|
|
@@ -7,7 +7,6 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
7
7
|
import React, { useState } from 'react';
|
|
8
8
|
import { BizAddToPanel } from '@zgfe/business-lib';
|
|
9
9
|
import { Button } from 'antd';
|
|
10
|
-
import { DemoWrapper } from '@zgfe/business-lib';
|
|
11
10
|
var chartTypes = [{
|
|
12
11
|
label: '趋势图',
|
|
13
12
|
value: 'line',
|
|
@@ -79,9 +78,7 @@ export default (function () {
|
|
|
79
78
|
_useState2 = _slicedToArray(_useState, 2),
|
|
80
79
|
showDialog = _useState2[0],
|
|
81
80
|
setShowDialog = _useState2[1];
|
|
82
|
-
return /*#__PURE__*/React.createElement(
|
|
83
|
-
needMeta: true
|
|
84
|
-
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
|
|
81
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
|
|
85
82
|
onClick: function onClick() {
|
|
86
83
|
setShowDialog(true);
|
|
87
84
|
}
|
|
@@ -95,5 +92,5 @@ export default (function () {
|
|
|
95
92
|
onOk: function onOk() {
|
|
96
93
|
setShowDialog(false);
|
|
97
94
|
}
|
|
98
|
-
}))
|
|
95
|
+
}));
|
|
99
96
|
});
|
package/es/addToPanel/index.js
CHANGED
|
@@ -216,6 +216,7 @@ var BizAddToPanel = function BizAddToPanel(props) {
|
|
|
216
216
|
options: props.styleOptions
|
|
217
217
|
}));
|
|
218
218
|
}
|
|
219
|
+
if (props.showOptions && props.showOptions.length == 0) return;
|
|
219
220
|
if (showTypes.indexOf(type) > -1) {
|
|
220
221
|
return /*#__PURE__*/React.createElement(Form.Item, {
|
|
221
222
|
label: "\u663E\u793A",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/business-lib",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.56",
|
|
4
4
|
"module": "es/index.js",
|
|
5
5
|
"typings": "es/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"react": "^16.12.0 || ^17.0.0",
|
|
56
56
|
"yorkie": "^2.0.0"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "6f8d6ca280b52aed4706f8a7394f6d712f984c1a",
|
|
59
59
|
"gitHooks": {
|
|
60
60
|
"pre-commit": "lint-staged"
|
|
61
61
|
}
|