@titaui/pc 1.15.69-beta.6 → 1.15.69-beta.7
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.
- package/lib/components/dialog-confirm/index.js +3 -1
- package/lib/components/dynamic/dynamic-item/components/okr-progress/index.js +5 -4
- package/lib/components/dynamic/dynamic-item/components/schedule/index.js +12 -1
- package/lib/components/dynamic/dynamic-item/components/task-progress/index.js +3 -2
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +2 -0
- package/lib/components/menus/export-modules/summary-menus/menu-highlight.js +8 -0
- package/lib/components/menus/export-modules/summary-menus/menus.js +7 -7
- package/lib/components/promise-confirm/index.js +0 -2
- package/lib/components/select-tags/index.js +3 -2
- package/package.json +1 -1
|
@@ -61,7 +61,9 @@ function WarningButton(props) {
|
|
|
61
61
|
children = props.children,
|
|
62
62
|
disabled = props.disabled;
|
|
63
63
|
|
|
64
|
-
var onClickHandler = function onClickHandler() {
|
|
64
|
+
var onClickHandler = function onClickHandler(e) {
|
|
65
|
+
e.stopPropagation();
|
|
66
|
+
|
|
65
67
|
if (!disabled) {
|
|
66
68
|
onClick();
|
|
67
69
|
}
|
|
@@ -9,6 +9,8 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
12
14
|
var _tooltip = _interopRequireDefault(require("../../../../tooltip"));
|
|
13
15
|
|
|
14
16
|
var _newConfidence = _interopRequireDefault(require("../../../../new-confidence"));
|
|
@@ -29,8 +31,6 @@ var _interface = require("../task-progress/interface");
|
|
|
29
31
|
|
|
30
32
|
require("./index.css");
|
|
31
33
|
|
|
32
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
33
|
-
|
|
34
34
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
35
35
|
|
|
36
36
|
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); }
|
|
@@ -58,7 +58,8 @@ var OkrProgress = function OkrProgress(_ref) {
|
|
|
58
58
|
var _rowsData$Rows, _rowsData$Rows2;
|
|
59
59
|
|
|
60
60
|
var data = _ref.data,
|
|
61
|
-
reportType = _ref.reportType
|
|
61
|
+
reportType = _ref.reportType,
|
|
62
|
+
title = _ref.title;
|
|
62
63
|
|
|
63
64
|
var _useState = (0, _react.useState)(),
|
|
64
65
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -180,7 +181,7 @@ var OkrProgress = function OkrProgress(_ref) {
|
|
|
180
181
|
className: (0, _classnames["default"])("".concat(prefix, "__title-arrow"), _defineProperty({}, "".concat(prefix, "__title-arrow--show"), !tableVisible))
|
|
181
182
|
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
182
183
|
className: (0, _classnames["default"])('tu-icon-caret-down', "".concat(prefix, "__title-arrow-icon"), _defineProperty({}, "".concat(prefix, "__title-arrow-icon--rotate"), !tableVisible))
|
|
183
|
-
}))),
|
|
184
|
+
}))), title, /*#__PURE__*/_react["default"].createElement("div", {
|
|
184
185
|
className: "".concat(prefix, "__title-total")
|
|
185
186
|
}, rowsData === null || rowsData === void 0 ? void 0 : (_rowsData$Rows2 = rowsData.Rows) === null || _rowsData$Rows2 === void 0 ? void 0 : _rowsData$Rows2.length)), tableVisible && /*#__PURE__*/_react["default"].createElement("div", {
|
|
186
187
|
className: "".concat(prefix, "__table")
|
|
@@ -30,7 +30,18 @@ var Schedule = function Schedule(_ref) {
|
|
|
30
30
|
}, (value === null || value === void 0 ? void 0 : value.length) !== 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
31
31
|
className: "".concat(prefix, "__content")
|
|
32
32
|
}, value === null || value === void 0 ? void 0 : value.map(function (val) {
|
|
33
|
-
if (!val.EntityId) return
|
|
33
|
+
if (!val.EntityId) return (
|
|
34
|
+
/*#__PURE__*/
|
|
35
|
+
// <div className={`${prefix}__content-text`}>
|
|
36
|
+
_react["default"].createElement("div", {
|
|
37
|
+
className: "".concat(prefix, "__content-richContent")
|
|
38
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
39
|
+
dangerouslySetInnerHTML: {
|
|
40
|
+
__html: val === null || val === void 0 ? void 0 : val.RichContent
|
|
41
|
+
}
|
|
42
|
+
})) // </div>
|
|
43
|
+
|
|
44
|
+
);
|
|
34
45
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
35
46
|
className: "".concat(prefix, "__content-text")
|
|
36
47
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -47,7 +47,8 @@ var prefix = 'titaui-dynamic-task-progress';
|
|
|
47
47
|
|
|
48
48
|
var TaskProgress = function TaskProgress(_ref) {
|
|
49
49
|
var data = _ref.data,
|
|
50
|
-
reportType = _ref.reportType
|
|
50
|
+
reportType = _ref.reportType,
|
|
51
|
+
title = _ref.title;
|
|
51
52
|
|
|
52
53
|
var _useState = (0, _react.useState)({
|
|
53
54
|
1: [],
|
|
@@ -173,7 +174,7 @@ var TaskProgress = function TaskProgress(_ref) {
|
|
|
173
174
|
className: (0, _classnames["default"])("".concat(prefix, "__title-arrow"), _defineProperty({}, "".concat(prefix, "__title-arrow--show"), !tableVisible))
|
|
174
175
|
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
175
176
|
className: (0, _classnames["default"])('tu-icon-caret-down', "".concat(prefix, "__title-arrow-icon"), _defineProperty({}, "".concat(prefix, "__title-arrow-icon--rotate"), !tableVisible))
|
|
176
|
-
}))),
|
|
177
|
+
}))), title), statusStatistic.done + statusStatistic.doing + statusStatistic.overDue > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
177
178
|
className: (0, _classnames["default"])("".concat(prefix, "__statistic"), _defineProperty({}, "".concat(prefix, "__statistic--hide"), !tableVisible))
|
|
178
179
|
}, statusStatistic.done > 0 && /*#__PURE__*/_react["default"].createElement("span", {
|
|
179
180
|
onClick: handleFilterDone,
|
|
@@ -219,6 +219,7 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
219
219
|
if (item.contentType === _constant.dailyContentType.okr) {
|
|
220
220
|
return item.content && /*#__PURE__*/_react["default"].createElement(_okrProgress["default"], {
|
|
221
221
|
data: item.content,
|
|
222
|
+
title: item.title,
|
|
222
223
|
reportType: data.reportType
|
|
223
224
|
});
|
|
224
225
|
}
|
|
@@ -226,6 +227,7 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
226
227
|
if (item.contentType === _constant.dailyContentType.task) {
|
|
227
228
|
return item.content && /*#__PURE__*/_react["default"].createElement(_taskProgress["default"], {
|
|
228
229
|
data: item.content,
|
|
230
|
+
title: item.title,
|
|
229
231
|
reportType: data.reportType
|
|
230
232
|
});
|
|
231
233
|
}
|
|
@@ -38,6 +38,8 @@ var _default = /*#__PURE__*/function () {
|
|
|
38
38
|
cb(_menus.PAGE_SUMMARY_SUBORDINATE);
|
|
39
39
|
} else if (this.isSummaryDashboard()) {
|
|
40
40
|
cb(_menus.PAGE_SUMMARY_DASHBOARD);
|
|
41
|
+
} else if (this.isSummaryTemplate()) {
|
|
42
|
+
cb(_menus.PAGE_SUMMARY_TEMPLATE);
|
|
41
43
|
}
|
|
42
44
|
|
|
43
45
|
return null;
|
|
@@ -84,6 +86,12 @@ var _default = /*#__PURE__*/function () {
|
|
|
84
86
|
var pathname = this.history.location.pathname;
|
|
85
87
|
return pathname.match(/summary\/dashboard/);
|
|
86
88
|
}
|
|
89
|
+
}, {
|
|
90
|
+
key: "isSummaryTemplate",
|
|
91
|
+
value: function isSummaryTemplate() {
|
|
92
|
+
var pathname = this.history.location.pathname;
|
|
93
|
+
return pathname.match(/summary\/template\/page/);
|
|
94
|
+
}
|
|
87
95
|
}]);
|
|
88
96
|
|
|
89
97
|
return _default;
|
|
@@ -141,13 +141,6 @@ var summaryMenus = /*#__PURE__*/function () {
|
|
|
141
141
|
type: _index.GROUP_NAME_NODE,
|
|
142
142
|
href: "",
|
|
143
143
|
isShow: isShowManage
|
|
144
|
-
}, {
|
|
145
|
-
icon: 'template',
|
|
146
|
-
label: _i18n.locale.menu_summary_template,
|
|
147
|
-
key: PAGE_SUMMARY_TEMPLATE,
|
|
148
|
-
type: _index.MENU_ITEM_NOE,
|
|
149
|
-
href: '#/summary/template/page',
|
|
150
|
-
isShow: props.isShowTemplate
|
|
151
144
|
}, {
|
|
152
145
|
icon: 'yibiao',
|
|
153
146
|
label: _i18n.locale.menu_summary_dashboard,
|
|
@@ -155,6 +148,13 @@ var summaryMenus = /*#__PURE__*/function () {
|
|
|
155
148
|
type: _index.MENU_ITEM_NOE,
|
|
156
149
|
href: '#/summary/dashboard',
|
|
157
150
|
isShow: props.isShowDashboard
|
|
151
|
+
}, {
|
|
152
|
+
icon: 'template',
|
|
153
|
+
label: _i18n.locale.menu_summary_template,
|
|
154
|
+
key: PAGE_SUMMARY_TEMPLATE,
|
|
155
|
+
type: _index.MENU_ITEM_NOE,
|
|
156
|
+
href: '#/summary/template/page',
|
|
157
|
+
isShow: props.isShowTemplate
|
|
158
158
|
}, {
|
|
159
159
|
icon: "my-setup",
|
|
160
160
|
label: _i18n.locale.menu_summary_role,
|
|
@@ -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,
|