@titaui/pc 1.15.89-beta.2 → 1.15.89-beta.3

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.
Files changed (106) hide show
  1. package/lib/components/dialog-confirm/index.js +3 -1
  2. package/lib/components/dynamic/dynamic-item/components/okr-progress/index.js +11 -6
  3. package/lib/components/dynamic/dynamic-item/components/schedule/index.css +8 -0
  4. package/lib/components/dynamic/dynamic-item/components/schedule/index.js +34 -7
  5. package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +0 -1
  6. package/lib/components/dynamic/dynamic-item/components/table-row-okr/utils.js +2 -0
  7. package/lib/components/dynamic/dynamic-item/components/task-progress/index.js +3 -2
  8. package/lib/components/dynamic/dynamic-item/components/task-progress/render-row.js +8 -2
  9. package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +3 -1
  10. package/lib/components/form/form-fields/input/index.css +4 -0
  11. package/lib/components/form/form-fields/input/index.js +9 -6
  12. package/lib/components/guide-tip/index.js +4 -1
  13. package/lib/components/menus/export-modules/summary-menus/menu-highlight.js +8 -0
  14. package/lib/components/menus/export-modules/summary-menus/menus.js +10 -1
  15. package/lib/components/menus/export-modules/summary-menus/request-api.js +8 -2
  16. package/lib/components/menus/export-modules/summary-menus/summary-front-menus.js +26 -7
  17. package/lib/components/menus/i18n.js +1 -0
  18. package/lib/components/okr-excel-create/components/kr-confidence/index.css +18 -0
  19. package/lib/components/okr-excel-create/components/kr-confidence/index.js +61 -0
  20. package/lib/components/okr-excel-create/components/kr-weight/index.css +10 -0
  21. package/lib/components/okr-excel-create/components/kr-weight/index.js +114 -0
  22. package/lib/components/okr-excel-create/components/okr-align/index.css +49 -0
  23. package/lib/components/okr-excel-create/components/okr-align/index.js +139 -0
  24. package/lib/components/okr-excel-create/components/okr-classify/index.css +74 -0
  25. package/lib/components/okr-excel-create/components/okr-classify/index.js +117 -0
  26. package/lib/components/okr-excel-create/components/okr-cycle/index.css +40 -0
  27. package/lib/components/okr-excel-create/components/okr-cycle/index.js +85 -0
  28. package/lib/components/okr-excel-create/components/okr-name/index.css +48 -0
  29. package/lib/components/okr-excel-create/components/okr-name/index.js +116 -0
  30. package/lib/components/okr-excel-create/components/okr-principal/index.css +17 -0
  31. package/lib/components/okr-excel-create/components/okr-principal/index.js +107 -0
  32. package/lib/components/okr-excel-create/components/okr-progress/components/kr-progress/index.css +13 -0
  33. package/lib/components/okr-excel-create/components/okr-progress/components/kr-progress/index.js +46 -0
  34. package/lib/components/okr-excel-create/components/okr-progress/components/o-progress/index.css +13 -0
  35. package/lib/components/okr-excel-create/components/okr-progress/components/o-progress/index.js +47 -0
  36. package/lib/components/okr-excel-create/components/okr-progress/components/okr-progress/index.css +196 -0
  37. package/lib/components/okr-excel-create/components/okr-progress/components/okr-progress/index.js +319 -0
  38. package/lib/components/okr-excel-create/components/okr-progress/components/okr-progress/request-api.js +20 -0
  39. package/lib/components/okr-excel-create/components/okr-progress/components/okr-progress/util.js +134 -0
  40. package/lib/components/okr-excel-create/components/okr-progress/index.css +25 -0
  41. package/lib/components/okr-excel-create/components/okr-progress/index.js +90 -0
  42. package/lib/components/okr-excel-create/components/okr-progress/interface.js +5 -0
  43. package/lib/components/okr-excel-create/components/okr-type/base-okr-type/confirm/buttonv2.js +108 -0
  44. package/lib/components/okr-excel-create/components/okr-type/base-okr-type/confirm/confirm.js +166 -0
  45. package/lib/components/okr-excel-create/components/okr-type/base-okr-type/index.css +20 -0
  46. package/lib/components/okr-excel-create/components/okr-type/base-okr-type/index.js +76 -0
  47. package/lib/components/okr-excel-create/components/okr-type/base-okr-type/object-type.js +275 -0
  48. package/lib/components/okr-excel-create/components/okr-type/index.css +30 -0
  49. package/lib/components/okr-excel-create/components/okr-type/index.js +196 -0
  50. package/lib/components/okr-excel-create/components/okr-visibility/index.css +53 -0
  51. package/lib/components/okr-excel-create/components/okr-visibility/index.js +236 -0
  52. package/lib/components/okr-excel-create/components-new/kr-confidence/index.css +18 -0
  53. package/lib/components/okr-excel-create/components-new/kr-confidence/index.js +75 -0
  54. package/lib/components/okr-excel-create/components-new/kr-weight/index.css +14 -0
  55. package/lib/components/okr-excel-create/components-new/kr-weight/index.js +143 -0
  56. package/lib/components/okr-excel-create/components-new/okr-align/index.css +51 -0
  57. package/lib/components/okr-excel-create/components-new/okr-align/index.js +142 -0
  58. package/lib/components/okr-excel-create/components-new/okr-classify/index.css +74 -0
  59. package/lib/components/okr-excel-create/components-new/okr-classify/index.js +126 -0
  60. package/lib/components/okr-excel-create/components-new/okr-cycle/index.css +40 -0
  61. package/lib/components/okr-excel-create/components-new/okr-cycle/index.js +97 -0
  62. package/lib/components/okr-excel-create/components-new/okr-name/index.css +87 -0
  63. package/lib/components/okr-excel-create/components-new/okr-name/index.js +193 -0
  64. package/lib/components/okr-excel-create/components-new/okr-principal/index.css +17 -0
  65. package/lib/components/okr-excel-create/components-new/okr-principal/index.js +116 -0
  66. package/lib/components/okr-excel-create/components-new/okr-progress/components/kr-progress/index.css +13 -0
  67. package/lib/components/okr-excel-create/components-new/okr-progress/components/kr-progress/index.js +46 -0
  68. package/lib/components/okr-excel-create/components-new/okr-progress/components/o-progress/index.css +13 -0
  69. package/lib/components/okr-excel-create/components-new/okr-progress/components/o-progress/index.js +47 -0
  70. package/lib/components/okr-excel-create/components-new/okr-progress/components/okr-progress/index.css +196 -0
  71. package/lib/components/okr-excel-create/components-new/okr-progress/components/okr-progress/index.js +319 -0
  72. package/lib/components/okr-excel-create/components-new/okr-progress/components/okr-progress/request-api.js +20 -0
  73. package/lib/components/okr-excel-create/components-new/okr-progress/components/okr-progress/util.js +134 -0
  74. package/lib/components/okr-excel-create/components-new/okr-progress/index.css +25 -0
  75. package/lib/components/okr-excel-create/components-new/okr-progress/index.js +90 -0
  76. package/lib/components/okr-excel-create/components-new/okr-progress/interface.js +5 -0
  77. package/lib/components/okr-excel-create/components-new/okr-type/base-okr-type/confirm/buttonv2.js +108 -0
  78. package/lib/components/okr-excel-create/components-new/okr-type/base-okr-type/confirm/confirm.js +166 -0
  79. package/lib/components/okr-excel-create/components-new/okr-type/base-okr-type/index.css +20 -0
  80. package/lib/components/okr-excel-create/components-new/okr-type/base-okr-type/index.js +76 -0
  81. package/lib/components/okr-excel-create/components-new/okr-type/base-okr-type/object-type.js +275 -0
  82. package/lib/components/okr-excel-create/components-new/okr-type/index.css +30 -0
  83. package/lib/components/okr-excel-create/components-new/okr-type/index.js +205 -0
  84. package/lib/components/okr-excel-create/components-new/okr-visibility/index.css +53 -0
  85. package/lib/components/okr-excel-create/components-new/okr-visibility/index.js +250 -0
  86. package/lib/components/okr-excel-create/constant.js +14 -0
  87. package/lib/components/okr-excel-create/hooks.js +314 -0
  88. package/lib/components/okr-excel-create/img/base-info-add.svg +19 -0
  89. package/lib/components/okr-excel-create/img/desire.svg +61 -0
  90. package/lib/components/okr-excel-create/img/promise.svg +61 -0
  91. package/lib/components/okr-excel-create/index-old.js +258 -0
  92. package/lib/components/okr-excel-create/index.css +69 -0
  93. package/lib/components/okr-excel-create/index.js +226 -0
  94. package/lib/components/okr-excel-create/setting.js +21 -0
  95. package/lib/components/okr-excel-create/type.js +5 -0
  96. package/lib/components/okr-excel-create/utils.js +182 -0
  97. package/lib/components/operation-records/index.js +56 -8
  98. package/lib/components/promise-confirm/index.js +3 -2
  99. package/lib/components/select-tags/index.js +5 -3
  100. package/lib/components/table-excel-v2/index.css +59 -0
  101. package/lib/components/table-excel-v2/index.js +440 -0
  102. package/lib/components/table-excel-v2/utils.js +22 -0
  103. package/lib/index.js +8 -0
  104. package/lib/pages/aha2021/index.js +1 -5
  105. package/lib/pages/new-okr-list/index.js +1 -38
  106. package/package.json +1 -1
@@ -0,0 +1,182 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getKrItemData = exports.getIitData = exports.formatDataToOKRExcelTableData = exports.formatDataToOKRExcelData = void 0;
7
+
8
+ var _cloneDeep = _interopRequireDefault(require("clone-deep"));
9
+
10
+ var _uuid = _interopRequireDefault(require("uuid"));
11
+
12
+ var _helpers = require("../../utils/helpers");
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
+
16
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
17
+
18
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
19
+
20
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
21
+
22
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
23
+
24
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
25
+
26
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
27
+
28
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
29
+
30
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
31
+
32
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
33
+
34
+ var loginUser = (0, _helpers.getLoginUserInfo)();
35
+
36
+ var getKrItemData = function getKrItemData() {
37
+ return {
38
+ uuid: (0, _uuid["default"])(),
39
+ mileStoneId: 0,
40
+ feedId: '',
41
+ workId: 0,
42
+ mileStoneName: '',
43
+ mileStoneNameRichText: '',
44
+ aiteUsers: [],
45
+ mileStoneDescription: '',
46
+ principalId: 0,
47
+ createUserId: loginUser.Id,
48
+ startDate: '',
49
+ endDate: '',
50
+ lastUpdatedDate: '',
51
+ user: {
52
+ userId: loginUser.Id,
53
+ userType: loginUser.Type,
54
+ name: loginUser.Name,
55
+ email: loginUser.Email,
56
+ managerId: loginUser.ManagerId,
57
+ jobState: loginUser.JobState,
58
+ departmentId: loginUser.DepartmentId,
59
+ departmentName: loginUser.Department,
60
+ postition: loginUser.Position,
61
+ subType: 0,
62
+ hasSubordinates: loginUser.HasSub,
63
+ avatar: _objectSpread({}, loginUser.UserAvatar),
64
+ staffCode: ''
65
+ },
66
+ counter: {
67
+ taskTotal: 0,
68
+ finishTaskTotal: 0,
69
+ workTotal: 0,
70
+ finishWrokTotal: 0,
71
+ eTotal: 0,
72
+ finishETotal: 0,
73
+ subWorkTotal: 0
74
+ },
75
+ departments: '',
76
+ status: 1,
77
+ remainingDays: 0,
78
+ progress: 0,
79
+ progressGrow: 0,
80
+ riskLevel: 0,
81
+ remainingContent: '',
82
+ progressDescription: '',
83
+ editable: false,
84
+ evaluateEditable: true,
85
+ krWeightEditable: false,
86
+ confidenceIndex: 5,
87
+ evaluateValue: 0,
88
+ remark: '',
89
+ confidenceIndexGrow: 0,
90
+ isEvaluate: false,
91
+ krWeight: 100.0,
92
+ okrInfo: '',
93
+ tasks: null,
94
+ mapkrVisible: true,
95
+ CreateDate: '2022/3/14 16:16:36',
96
+ SortNum: 0,
97
+ UpdateProgressWay: 0,
98
+ progressDescriptionDate: null,
99
+ applyState: 0,
100
+ krApprovalType: '',
101
+ KrApprovalTypes: []
102
+ };
103
+ };
104
+
105
+ exports.getKrItemData = getKrItemData;
106
+
107
+ var getIitData = function getIitData() {
108
+ return {
109
+ uuid: (0, _uuid["default"])(),
110
+ workId: 0,
111
+ workName: '',
112
+ workNameRichText: '',
113
+ visibility: 1,
114
+ visibilityScope: undefined,
115
+ departmentId: loginUser.DepartmentId,
116
+ departmentName: loginUser.Department,
117
+ groupId: 0,
118
+ groupName: '',
119
+ Krs: [_objectSpread({}, getKrItemData())],
120
+ okrClassify: 0,
121
+ cycleType: -1,
122
+ yqmNum: 1,
123
+ parentId: 0,
124
+ parentKrId: 0,
125
+ annualNum: 2022,
126
+ hasSub: false,
127
+ okrType: 1,
128
+ createUserId: loginUser.Id,
129
+ principalUser: {
130
+ userId: loginUser.Id,
131
+ userType: loginUser.Type,
132
+ name: loginUser.Name,
133
+ email: loginUser.Email,
134
+ managerId: loginUser.ManagerId,
135
+ jobState: loginUser.JobState,
136
+ departmentId: loginUser.DepartmentId,
137
+ departmentName: loginUser.Department,
138
+ postition: loginUser.Position,
139
+ subType: 0,
140
+ hasSubordinates: loginUser.HasSub,
141
+ avatar: _objectSpread({}, loginUser.UserAvatar),
142
+ staffCode: ''
143
+ },
144
+ parentPrincipal: null,
145
+ isShowApprovalOpinion: false
146
+ };
147
+ };
148
+
149
+ exports.getIitData = getIitData;
150
+
151
+ var formatDataToOKRExcelTableData = function formatDataToOKRExcelTableData(data) {
152
+ return (0, _cloneDeep["default"])(data).map(function (detail) {
153
+ return _objectSpread(_objectSpread({}, detail), {}, {
154
+ childs: [].concat(_toConsumableArray(detail.Krs), [{
155
+ isAddKR: true
156
+ }])
157
+ });
158
+ });
159
+ };
160
+
161
+ exports.formatDataToOKRExcelTableData = formatDataToOKRExcelTableData;
162
+
163
+ var formatDataToOKRExcelData = function formatDataToOKRExcelData(data) {
164
+ var okrExcelData = [];
165
+ data.forEach(function (detail) {
166
+ var tempData = JSON.parse(JSON.stringify(detail));
167
+ var krs = tempData.Krs;
168
+ krs.forEach(function (item, index) {
169
+ okrExcelData.push(_objectSpread(_objectSpread({}, tempData), {}, {
170
+ kr: _objectSpread(_objectSpread({}, item), {}, {
171
+ mileStoneId: tempData.workId + '_' + (item.isAddKR ? 'addKR' : index)
172
+ }),
173
+ rowSpan: index === 0 ? krs.length : 0,
174
+ colSpan: item.isAddKR ? 4 : 0
175
+ }));
176
+ });
177
+ });
178
+ console.log(okrExcelData);
179
+ return okrExcelData;
180
+ };
181
+
182
+ exports.formatDataToOKRExcelData = formatDataToOKRExcelData;
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports["default"] = void 0;
8
+ exports.getOperation = exports["default"] = void 0;
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
@@ -21,6 +21,8 @@ var _style = require("./style");
21
21
 
22
22
  var _getLocale = require("../../utils/getLocale");
23
23
 
24
+ var _request = require("@titaui/request");
25
+
24
26
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
27
 
26
28
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -47,6 +49,12 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
47
49
 
48
50
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
49
51
 
52
+ var getOperation = function getOperation(data) {
53
+ return (0, _request.rpost)("v1")("summaryTemplate/operations", data);
54
+ };
55
+
56
+ exports.getOperation = getOperation;
57
+
50
58
  var OperationRecord = /*#__PURE__*/function (_PureComponent) {
51
59
  _inherits(OperationRecord, _PureComponent);
52
60
 
@@ -86,6 +94,26 @@ var OperationRecord = /*#__PURE__*/function (_PureComponent) {
86
94
  });
87
95
  };
88
96
 
97
+ _this.getOperationInfo = function (feedId, commentCount) {
98
+ var params = {
99
+ TemplateFeedId: feedId,
100
+ commentCount: commentCount
101
+ };
102
+ getOperation(params).then(function (res) {
103
+ if (res.Code === 1) {
104
+ var data = res.Data;
105
+ console.log('data', data);
106
+
107
+ var newOperationTrackList = _this.formatCommentsDate(data.comments ? data.comments : []);
108
+
109
+ _this.setState({
110
+ operationTrackList: newOperationTrackList,
111
+ operationTrackTotal: data.total
112
+ });
113
+ }
114
+ });
115
+ };
116
+
89
117
  _this.formatCommentsDate = function (comments) {
90
118
  var thisYear = (0, _moment["default"])().year(); // 获取当前年份
91
119
 
@@ -132,13 +160,20 @@ var OperationRecord = /*#__PURE__*/function (_PureComponent) {
132
160
  _this.handlerSwitchShowRecord = function () {
133
161
  var _this$props = _this.props,
134
162
  feedId = _this$props.feedId,
135
- commentCount = _this$props.commentCount; // 默认展示条数
163
+ commentCount = _this$props.commentCount,
164
+ isSummaryTemplate = _this$props.isSummaryTemplate; // 默认展示条数
136
165
 
137
166
  var operationTrackTotal = _this.state.operationTrackTotal; // 记录总数
138
167
 
139
168
  var isShowAllOperationRecord = _this.state.isShowAllOperationRecord;
140
- isShowAllOperationRecord = !isShowAllOperationRecord;
141
- isShowAllOperationRecord ? _this.getFeedInfo(feedId, operationTrackTotal) : _this.getFeedInfo(feedId, commentCount);
169
+ isShowAllOperationRecord = !isShowAllOperationRecord; // isShowAllOperationRecord ? this.getFeedInfo(feedId, operationTrackTotal) : this.getFeedInfo(feedId, commentCount);
170
+ // isShowAllOperationRecord ? this.getOperationInfo(feedId, operationTrackTotal) : this.getOperationInfo(feedId, commentCount);
171
+
172
+ if (isSummaryTemplate) {
173
+ isShowAllOperationRecord ? _this.getOperationInfo(feedId, operationTrackTotal) : _this.getOperationInfo(feedId, commentCount);
174
+ } else {
175
+ isShowAllOperationRecord ? _this.getFeedInfo(feedId, operationTrackTotal) : _this.getFeedInfo(feedId, commentCount);
176
+ }
142
177
 
143
178
  _this.setState({
144
179
  isShowAllOperationRecord: isShowAllOperationRecord
@@ -158,10 +193,17 @@ var OperationRecord = /*#__PURE__*/function (_PureComponent) {
158
193
  value: function componentDidMount() {
159
194
  var _this$props2 = this.props,
160
195
  feedId = _this$props2.feedId,
161
- commentCount = _this$props2.commentCount;
196
+ commentCount = _this$props2.commentCount,
197
+ isSummaryTemplate = _this$props2.isSummaryTemplate;
162
198
 
163
199
  if (feedId) {
164
- this.getFeedInfo(feedId, commentCount);
200
+ // this.getFeedInfo(feedId, commentCount);
201
+ // this.getOperationInfo(feedId, commentCount);
202
+ if (isSummaryTemplate) {
203
+ this.getOperationInfo(feedId, commentCount);
204
+ } else {
205
+ this.getFeedInfo(feedId, commentCount);
206
+ }
165
207
  }
166
208
  }
167
209
  }, {
@@ -170,8 +212,14 @@ var OperationRecord = /*#__PURE__*/function (_PureComponent) {
170
212
  if (prevProps.feedId != this.props.feedId) {
171
213
  var _this$props3 = this.props,
172
214
  feedId = _this$props3.feedId,
173
- commentCount = _this$props3.commentCount;
174
- this.getFeedInfo(feedId, commentCount);
215
+ commentCount = _this$props3.commentCount,
216
+ isSummaryTemplate = _this$props3.isSummaryTemplate;
217
+
218
+ if (isSummaryTemplate) {
219
+ this.getOperationInfo(feedId, commentCount);
220
+ } else {
221
+ this.getFeedInfo(feedId, commentCount);
222
+ }
175
223
  }
176
224
  }
177
225
  /**
@@ -60,13 +60,14 @@ var PromiseConfirm = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
60
60
  reject: function reject() {}
61
61
  });
62
62
 
63
- var handleCancelBtnClick = function handleCancelBtnClick() {
63
+ var handleCancelBtnClick = function handleCancelBtnClick(e) {
64
+ e.stopPropagation();
64
65
  onCancel();
65
66
  dialogPromise.current.reject();
66
67
  setVisible(false);
67
68
  };
68
69
 
69
- var handleConfirmBtnClick = function handleConfirmBtnClick() {
70
+ var handleConfirmBtnClick = function handleConfirmBtnClick(e) {
70
71
  if (onConfirm) {
71
72
  onConfirm();
72
73
  }
@@ -19,7 +19,7 @@ var _getLocale = require("../../utils/getLocale");
19
19
 
20
20
  require("./index.css");
21
21
 
22
- var _excluded = ["selected", "controlValue", "data", "onChange", "style", "mode", "className", "placeholder", "name", "noBorder"];
22
+ var _excluded = ["selected", "controlValue", "data", "onChange", "style", "mode", "className", "placeholder", "name", "noBorder", "dropdownClassName"];
23
23
 
24
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
25
 
@@ -67,6 +67,7 @@ var SelectTags = function SelectTags(_ref) {
67
67
  placeholder = _ref$placeholder === void 0 ? "".concat((0, _getLocale.getLocale)("Mod_Pleaseselect")) : _ref$placeholder,
68
68
  name = _ref.name,
69
69
  noBorder = _ref.noBorder,
70
+ dropdownClassName = _ref.dropdownClassName,
70
71
  restProps = _objectWithoutProperties(_ref, _excluded);
71
72
 
72
73
  var _useState = (0, _react.useState)(selected),
@@ -88,7 +89,7 @@ var SelectTags = function SelectTags(_ref) {
88
89
  className: preCls
89
90
  }, /*#__PURE__*/_react["default"].createElement(_rcSelect["default"], _extends({
90
91
  className: (0, _classnames["default"])(className, _defineProperty({}, "".concat(preCls, "-noborder"), noBorder)),
91
- dropdownClassName: (0, _classnames["default"])("titaui-dropDown", _defineProperty({}, "".concat(preCls, "-hasSelectItem"), mode === "multiple")),
92
+ dropdownClassName: (0, _classnames["default"])(dropdownClassName, "titaui-dropDown", _defineProperty({}, "".concat(preCls, "-hasSelectItem"), mode === "multiple")),
92
93
  value: value,
93
94
  style: style,
94
95
  mode: mode,
@@ -109,7 +110,8 @@ var SelectTags = function SelectTags(_ref) {
109
110
  }, restProps), data.map(function (item, key) {
110
111
  return /*#__PURE__*/_react["default"].createElement(_rcSelect.Option, {
111
112
  key: key,
112
- value: item.value
113
+ value: item.value,
114
+ disabled: item === null || item === void 0 ? void 0 : item.disabled
113
115
  }, item.label);
114
116
  })));
115
117
  };
@@ -0,0 +1,59 @@
1
+ .titaui-table-excel-v2 {
2
+ position: relative;
3
+ box-shadow: 0 0 0 1px #e2e2e2;
4
+ background-color: #fff;
5
+ overflow-x: auto;
6
+ }
7
+
8
+ .titaui-table-excel-v2__header {
9
+ display: flex;
10
+ }
11
+
12
+ .titaui-table-excel-v2__header > div {
13
+ display: flex;
14
+ flex-shrink: 0;
15
+ align-items: center;
16
+ min-height: 40px;
17
+ padding: 0 12px;
18
+ color: #89919F;
19
+ font-size: 12px;
20
+ font-weight: 600;
21
+ box-sizing: border-box;
22
+ transition: background-color .3s;
23
+ }
24
+
25
+ .titaui-table-excel-v2__header > div:hover {
26
+ background-color: #f2f2f2;
27
+ }
28
+
29
+ .titaui-table-excel-v2__header > div:last-child {
30
+ border-right: 1px solid #e2e2e2;
31
+ }
32
+
33
+ .titaui-table-excel-v2__childs {
34
+ display: flex;
35
+ flex-direction: column;
36
+ }
37
+
38
+ .titaui-table-excel-v2__childs > div {
39
+ height: 100%;
40
+ }
41
+
42
+ .titaui-table-excel-v2__row {
43
+ display: flex;
44
+ }
45
+
46
+ .titaui-table-excel-v2__box {
47
+ border-right: 1px solid #e2e2e2;
48
+ border-top: 1px solid #e2e2e2;
49
+ }
50
+
51
+ .titaui-table-excel-v2__box-content {
52
+ position: relative;
53
+ height: 100%;
54
+ padding: 7px 12px;
55
+ display: flex;
56
+ align-items: center;
57
+ min-height: 30px;
58
+ box-sizing: border-box;
59
+ }