@titaui/pc 1.5.69-beta.4 → 1.5.69-beta.8
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/avatar/icon-avatar/index.js +1 -1
- package/lib/components/avatar/index.js +5 -1
- package/lib/components/avatar/num-avatar/index.css +12 -0
- package/lib/components/avatar/num-avatar/index.js +34 -0
- package/lib/components/button/default-button/index.css +49 -0
- package/lib/components/button/default-button/index.js +51 -0
- package/lib/components/button/index.js +8 -2
- package/lib/components/communication/CommunicationRecord.js +106 -162
- package/lib/components/communication/index.js +27 -24
- package/lib/components/dropdown-layer/index.js +15 -12
- package/lib/components/dynamic/components/condition-render/index.js +20 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.css +6 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.js +2 -1
- package/lib/components/dynamic/components/obj-status/index.css +22 -0
- package/lib/components/dynamic/components/obj-status/index.js +38 -0
- package/lib/components/dynamic/components/percent/index.css +21 -0
- package/lib/components/dynamic/components/percent/index.js +38 -0
- package/lib/components/dynamic/components/title/index.css +35 -0
- package/lib/components/dynamic/{dynamic-item/components/publish-content → components/title}/index.js +27 -31
- package/lib/components/dynamic/constant.js +19 -2
- package/lib/components/dynamic/dynamic-item/components/{dynamic-item-header → header}/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/components/{dynamic-item-header → header}/index.js +23 -16
- package/lib/components/dynamic/dynamic-item/components/icon/index.css +10 -0
- package/lib/components/dynamic/dynamic-item/components/icon/index.js +35 -0
- package/lib/components/dynamic/dynamic-item/{components/align → dynamic-align}/img/dynamic-align.svg +0 -0
- package/lib/components/dynamic/dynamic-item/{components/align → dynamic-align}/img/dynamic-relative.svg +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +95 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +161 -0
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +51 -0
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +92 -0
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +48 -0
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +88 -0
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +94 -0
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +168 -0
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +85 -0
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +140 -0
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +95 -0
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +213 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project → dynamic-project}/constant.js +0 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-project}/img/project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +91 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +124 -0
- package/lib/components/dynamic/dynamic-item/{components/relative → dynamic-relative}/img/dynamic-relative.svg +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +95 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +180 -0
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.css +134 -0
- package/lib/components/dynamic/dynamic-item/{components/replay → dynamic-replay}/index.js +73 -11
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +94 -0
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +137 -0
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +97 -0
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +205 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +51 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +92 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/constant.js +13 -3
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/img/task-cancel.png +0 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/img/task-delay.png +0 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/img/task-done.png +0 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/img/task-pause.png +0 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/img/task-progress.png +0 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/img/task-unaccept.png +0 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/img/task-unstart.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +111 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +162 -0
- package/lib/components/dynamic/dynamic-item/index.css +11 -2
- package/lib/components/dynamic/dynamic-item/index.js +125 -76
- package/lib/components/dynamic/dynamic-like-ranking/index.css +1 -0
- package/lib/components/dynamic/dynamic-like-ranking/index.js +65 -19
- package/lib/components/dynamic/dynamic-like-ranking/item.js +20 -38
- package/lib/components/dynamic/dynamic-liking/index.css +1 -0
- package/lib/components/dynamic/dynamic-liking/index.js +10 -4
- package/lib/components/dynamic/dynamic-liking/item.js +37 -12
- package/lib/components/dynamic/dynamic-list/index.js +9 -3
- package/lib/components/dynamic/dynamic-topping/index.js +1 -1
- package/lib/components/dynamic/dynamic-topping/item.js +2 -2
- package/lib/components/dynamic/dynamic.css +30 -0
- package/lib/components/dynamic/dynamic.js +61 -27
- package/lib/components/dynamic/quick-operation/index.js +14 -4
- package/lib/components/dynamic/request-api.js +13 -1
- package/lib/components/dynamic/util.js +16 -2
- package/lib/components/grid-page/image/{Assistant.svg → assistant.svg} +0 -0
- package/lib/components/grid-page/image/{Boss.svg → boss.svg} +0 -0
- package/lib/components/grid-page/image/{Default-background.png → default-background.png} +0 -0
- package/lib/components/grid-page/personal-info/index.js +4 -4
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +56 -23
- package/lib/components/publish-dynamic-modal/requist-api.js +17 -2
- package/lib/components/upvote/index.js +15 -10
- package/lib/components/user-selector/export-modules/field-tree-selector/index.css +4 -0
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +8 -6
- package/lib/pages/like-ranking/column.js +21 -8
- package/lib/pages/like-ranking/filter-buttons/department.js +46 -10
- package/lib/pages/like-ranking/filter-buttons/index.css +4 -8
- package/lib/pages/like-ranking/filter-buttons/index.js +12 -11
- package/lib/pages/like-ranking/filter-buttons/modular.js +51 -28
- package/lib/pages/like-ranking/filter-buttons/name.js +33 -6
- package/lib/pages/like-ranking/filter-buttons/search-dropdown/index.css +17 -0
- package/lib/pages/like-ranking/filter-buttons/search-dropdown/index.js +8 -2
- package/lib/pages/like-ranking/filter-buttons/timer.js +26 -46
- package/lib/pages/like-ranking/index.css +37 -2
- package/lib/pages/like-ranking/index.js +121 -21
- package/lib/pages/like-ranking/request-api.js +15 -0
- package/lib/utils/bs-global.js +19 -2
- package/lib/utils/format-time.js +110 -8
- package/lib/utils/tools.js +50 -25
- package/package.json +1 -1
- package/lib/components/dynamic/components/common-title/index.css +0 -106
- package/lib/components/dynamic/components/common-title/index.js +0 -129
- package/lib/components/dynamic/dynamic-item/components/align/index.css +0 -66
- package/lib/components/dynamic/dynamic-item/components/align/index.js +0 -109
- package/lib/components/dynamic/dynamic-item/components/assessment/index.css +0 -20
- package/lib/components/dynamic/dynamic-item/components/assessment/index.js +0 -48
- package/lib/components/dynamic/dynamic-item/components/common-dynamic/index.css +0 -34
- package/lib/components/dynamic/dynamic-item/components/common-dynamic/index.js +0 -153
- package/lib/components/dynamic/dynamic-item/components/create-o/index.css +0 -52
- package/lib/components/dynamic/dynamic-item/components/create-o/index.js +0 -104
- package/lib/components/dynamic/dynamic-item/components/dynamic-desc/index.css +0 -62
- package/lib/components/dynamic/dynamic-item/components/dynamic-desc/index.js +0 -257
- package/lib/components/dynamic/dynamic-item/components/publish-content/index.css +0 -22
- package/lib/components/dynamic/dynamic-item/components/relative/index.css +0 -66
- package/lib/components/dynamic/dynamic-item/components/relative/index.js +0 -124
- package/lib/components/dynamic/dynamic-item/components/replay/index.css +0 -93
- package/lib/components/dynamic/dynamic-item/components/report/index.css +0 -32
- package/lib/components/dynamic/dynamic-item/components/report/index.js +0 -82
- package/lib/components/dynamic/dynamic-item/components/task-project/index.css +0 -57
- package/lib/components/dynamic/dynamic-item/components/task-project/index.js +0 -87
- package/lib/components/dynamic/dynamic-item/components/task-project-icon/index.css +0 -20
- package/lib/components/dynamic/dynamic-item/components/task-project-icon/index.js +0 -40
- package/lib/components/dynamic/dynamic-topping/mock.js +0 -1
- package/lib/pages/like-ranking/tab-bar/index.css +0 -22
- package/lib/pages/like-ranking/tab-bar/index.js +0 -65
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var _title = _interopRequireDefault(require("../../components/title"));
|
|
15
|
+
|
|
16
|
+
var _header = _interopRequireDefault(require("../components/header"));
|
|
17
|
+
|
|
18
|
+
var _util = require("../../util");
|
|
19
|
+
|
|
20
|
+
require("./index.css");
|
|
21
|
+
|
|
22
|
+
var _excluded = ["data"];
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
+
|
|
26
|
+
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); }
|
|
27
|
+
|
|
28
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
|
+
|
|
30
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
31
|
+
|
|
32
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
33
|
+
|
|
34
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
35
|
+
|
|
36
|
+
var prefix = "titaui-dynamic-assessment-item";
|
|
37
|
+
|
|
38
|
+
var DynamicShare = function DynamicShare(_ref) {
|
|
39
|
+
var data = _ref.data,
|
|
40
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
41
|
+
|
|
42
|
+
var currentStep = JSON.parse(data.step).find(function (item) {
|
|
43
|
+
return item.status === 2;
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(data.feedType),
|
|
47
|
+
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
48
|
+
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
49
|
+
|
|
50
|
+
var handleClickTitle = function handleClickTitle() {
|
|
51
|
+
var assessId = data.url.split("assessId=")[1];
|
|
52
|
+
window.open(window.location.href.replace(location.hash, "#performance?reactRouterName=detail&formId=" + assessId));
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
var renderDesc = (0, _react.useMemo)(function () {
|
|
56
|
+
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
57
|
+
className: prefix + "__operate-desc"
|
|
58
|
+
}, "\u7684\u8003\u6838"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
59
|
+
className: prefix + "-desc-operate-type",
|
|
60
|
+
style: {
|
|
61
|
+
background: feedTypeColor
|
|
62
|
+
}
|
|
63
|
+
}, feedTypeText));
|
|
64
|
+
}, []);
|
|
65
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
66
|
+
className: prefix
|
|
67
|
+
}, /*#__PURE__*/_react["default"].createElement(_header["default"], _extends({
|
|
68
|
+
data: data
|
|
69
|
+
}, restProps, {
|
|
70
|
+
desc: renderDesc
|
|
71
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
72
|
+
className: "".concat(prefix, "__content")
|
|
73
|
+
}, /*#__PURE__*/_react["default"].createElement(_title["default"], {
|
|
74
|
+
content: "考核:" + data.assessName,
|
|
75
|
+
onClickTitle: handleClickTitle
|
|
76
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
77
|
+
className: prefix + "__infos"
|
|
78
|
+
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
79
|
+
className: (0, _classnames["default"])("tu-icon-jixiaojieduan", prefix + "__infos-icon")
|
|
80
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
81
|
+
className: prefix + "__infos-step-name"
|
|
82
|
+
}, currentStep.stepName), /*#__PURE__*/_react["default"].createElement("i", {
|
|
83
|
+
className: (0, _classnames["default"])("tu-icon-deferred", prefix + "__infos-icon")
|
|
84
|
+
}), /*#__PURE__*/_react["default"].createElement("span", null, data.startDate + "-" + data.deadline))));
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
var _default = DynamicShare;
|
|
88
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
.titaui-dynamic-create-o-item {
|
|
2
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.titaui-dynamic-create-o-item__content {
|
|
6
|
+
margin-left: 69px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.titaui-dynamic-create-o-item__infos-wrapper {
|
|
10
|
+
margin-top: 8px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.titaui-dynamic-create-o-item__okr {
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
font-size: 12px;
|
|
17
|
+
color: #89919f;
|
|
18
|
+
line-height: 18px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.titaui-dynamic-create-o-item__okr-type-icon, .titaui-dynamic-create-o-item__okr-cycle-icon {
|
|
22
|
+
margin-right: 4px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.titaui-dynamic-create-o-item__okr-cycle-icon {
|
|
26
|
+
margin-left: 20px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.titaui-dynamic-create-o-item__okr-krs {
|
|
30
|
+
margin-top: 4px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.titaui-dynamic-create-o-item__kr {
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
margin-top: 8px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.titaui-dynamic-create-o-item__kr-order {
|
|
40
|
+
font-size: 12px;
|
|
41
|
+
color: #2879ff;
|
|
42
|
+
line-height: 18px;
|
|
43
|
+
margin-right: 4px;
|
|
44
|
+
margin-top: 1px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.titaui-dynamic-create-o-item__kr-name {
|
|
48
|
+
font-size: 14px;
|
|
49
|
+
color: #3f4755;
|
|
50
|
+
line-height: 22px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.titaui-dynamic-create-o-item__kr-name:hover {
|
|
54
|
+
color: #2879ff;
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.titaui-dynamic-create-o-item__classify {
|
|
59
|
+
display: flex;
|
|
60
|
+
width: 18px;
|
|
61
|
+
margin-left: 8px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.titaui-dynamic-create-o-item__classify--desire {
|
|
65
|
+
background: url("../../img/dynamic-desire.svg") no-repeat;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.titaui-dynamic-create-o-item__classify--promise {
|
|
69
|
+
background: url("../../img/dynamic-promise.svg") no-repeat;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.titaui-dynamic-create-o-item__operate-desc {
|
|
73
|
+
font-size: 14px;
|
|
74
|
+
font-weight: 400;
|
|
75
|
+
color: #89919f;
|
|
76
|
+
line-height: 22px;
|
|
77
|
+
margin: 0 8px 0 4px;
|
|
78
|
+
overflow: hidden;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.titaui-dynamic-create-o-item-desc-operate-type {
|
|
82
|
+
display: inline-flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
justify-content: center;
|
|
85
|
+
width: 40px;
|
|
86
|
+
height: 18px;
|
|
87
|
+
min-width: 40px;
|
|
88
|
+
clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
89
|
+
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
90
|
+
border-radius: 14px 10px 10px 4px;
|
|
91
|
+
font-size: 12px;
|
|
92
|
+
color: #ffffff;
|
|
93
|
+
line-height: 18px;
|
|
94
|
+
}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handle"));
|
|
15
|
+
|
|
16
|
+
var _header = _interopRequireDefault(require("../components/header"));
|
|
17
|
+
|
|
18
|
+
var _title = _interopRequireDefault(require("../../components/title"));
|
|
19
|
+
|
|
20
|
+
var _manager = _interopRequireDefault(require("../../../drawer/manager"));
|
|
21
|
+
|
|
22
|
+
var _openData = require("../../../../utils/open-data");
|
|
23
|
+
|
|
24
|
+
var _context = require("../../context");
|
|
25
|
+
|
|
26
|
+
var _util = require("../../util");
|
|
27
|
+
|
|
28
|
+
require("./index.css");
|
|
29
|
+
|
|
30
|
+
var _excluded = ["data"];
|
|
31
|
+
|
|
32
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
33
|
+
|
|
34
|
+
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); }
|
|
35
|
+
|
|
36
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
37
|
+
|
|
38
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
39
|
+
|
|
40
|
+
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; }
|
|
41
|
+
|
|
42
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
43
|
+
|
|
44
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
45
|
+
|
|
46
|
+
var prefix = "titaui-dynamic-create-o-item";
|
|
47
|
+
|
|
48
|
+
var DynamicCreateO = function DynamicCreateO(_ref) {
|
|
49
|
+
var data = _ref.data,
|
|
50
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
51
|
+
|
|
52
|
+
var okrId = data.okrId,
|
|
53
|
+
okrName = data.okrName,
|
|
54
|
+
krs = data.krs,
|
|
55
|
+
okrType = data.okrType,
|
|
56
|
+
cycleName = data.cycleName,
|
|
57
|
+
okrTypeName = data.okrTypeName,
|
|
58
|
+
okrTypeId = data.okrTypeId,
|
|
59
|
+
classify = data.classify;
|
|
60
|
+
|
|
61
|
+
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
62
|
+
searchKeyWord = _useContext.searchKeyWord;
|
|
63
|
+
|
|
64
|
+
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(data.feedType),
|
|
65
|
+
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
66
|
+
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
67
|
+
|
|
68
|
+
var handleClickOTitle = function handleClickOTitle() {
|
|
69
|
+
_manager["default"].open("okrDetail", {
|
|
70
|
+
okrId: okrId
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
var handleClickKrTitle = function handleClickKrTitle(id) {
|
|
75
|
+
_manager["default"].open("krDetail", {
|
|
76
|
+
krId: id
|
|
77
|
+
});
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
var okrTypeMap = {
|
|
81
|
+
1: {
|
|
82
|
+
icon: "tu-icon-liebiao-geren",
|
|
83
|
+
text: "个人"
|
|
84
|
+
},
|
|
85
|
+
// 个人
|
|
86
|
+
2: {
|
|
87
|
+
icon: "tu-icon-liebiao-xiashu",
|
|
88
|
+
text: // @ts-ignore
|
|
89
|
+
"departmentId" == -1 ? "默认部门" : /*#__PURE__*/_react["default"].createElement(_openData.OpenDepartmentName, {
|
|
90
|
+
id: okrTypeId,
|
|
91
|
+
name: okrTypeName
|
|
92
|
+
})
|
|
93
|
+
},
|
|
94
|
+
// 部门
|
|
95
|
+
3: {
|
|
96
|
+
icon: "tu-icon-gong_si",
|
|
97
|
+
text: "公司"
|
|
98
|
+
},
|
|
99
|
+
// 公司
|
|
100
|
+
4: {
|
|
101
|
+
icon: "tu-icon-liebiao-tuandui",
|
|
102
|
+
text: okrTypeName || "团队"
|
|
103
|
+
} // 团队
|
|
104
|
+
|
|
105
|
+
};
|
|
106
|
+
var okrTypeInfo = okrTypeMap[okrType];
|
|
107
|
+
var Classify = (0, _react.useMemo)(function () {
|
|
108
|
+
var _classNames;
|
|
109
|
+
|
|
110
|
+
if (Number(classify) == 0) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
115
|
+
className: (0, _classnames["default"])("".concat(prefix, "__classify"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "__classify--desire"), classify == 1), _defineProperty(_classNames, "".concat(prefix, "__classify--promise"), classify == 2), _classNames))
|
|
116
|
+
});
|
|
117
|
+
}, [classify]);
|
|
118
|
+
var renderDesc = (0, _react.useMemo)(function () {
|
|
119
|
+
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
120
|
+
className: prefix + "__operate-desc"
|
|
121
|
+
}, "\u8D1F\u8D23\u4E86\u76EE\u6807"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
122
|
+
className: prefix + "-desc-operate-type",
|
|
123
|
+
style: {
|
|
124
|
+
background: feedTypeColor
|
|
125
|
+
}
|
|
126
|
+
}, feedTypeText));
|
|
127
|
+
}, []);
|
|
128
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
129
|
+
className: prefix
|
|
130
|
+
}, /*#__PURE__*/_react["default"].createElement(_header["default"], _extends({
|
|
131
|
+
data: data
|
|
132
|
+
}, restProps, {
|
|
133
|
+
desc: renderDesc
|
|
134
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
135
|
+
className: prefix + "__content"
|
|
136
|
+
}, /*#__PURE__*/_react["default"].createElement(_title["default"], {
|
|
137
|
+
content: "O:" + okrName,
|
|
138
|
+
onClickTitle: handleClickOTitle,
|
|
139
|
+
suffixContent: Classify
|
|
140
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
141
|
+
className: "".concat(prefix, "__infos-wrapper")
|
|
142
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
143
|
+
className: "".concat(prefix, "__okr")
|
|
144
|
+
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
145
|
+
className: (0, _classnames["default"])(okrTypeInfo.icon, "".concat(prefix, "__okr-type-icon"))
|
|
146
|
+
}), okrTypeInfo.text, /*#__PURE__*/_react["default"].createElement("i", {
|
|
147
|
+
className: (0, _classnames["default"])("tu-icon-deferred", "".concat(prefix, "__okr-cycle-icon"))
|
|
148
|
+
}), cycleName), krs && krs.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
149
|
+
className: "".concat(prefix, "__okr-krs")
|
|
150
|
+
}, krs.map(function (kr, index) {
|
|
151
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
152
|
+
className: "".concat(prefix, "__kr")
|
|
153
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
154
|
+
className: "".concat(prefix, "__kr-order")
|
|
155
|
+
}, "KR", index + 1), /*#__PURE__*/_react["default"].createElement("span", {
|
|
156
|
+
className: "".concat(prefix, "__kr-name"),
|
|
157
|
+
onClick: function onClick() {
|
|
158
|
+
handleClickKrTitle(kr.krId);
|
|
159
|
+
}
|
|
160
|
+
}, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
161
|
+
str: kr.krName,
|
|
162
|
+
keyWord: searchKeyWord
|
|
163
|
+
})));
|
|
164
|
+
})))));
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
var _default = DynamicCreateO;
|
|
168
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
.titaui-dynamic-kr-item {
|
|
2
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.titaui-dynamic-kr-item__content {
|
|
6
|
+
margin-left: 69px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.titaui-dynamic-kr-item__title {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.titaui-dynamic-kr-item__description {
|
|
16
|
+
font-size: 14px;
|
|
17
|
+
color: #3F4755;
|
|
18
|
+
line-height: 22px;
|
|
19
|
+
display: flex;
|
|
20
|
+
margin-top: 12px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.titaui-dynamic-kr-item__description-quoto {
|
|
24
|
+
width: 12px;
|
|
25
|
+
height: 12px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.titaui-dynamic-kr-item__description-quoto--left {
|
|
29
|
+
margin-right: 8px;
|
|
30
|
+
margin-top: -6px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.titaui-dynamic-kr-item__description-quoto--right {
|
|
34
|
+
margin-left: 8px;
|
|
35
|
+
margin-top: 4px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.titaui-dynamic-kr-item__status-left {
|
|
39
|
+
margin-left: 12px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.titaui-dynamic-kr-item__percent-left {
|
|
43
|
+
margin-left: 8px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.titaui-dynamic-kr-item__object-name {
|
|
47
|
+
font-size: 14px;
|
|
48
|
+
color: #2879ff;
|
|
49
|
+
line-height: 22px;
|
|
50
|
+
margin: 0 4px;
|
|
51
|
+
overflow: hidden;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.titaui-dynamic-kr-item__object-name:hover {
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
color: #5c8eff;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.titaui-dynamic-kr-item__operate-desc {
|
|
60
|
+
font-size: 14px;
|
|
61
|
+
font-weight: 400;
|
|
62
|
+
color: #89919f;
|
|
63
|
+
line-height: 22px;
|
|
64
|
+
margin: 0 8px 0 4px;
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.titaui-dynamic-kr-item__operate-desc-wrapper {
|
|
69
|
+
display: flex;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.titaui-dynamic-kr-item-desc-operate-type {
|
|
73
|
+
display: inline-flex;
|
|
74
|
+
align-items: center;
|
|
75
|
+
justify-content: center;
|
|
76
|
+
width: 40px;
|
|
77
|
+
height: 18px;
|
|
78
|
+
min-width: 40px;
|
|
79
|
+
clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
80
|
+
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
81
|
+
border-radius: 14px 10px 10px 4px;
|
|
82
|
+
font-size: 12px;
|
|
83
|
+
color: #ffffff;
|
|
84
|
+
line-height: 18px;
|
|
85
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var _dynamicLeftQuoto = _interopRequireDefault(require("../../img/dynamic-left-quoto.svg"));
|
|
15
|
+
|
|
16
|
+
var _dynamicRightQuoto = _interopRequireDefault(require("../../img/dynamic-right-quoto.svg"));
|
|
17
|
+
|
|
18
|
+
var _manager = _interopRequireDefault(require("../../../drawer/manager"));
|
|
19
|
+
|
|
20
|
+
var _context = require("../../context");
|
|
21
|
+
|
|
22
|
+
var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handle"));
|
|
23
|
+
|
|
24
|
+
var _header = _interopRequireDefault(require("../components/header"));
|
|
25
|
+
|
|
26
|
+
var _title = _interopRequireDefault(require("../../components/title"));
|
|
27
|
+
|
|
28
|
+
var _percent = _interopRequireDefault(require("../../components/percent"));
|
|
29
|
+
|
|
30
|
+
var _objStatus = _interopRequireDefault(require("../../components/obj-status"));
|
|
31
|
+
|
|
32
|
+
var _util = require("../../util");
|
|
33
|
+
|
|
34
|
+
var _constant = require("../../constant");
|
|
35
|
+
|
|
36
|
+
var _tooltip = require("../../../tooltip");
|
|
37
|
+
|
|
38
|
+
require("./index.css");
|
|
39
|
+
|
|
40
|
+
var _excluded = ["data"];
|
|
41
|
+
|
|
42
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
43
|
+
|
|
44
|
+
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); }
|
|
45
|
+
|
|
46
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
47
|
+
|
|
48
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
49
|
+
|
|
50
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
51
|
+
|
|
52
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
53
|
+
|
|
54
|
+
var prefix = "titaui-dynamic-kr-item";
|
|
55
|
+
|
|
56
|
+
var DynamicKr = function DynamicKr(_ref) {
|
|
57
|
+
var data = _ref.data,
|
|
58
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
59
|
+
|
|
60
|
+
var progress = data.progress,
|
|
61
|
+
progressDescription = data.progressDescription,
|
|
62
|
+
progressGrow = data.progressGrow,
|
|
63
|
+
riskLevel = data.riskLevel,
|
|
64
|
+
name = data.name,
|
|
65
|
+
krId = data.krId;
|
|
66
|
+
|
|
67
|
+
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
68
|
+
searchKeyWord = _useContext.searchKeyWord;
|
|
69
|
+
|
|
70
|
+
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(data.feedType),
|
|
71
|
+
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
72
|
+
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
73
|
+
|
|
74
|
+
var handleClickKrTitle = function handleClickKrTitle() {
|
|
75
|
+
_manager["default"].open("krDetail", {
|
|
76
|
+
krId: krId
|
|
77
|
+
});
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
var handleClickOTitle = function handleClickOTitle() {
|
|
81
|
+
_manager["default"].open("okrDetail", {
|
|
82
|
+
okrId: data.obj.objId
|
|
83
|
+
});
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
var renderDesc = (0, _react.useMemo)(function () {
|
|
87
|
+
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
88
|
+
className: prefix + "__operate-desc"
|
|
89
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
90
|
+
className: prefix + "__operate-desc-wrapper"
|
|
91
|
+
}, "\u8D1F\u8D23\u4E86", _constant.ObjTypeMapText[data.obj.objType], /*#__PURE__*/_react["default"].createElement("span", {
|
|
92
|
+
className: prefix + "__object-name",
|
|
93
|
+
onClick: handleClickOTitle
|
|
94
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip.TooltipText, {
|
|
95
|
+
text: data.obj.objName,
|
|
96
|
+
isPercent: true
|
|
97
|
+
})), "\u4E0B\u5173\u952E\u6210\u679C")), /*#__PURE__*/_react["default"].createElement("span", {
|
|
98
|
+
className: prefix + "-desc-operate-type",
|
|
99
|
+
style: {
|
|
100
|
+
background: feedTypeColor
|
|
101
|
+
}
|
|
102
|
+
}, feedTypeText));
|
|
103
|
+
}, []);
|
|
104
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
105
|
+
className: prefix
|
|
106
|
+
}, /*#__PURE__*/_react["default"].createElement(_header["default"], _extends({
|
|
107
|
+
data: data
|
|
108
|
+
}, restProps, {
|
|
109
|
+
desc: renderDesc
|
|
110
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
111
|
+
className: prefix + "__content"
|
|
112
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
113
|
+
className: prefix + "__title"
|
|
114
|
+
}, /*#__PURE__*/_react["default"].createElement(_title["default"], {
|
|
115
|
+
content: "KR\uFF1A".concat(name),
|
|
116
|
+
onClickTitle: handleClickKrTitle
|
|
117
|
+
}), /*#__PURE__*/_react["default"].createElement(_objStatus["default"], {
|
|
118
|
+
oStatus: 1,
|
|
119
|
+
riskLevel: riskLevel,
|
|
120
|
+
extraClass: "".concat(prefix, "__status-left")
|
|
121
|
+
}), /*#__PURE__*/_react["default"].createElement(_percent["default"], {
|
|
122
|
+
percent: progress,
|
|
123
|
+
growPercent: progressGrow,
|
|
124
|
+
extraClass: "".concat(prefix, "__percent-left")
|
|
125
|
+
})), progressDescription && /*#__PURE__*/_react["default"].createElement("div", {
|
|
126
|
+
className: prefix + "__description"
|
|
127
|
+
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("img", {
|
|
128
|
+
className: (0, _classnames["default"])(prefix + "__description-quoto", prefix + "__description-quoto--left"),
|
|
129
|
+
src: _dynamicLeftQuoto["default"]
|
|
130
|
+
})), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
131
|
+
str: progressDescription,
|
|
132
|
+
keyWord: searchKeyWord
|
|
133
|
+
}), /*#__PURE__*/_react["default"].createElement("img", {
|
|
134
|
+
className: (0, _classnames["default"])(prefix + "__description-quoto", prefix + "__description-quoto--right"),
|
|
135
|
+
src: _dynamicRightQuoto["default"]
|
|
136
|
+
})))));
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
var _default = DynamicKr;
|
|
140
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
.titaui-dynamic-progress-item {
|
|
2
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.titaui-dynamic-progress-item__content {
|
|
6
|
+
margin-left: 69px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.titaui-dynamic-progress-item__title {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.titaui-dynamic-progress-item__description {
|
|
16
|
+
font-size: 14px;
|
|
17
|
+
color: #3F4755;
|
|
18
|
+
line-height: 22px;
|
|
19
|
+
display: flex;
|
|
20
|
+
margin-top: 12px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.titaui-dynamic-progress-item__description-quoto {
|
|
24
|
+
width: 12px;
|
|
25
|
+
height: 12px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.titaui-dynamic-progress-item__description-quoto--left {
|
|
29
|
+
margin-right: 8px;
|
|
30
|
+
margin-top: -6px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.titaui-dynamic-progress-item__description-quoto--right {
|
|
34
|
+
margin-left: 8px;
|
|
35
|
+
margin-top: 4px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.titaui-dynamic-progress-item__status-left {
|
|
39
|
+
margin-left: 12px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.titaui-dynamic-progress-item__percent-left {
|
|
43
|
+
margin-left: 8px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.titaui-dynamic-progress-item__classify {
|
|
47
|
+
display: flex;
|
|
48
|
+
width: 18px;
|
|
49
|
+
margin-left: 8px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.titaui-dynamic-progress-item__classify--desire {
|
|
53
|
+
background: url("../../img/dynamic-desire.svg") no-repeat;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.titaui-dynamic-progress-item__classify--promise {
|
|
57
|
+
background: url("../../img/dynamic-promise.svg") no-repeat;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.titaui-dynamic-progress-item__object-name {
|
|
61
|
+
font-size: 14px;
|
|
62
|
+
color: #2879ff;
|
|
63
|
+
line-height: 22px;
|
|
64
|
+
margin: 0 4px;
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.titaui-dynamic-progress-item__object-name:hover {
|
|
69
|
+
cursor: pointer;
|
|
70
|
+
color: #5c8eff;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.titaui-dynamic-progress-item__operate-desc {
|
|
74
|
+
font-size: 14px;
|
|
75
|
+
font-weight: 400;
|
|
76
|
+
color: #89919f;
|
|
77
|
+
line-height: 22px;
|
|
78
|
+
margin: 0 8px 0 4px;
|
|
79
|
+
overflow: hidden;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.titaui-dynamic-progress-item-desc-operate-type {
|
|
83
|
+
display: inline-flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
justify-content: center;
|
|
86
|
+
width: 40px;
|
|
87
|
+
height: 18px;
|
|
88
|
+
min-width: 40px;
|
|
89
|
+
clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
90
|
+
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
91
|
+
border-radius: 14px 10px 10px 4px;
|
|
92
|
+
font-size: 12px;
|
|
93
|
+
color: #ffffff;
|
|
94
|
+
line-height: 18px;
|
|
95
|
+
}
|