uepay-mesh 3.0.6 → 3.0.7
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.
|
@@ -15,6 +15,8 @@ var _antd = require("antd");
|
|
|
15
15
|
|
|
16
16
|
var _rowEditAbleCell = _interopRequireDefault(require("./thColumn/rowEditAbleCell"));
|
|
17
17
|
|
|
18
|
+
var _serverEnums = require("../../config/serverEnums");
|
|
19
|
+
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
21
|
|
|
20
22
|
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); }
|
|
@@ -66,24 +68,23 @@ const thColumn = (_ref) => {
|
|
|
66
68
|
View = component.view,
|
|
67
69
|
Edit = component.edit,
|
|
68
70
|
config = component.config || {};
|
|
69
|
-
return /*#__PURE__*/_react.default.createElement(Column, {
|
|
70
|
-
|
|
71
|
+
return /*#__PURE__*/_react.default.createElement(Column, _extends({
|
|
72
|
+
key: label,
|
|
71
73
|
title: /*#__PURE__*/_react.default.createElement(Title, {
|
|
72
74
|
display: display,
|
|
73
75
|
value: value
|
|
74
76
|
}),
|
|
75
77
|
dataIndex: label,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
filterIcon: /*#__PURE__*/_react.default.createElement(_icons.SearchOutlined, null),
|
|
78
|
+
ellipsis: true
|
|
79
|
+
}, columnProperties({
|
|
80
|
+
collect,
|
|
81
|
+
field,
|
|
82
|
+
value,
|
|
83
|
+
condValue,
|
|
84
|
+
onSearch,
|
|
85
|
+
onChange,
|
|
86
|
+
onCond
|
|
87
|
+
}), {
|
|
87
88
|
render: (text, record, index) => {
|
|
88
89
|
return /*#__PURE__*/_react.default.createElement(_rowEditAbleCell.default, {
|
|
89
90
|
collect: collect,
|
|
@@ -96,7 +97,7 @@ const thColumn = (_ref) => {
|
|
|
96
97
|
View: View
|
|
97
98
|
});
|
|
98
99
|
}
|
|
99
|
-
});
|
|
100
|
+
}));
|
|
100
101
|
};
|
|
101
102
|
|
|
102
103
|
var _default = thColumn;
|
|
@@ -107,4 +108,39 @@ const Title = props => {
|
|
|
107
108
|
return /*#__PURE__*/_react.default.createElement("span", {
|
|
108
109
|
className: className
|
|
109
110
|
}, props.display);
|
|
110
|
-
};
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
function columnProperties(_ref2) {
|
|
114
|
+
let {
|
|
115
|
+
collect,
|
|
116
|
+
field,
|
|
117
|
+
value,
|
|
118
|
+
condValue,
|
|
119
|
+
onSearch,
|
|
120
|
+
onChange,
|
|
121
|
+
onCond
|
|
122
|
+
} = _ref2;
|
|
123
|
+
|
|
124
|
+
if ((_serverEnums.QueryType.Fast.value === collect.queryType || _serverEnums.QueryType.LazyFast === collect.queryType) && !field.isCanUpdate) {
|
|
125
|
+
return {};
|
|
126
|
+
} else {
|
|
127
|
+
const {
|
|
128
|
+
component,
|
|
129
|
+
label
|
|
130
|
+
} = field,
|
|
131
|
+
Search = component.search,
|
|
132
|
+
config = component.config || {};
|
|
133
|
+
return {
|
|
134
|
+
sorter: true,
|
|
135
|
+
filterDropdown: /*#__PURE__*/_react.default.createElement(Search, _extends({
|
|
136
|
+
column: label,
|
|
137
|
+
value: value,
|
|
138
|
+
condValue: condValue,
|
|
139
|
+
onSearch: onSearch,
|
|
140
|
+
onChange: onChange,
|
|
141
|
+
onCond: onCond
|
|
142
|
+
}, config)),
|
|
143
|
+
filterIcon: /*#__PURE__*/_react.default.createElement(_icons.SearchOutlined, null)
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uepay-mesh",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.7",
|
|
4
4
|
"description": "数据中心数据集设计工具前端",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"node-sass": "^4.13.0",
|
|
44
44
|
"react": "^16.12.0",
|
|
45
45
|
"react-dom": "^16.12.0",
|
|
46
|
-
"uepay-mesh": "^3.0.
|
|
46
|
+
"uepay-mesh": "^3.0.7",
|
|
47
47
|
"uepay-ops2": "^3.0.2"
|
|
48
48
|
}
|
|
49
49
|
}
|