@titaui/pc 1.16.77-beta.2 → 1.16.77-beta.3
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,8 +11,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
require("dingtalk-jsapi/entry/union");
|
|
13
13
|
|
|
14
|
-
var _dingtalkJsapi = _interopRequireDefault(require("dingtalk-jsapi"));
|
|
15
|
-
|
|
16
14
|
var _coolAppSdk = require("dingtalk-jsapi/plugin/coolAppSdk");
|
|
17
15
|
|
|
18
16
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
@@ -153,67 +151,58 @@ var DingdingBtn = function DingdingBtn(props) {
|
|
|
153
151
|
var handleClickWechatBtn = function handleClickWechatBtn() {
|
|
154
152
|
if (isDingDing) {
|
|
155
153
|
//有群了,判断没在群就先进群再打开群
|
|
156
|
-
if (chatId !== null && chatId !== 'chatId') {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
setMemberVisible(true);
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
})["catch"](function (e) {
|
|
212
|
-
console.log('添加失败' + JSON.stringify(e));
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
});
|
|
154
|
+
if (chatId !== null && chatId !== 'chatId') {// dd.biz.chat.toConversation({
|
|
155
|
+
// //根据chatId跳转到对应会话
|
|
156
|
+
// corpId: corpId, //企业id
|
|
157
|
+
// chatId: chatId, //会话id
|
|
158
|
+
// onSuccess: function (res) {
|
|
159
|
+
// console.log('打开群成功', res)
|
|
160
|
+
// },
|
|
161
|
+
// onFail: function (err) {
|
|
162
|
+
// // 调用失败时回调
|
|
163
|
+
// console.log(err)
|
|
164
|
+
// if (isMac) {
|
|
165
|
+
// setMacWarnModalVisible(true)
|
|
166
|
+
// } else {
|
|
167
|
+
// addMembers({
|
|
168
|
+
// context: {
|
|
169
|
+
// coolAppCode: coolAppCode, //酷应用的编码
|
|
170
|
+
// clientId: suiteKey, // 应用标识
|
|
171
|
+
// corpId: corpId, // 根据对应场景获取 corpId
|
|
172
|
+
// },
|
|
173
|
+
// openConversationList: [chatId], //要添加成员的的群ID
|
|
174
|
+
// userIds: [loginUserOpenId+''], //需要入群的成员userId。
|
|
175
|
+
// })
|
|
176
|
+
// .then((res) => {
|
|
177
|
+
// console.log(res,'addMembers');
|
|
178
|
+
// if (res.errorCode === '0') {
|
|
179
|
+
// console.log('添加成功' + JSON.stringify(res))
|
|
180
|
+
// dd.biz.chat.toConversation({
|
|
181
|
+
// corpId: corpId,
|
|
182
|
+
// chatId: chatId,
|
|
183
|
+
// onSuccess: function (res) {
|
|
184
|
+
// // 调用成功时回调
|
|
185
|
+
// console.log('打开群成功', res)
|
|
186
|
+
// },
|
|
187
|
+
// onFail: function (err) {
|
|
188
|
+
// // 调用失败时回调
|
|
189
|
+
// console.log(err)
|
|
190
|
+
// },
|
|
191
|
+
// })
|
|
192
|
+
// } else {
|
|
193
|
+
// if (userId === principalUser.userId) {
|
|
194
|
+
// setPrincipalUserModalVisible(true)
|
|
195
|
+
// } else {
|
|
196
|
+
// setMemberVisible(true)
|
|
197
|
+
// }
|
|
198
|
+
// }
|
|
199
|
+
// })
|
|
200
|
+
// .catch((e) => {
|
|
201
|
+
// console.log('添加失败' + JSON.stringify(e))
|
|
202
|
+
// })
|
|
203
|
+
// }
|
|
204
|
+
// },
|
|
205
|
+
// })
|
|
217
206
|
} else {
|
|
218
207
|
setCreateDingchatVisible(true);
|
|
219
208
|
}
|
|
@@ -334,7 +323,7 @@ var DingdingBtn = function DingdingBtn(props) {
|
|
|
334
323
|
if (isShowDingChat && chatId === null) {
|
|
335
324
|
setTooltip('点击一键发起钉钉群聊');
|
|
336
325
|
} else if (isShowDingChat && chatId !== null && chatId !== 'chatId') {
|
|
337
|
-
setTooltip(
|
|
326
|
+
setTooltip("\u9489\u9489\u7FA4\u804A\u540D\u79F0:\u300C".concat(apply, "\u7FA4\u300D").concat(name));
|
|
338
327
|
} else if (isShowDingChat && chatId === 'chatId') {
|
|
339
328
|
setTooltip('浏览器不支持此功能,请到钉钉工作台中使用');
|
|
340
329
|
}
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
background: #5c8eff;
|
|
31
31
|
box-shadow: 0px 8px 24px 0px rgba(127, 145, 180, 0.3);
|
|
32
32
|
border: 1px solid #ffffff;
|
|
33
|
-
padding: 16px 20px
|
|
33
|
+
padding: 16px 20px;
|
|
34
34
|
box-sizing: border-box;
|
|
35
35
|
border-radius: 12px;
|
|
36
36
|
z-index: 10;
|
|
@@ -63,18 +63,16 @@
|
|
|
63
63
|
color: #FFFFFF;
|
|
64
64
|
line-height: 22px;
|
|
65
65
|
margin-top: 0;
|
|
66
|
+
margin-bottom: 10px;
|
|
66
67
|
}
|
|
67
68
|
|
|
68
69
|
.titaui-pc__guide-order__popup__content__bottom {
|
|
69
70
|
width: 100%;
|
|
71
|
+
height: fit-content;
|
|
70
72
|
display: flex;
|
|
71
73
|
flex-direction: row;
|
|
72
74
|
justify-content: space-between;
|
|
73
75
|
align-items: center;
|
|
74
|
-
position: absolute;
|
|
75
|
-
bottom: 20px;
|
|
76
|
-
left: 0;
|
|
77
|
-
padding: 0 20px;
|
|
78
76
|
box-sizing: border-box;
|
|
79
77
|
}
|
|
80
78
|
|
|
@@ -55,8 +55,7 @@ var GuideOrder = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
55
55
|
type = _props$type === void 0 ? 'button' : _props$type,
|
|
56
56
|
_props$width = props.width,
|
|
57
57
|
width = _props$width === void 0 ? 280 : _props$width,
|
|
58
|
-
|
|
59
|
-
height = _props$height === void 0 ? 124 : _props$height,
|
|
58
|
+
height = props.height,
|
|
60
59
|
_props$time = props.time,
|
|
61
60
|
time = _props$time === void 0 ? 3000 : _props$time,
|
|
62
61
|
children = props.children,
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
color: #ffffff;
|
|
17
17
|
line-height: 26px;
|
|
18
18
|
margin: 24px auto 8px;
|
|
19
|
+
font-weight: 600;
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
.titaui-try-version-modal__desc {
|
|
@@ -46,6 +47,7 @@
|
|
|
46
47
|
box-shadow: 0px 7px 15px 0px rgba(127, 145, 180, 0.2), inset 0px 1px 7px 0px rgba(127, 145, 180, 0.1);
|
|
47
48
|
border-radius: 20px;
|
|
48
49
|
border: 7px solid #FFFFFF;
|
|
50
|
+
box-sizing: border-box;
|
|
49
51
|
}
|
|
50
52
|
|
|
51
53
|
.titaui-try-version-modal__actions {
|
|
@@ -83,7 +83,7 @@ var TryVersionModal = function TryVersionModal(props, ref) {
|
|
|
83
83
|
onClick: function onClick() {
|
|
84
84
|
return setVisible(false);
|
|
85
85
|
}
|
|
86
|
-
}, "\u7EE7\u7EED\u4F7F\u7528\
|
|
86
|
+
}, "\u7EE7\u7EED\u4F7F\u7528\u8BD5\u7528\u7248"), /*#__PURE__*/_react["default"].createElement(_button["default"].Rect, {
|
|
87
87
|
className: "".concat(preCls, "__actions-btn"),
|
|
88
88
|
onClick: handleOpenBookDemo,
|
|
89
89
|
type: 'primary',
|