@zgfe/modules-dm 1.0.57-zhongyuan.75 → 1.0.57-zhongyuan.77

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.
@@ -18,7 +18,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
18
18
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
19
19
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
20
20
  import { BizGlobalDataContext, IconFont } from '@zgfe/business-lib';
21
- import { Input, Table, Select, message, Modal, Popover, Space, Radio, Checkbox, Form, Button, notification, Typography, Tag, Drawer } from 'antd';
21
+ import { Input, Table, Select, message, Modal, Popover, Space, Radio, Checkbox, Form, Button, notification, Typography, Tag, Drawer, Tooltip } from 'antd';
22
22
  import request from '../../../utils/ajax';
23
23
  import apis from '../../../constants/api';
24
24
  import React, { useEffect, useState, useContext } from 'react';
@@ -496,22 +496,22 @@ var TablePlus = function TablePlus(props) {
496
496
  setCurrentRow = _useState28[1];
497
497
  var _useState29 = useState([{
498
498
  label: 'JS',
499
- value: 3
499
+ value: '3'
500
500
  }, {
501
501
  label: 'Android',
502
- value: 1
502
+ value: '1'
503
503
  }, {
504
504
  label: 'IOS',
505
- value: 2
505
+ value: '2'
506
506
  }, {
507
507
  label: '微信小程序',
508
- value: 4
508
+ value: '4'
509
509
  }, {
510
510
  label: '服务端',
511
- value: 5
511
+ value: '5'
512
512
  }, {
513
513
  label: '鸿蒙',
514
- value: 6
514
+ value: '6'
515
515
  }]),
516
516
  _useState30 = _slicedToArray(_useState29, 1),
517
517
  maidianList = _useState30[0];
@@ -855,13 +855,23 @@ var TablePlus = function TablePlus(props) {
855
855
  render: function render(text, record) {
856
856
  return /*#__PURE__*/React.createElement("div", {
857
857
  className: "event_attrs"
858
- }, text && text.split(',').map(function (item, index) {
858
+ }, text && text.split(',').length <= 3 ? text.split(',').map(function (item, index) {
859
859
  var _maidianList$filter$;
860
860
  return /*#__PURE__*/React.createElement(Tag, {
861
861
  key: index
862
862
  }, (_maidianList$filter$ = maidianList.filter(function (obj) {
863
863
  return obj.value + '' == item;
864
864
  })[0]) === null || _maidianList$filter$ === void 0 ? void 0 : _maidianList$filter$.label);
865
+ }) : text.split(',').slice(0, 3).map(function (item, index) {
866
+ var _maidianList$filter$2;
867
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Tooltip, {
868
+ placement: "top",
869
+ title: text
870
+ }, /*#__PURE__*/React.createElement(Tag, {
871
+ key: index
872
+ }, (_maidianList$filter$2 = maidianList.filter(function (obj) {
873
+ return obj.value + '' == item;
874
+ })[0]) === null || _maidianList$filter$2 === void 0 ? void 0 : _maidianList$filter$2.label)), /*#__PURE__*/React.createElement("span", null, "..."));
865
875
  }), /*#__PURE__*/React.createElement(IconFont, {
866
876
  type: "bianji1",
867
877
  onClick: function onClick() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-dm",
3
- "version": "1.0.57-zhongyuan.75",
3
+ "version": "1.0.57-zhongyuan.77",
4
4
  "license": "ISC",
5
5
  "module": "es/index.js",
6
6
  "typings": "es/index.d.ts",
@@ -57,7 +57,7 @@
57
57
  "umi-request": "^1.4.0",
58
58
  "yorkie": "^2.0.0"
59
59
  },
60
- "gitHead": "67ac2dd8f528efaad2c5eb0fb16732c28401c536",
60
+ "gitHead": "51dd72cbf3083ee9d311c253b91baee6fa107a52",
61
61
  "gitHooks": {
62
62
  "pre-commit": "lint-staged"
63
63
  }