@titaui/pc 1.16.61-beta.1 → 1.16.61-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.
@@ -181,7 +181,7 @@ var okrMenus = /*#__PURE__*/function () {
181
181
  _createClass(okrMenus, [{
182
182
  key: "checkConcernExist",
183
183
  value: function checkConcernExist(user) {
184
- var concerns = this.menus[2].children;
184
+ var concerns = this.menus[3].children;
185
185
 
186
186
  for (var i = 0; i < concerns.length; i++) {
187
187
  var it = concerns[i];
@@ -196,10 +196,10 @@ var okrMenus = /*#__PURE__*/function () {
196
196
  }, {
197
197
  key: "setConcernLoading",
198
198
  value: function setConcernLoading(loading) {
199
- this.menus[2].children = [];
199
+ this.menus[3].children = [];
200
200
 
201
201
  if (loading) {
202
- this.menus[2].children.push({
202
+ this.menus[3].children.push({
203
203
  icon: '',
204
204
  label: 'loading',
205
205
  key: 'loading-concern',
@@ -296,15 +296,15 @@ var okrMenus = /*#__PURE__*/function () {
296
296
  });
297
297
  }
298
298
 
299
- this.menus[2].children = this.menus[2].children.concat(treeNodeUsers);
299
+ this.menus[3].children = this.menus[3].children.concat(treeNodeUsers);
300
300
  }
301
301
  }, {
302
302
  key: "setEmptyConcerners",
303
303
  value: function setEmptyConcerners(empty) {
304
- this.menus[2].children = [];
304
+ this.menus[3].children = [];
305
305
 
306
306
  if (empty) {
307
- this.menus[2].children.push({
307
+ this.menus[3].children.push({
308
308
  icon: '',
309
309
  label: 'empty-concerners',
310
310
  key: 'empty-concerners',
@@ -317,11 +317,11 @@ var okrMenus = /*#__PURE__*/function () {
317
317
  }, {
318
318
  key: "addConcerner",
319
319
  value: function addConcerner(user) {
320
- if (this.menus[2].children.length && this.menus[2].children[0].key == 'empty-concerners') {
321
- this.menus[2].children = [];
320
+ if (this.menus[3].children.length && this.menus[3].children[0].key == 'empty-concerners') {
321
+ this.menus[3].children = [];
322
322
  }
323
323
 
324
- this.menus[2].children.push({
324
+ this.menus[3].children.push({
325
325
  icon: '',
326
326
  label: user.name,
327
327
  key: "concern-".concat(user.userId),
@@ -333,14 +333,14 @@ var okrMenus = /*#__PURE__*/function () {
333
333
  }, {
334
334
  key: "removeConcerner",
335
335
  value: function removeConcerner(user) {
336
- var newChildren = _toConsumableArray(this.menus[2].children).filter(function (it) {
336
+ var newChildren = _toConsumableArray(this.menus[3].children).filter(function (it) {
337
337
  return it.key != "concern-".concat(user.userId);
338
338
  });
339
339
 
340
340
  if (!newChildren.length) {
341
341
  this.setEmptyConcerners(true);
342
342
  } else {
343
- this.menus[2].children = newChildren;
343
+ this.menus[3].children = newChildren;
344
344
  }
345
345
  }
346
346
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.16.61-beta.1",
3
+ "version": "1.16.61-beta.2",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",