@kmkf-fe-packages/services-components 0.15.1-alpha.3 → 0.15.1-alpha.5

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.
@@ -625,6 +625,12 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
625
625
  }
626
626
  });
627
627
  };
628
+ // interface MsgItemType {
629
+ // msgRuleId: string
630
+ // msgType: string
631
+ // ruleName: string
632
+ // status: string
633
+ // }
628
634
  export var MsgContent = function MsgContent(_ref14) {
629
635
  var _ref14$horizontal = _ref14.horizontal,
630
636
  horizontal = _ref14$horizontal === void 0 ? true : _ref14$horizontal,
@@ -640,7 +646,7 @@ export var MsgContent = function MsgContent(_ref14) {
640
646
  qq: 'QQ',
641
647
  qywx: '企业微信'
642
648
  };
643
- var detailContent = function detailContent(item, index) {
649
+ var detailContent = function detailContent(item) {
644
650
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
645
651
  style: {
646
652
  textAlign: 'left'
@@ -649,7 +655,7 @@ export var MsgContent = function MsgContent(_ref14) {
649
655
  };
650
656
  return /*#__PURE__*/React.createElement(Space, {
651
657
  direction: !horizontal ? 'vertical' : 'horizontal'
652
- }, list !== null && list !== void 0 && list.length ? (list || []).map(function (item, index) {
658
+ }, Array.isArray(list) ? (list || []).map(function (item, index) {
653
659
  var _options$find2;
654
660
  var color = ((_options$find2 = options.find(function (innerItem) {
655
661
  return item[valueKey] === innerItem.label;
@@ -660,18 +666,16 @@ export var MsgContent = function MsgContent(_ref14) {
660
666
  var key = item.msgType || 'ding';
661
667
  return /*#__PURE__*/React.createElement("div", {
662
668
  style: {
663
- color: color
669
+ color: color,
670
+ cursor: 'pointer'
664
671
  }
665
672
  }, /*#__PURE__*/React.createElement(Popover, {
666
- content: detailContent(item, index),
673
+ content: detailContent(item),
667
674
  overlayStyle: {
668
- zIndex: 1080
675
+ zIndex: 9999
669
676
  }
670
- }, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
671
- key: index,
672
- style: {
673
- cursor: 'pointer'
674
- }
675
- }, msgTypeCh[key], "-"), /*#__PURE__*/React.createElement("span", null, currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || ''))));
677
+ }, /*#__PURE__*/React.createElement("span", {
678
+ key: index
679
+ }, msgTypeCh[key], "-", currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || '')));
676
680
  }) : null);
677
681
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.15.1-alpha.3",
3
+ "version": "0.15.1-alpha.5",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -20,8 +20,8 @@
20
20
  ]
21
21
  },
22
22
  "dependencies": {
23
- "@kmkf-fe-packages/basic-components": "^0.15.1-alpha.1",
24
- "@kmkf-fe-packages/kmkf-utils": "^0.15.1-alpha.1"
23
+ "@kmkf-fe-packages/basic-components": "^0.15.1-alpha.5",
24
+ "@kmkf-fe-packages/kmkf-utils": "^0.15.1-alpha.5"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@typescript-eslint/eslint-plugin": "^5.59.2",
@@ -37,7 +37,7 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "771d44d767549f448c18f5a4cdcaba079497ab83",
40
+ "gitHead": "f5c3d30c26aae8ffb554cb0d6a186e21c465ec74",
41
41
  "gitHooks": {
42
42
  "pre-commit": "lint-staged"
43
43
  }