@kmkf-fe-packages/services-components 1.8.0-beta.7 → 1.8.0-beta.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.
|
@@ -1072,15 +1072,20 @@ export var MsgContent = function MsgContent(_ref14) {
|
|
|
1072
1072
|
var _item$msgReceivers;
|
|
1073
1073
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
1074
1074
|
style: {
|
|
1075
|
-
textAlign:
|
|
1075
|
+
textAlign: "left"
|
|
1076
1076
|
}
|
|
1077
|
-
},
|
|
1077
|
+
}, (_item$msgReceivers = item.msgReceivers) !== null && _item$msgReceivers !== void 0 && _item$msgReceivers.length ? item.msgReceivers.map(function (msgItem, index) {
|
|
1078
1078
|
return /*#__PURE__*/React.createElement("div", {
|
|
1079
|
+
key: index,
|
|
1079
1080
|
style: {
|
|
1080
1081
|
color: getColorByStatus(msgItem.status)
|
|
1081
1082
|
}
|
|
1082
1083
|
}, msgItem.failReason ? "".concat(msgItem.name, "\uFF0C").concat(msgItem.status, "\uFF0C\u5931\u8D25\u539F\u56E0\uFF1A").concat(msgItem.failReason) : "".concat(msgItem.name, "\uFF0C").concat(msgItem.status, ";"));
|
|
1083
|
-
})
|
|
1084
|
+
}) : item.failReason && /*#__PURE__*/React.createElement("div", {
|
|
1085
|
+
style: {
|
|
1086
|
+
color: getColorByStatus(item.status)
|
|
1087
|
+
}
|
|
1088
|
+
}, "\u5931\u8D25\u539F\u56E0\uFF1A", item.failReason)));
|
|
1084
1089
|
};
|
|
1085
1090
|
return /*#__PURE__*/React.createElement(Space, {
|
|
1086
1091
|
direction: !horizontal ? 'vertical' : 'horizontal'
|
|
@@ -1095,13 +1100,14 @@ export var MsgContent = function MsgContent(_ref14) {
|
|
|
1095
1100
|
key: index
|
|
1096
1101
|
}, msgTypeCh[key], "-", item.ruleName, "-", currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || "");
|
|
1097
1102
|
return /*#__PURE__*/React.createElement("div", {
|
|
1103
|
+
key: "wrap_".concat(index),
|
|
1098
1104
|
style: {
|
|
1099
1105
|
color: color,
|
|
1100
1106
|
cursor: "pointer"
|
|
1101
1107
|
}
|
|
1102
1108
|
}, (_item$msgReceivers2 = item.msgReceivers) !== null && _item$msgReceivers2 !== void 0 && _item$msgReceivers2.some(function (msgItem) {
|
|
1103
1109
|
return (msgItem === null || msgItem === void 0 ? void 0 : msgItem.status) === failValue;
|
|
1104
|
-
}) ? /*#__PURE__*/React.createElement(Popover, {
|
|
1110
|
+
}) || item.failReason ? /*#__PURE__*/React.createElement(Popover, {
|
|
1105
1111
|
content: detailContent(item),
|
|
1106
1112
|
overlayStyle: {
|
|
1107
1113
|
zIndex: 9999
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
2
3
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
3
4
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
5
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -126,7 +127,9 @@ var SubForm = /*#__PURE__*/_createClass(function SubForm(options) {
|
|
|
126
127
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
127
128
|
required: (_this$componentConfig5 = (_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.required) !== null && _this$componentConfig5 !== void 0 ? _this$componentConfig5 : false,
|
|
128
129
|
tooltip: (_this$componentConfig7 = _this.componentConfig) !== null && _this$componentConfig7 !== void 0 && _this$componentConfig7.showTooltip ? (_this$componentConfig8 = _this.componentConfig) === null || _this$componentConfig8 === void 0 ? void 0 : _this$componentConfig8.tooltip : "",
|
|
129
|
-
component: /*#__PURE__*/React.createElement(SubFormComponent, _this.componentConfig
|
|
130
|
+
component: /*#__PURE__*/React.createElement(SubFormComponent, _extends({}, _this.componentConfig, {
|
|
131
|
+
platform: p === null || p === void 0 ? void 0 : p.platform
|
|
132
|
+
}))
|
|
130
133
|
});
|
|
131
134
|
});
|
|
132
135
|
_defineProperty(this, "filterConfig", function (item) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "1.8.0-beta.
|
|
3
|
+
"version": "1.8.0-beta.9",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@kmkf-fe-packages/basic-components": "1.8.0-beta.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "1.8.0-beta.9",
|
|
25
25
|
"@kmkf-fe-packages/kmkf-utils": "1.8.0-beta.0",
|
|
26
26
|
"react-pdf-js": "^5.1.0"
|
|
27
27
|
},
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "cc462599bebe04c726f3885e2b440ba6a8b0825f",
|
|
43
43
|
"gitHooks": {
|
|
44
44
|
"pre-commit": "lint-staged"
|
|
45
45
|
}
|