@zgfe/business-lib 1.2.55-ljy.2 → 1.2.55-ljy.4

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[0]
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,
@@ -36,7 +36,7 @@ var StyleList = function StyleList(props) {
36
36
  }))));
37
37
  };
38
38
  var onChange = function onChange(data, child) {
39
- setTab([child.value, data.value]);
39
+ setTab([data.value, child.value]);
40
40
  props.onChange && props.onChange("".concat(child.value, ",").concat(data.value));
41
41
  };
42
42
  var _onClick = function onClick(data) {
@@ -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(DemoWrapper, {
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.2.55-ljy.2",
3
+ "version": "1.2.55-ljy.4",
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": "16a7e43ce6281a248fab14d8dd3cff70ed0f9362",
58
+ "gitHead": "5ab25367ce717c06de2a34639639f7d1c75af6c1",
59
59
  "gitHooks": {
60
60
  "pre-commit": "lint-staged"
61
61
  }