@titaui/pc 1.9.103 → 1.9.107
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.
|
@@ -11,11 +11,10 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
12
|
|
|
13
13
|
function EssayItemWithImg(props) {
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
name =
|
|
17
|
-
|
|
18
|
-
url = _props$essayInfo.url;
|
|
14
|
+
var essayInfo = props.essayInfo;
|
|
15
|
+
var pictureUrl = essayInfo.pictureUrl,
|
|
16
|
+
name = essayInfo.name,
|
|
17
|
+
url = essayInfo.url;
|
|
19
18
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
20
19
|
className: "okr-essay-components__content__withImg__item"
|
|
21
20
|
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
@@ -23,6 +22,7 @@ function EssayItemWithImg(props) {
|
|
|
23
22
|
href: url,
|
|
24
23
|
rel: "noreferrer"
|
|
25
24
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
25
|
+
alt: "",
|
|
26
26
|
src: pictureUrl,
|
|
27
27
|
className: "okr-essay-components__content__withImg__item__img"
|
|
28
28
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -33,16 +33,13 @@ function EssayItemWithImg(props) {
|
|
|
33
33
|
target: "_blank",
|
|
34
34
|
href: url,
|
|
35
35
|
rel: "noreferrer"
|
|
36
|
-
}, " ", name, " "))
|
|
37
|
-
className: "okr-essay-components__content__withImg__item__date"
|
|
38
|
-
}, createDate)));
|
|
36
|
+
}, " ", name, " "))));
|
|
39
37
|
}
|
|
40
38
|
|
|
41
39
|
function EssayItemWithoutImg(props) {
|
|
42
|
-
var
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
url = _props$essayInfo2.url;
|
|
40
|
+
var essayInfo = props.essayInfo;
|
|
41
|
+
var name = essayInfo.name,
|
|
42
|
+
url = essayInfo.url;
|
|
46
43
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
47
44
|
className: "okr-essay-components__content__withoutImg__item"
|
|
48
45
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -51,7 +48,5 @@ function EssayItemWithoutImg(props) {
|
|
|
51
48
|
target: "_blank",
|
|
52
49
|
href: url,
|
|
53
50
|
rel: "noreferrer"
|
|
54
|
-
}, " ", name, " "))
|
|
55
|
-
className: "okr-essay-components__content__withoutImg__item__date"
|
|
56
|
-
}, createDate));
|
|
51
|
+
}, " ", name, " ")));
|
|
57
52
|
}
|
|
@@ -13,15 +13,16 @@
|
|
|
13
13
|
margin-top: 12px;
|
|
14
14
|
padding-bottom: 12px;
|
|
15
15
|
width: 100%;
|
|
16
|
-
height:
|
|
16
|
+
height: 78px;
|
|
17
17
|
border-bottom: 1px solid #e9ecf0;
|
|
18
18
|
display: flex;
|
|
19
19
|
justify-content: space-between;
|
|
20
|
+
align-items: center;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
.okr-essay-components__content__withImg__item__img {
|
|
23
24
|
width: 100px;
|
|
24
|
-
height:
|
|
25
|
+
height: 64px;
|
|
25
26
|
object-fit: cover;
|
|
26
27
|
border-radius: 4px;
|
|
27
28
|
}
|
|
@@ -30,8 +31,11 @@
|
|
|
30
31
|
display: flex;
|
|
31
32
|
align-items: start;
|
|
32
33
|
flex-direction: column;
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
justify-content: center;
|
|
35
|
+
width: 156px;
|
|
36
|
+
height: 64px;
|
|
37
|
+
position: relative;
|
|
38
|
+
top: -1px;
|
|
35
39
|
}
|
|
36
40
|
|
|
37
41
|
.okr-essay-components__content__withImg__item__summary {
|
|
@@ -49,6 +53,7 @@
|
|
|
49
53
|
|
|
50
54
|
.okr-essay-components__content__withImg__item__summary a {
|
|
51
55
|
color: #3f4755;
|
|
56
|
+
word-break: break-word;
|
|
52
57
|
}
|
|
53
58
|
|
|
54
59
|
.okr-essay-components__content__withImg__item__summary a:hover {
|
|
@@ -15,8 +15,12 @@ var _essayItem = require("./essay-item");
|
|
|
15
15
|
|
|
16
16
|
var _network = require("../util/network");
|
|
17
17
|
|
|
18
|
+
var _Bullseye = _interopRequireDefault(require("../image/Bullseye.svg"));
|
|
19
|
+
|
|
18
20
|
require("./index.css");
|
|
19
21
|
|
|
22
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
+
|
|
20
24
|
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); }
|
|
21
25
|
|
|
22
26
|
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; }
|
|
@@ -61,14 +65,14 @@ function OkrEssay(props) {
|
|
|
61
65
|
}, [essayTypeId]);
|
|
62
66
|
return /*#__PURE__*/_react["default"].createElement(_commenComponents.CardContainer, {
|
|
63
67
|
styles: {
|
|
64
|
-
padding: "12px 12px
|
|
68
|
+
padding: "12px 12px 0px 16px"
|
|
65
69
|
},
|
|
66
70
|
_className: _className
|
|
67
71
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
68
72
|
className: "okr-essay-components"
|
|
69
73
|
}, /*#__PURE__*/_react["default"].createElement(_commenComponents.CardTitle, {
|
|
70
74
|
content: "\u7CBE\u9009OKR\u6587\u7AE0",
|
|
71
|
-
iconUrl:
|
|
75
|
+
iconUrl: _Bullseye["default"]
|
|
72
76
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
73
77
|
className: "okr-essay-components__content"
|
|
74
78
|
}, essayList.slice(0, withImgEssayNum).map(function (item) {
|
|
@@ -84,5 +88,11 @@ function OkrEssay(props) {
|
|
|
84
88
|
}))));
|
|
85
89
|
}
|
|
86
90
|
|
|
91
|
+
OkrEssay.defaultProps = {
|
|
92
|
+
_className: "",
|
|
93
|
+
essayTypeId: 0,
|
|
94
|
+
withImgEssayNum: 3,
|
|
95
|
+
withoutImgEssayNum: 3
|
|
96
|
+
};
|
|
87
97
|
var _default = OkrEssay;
|
|
88
98
|
exports["default"] = _default;
|
|
@@ -21,8 +21,6 @@ var _invitePeople = _interopRequireDefault(require("../../components/invite-peop
|
|
|
21
21
|
|
|
22
22
|
var _helpCard = _interopRequireDefault(require("../../components/help-card"));
|
|
23
23
|
|
|
24
|
-
var _pointDemo = _interopRequireDefault(require("../../components/point-demo/point-demo"));
|
|
25
|
-
|
|
26
24
|
var _platform = require("../../utils/platform");
|
|
27
25
|
|
|
28
26
|
require("./index.css");
|
|
@@ -39,6 +37,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
39
37
|
|
|
40
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; }
|
|
41
39
|
|
|
40
|
+
// import PointDemo from "../../components/point-demo/point-demo";
|
|
42
41
|
var preCls = "titaui-aha-2021";
|
|
43
42
|
|
|
44
43
|
function ContentTemplate(props) {
|
|
@@ -101,7 +100,7 @@ function PageLayout(props) {
|
|
|
101
100
|
onClick: onClickKefu
|
|
102
101
|
})), isTrial && !isTencentHr && /*#__PURE__*/_react["default"].createElement("div", {
|
|
103
102
|
className: "".concat(preCls, "__invite")
|
|
104
|
-
}, /*#__PURE__*/_react["default"].createElement(_invitePeople["default"], null)), isTencentHr && /*#__PURE__*/_react["default"].createElement(_hrMessage["default"], null)
|
|
103
|
+
}, /*#__PURE__*/_react["default"].createElement(_invitePeople["default"], null)), isTencentHr && /*#__PURE__*/_react["default"].createElement(_hrMessage["default"], null));
|
|
105
104
|
}
|
|
106
105
|
|
|
107
106
|
var Aha2021Page = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@titaui/pc",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.107",
|
|
4
4
|
"nameCN": "",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -111,10 +111,12 @@
|
|
|
111
111
|
"rc-trigger": "^5.2.3",
|
|
112
112
|
"rc-upload": "^4.2.0-alpha.0",
|
|
113
113
|
"rc-util": "^5.13.1",
|
|
114
|
+
"react": "^17.0.2",
|
|
114
115
|
"react-collapse": "^5.1.0",
|
|
115
116
|
"react-content-loader": "^6.0.3",
|
|
116
117
|
"react-cropper": "^2.1.8",
|
|
117
118
|
"react-custom-scrollbars": "^4.2.1",
|
|
119
|
+
"react-dom": "^17.0.2",
|
|
118
120
|
"react-grid-layout": "^1.2.5",
|
|
119
121
|
"react-perfect-scrollbar": "^1.5.8",
|
|
120
122
|
"react-sizeme": "^3.0.1",
|