@titaui/pc 1.15.6-beta.1 → 1.15.6-beta.4

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.
@@ -162,14 +162,21 @@
162
162
 
163
163
  .titaui-nav-top__invite {
164
164
  margin-right: 24px;
165
- width: 20px;
166
- height: 20px;
165
+ width: 28px !important;
166
+ height: 28px !important;
167
+ border-radius: 4px !important;
167
168
  cursor: pointer;
168
169
  display: inline-flex;
170
+ align-items: center;
171
+ justify-content: center;
169
172
  font-size: 20px;
170
173
  color: #ffffff;
171
174
  }
172
175
 
176
+ .titaui-nav-top__invite:hover {
177
+ background-color: rgba(255, 255, 255, 0.2);
178
+ }
179
+
173
180
  .titaui-nav-top__invite-guide {
174
181
  background-image: url("./images/invite-bkg.jpg"), url("./images/invite-person.jpg") !important;
175
182
  background-repeat: no-repeat,no-repeat !important;
@@ -258,6 +258,10 @@ var NavTop = function NavTop() {
258
258
 
259
259
  var handleCloseInviteGuide = function handleCloseInviteGuide() {
260
260
  setInviteVisible(false);
261
+
262
+ if (!inviteAuth) {
263
+ setInviteAuth(true);
264
+ }
261
265
  };
262
266
 
263
267
  var handleCloseSummaryGuide = function handleCloseSummaryGuide() {
@@ -446,7 +450,7 @@ var NavTop = function NavTop() {
446
450
  onClick: openWxInvite
447
451
  }, /*#__PURE__*/_react["default"].createElement("i", {
448
452
  className: (0, _classnames["default"])('tu-icon-add-people', "".concat(preCls, "__invite-icon"))
449
- })))), showMangeAdd && (staffCount > 3 ? /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
453
+ })))), showMangeAdd && (staffCount > 3 && inviteAuth ? /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
450
454
  overlay: '添加员工',
451
455
  placement: "bottom",
452
456
  align: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.15.6-beta.1",
3
+ "version": "1.15.6-beta.4",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",