@titaui/pc 1.5.69-beta.2 → 1.5.69-beta.23
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 +110 -162
- package/lib/components/communication/index.css +4 -0
- package/lib/components/communication/index.js +34 -25
- package/lib/components/communication/style.js +1 -1
- package/lib/components/create-okr/index.css +4 -0
- package/lib/components/create-okr/index.js +43 -31
- 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 +4 -2
- 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 +97 -73
- 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 +173 -0
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +54 -0
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +107 -0
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +48 -0
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +89 -0
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +96 -0
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +171 -0
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +67 -0
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +110 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project → dynamic-milestone}/constant.js +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +111 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +158 -0
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +95 -0
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +215 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/constant.js +16 -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 +125 -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 +192 -0
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.css +138 -0
- package/lib/components/dynamic/dynamic-item/{components/replay → dynamic-replay}/index.js +76 -11
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +153 -0
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +138 -0
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +97 -0
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +207 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +54 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +107 -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 +164 -0
- package/lib/components/dynamic/dynamic-item/index.css +34 -10
- package/lib/components/dynamic/dynamic-item/index.js +155 -85
- package/lib/components/dynamic/dynamic-like-ranking/index.css +11 -8
- package/lib/components/dynamic/dynamic-like-ranking/index.js +69 -20
- package/lib/components/dynamic/dynamic-like-ranking/item.js +28 -51
- package/lib/components/dynamic/dynamic-liking/index.css +1 -8
- package/lib/components/dynamic/dynamic-liking/index.js +10 -4
- package/lib/components/dynamic/dynamic-liking/item.js +46 -25
- package/lib/components/dynamic/dynamic-list/index.css +1 -1
- package/lib/components/dynamic/dynamic-list/index.js +9 -7
- package/lib/components/dynamic/dynamic-topping/index.css +0 -5
- package/lib/components/dynamic/dynamic-topping/index.js +1 -1
- package/lib/components/dynamic/dynamic-topping/item.js +13 -17
- package/lib/components/dynamic/dynamic.css +54 -0
- package/lib/components/dynamic/dynamic.js +126 -58
- package/lib/components/dynamic/img/dynamic-top.svg +14 -0
- package/lib/components/dynamic/quick-operation/index.css +3 -1
- package/lib/components/dynamic/quick-operation/index.js +14 -4
- package/lib/components/dynamic/request-api.js +20 -8
- package/lib/components/dynamic/util.js +41 -7
- package/lib/components/file-list/components/single-file/index.css +3 -3
- package/lib/components/grid-page/personal-info/index.js +4 -4
- package/lib/components/img-viewer/index.css +1 -1
- package/lib/components/mblog/index.js +2 -2
- package/lib/components/mblog/style.js +2 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +48 -25
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +62 -24
- package/lib/components/publish-dynamic-modal/requist-api.js +17 -2
- package/lib/components/table/index.css +0 -1
- package/lib/components/upload/style.js +1 -1
- package/lib/components/upvote/index.js +26 -14
- 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/index.js +5 -1
- package/lib/pages/dynamic/index.css +1 -0
- package/lib/pages/like-ranking/column.js +33 -14
- package/lib/pages/like-ranking/filter-buttons/department.js +8 -11
- package/lib/pages/like-ranking/filter-buttons/group.js +34 -0
- package/lib/pages/like-ranking/filter-buttons/index.css +4 -8
- package/lib/pages/like-ranking/filter-buttons/index.js +18 -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 +28 -46
- package/lib/pages/like-ranking/image/dynamic-empty.png +0 -0
- package/lib/pages/like-ranking/image/loading.gif +0 -0
- package/lib/pages/like-ranking/index.css +83 -4
- package/lib/pages/like-ranking/index.js +183 -22
- package/lib/pages/like-ranking/request-api.js +15 -0
- package/lib/utils/auth.js +16 -2
- package/lib/utils/bs-global.js +19 -2
- package/lib/utils/format-time.js +113 -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 -142
- 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 -256
- 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,192 @@
|
|
|
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 _header = _interopRequireDefault(require("../components/header"));
|
|
15
|
+
|
|
16
|
+
var _tooltip = require("../../../tooltip");
|
|
17
|
+
|
|
18
|
+
var _openData = require("../../../../utils/open-data");
|
|
19
|
+
|
|
20
|
+
var _constant = require("../../constant");
|
|
21
|
+
|
|
22
|
+
var _dynamicRelative = _interopRequireDefault(require("./img/dynamic-relative.svg"));
|
|
23
|
+
|
|
24
|
+
var _conditionRender = _interopRequireDefault(require("../../components/condition-render"));
|
|
25
|
+
|
|
26
|
+
var _manager = _interopRequireDefault(require("../../../drawer/manager"));
|
|
27
|
+
|
|
28
|
+
var _util = require("../../util");
|
|
29
|
+
|
|
30
|
+
var _context = require("../../context");
|
|
31
|
+
|
|
32
|
+
var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handle"));
|
|
33
|
+
|
|
34
|
+
require("./index.css");
|
|
35
|
+
|
|
36
|
+
var _excluded = ["data"];
|
|
37
|
+
|
|
38
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
39
|
+
|
|
40
|
+
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); }
|
|
41
|
+
|
|
42
|
+
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; }
|
|
43
|
+
|
|
44
|
+
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; }
|
|
45
|
+
|
|
46
|
+
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); }
|
|
47
|
+
|
|
48
|
+
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; }
|
|
49
|
+
|
|
50
|
+
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; }
|
|
51
|
+
|
|
52
|
+
var prefix = "titaui-dynamic-relative-item";
|
|
53
|
+
|
|
54
|
+
var DynamicRelative = function DynamicRelative(_ref) {
|
|
55
|
+
var _classNames;
|
|
56
|
+
|
|
57
|
+
var data = _ref.data,
|
|
58
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
59
|
+
|
|
60
|
+
var objName = data.objName,
|
|
61
|
+
objId = data.objId,
|
|
62
|
+
objType = data.objType,
|
|
63
|
+
relateObjType = data.relateObjType,
|
|
64
|
+
relateObjName = data.relateObjName,
|
|
65
|
+
relateObjId = data.relateObjId,
|
|
66
|
+
objCycleName = data.objCycleName,
|
|
67
|
+
status = data.status,
|
|
68
|
+
objPrincipalUser = data.objPrincipalUser,
|
|
69
|
+
rObjprincipalUser = data.rObjprincipalUser,
|
|
70
|
+
rObjCycleName = data.rObjCycleName,
|
|
71
|
+
publishUser = data.publishUser;
|
|
72
|
+
|
|
73
|
+
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
74
|
+
searchKeyWord = _useContext.searchKeyWord;
|
|
75
|
+
|
|
76
|
+
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(data.feedType),
|
|
77
|
+
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
78
|
+
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
79
|
+
|
|
80
|
+
var handleClickTitle = function handleClickTitle(id, type) {
|
|
81
|
+
if (type === _constant.EObjType.Kr) {
|
|
82
|
+
_manager["default"].open("krDetail", {
|
|
83
|
+
krId: id
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
if (type === _constant.EObjType.O) {
|
|
88
|
+
_manager["default"].open("okrDetail", {
|
|
89
|
+
okrId: id
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
if (type === _constant.EObjType.Project) {
|
|
94
|
+
window.open(window.location.href.replace(location.hash, "#work?iTalentNavCode=tita-work&work_id=" + id));
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
if (type === _constant.EObjType.Task) {
|
|
98
|
+
window.Talent.app.vent.trigger("global-pull-screen", id, "task");
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
var renderDesc = (0, _react.useMemo)(function () {
|
|
103
|
+
var text;
|
|
104
|
+
|
|
105
|
+
if (relateObjType === _constant.EObjType.Kr) {
|
|
106
|
+
text = "关联了关键成果";
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
if (relateObjType === _constant.EObjType.O) {
|
|
110
|
+
text = "关联了目标";
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
114
|
+
className: prefix + "__operate-desc"
|
|
115
|
+
}, text), /*#__PURE__*/_react["default"].createElement("span", {
|
|
116
|
+
className: prefix + "-desc-operate-type",
|
|
117
|
+
style: {
|
|
118
|
+
background: feedTypeColor
|
|
119
|
+
}
|
|
120
|
+
}, feedTypeText));
|
|
121
|
+
}, []);
|
|
122
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
123
|
+
className: prefix
|
|
124
|
+
}, /*#__PURE__*/_react["default"].createElement(_header["default"], _extends({
|
|
125
|
+
data: data
|
|
126
|
+
}, restProps, {
|
|
127
|
+
desc: renderDesc,
|
|
128
|
+
user: publishUser
|
|
129
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
130
|
+
className: "".concat(prefix, "__content")
|
|
131
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
132
|
+
className: prefix + "__obj"
|
|
133
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
134
|
+
className: prefix + "__obj-base-info"
|
|
135
|
+
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
136
|
+
className: (0, _classnames["default"])(prefix + "__obj-base-info-icon", {
|
|
137
|
+
"tu-icon-okr": relateObjType === _constant.EObjType.O,
|
|
138
|
+
"tu-icon-KR": relateObjType === _constant.EObjType.Kr
|
|
139
|
+
})
|
|
140
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
141
|
+
className: prefix + "__obj-title",
|
|
142
|
+
onClick: function onClick() {
|
|
143
|
+
handleClickTitle(relateObjId, relateObjType);
|
|
144
|
+
}
|
|
145
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip.TooltipText, {
|
|
146
|
+
isPercent: true,
|
|
147
|
+
text: /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
148
|
+
str: relateObjName,
|
|
149
|
+
keyWord: searchKeyWord
|
|
150
|
+
})
|
|
151
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
152
|
+
className: prefix + "__obj-principal-user"
|
|
153
|
+
}, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
154
|
+
condition: rObjprincipalUser
|
|
155
|
+
}, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
156
|
+
id: rObjprincipalUser.userId,
|
|
157
|
+
name: rObjprincipalUser.name
|
|
158
|
+
}))), /*#__PURE__*/_react["default"].createElement("span", {
|
|
159
|
+
className: prefix + "__obj-cycle"
|
|
160
|
+
}, rObjCycleName))), /*#__PURE__*/_react["default"].createElement("img", {
|
|
161
|
+
className: prefix + "__relative-img",
|
|
162
|
+
src: _dynamicRelative["default"]
|
|
163
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
164
|
+
className: prefix + "__space"
|
|
165
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
166
|
+
className: prefix + "__obj"
|
|
167
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
168
|
+
className: prefix + "__obj-base-info"
|
|
169
|
+
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
170
|
+
className: (0, _classnames["default"])(prefix + "__obj-base-info-icon", (_classNames = {}, _defineProperty(_classNames, _constant.EStatusStatus2ClassType[status], objType === _constant.EObjType.Task), _defineProperty(_classNames, "tu-icon-project-s", objType === _constant.EObjType.Project), _classNames))
|
|
171
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
172
|
+
className: prefix + "__obj-title",
|
|
173
|
+
onClick: function onClick() {
|
|
174
|
+
handleClickTitle(objId, objType);
|
|
175
|
+
}
|
|
176
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip.TooltipText, {
|
|
177
|
+
isPercent: true,
|
|
178
|
+
text: objName
|
|
179
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
180
|
+
className: prefix + "__obj-principal-user"
|
|
181
|
+
}, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
182
|
+
condition: objPrincipalUser
|
|
183
|
+
}, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
184
|
+
id: objPrincipalUser.userId,
|
|
185
|
+
name: objPrincipalUser.name
|
|
186
|
+
}))), /*#__PURE__*/_react["default"].createElement("span", {
|
|
187
|
+
className: prefix + "__obj-cycle"
|
|
188
|
+
}, objCycleName)))));
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
var _default = DynamicRelative;
|
|
192
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
.titaui-dynamic-reply-item {
|
|
2
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.titaui-dynamic-reply-item__content {
|
|
6
|
+
margin-left: 69px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.titaui-dynamic-reply-item__detail {
|
|
10
|
+
margin-top: 16px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.titaui-dynamic-reply-item__detail-gain {
|
|
14
|
+
margin-bottom: 16px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.titaui-dynamic-reply-item__detail-drawback {
|
|
18
|
+
margin-bottom: 16px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.titaui-dynamic-reply-item__detail-tasks-item {
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
margin-left: 8px;
|
|
25
|
+
font-size: 14px;
|
|
26
|
+
color: #6f7886;
|
|
27
|
+
line-height: 22px;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.titaui-dynamic-reply-item__detail-tasks-item::before {
|
|
32
|
+
content: "";
|
|
33
|
+
display: inline-block;
|
|
34
|
+
width: 6px;
|
|
35
|
+
height: 6px;
|
|
36
|
+
background: #2879ff;
|
|
37
|
+
border-radius: 50%;
|
|
38
|
+
margin-right: 6px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.titaui-dynamic-reply-item__detail-tasks-item:hover {
|
|
42
|
+
color: #2879ff;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.titaui-dynamic-reply-item__detail-block-title {
|
|
46
|
+
font-size: 14px;
|
|
47
|
+
font-weight: 600;
|
|
48
|
+
color: #3f4755;
|
|
49
|
+
line-height: 22px;
|
|
50
|
+
display: flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
margin-bottom: 8px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.titaui-dynamic-reply-item__detail-block-title::before {
|
|
56
|
+
content: "";
|
|
57
|
+
display: inline-block;
|
|
58
|
+
width: 4px;
|
|
59
|
+
height: 12px;
|
|
60
|
+
background: linear-gradient(180deg, #2879ff 0%, #9fbfff 100%);
|
|
61
|
+
border-radius: 2px;
|
|
62
|
+
margin-right: 4px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.titaui-dynamic-reply-item__detail-block-title--sub {
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
margin-bottom: 4px;
|
|
69
|
+
font-size: 14px;
|
|
70
|
+
font-weight: 600;
|
|
71
|
+
color: #3f4755;
|
|
72
|
+
line-height: 22px;
|
|
73
|
+
margin-left: 8px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.titaui-dynamic-reply-item__detail-block-title--sub::before {
|
|
77
|
+
content: "";
|
|
78
|
+
display: inline-block;
|
|
79
|
+
width: 6px;
|
|
80
|
+
height: 6px;
|
|
81
|
+
background: #2879ff;
|
|
82
|
+
border-radius: 50%;
|
|
83
|
+
margin-right: 6px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.titaui-dynamic-reply-item__detail-block-content {
|
|
87
|
+
font-size: 14px;
|
|
88
|
+
font-weight: 400;
|
|
89
|
+
color: #6f7886;
|
|
90
|
+
line-height: 22px;
|
|
91
|
+
margin-bottom: 4px;
|
|
92
|
+
margin-left: 8px;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.titaui-dynamic-reply-item__detail-block-content--sub {
|
|
96
|
+
margin-left: 20px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.titaui-dynamic-reply-item__object-name {
|
|
100
|
+
font-size: 14px;
|
|
101
|
+
color: #2879ff;
|
|
102
|
+
line-height: 22px;
|
|
103
|
+
margin: 0 4px;
|
|
104
|
+
overflow: hidden;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.titaui-dynamic-reply-item__object-name:hover {
|
|
108
|
+
cursor: pointer;
|
|
109
|
+
color: #5c8eff;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.titaui-dynamic-reply-item__operate-desc {
|
|
113
|
+
font-size: 14px;
|
|
114
|
+
font-weight: 400;
|
|
115
|
+
color: #89919f;
|
|
116
|
+
line-height: 22px;
|
|
117
|
+
margin: 0 8px 0 4px;
|
|
118
|
+
overflow: hidden;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.titaui-dynamic-reply-item__operate-desc-wrapper {
|
|
122
|
+
display: flex;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.titaui-dynamic-reply-item-desc-operate-type {
|
|
126
|
+
display: inline-flex;
|
|
127
|
+
align-items: center;
|
|
128
|
+
justify-content: center;
|
|
129
|
+
padding: 0 2px;
|
|
130
|
+
height: 18px;
|
|
131
|
+
min-width: 40px;
|
|
132
|
+
clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
133
|
+
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
134
|
+
border-radius: 14px 10px 10px 4px;
|
|
135
|
+
font-size: 12px;
|
|
136
|
+
color: #ffffff;
|
|
137
|
+
line-height: 18px;
|
|
138
|
+
}
|
|
@@ -11,32 +11,55 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _context = require("../../context");
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handle"));
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _header = _interopRequireDefault(require("../components/header"));
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _manager = _interopRequireDefault(require("../../../drawer/manager"));
|
|
21
21
|
|
|
22
|
-
var _constant = require("
|
|
22
|
+
var _constant = require("../../constant");
|
|
23
|
+
|
|
24
|
+
var _title = _interopRequireDefault(require("../../components/title"));
|
|
25
|
+
|
|
26
|
+
var _util = require("../../util");
|
|
27
|
+
|
|
28
|
+
var _tooltip = require("../../../tooltip");
|
|
23
29
|
|
|
24
30
|
require("./index.css");
|
|
25
31
|
|
|
32
|
+
var _excluded = ["data"];
|
|
33
|
+
|
|
26
34
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
35
|
|
|
28
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); }
|
|
29
37
|
|
|
30
38
|
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; }
|
|
31
39
|
|
|
32
|
-
var
|
|
40
|
+
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); }
|
|
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; }
|
|
33
43
|
|
|
34
|
-
var
|
|
35
|
-
|
|
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-reply-item";
|
|
47
|
+
|
|
48
|
+
var DynamicReply = function DynamicReply(_ref) {
|
|
49
|
+
var data = _ref.data,
|
|
50
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
36
51
|
|
|
37
52
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
38
53
|
searchKeyWord = _useContext.searchKeyWord;
|
|
39
54
|
|
|
55
|
+
var replayObjType = data.replayObjType,
|
|
56
|
+
feedType = data.feedType,
|
|
57
|
+
publishUser = data.publishUser;
|
|
58
|
+
|
|
59
|
+
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(feedType),
|
|
60
|
+
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
61
|
+
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
62
|
+
|
|
40
63
|
var handleShowTaskDrawer = function handleShowTaskDrawer(taskId) {
|
|
41
64
|
window.Talent.app.vent.trigger("global-pull-screen", taskId, "task");
|
|
42
65
|
};
|
|
@@ -55,9 +78,50 @@ var DynamicReplay = function DynamicReplay(_ref) {
|
|
|
55
78
|
}
|
|
56
79
|
};
|
|
57
80
|
|
|
81
|
+
var handleClickOTitle = function handleClickOTitle() {
|
|
82
|
+
_manager["default"].open("okrDetail", {
|
|
83
|
+
okrId: data.obj.objId
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
var renderDesc = (0, _react.useMemo)(function () {
|
|
88
|
+
var dom;
|
|
89
|
+
|
|
90
|
+
if (replayObjType === _constant.EObjType.O) {
|
|
91
|
+
dom = "的目标复盘";
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if (replayObjType === _constant.EObjType.Kr) {
|
|
95
|
+
dom = /*#__PURE__*/_react["default"].createElement("span", {
|
|
96
|
+
className: prefix + "__operate-desc-wrapper"
|
|
97
|
+
}, "\u5728\u76EE\u6807", /*#__PURE__*/_react["default"].createElement("span", {
|
|
98
|
+
className: prefix + "__object-name",
|
|
99
|
+
onClick: handleClickOTitle
|
|
100
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip.TooltipText, {
|
|
101
|
+
text: data.obj.objName,
|
|
102
|
+
isPercent: true
|
|
103
|
+
})), "\u4E0B\u5173\u952E\u6210\u679C\u7684\u590D\u76D8");
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
107
|
+
className: prefix + "__operate-desc"
|
|
108
|
+
}, dom), /*#__PURE__*/_react["default"].createElement("span", {
|
|
109
|
+
className: prefix + "-desc-operate-type",
|
|
110
|
+
style: {
|
|
111
|
+
background: feedTypeColor
|
|
112
|
+
}
|
|
113
|
+
}, feedTypeText));
|
|
114
|
+
}, []);
|
|
58
115
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
59
116
|
className: prefix
|
|
60
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
117
|
+
}, /*#__PURE__*/_react["default"].createElement(_header["default"], _extends({
|
|
118
|
+
data: data
|
|
119
|
+
}, restProps, {
|
|
120
|
+
desc: renderDesc,
|
|
121
|
+
user: publishUser
|
|
122
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
123
|
+
className: prefix + "__content"
|
|
124
|
+
}, /*#__PURE__*/_react["default"].createElement(_title["default"], {
|
|
61
125
|
content: "".concat(data.replayObjType === 65 ? "KR:" : "O:").concat(data.replayObjName),
|
|
62
126
|
onClickTitle: handleClickTitle
|
|
63
127
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -103,6 +167,7 @@ var DynamicReplay = function DynamicReplay(_ref) {
|
|
|
103
167
|
className: prefix + "__detail-block-title"
|
|
104
168
|
}, "\u884C\u52A8\u8BA1\u5212"), data.tasks && data.tasks.map(function (task) {
|
|
105
169
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
170
|
+
key: task.taskId,
|
|
106
171
|
className: prefix + "__detail-tasks-item",
|
|
107
172
|
onClick: function onClick() {
|
|
108
173
|
handleShowTaskDrawer(task.taskId);
|
|
@@ -111,8 +176,8 @@ var DynamicReplay = function DynamicReplay(_ref) {
|
|
|
111
176
|
str: task.taskName,
|
|
112
177
|
keyWord: searchKeyWord
|
|
113
178
|
}));
|
|
114
|
-
}))));
|
|
179
|
+
})))));
|
|
115
180
|
};
|
|
116
181
|
|
|
117
|
-
var _default =
|
|
182
|
+
var _default = DynamicReply;
|
|
118
183
|
exports["default"] = _default;
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
.titaui-dynamic-report-item {
|
|
2
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.titaui-dynamic-report-item__content {
|
|
6
|
+
margin-left: 69px;
|
|
7
|
+
line-height: 24px;
|
|
8
|
+
word-wrap: break-word;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.titaui-dynamic-report-item__content ul {
|
|
12
|
+
list-style-type: disc;
|
|
13
|
+
padding-left: 20px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.titaui-dynamic-report-item__content ol {
|
|
17
|
+
list-style-type: decimal;
|
|
18
|
+
padding-left: 20px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.titaui-dynamic-report-item__content li {
|
|
22
|
+
list-style-type: inherit;
|
|
23
|
+
margin: 5px 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.titaui-dynamic-report-item__content table {
|
|
27
|
+
margin: 5px 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.titaui-dynamic-report-item__content table td {
|
|
31
|
+
border: 1px solid #999;
|
|
32
|
+
padding: 3px 5px;
|
|
33
|
+
min-width: 50px;
|
|
34
|
+
height: 20px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.titaui-dynamic-report-item__content p {
|
|
38
|
+
margin: 5px 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.titaui-dynamic-report-item__content blockquote {
|
|
42
|
+
display: block;
|
|
43
|
+
border-left: 4px solid #e3ecf1;
|
|
44
|
+
padding: 5px;
|
|
45
|
+
font-size: 12px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.titaui-dynamic-report-item__content p,
|
|
49
|
+
.titaui-dynamic-report-item__content li {
|
|
50
|
+
line-height: 1.7;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.titaui-dynamic-report-item__content a {
|
|
54
|
+
word-wrap: break-word;
|
|
55
|
+
word-break: break-all;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.titaui-dynamic-report-item__content pre {
|
|
59
|
+
padding: 10px;
|
|
60
|
+
margin: 5px 0px;
|
|
61
|
+
font-size: 0.8em;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.titaui-dynamic-report-item__content pre code {
|
|
65
|
+
line-height: 1.5;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.titaui-dynamic-report-item__summary {
|
|
69
|
+
margin-bottom: 16px;
|
|
70
|
+
margin-top: 12px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.titaui-dynamic-report-item__block-title {
|
|
74
|
+
font-size: 14px;
|
|
75
|
+
font-weight: 600;
|
|
76
|
+
color: #3f4755;
|
|
77
|
+
line-height: 22px;
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
margin-bottom: 8px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.titaui-dynamic-report-item__block-title::before {
|
|
84
|
+
content: "";
|
|
85
|
+
display: inline-block;
|
|
86
|
+
width: 4px;
|
|
87
|
+
height: 12px;
|
|
88
|
+
background: linear-gradient(180deg, #2879ff 0%, #9fbfff 100%);
|
|
89
|
+
border-radius: 2px;
|
|
90
|
+
margin-right: 4px;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.titaui-dynamic-report-item__content-text {
|
|
94
|
+
margin-left: 8px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.titaui-dynamic-report-item__complete-type {
|
|
98
|
+
display: flex;
|
|
99
|
+
align-items: center;
|
|
100
|
+
font-size: 14px;
|
|
101
|
+
line-height: 22px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.titaui-dynamic-report-item__complete-type-icon {
|
|
105
|
+
margin-right: 4px;
|
|
106
|
+
display: inline-block;
|
|
107
|
+
width: 16px;
|
|
108
|
+
height: 16px;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.titaui-dynamic-report-item__complete-type-icon--normal {
|
|
112
|
+
background: url("../../img/dynamic-submit-normal.svg") no-repeat;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.titaui-dynamic-report-item__complete-type-icon--delay {
|
|
116
|
+
background: url("../../img/dynamic-submit-delay.svg") no-repeat;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.titaui-dynamic-report-item__complete-type--normal {
|
|
120
|
+
color: #5ad8a6;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.titaui-dynamic-report-item__complete-type--delay {
|
|
124
|
+
color: #624dff;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.titaui-dynamic-report-item .highlight {
|
|
128
|
+
color: #f05e5e;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.titaui-dynamic-report-item__operate-desc {
|
|
132
|
+
font-size: 14px;
|
|
133
|
+
font-weight: 400;
|
|
134
|
+
color: #89919f;
|
|
135
|
+
line-height: 22px;
|
|
136
|
+
margin: 0 8px 0 4px;
|
|
137
|
+
overflow: hidden;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.titaui-dynamic-report-item-desc-operate-type {
|
|
141
|
+
display: inline-flex;
|
|
142
|
+
align-items: center;
|
|
143
|
+
justify-content: center;
|
|
144
|
+
padding: 0 2px;
|
|
145
|
+
height: 18px;
|
|
146
|
+
min-width: 40px;
|
|
147
|
+
clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
148
|
+
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
149
|
+
border-radius: 14px 10px 10px 4px;
|
|
150
|
+
font-size: 12px;
|
|
151
|
+
color: #ffffff;
|
|
152
|
+
line-height: 18px;
|
|
153
|
+
}
|