@titaui/pc 1.11.55 → 1.11.59

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.
@@ -46,6 +46,8 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
46
46
  var preCls = "contact-kefu";
47
47
 
48
48
  var ContactKefu = function ContactKefu() {
49
+ var _window$BSGlobal, _window$BSGlobal$tena, _window$BSGlobal2, _window$BSGlobal2$ten;
50
+
49
51
  var _useState = (0, _react.useState)(false),
50
52
  _useState2 = _slicedToArray(_useState, 2),
51
53
  visible = _useState2[0],
@@ -55,7 +57,11 @@ var ContactKefu = function ContactKefu() {
55
57
  setVisible(true);
56
58
  };
57
59
 
58
- var isTrial = window.BSGlobal.tenantAuthentication.Version === 1 && (0, _platform.isOfficialSite)();
60
+ var isTrial = ((_window$BSGlobal = window.BSGlobal) === null || _window$BSGlobal === void 0 ? void 0 : (_window$BSGlobal$tena = _window$BSGlobal.tenantAuthentication) === null || _window$BSGlobal$tena === void 0 ? void 0 : _window$BSGlobal$tena.Version) === 1 && (0, _platform.isOfficialSite)();
61
+
62
+ if (!((_window$BSGlobal2 = window.BSGlobal) !== null && _window$BSGlobal2 !== void 0 && (_window$BSGlobal2$ten = _window$BSGlobal2.tenantAuthentication) !== null && _window$BSGlobal2$ten !== void 0 && _window$BSGlobal2$ten.Version)) {
63
+ isTrial = true;
64
+ }
59
65
 
60
66
  var popup = /*#__PURE__*/_react["default"].createElement("div", {
61
67
  className: "".concat(preCls, "__popup")
@@ -142,7 +142,7 @@ var TaskTree = function TaskTree(_ref) {
142
142
  style: scrollStyle,
143
143
  maskHeight: 16
144
144
  }, data.map(function (item) {
145
- var _item$principalUser, _item$principalUser2, _item$principalUser3, _item$principalUser4;
145
+ var _item$principalUser, _item$principalUser2, _item$principalUser3;
146
146
 
147
147
  return /*#__PURE__*/_react["default"].createElement("div", {
148
148
  className: "".concat(preCls, "__content-item"),
@@ -172,7 +172,7 @@ var TaskTree = function TaskTree(_ref) {
172
172
  maxWidth: 60,
173
173
  text: /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
174
174
  name: (item === null || item === void 0 ? void 0 : (_item$principalUser = item.principalUser) === null || _item$principalUser === void 0 ? void 0 : _item$principalUser.name) || (item === null || item === void 0 ? void 0 : (_item$principalUser2 = item.principalUser) === null || _item$principalUser2 === void 0 ? void 0 : _item$principalUser2.Name),
175
- id: (item === null || item === void 0 ? void 0 : (_item$principalUser3 = item.principalUser) === null || _item$principalUser3 === void 0 ? void 0 : _item$principalUser3.id) || (item === null || item === void 0 ? void 0 : (_item$principalUser4 = item.principalUser) === null || _item$principalUser4 === void 0 ? void 0 : _item$principalUser4.UserId)
175
+ id: item === null || item === void 0 ? void 0 : (_item$principalUser3 = item.principalUser) === null || _item$principalUser3 === void 0 ? void 0 : _item$principalUser3.userId
176
176
  })
177
177
  })), /*#__PURE__*/_react["default"].createElement("div", {
178
178
  className: "".concat(preCls, "__content-item-time")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.11.55",
3
+ "version": "1.11.59",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",