@titaui/pc 1.10.24 → 1.10.27
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/dynamic/components/first-level-tabs/index.css +4 -3
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/index.js +10 -2
- package/lib/components/dynamic/img/dynamic-reward-hover.svg +1 -0
- package/lib/components/dynamic/img/dynamic-reward-normal.svg +1 -0
- package/lib/components/nav-top/components/menu/index.css +3 -3
- package/lib/components/nav-top/components/user-message/index.css +2 -0
- package/lib/components/toast/index.js +10 -19
- package/package.json +1 -1
- package/lib/components/dynamic/img/dynamic-redenvelopes-hover.svg +0 -1
- package/lib/components/dynamic/img/dynamic-redenvelopes-normal.svg +0 -1
|
@@ -39,12 +39,13 @@
|
|
|
39
39
|
|
|
40
40
|
.titaui-dynamic-first-level-tabs__tab--point {
|
|
41
41
|
position: absolute;
|
|
42
|
-
width:
|
|
43
|
-
height:
|
|
42
|
+
width: 6px;
|
|
43
|
+
height: 6px;
|
|
44
44
|
background: #f05e5e;
|
|
45
45
|
border-radius: 50%;
|
|
46
|
-
right: -
|
|
46
|
+
right: -6px;
|
|
47
47
|
top: 22px;
|
|
48
|
+
border: 2px solid #ffffff;
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
.titaui-dynamic-first-level-tabs__hide-first-level-tabs {
|
|
@@ -136,7 +136,7 @@ var DynamicReward = function DynamicReward(_ref) {
|
|
|
136
136
|
}, obj && obj.objName && /*#__PURE__*/_react["default"].createElement(_title["default"], _extends({
|
|
137
137
|
content: (0, _tools.htmlDecodeByRegExp)(obj.objName),
|
|
138
138
|
onClickTitle: handleClickTitle
|
|
139
|
-
}, (0, _utils.getDynamicTitleProps)(obj)))),
|
|
139
|
+
}, (0, _utils.getDynamicTitleProps)(obj)))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
140
140
|
className: "".concat(prefix, "__description"),
|
|
141
141
|
style: {
|
|
142
142
|
marginTop: obj && obj.objName ? "12px" : "0"
|
|
@@ -146,7 +146,7 @@ var DynamicReward = function DynamicReward(_ref) {
|
|
|
146
146
|
alt: "",
|
|
147
147
|
src: _dynamicLeftQuoto["default"]
|
|
148
148
|
})), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
149
|
-
str: rewardContent,
|
|
149
|
+
str: rewardContent || "赐予你力量!",
|
|
150
150
|
keyWord: searchKeyWord
|
|
151
151
|
}), /*#__PURE__*/_react["default"].createElement("img", {
|
|
152
152
|
className: (0, _classnames["default"])("".concat(prefix, "__description-quoto"), "".concat(prefix, "__description-quoto--right")),
|
|
@@ -109,7 +109,7 @@ var DynamicTask = function DynamicTask(_ref) {
|
|
|
109
109
|
var renderDesc = (0, _react.useMemo)(function () {
|
|
110
110
|
var dom;
|
|
111
111
|
|
|
112
|
-
if (obj === null) {
|
|
112
|
+
if (obj === null || !obj.objName) {
|
|
113
113
|
dom = "".concat((0, _getLocale.getLocale)("Mod_InChargeof")).concat((0, _getLocale.getLocale)("Mod_Tasks"));
|
|
114
114
|
} else {
|
|
115
115
|
dom = /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
.titaui-dynamic-item__footer-icon-redenvelopes::before {
|
|
102
102
|
content: '';
|
|
103
103
|
display: inline-block;
|
|
104
|
-
background: url("../img/dynamic-
|
|
104
|
+
background: url("../img/dynamic-reward-normal.svg") no-repeat;
|
|
105
105
|
background-size: 20px 20px;
|
|
106
106
|
width: 20px;
|
|
107
107
|
height: 20px;
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
.titaui-dynamic-item__footer-icon-redenvelopes:hover::before {
|
|
115
|
-
background: url("../img/dynamic-
|
|
115
|
+
background: url("../img/dynamic-reward-hover.svg") no-repeat;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
.titaui-dynamic-item__footer-number {
|
|
@@ -63,6 +63,8 @@ var _auth = require("../../../utils/auth");
|
|
|
63
63
|
|
|
64
64
|
var _getLocale = require("../../../utils/getLocale");
|
|
65
65
|
|
|
66
|
+
var _tooltip = _interopRequireDefault(require("../../tooltip"));
|
|
67
|
+
|
|
66
68
|
require("./index.css");
|
|
67
69
|
|
|
68
70
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -386,10 +388,16 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
386
388
|
onClick: handleFold
|
|
387
389
|
}, (0, _getLocale.getLocale)("Mod_Fold"), /*#__PURE__*/_react["default"].createElement("i", {
|
|
388
390
|
className: (0, _classnames["default"])("tu-icon-arrow-down", "".concat(prefix, "__icon"), "".concat(prefix, "__icon-up"))
|
|
389
|
-
}))), /*#__PURE__*/_react["default"].createElement("
|
|
391
|
+
}))), /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
392
|
+
overlay: (0, _getLocale.getLocale)("Feed_Approval"),
|
|
393
|
+
align: {
|
|
394
|
+
offset: [0, 0]
|
|
395
|
+
},
|
|
396
|
+
placement: "top"
|
|
397
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
390
398
|
onClick: handlePayReward,
|
|
391
399
|
className: (0, _classnames["default"])("".concat(prefix, "__footer-icon"), "".concat(prefix, "__footer-icon-redenvelopes"))
|
|
392
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
400
|
+
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
393
401
|
onClick: handleCommentClick,
|
|
394
402
|
className: (0, _classnames["default"])("tu-icon-pinglun-m", "".concat(prefix, "__footer-icon"))
|
|
395
403
|
}, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient x1="74.137%" y1="76.285%" x2="7.656%" y2=".727%" id="a"><stop stop-color="#F05E5E" offset="0%"/><stop stop-color="#FFA5A5" offset="100%"/></linearGradient></defs><g fill="none" fill-rule="evenodd"><rect width="20" height="20" rx=".167"/><path d="M2.88 4.641c.366.221.82.422 1.345.599 1.478.498 3.52.806 5.775.806 2.255 0 4.296-.308 5.775-.806.42-.142.795-.299 1.117-.469l.228-.129.14.332c.604 1.524.907 3.2.907 5.026 0 1.979-.355 3.78-1.066 5.403h.001a3.5 3.5 0 0 1-1.78 1.793c-1.45.647-3.225.97-5.322.97s-3.872-.323-5.323-.969v-.001a3.5 3.5 0 0 1-1.779-1.792C2.188 13.78 1.833 11.979 1.833 10c0-1.96.349-3.747 1.046-5.359zm5.843 4.776a.67.67 0 0 0-.924-.125.54.54 0 0 0-.1.758l1.114 1.459h-.667a.485.485 0 1 0 0 .97h1.213v.75H8.021a.614.614 0 0 0 0 1.227h1.338v.55a.668.668 0 0 0 1.337 0v-.55h1.355a.614.614 0 0 0 0-1.227h-1.355v-.75h1.23a.485.485 0 1 0 0-.97h-.662l.989-1.431a.572.572 0 0 0-.177-.817.658.658 0 0 0-.876.186l-1.159 1.645zM10 1.833c2.097 0 3.872.324 5.323.97v.001a3.5 3.5 0 0 1 1.24.929c-.33.224-.911.428-1.7.595-1.282.273-3.013.428-4.863.428-1.85 0-3.58-.155-4.863-.428-.79-.168-1.37-.372-1.7-.595.338-.396.76-.714 1.24-.929v-.001c1.348-.6 2.974-.922 4.878-.965L10 1.833z" fill="url(#a)"/></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><rect width="20" height="20" rx=".167"/><path d="M2.88 4.641c.366.221.82.422 1.345.599 1.478.498 3.52.806 5.775.806 2.255 0 4.296-.308 5.775-.806.42-.142.795-.299 1.117-.469l.228-.129.14.332c.604 1.524.907 3.2.907 5.026 0 1.979-.355 3.78-1.066 5.403h.001a3.5 3.5 0 0 1-1.78 1.793c-1.45.647-3.225.97-5.322.97s-3.872-.323-5.323-.969v-.001a3.5 3.5 0 0 1-1.779-1.792C2.188 13.78 1.833 11.979 1.833 10c0-1.96.349-3.747 1.046-5.359zm5.843 4.776a.67.67 0 0 0-.924-.125.54.54 0 0 0-.1.758l1.114 1.459h-.667a.485.485 0 1 0 0 .97h1.213v.75H8.021a.614.614 0 0 0 0 1.227h1.338v.55a.668.668 0 0 0 1.337 0v-.55h1.355a.614.614 0 0 0 0-1.227h-1.355v-.75h1.23a.485.485 0 1 0 0-.97h-.662l.989-1.431a.572.572 0 0 0-.177-.817.658.658 0 0 0-.876.186l-1.159 1.645zM10 1.833c2.097 0 3.872.324 5.323.97v.001a3.5 3.5 0 0 1 1.24.929c-.33.224-.911.428-1.7.595-1.282.273-3.013.428-4.863.428-1.85 0-3.58-.155-4.863-.428-.79-.168-1.37-.372-1.7-.595.338-.396.76-.714 1.24-.929v-.001c1.348-.6 2.974-.922 4.878-.965L10 1.833z" fill="#A4ACB9"/></g></svg>
|
|
@@ -40,8 +40,6 @@
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.titaui-nav-top-menu__menu--hasNum {
|
|
43
|
-
display: flex;
|
|
44
|
-
align-items: center;
|
|
45
43
|
position: absolute;
|
|
46
44
|
right: 4px;
|
|
47
45
|
top: 6px;
|
|
@@ -51,8 +49,10 @@
|
|
|
51
49
|
height: 16px;
|
|
52
50
|
font-size: 12px;
|
|
53
51
|
color: #ffffff;
|
|
54
|
-
line-height:
|
|
52
|
+
line-height: 16px;
|
|
55
53
|
padding: 0 4px;
|
|
54
|
+
text-align: center;
|
|
55
|
+
min-width: 8px;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
.titaui-nav-top-menu__hide-menus {
|
|
@@ -47,8 +47,8 @@ function _getInstance() {
|
|
|
47
47
|
style: {
|
|
48
48
|
top: "36px",
|
|
49
49
|
left: "50%",
|
|
50
|
-
position: "
|
|
51
|
-
// 'transform': 'translate(-50%, 0)'
|
|
50
|
+
position: "fixed",
|
|
51
|
+
// 'transform': 'translate(-50%, 0)',
|
|
52
52
|
borderRadius: 12
|
|
53
53
|
},
|
|
54
54
|
maxCount: 1,
|
|
@@ -80,26 +80,17 @@ var Toast = /*#__PURE__*/function () {
|
|
|
80
80
|
_createClass(Toast, null, [{
|
|
81
81
|
key: "Success",
|
|
82
82
|
value: function () {
|
|
83
|
-
var _Success = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(msg) {
|
|
84
|
-
var
|
|
85
|
-
key,
|
|
86
|
-
ins,
|
|
87
|
-
canClose,
|
|
88
|
-
_args = arguments;
|
|
83
|
+
var _Success = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(msg, options) {
|
|
84
|
+
var key, ins, canClose;
|
|
89
85
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
90
86
|
while (1) {
|
|
91
87
|
switch (_context.prev = _context.next) {
|
|
92
88
|
case 0:
|
|
93
|
-
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {
|
|
94
|
-
style: {
|
|
95
|
-
position: "fixed"
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
89
|
key = (0, _uuid["default"])();
|
|
99
|
-
_context.next =
|
|
90
|
+
_context.next = 3;
|
|
100
91
|
return getInstance();
|
|
101
92
|
|
|
102
|
-
case
|
|
93
|
+
case 3:
|
|
103
94
|
ins = _context.sent;
|
|
104
95
|
canClose = options.canClose !== undefined ? options.canClose : false;
|
|
105
96
|
ins.notice({
|
|
@@ -109,7 +100,7 @@ var Toast = /*#__PURE__*/function () {
|
|
|
109
100
|
key: key
|
|
110
101
|
});
|
|
111
102
|
|
|
112
|
-
case
|
|
103
|
+
case 6:
|
|
113
104
|
case "end":
|
|
114
105
|
return _context.stop();
|
|
115
106
|
}
|
|
@@ -117,7 +108,7 @@ var Toast = /*#__PURE__*/function () {
|
|
|
117
108
|
}, _callee);
|
|
118
109
|
}));
|
|
119
110
|
|
|
120
|
-
function Success(_x) {
|
|
111
|
+
function Success(_x, _x2) {
|
|
121
112
|
return _Success.apply(this, arguments);
|
|
122
113
|
}
|
|
123
114
|
|
|
@@ -163,7 +154,7 @@ var Toast = /*#__PURE__*/function () {
|
|
|
163
154
|
}, _callee2);
|
|
164
155
|
}));
|
|
165
156
|
|
|
166
|
-
function Warning(
|
|
157
|
+
function Warning(_x3) {
|
|
167
158
|
return _Warning.apply(this, arguments);
|
|
168
159
|
}
|
|
169
160
|
|
|
@@ -207,7 +198,7 @@ var Toast = /*#__PURE__*/function () {
|
|
|
207
198
|
}, _callee3);
|
|
208
199
|
}));
|
|
209
200
|
|
|
210
|
-
function Error(
|
|
201
|
+
function Error(_x4) {
|
|
211
202
|
return _Error.apply(this, arguments);
|
|
212
203
|
}
|
|
213
204
|
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient x1="74.137%" y1="76.285%" x2="7.656%" y2=".727%" id="a"><stop stop-color="#F05E5E" offset="0%"/><stop stop-color="#FFA5A5" offset="100%"/></linearGradient></defs><g fill="none" fill-rule="evenodd"><rect width="20" height="20" rx=".167"/><path d="M16.905 4.805c0 .004.003.01.005.014.67 1.56 1.007 3.286 1.007 5.181s-.336 3.622-1.008 5.18v.001a3.5 3.5 0 0 1-1.814 1.823c-1.394.609-3.093.913-5.095.913s-3.7-.304-5.095-.912A3.5 3.5 0 0 1 3.09 15.18c-.67-1.56-1.007-3.286-1.007-5.181 0-1.75.287-3.355.86-4.818l.147-.363.006-.013c.356.213.797.408 1.306.58 1.433.482 3.412.78 5.598.78s4.165-.298 5.598-.78c.51-.172.95-.367 1.307-.58zm-8.143 4.63a.65.65 0 0 0-.895-.121.524.524 0 0 0-.098.735l1.08 1.413h-.646a.47.47 0 1 0 0 .94h1.176v.728H8.082a.595.595 0 0 0 0 1.19h1.297v.532a.648.648 0 1 0 1.296 0v-.532h1.313a.595.595 0 0 0 0-1.19h-1.313v-.728h1.192a.47.47 0 0 0 0-.94h-.641l.958-1.387a.555.555 0 0 0-.172-.79.638.638 0 0 0-.849.179l-1.123 1.594zM10 2.083c2.002 0 3.7.304 5.095.912a3.5 3.5 0 0 1 1.26.933c-.32.216-.88.412-1.64.574-1.244.264-2.922.415-4.715.415-1.793 0-3.471-.151-4.714-.415-.76-.162-1.32-.358-1.642-.573.342-.4.772-.72 1.26-.933v-.001c1.296-.564 2.853-.867 4.672-.907L10 2.083z" fill="url(#a)"/></g></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><rect width="20" height="20" rx=".167"/><path d="M16.905 4.805c0 .004.003.01.005.014.67 1.56 1.007 3.286 1.007 5.181s-.336 3.622-1.008 5.18v.001a3.5 3.5 0 0 1-1.814 1.823c-1.394.609-3.093.913-5.095.913s-3.7-.304-5.095-.912A3.5 3.5 0 0 1 3.09 15.18c-.67-1.56-1.007-3.286-1.007-5.181 0-1.75.287-3.355.86-4.818l.147-.363.006-.013c.356.213.797.408 1.306.58 1.433.482 3.412.78 5.598.78s4.165-.298 5.598-.78c.51-.172.95-.367 1.307-.58zm-8.143 4.63a.65.65 0 0 0-.895-.121.524.524 0 0 0-.098.735l1.08 1.413h-.646a.47.47 0 1 0 0 .94h1.176v.728H8.082a.595.595 0 0 0 0 1.19h1.297v.532a.648.648 0 1 0 1.296 0v-.532h1.313a.595.595 0 0 0 0-1.19h-1.313v-.728h1.192a.47.47 0 0 0 0-.94h-.641l.958-1.387a.555.555 0 0 0-.172-.79.638.638 0 0 0-.849.179l-1.123 1.594zM10 2.083c2.002 0 3.7.304 5.095.912a3.5 3.5 0 0 1 1.26.933c-.32.216-.88.412-1.64.574-1.244.264-2.922.415-4.715.415-1.793 0-3.471-.151-4.714-.415-.76-.162-1.32-.358-1.642-.573.342-.4.772-.72 1.26-.933v-.001c1.296-.564 2.853-.867 4.672-.907L10 2.083z" fill="#A4ACB9"/></g></svg>
|