uepay-mesh 4.0.6 → 4.0.9

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.
@@ -69,23 +69,7 @@ class StandardNumber extends _react.default.Component {
69
69
  onChange,
70
70
  column
71
71
  } = this.props;
72
- onChange && onChange(value, column);
73
- });
74
-
75
- _defineProperty(this, "formatter", value => {
76
- const {
77
- switchThousand,
78
- precision
79
- } = this.props;
80
- return switchThousand || precision ? _accounting.default.formatNumber(value, precision || 0, switchThousand ? ',' : '') : value;
81
- });
82
-
83
- _defineProperty(this, "parser", value => {
84
- const {
85
- switchPrecision,
86
- precision
87
- } = this.props;
88
- return switchPrecision || precision ? _accounting.default.unformat(value) : value;
72
+ onChange && onChange(null === value ? '' : value, column);
89
73
  });
90
74
  }
91
75
 
@@ -106,8 +90,7 @@ class StandardNumber extends _react.default.Component {
106
90
  onFocus: this.handleFocus,
107
91
  onBlur: this.handleBlur,
108
92
  placeholder: props.placeholder,
109
- formatter: this.formatter,
110
- parser: this.parser,
93
+ precision: props.precision,
111
94
  value: props.value
112
95
  });
113
96
  }
@@ -45,12 +45,14 @@ class PopSelectQueryAbleTable extends _react.default.Component {
45
45
  closable: true,
46
46
  onClose: this.handleClose,
47
47
  visible: props.visible
48
+ }, /*#__PURE__*/_react.default.createElement("div", {
49
+ className: "ue-tab-p-w"
48
50
  }, /*#__PURE__*/_react.default.createElement(_selectQueryAbleTable.default, {
49
51
  host: props.host,
50
52
  onSelect: props.onSelect,
51
53
  collectId: props.collectId,
52
54
  onSearch: props.onSearch
53
- }));
55
+ })));
54
56
  }
55
57
 
56
58
  }
@@ -11,8 +11,6 @@ require("core-js/modules/es6.regexp.search.js");
11
11
 
12
12
  var _react = _interopRequireDefault(require("react"));
13
13
 
14
- var _icons = require("@ant-design/icons");
15
-
16
14
  var _antd = require("antd");
17
15
 
18
16
  var _rowEditAbleCell = _interopRequireDefault(require("./thColumn/rowEditAbleCell"));
@@ -21,6 +19,12 @@ var _serverEnums = require("../../config/serverEnums");
21
19
 
22
20
  var _withReduxSearch = require("../../hoc/withReduxSearch");
23
21
 
22
+ var _EyeInvisibleOutlined = _interopRequireDefault(require("@ant-design/icons/lib/icons/EyeInvisibleOutlined"));
23
+
24
+ var _SearchOutlined = _interopRequireDefault(require("@ant-design/icons/lib/icons/SearchOutlined"));
25
+
26
+ var _ClearOutlined = _interopRequireDefault(require("@ant-design/icons/lib/icons/ClearOutlined"));
27
+
24
28
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
29
 
26
30
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
@@ -34,11 +38,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
34
38
  const {
35
39
  Column
36
40
  } = _antd.Table;
37
- const Style = {
38
- maxWidth: '7rem'
39
- },
40
- TooltipProps = {
41
- color: '#FFF',
41
+ const TooltipProps = {
42
+ color: '#FFFFFF',
42
43
  placement: 'bottomLeft'
43
44
  };
44
45
  /**
@@ -167,7 +168,7 @@ function columnProperties(_ref3) {
167
168
  onSearch: onSearch,
168
169
  Comp: component.search
169
170
  }, config)),
170
- filterIcon: /*#__PURE__*/_react.default.createElement(_icons.SearchOutlined, null)
171
+ filterIcon: /*#__PURE__*/_react.default.createElement(_SearchOutlined.default, null)
171
172
  };
172
173
  }
173
174
  }
@@ -200,7 +201,7 @@ function ColumnHideShow(_ref5) {
200
201
  reduxTableLabel.remove(field.column);
201
202
  },
202
203
  className: "ach"
203
- }, /*#__PURE__*/_react.default.createElement(_antd.Space, null, /*#__PURE__*/_react.default.createElement(_icons.EyeInvisibleOutlined, null), /*#__PURE__*/_react.default.createElement("span", null, "\u96B1\u85CF\"", field.display, "\"")));
204
+ }, /*#__PURE__*/_react.default.createElement(_antd.Space, null, /*#__PURE__*/_react.default.createElement(_EyeInvisibleOutlined.default, null), /*#__PURE__*/_react.default.createElement("span", null, "\u96B1\u85CF\"", field.display, "\"")));
204
205
  }
205
206
 
206
207
  function ColumnCleanSearch(_ref6) {
@@ -214,5 +215,5 @@ function ColumnCleanSearch(_ref6) {
214
215
  reduxSearch.remove(field.label);
215
216
  },
216
217
  className: "ach"
217
- }, /*#__PURE__*/_react.default.createElement(_antd.Space, null, /*#__PURE__*/_react.default.createElement(_icons.EyeInvisibleOutlined, null), /*#__PURE__*/_react.default.createElement("span", null, "\u6E05\u7A7A\"", field.display, "\"\u641C\u7D22\u689D\u4EF6")));
218
+ }, /*#__PURE__*/_react.default.createElement(_antd.Space, null, /*#__PURE__*/_react.default.createElement(_ClearOutlined.default, null), /*#__PURE__*/_react.default.createElement("span", null, "\u6E05\u7A7A\"", field.display, "\"\u641C\u7D22\u689D\u4EF6")));
218
219
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uepay-mesh",
3
- "version": "4.0.6",
3
+ "version": "4.0.9",
4
4
  "description": "数据中心数据集设计工具前端",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",
@@ -44,6 +44,6 @@
44
44
  "node-sass": "^4.13.0",
45
45
  "react": "^16.12.0",
46
46
  "react-dom": "^16.12.0",
47
- "uepay-ops2": "4.0.3"
47
+ "uepay-ops2": "4.0.4"
48
48
  }
49
49
  }
package/style.css CHANGED
@@ -4,6 +4,13 @@
4
4
 
5
5
  /*table*/
6
6
  /*standard-table*/
7
+ /*uepay table pop wrapper用于对弹窗进行包装*/
8
+ .ue-tab-p-w{
9
+ display: flex;
10
+ height: 100%;
11
+ flex-direction: column;
12
+ }
13
+
7
14
  .uepay-standard-table-contain{
8
15
  }
9
16
 
@@ -11,7 +18,8 @@
11
18
  position: relative;
12
19
  display: flex;
13
20
  flex-direction: column;
14
- height: 100%;
21
+ height: 1rem;
22
+ flex-grow: 1;
15
23
  }
16
24
 
17
25
  .uepay-standard-table .th-title-search{