@titaui/pc 1.12.22-beta.7 → 1.12.22-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.
|
@@ -88,7 +88,8 @@ function UpvoteButton(_ref) {
|
|
|
88
88
|
_ref$buttonType = _ref.buttonType,
|
|
89
89
|
buttonType = _ref$buttonType === void 0 ? "" : _ref$buttonType,
|
|
90
90
|
_ref$customUpvoteBtnC = _ref.customUpvoteBtnCls,
|
|
91
|
-
customUpvoteBtnCls = _ref$customUpvoteBtnC === void 0 ? "" : _ref$customUpvoteBtnC
|
|
91
|
+
customUpvoteBtnCls = _ref$customUpvoteBtnC === void 0 ? "" : _ref$customUpvoteBtnC,
|
|
92
|
+
getPopupContainer = _ref.getPopupContainer;
|
|
92
93
|
|
|
93
94
|
var _useState = (0, _react.useState)({
|
|
94
95
|
type: type,
|
|
@@ -127,8 +128,11 @@ function UpvoteButton(_ref) {
|
|
|
127
128
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
128
129
|
className: "feed-upvote pull-screen-click-through pull-screen-ignore",
|
|
129
130
|
style: style
|
|
130
|
-
}, /*#__PURE__*/_react["default"].createElement(_selector["default"]
|
|
131
|
-
|
|
131
|
+
}, /*#__PURE__*/_react["default"].createElement(_selector["default"], {
|
|
132
|
+
getPopupContainer: function getPopupContainer() {
|
|
133
|
+
return btnref.current;
|
|
134
|
+
} // visible={selectorVisible}
|
|
135
|
+
,
|
|
132
136
|
align: popAlign,
|
|
133
137
|
onSelect: /*#__PURE__*/function () {
|
|
134
138
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(type) {
|
|
@@ -17,7 +17,7 @@ var _requestApi = require("./request-api");
|
|
|
17
17
|
|
|
18
18
|
require("./index.css");
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _utils = require("./utils");
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
23
|
|
|
@@ -121,7 +121,8 @@ var WriteSummaryModal = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref)
|
|
|
121
121
|
maskClosable: false
|
|
122
122
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
123
123
|
className: "".concat(prefix)
|
|
124
|
-
}, modalList.map(function (item
|
|
124
|
+
}, modalList.map(function (item) {
|
|
125
|
+
var randomColor = (0, _utils.getRandomColor)();
|
|
125
126
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
126
127
|
className: "".concat(prefix, "__content-item"),
|
|
127
128
|
onClick: function onClick() {
|
|
@@ -132,7 +133,7 @@ var WriteSummaryModal = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref)
|
|
|
132
133
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
133
134
|
className: "".concat(prefix, "__content-item-title-avatar"),
|
|
134
135
|
style: {
|
|
135
|
-
background:
|
|
136
|
+
background: randomColor.bg
|
|
136
137
|
}
|
|
137
138
|
}, item.name[0]), /*#__PURE__*/_react["default"].createElement("span", {
|
|
138
139
|
className: "".concat(prefix, "__content-item-title-name")
|
|
@@ -143,21 +144,21 @@ var WriteSummaryModal = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref)
|
|
|
143
144
|
}, (0, _getLocale.getLocale)("Rep_Tab_Mys_Workprogre")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
144
145
|
className: "".concat(prefix, "__content-item-desc-block"),
|
|
145
146
|
style: {
|
|
146
|
-
background:
|
|
147
|
+
background: randomColor.contentBg
|
|
147
148
|
}
|
|
148
149
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
149
150
|
className: "".concat(prefix, "__content-item-desc-text")
|
|
150
151
|
}, (0, _getLocale.getLocale)("Tasks_Tab_MyS_JobSummary")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
151
152
|
className: "".concat(prefix, "__content-item-desc-block"),
|
|
152
153
|
style: {
|
|
153
|
-
background:
|
|
154
|
+
background: randomColor.contentBg
|
|
154
155
|
}
|
|
155
156
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
156
157
|
className: "".concat(prefix, "__content-item-desc-text")
|
|
157
158
|
}, (0, _getLocale.getLocale)("Rep_Tab_Mys_NextWorkPlans")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
158
159
|
className: "".concat(prefix, "__content-item-desc-block"),
|
|
159
160
|
style: {
|
|
160
|
-
background:
|
|
161
|
+
background: randomColor.contentBg
|
|
161
162
|
}
|
|
162
163
|
})));
|
|
163
164
|
})));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@titaui/pc",
|
|
3
|
-
"version": "1.12.22-beta.
|
|
3
|
+
"version": "1.12.22-beta.8",
|
|
4
4
|
"nameCN": "",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"@titaui/rc-trigger": "5.2.5",
|
|
79
79
|
"@titaui/react-flow-renderer": "9.5.4",
|
|
80
80
|
"@titaui/request": "^1.0.1",
|
|
81
|
-
"@titaui/rich-editor": "^0.1.
|
|
81
|
+
"@titaui/rich-editor": "^0.1.50",
|
|
82
82
|
"@titaui/toast": "1.0.0",
|
|
83
83
|
"@types/color": "3.0.3",
|
|
84
84
|
"@types/prosemirror-commands": "1.0.4",
|