@titaui/pc 1.12.89 → 1.12.91-beta.2

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.
@@ -96,7 +96,9 @@ function AppraisalMenus(props) {
96
96
  _getQueryString$react = _getQueryString.reactRouterName,
97
97
  reactRouterName = _getQueryString$react === void 0 ? '' : _getQueryString$react;
98
98
 
99
- if (!reactRouterName) {
99
+ var isAppraisalPage = window.location.hash.indexOf('performance') != -1;
100
+
101
+ if (!reactRouterName && isAppraisalPage) {
100
102
  window.location.href = newMenus[0].data.href;
101
103
  }
102
104
  }, [history.location.pathname]); // 判断路由高亮菜单
@@ -91,7 +91,9 @@ function InterviewMenus(props) {
91
91
  _getQueryString$react = _getQueryString.reactRouterName,
92
92
  reactRouterName = _getQueryString$react === void 0 ? '' : _getQueryString$react;
93
93
 
94
- if (!reactRouterName) {
94
+ var isInterviewPage = window.location.hash.indexOf('interview') != -1;
95
+
96
+ if (!reactRouterName && isInterviewPage) {
95
97
  window.location.href = newMenus[0].data.href;
96
98
  }
97
99
  }, [history.location.pathname]);
package/lib/index.js CHANGED
@@ -555,6 +555,12 @@ Object.defineProperty(exports, "TaskRelationModal", {
555
555
  return _taskRelationModal["default"];
556
556
  }
557
557
  });
558
+ Object.defineProperty(exports, "TaskTree", {
559
+ enumerable: true,
560
+ get: function get() {
561
+ return _taskTree["default"];
562
+ }
563
+ });
558
564
  Object.defineProperty(exports, "Textarea", {
559
565
  enumerable: true,
560
566
  get: function get() {
@@ -862,6 +868,8 @@ var _surveyModel = _interopRequireDefault(require("./components/survey-model"));
862
868
 
863
869
  var _scrollContainer = _interopRequireDefault(require("./components/scroll-container"));
864
870
 
871
+ var _taskTree = _interopRequireDefault(require("./components/task-tree"));
872
+
865
873
  var _tree = _interopRequireDefault(require("./components/tree"));
866
874
 
867
875
  var _table = _interopRequireDefault(require("./components/table"));
@@ -111,8 +111,10 @@ function openData(p) {
111
111
 
112
112
  var ref = (0, _react.useRef)(null);
113
113
  (0, _react.useEffect)(function () {
114
+ var _ref;
115
+
114
116
  //@ts-ignore
115
- (window.WWOpenData && window.WWOpenData || window.top.WWOpenData).bind(ref.current);
117
+ (_ref = window.WWOpenData && window.WWOpenData || window.top.WWOpenData) === null || _ref === void 0 ? void 0 : _ref.bind(ref.current);
116
118
  if (!p.id) return;
117
119
  var openId = getOpenId(p.id, p.type);
118
120
 
@@ -353,7 +355,7 @@ var parseStringV2 = function parseStringV2(str) {
353
355
  exports.parseStringV2 = parseStringV2;
354
356
 
355
357
  var parseOpenDataStringToImg = /*#__PURE__*/function () {
356
- var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(str) {
358
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(str) {
357
359
  var font,
358
360
  reg,
359
361
  strReg,
@@ -427,21 +429,21 @@ var parseOpenDataStringToImg = /*#__PURE__*/function () {
427
429
  }));
428
430
 
429
431
  return function parseOpenDataStringToImg(_x) {
430
- return _ref.apply(this, arguments);
432
+ return _ref2.apply(this, arguments);
431
433
  };
432
434
  }();
433
435
 
434
436
  exports.parseOpenDataStringToImg = parseOpenDataStringToImg;
435
437
 
436
438
  var getCanvasImg = /*#__PURE__*/function () {
437
- var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(id, type, _ref2) {
439
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(id, type, _ref3) {
438
440
  var lineHeight, fontSize, fontWeight, color, font, canvas, ctx, name, img, _ctx$measureText, width, actualWidth, src;
439
441
 
440
442
  return regeneratorRuntime.wrap(function _callee2$(_context2) {
441
443
  while (1) {
442
444
  switch (_context2.prev = _context2.next) {
443
445
  case 0:
444
- lineHeight = _ref2.lineHeight, fontSize = _ref2.fontSize, fontWeight = _ref2.fontWeight, color = _ref2.color;
446
+ lineHeight = _ref3.lineHeight, fontSize = _ref3.fontSize, fontWeight = _ref3.fontWeight, color = _ref3.color;
445
447
  font = "".concat(fontWeight, " ").concat(fontSize, "px/").concat(lineHeight, "px arial,sans-serif");
446
448
  canvas = document.createElement("canvas");
447
449
  ctx = canvas.getContext("2d");
@@ -488,7 +490,7 @@ var getCanvasImg = /*#__PURE__*/function () {
488
490
  }));
489
491
 
490
492
  return function getCanvasImg(_x2, _x3, _x4) {
491
- return _ref3.apply(this, arguments);
493
+ return _ref4.apply(this, arguments);
492
494
  };
493
495
  }();
494
496
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.12.89",
3
+ "version": "1.12.91-beta.2",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",