whyuzeim 1.0.8 → 1.0.9

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.
Files changed (29) hide show
  1. package/cjs/AddMember/index.js +53 -5
  2. package/cjs/ChatBox/index.js +0 -3
  3. package/cjs/ContactList/index.js +3 -1
  4. package/cjs/CustomChatView/index.js +0 -4
  5. package/cjs/GroupDetail/GroupDetailEditView/index.js +16 -19
  6. package/cjs/GroupDetail/GroupShareView/index.js +1 -3
  7. package/cjs/Sidebar/CreateGroup/index.js +15 -3
  8. package/cjs/Sidebar/CreateGroup/style/index.scss +7 -1
  9. package/cjs/Sidebar/CustomConversationItem/index.js +0 -3
  10. package/es/AddMember/index.js +54 -6
  11. package/es/ChatBox/index.js +0 -3
  12. package/es/ContactList/index.js +3 -1
  13. package/es/CustomChatView/index.js +0 -4
  14. package/es/GroupDetail/GroupDetailEditView/index.js +16 -19
  15. package/es/GroupDetail/GroupShareView/index.js +1 -3
  16. package/es/Sidebar/CreateGroup/index.js +15 -3
  17. package/es/Sidebar/CreateGroup/style/index.scss +7 -1
  18. package/es/Sidebar/CustomConversationItem/index.js +0 -3
  19. package/package.json +3 -2
  20. package/cjs/GroupDetail/image/icon_translation.svg.js +0 -5
  21. package/cjs/IM/DefaultIMLayout/MobileHeader/index.d.ts +0 -11
  22. package/cjs/IM/DefaultIMLayout/MobileHeader/index.js +0 -29
  23. package/cjs/IM/DefaultIMLayout/MobileHeader/style/index.scss +0 -11
  24. package/cjs/Sidebar/image/mobile_create.svg.js +0 -5
  25. package/es/GroupDetail/image/icon_translation.svg.js +0 -3
  26. package/es/IM/DefaultIMLayout/MobileHeader/index.d.ts +0 -11
  27. package/es/IM/DefaultIMLayout/MobileHeader/index.js +0 -27
  28. package/es/IM/DefaultIMLayout/MobileHeader/style/index.scss +0 -11
  29. package/es/Sidebar/image/mobile_create.svg.js +0 -3
@@ -3,6 +3,7 @@
3
3
  var _toConsumableArray = require('@babel/runtime-corejs3/helpers/esm/toConsumableArray');
4
4
  var _asyncToGenerator = require('@babel/runtime-corejs3/helpers/esm/asyncToGenerator');
5
5
  var _slicedToArray = require('@babel/runtime-corejs3/helpers/esm/slicedToArray');
6
+ var _findInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/find');
6
7
  var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
7
8
  var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/filter');
8
9
  var _regeneratorRuntime = require('@babel/runtime-corejs3/regenerator');
@@ -34,9 +35,50 @@ var AddMember = function AddMember() {
34
35
  setMemberids = _useState6[1];
35
36
  var _useContext2 = React.useContext(context.Context),
36
37
  http = _useContext2.http;
37
- var handleAddMember = React.useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
38
+ var _useState7 = React.useState([]),
39
+ _useState8 = _slicedToArray(_useState7, 2),
40
+ memberList = _useState8[0],
41
+ setMemberList = _useState8[1];
42
+ var handleGetGroupList = React.useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
43
+ var groupid, result;
38
44
  return _regeneratorRuntime.wrap(function _callee$(_context) {
39
45
  while (1) switch (_context.prev = _context.next) {
46
+ case 0:
47
+ _context.prev = 0;
48
+ groupid = agoraChatUikit.rootStore.conversationStore.currentCvs.conversationId;
49
+ if (groupid) {
50
+ _context.next = 4;
51
+ break;
52
+ }
53
+ return _context.abrupt("return");
54
+ case 4:
55
+ _context.next = 6;
56
+ return http.post("/capi/account/imchannel/getchanneluserv2", {
57
+ page: 1,
58
+ size: 2000,
59
+ sendbirdid: groupid
60
+ });
61
+ case 6:
62
+ result = _context.sent;
63
+ setMemberList(result.data.data.list);
64
+ _context.next = 13;
65
+ break;
66
+ case 10:
67
+ _context.prev = 10;
68
+ _context.t0 = _context["catch"](0);
69
+ console.log(_context.t0);
70
+ case 13:
71
+ case "end":
72
+ return _context.stop();
73
+ }
74
+ }, _callee, null, [[0, 10]]);
75
+ })), [http, agoraChatUikit.rootStore.conversationStore.currentCvs]);
76
+ React.useEffect(function () {
77
+ handleGetGroupList();
78
+ }, [handleGetGroupList]);
79
+ var handleAddMember = React.useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
80
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
81
+ while (1) switch (_context2.prev = _context2.next) {
40
82
  case 0:
41
83
  setLoading(true);
42
84
  try {
@@ -53,9 +95,9 @@ var AddMember = function AddMember() {
53
95
  }
54
96
  case 2:
55
97
  case "end":
56
- return _context.stop();
98
+ return _context2.stop();
57
99
  }
58
- }, _callee);
100
+ }, _callee2);
59
101
  })), [http, memberids, setRightComponent]);
60
102
  var handleDebouncdAddMember = useDebounce.useDebouncedCallback(handleAddMember, 150);
61
103
  return /*#__PURE__*/React.createElement("div", {
@@ -97,11 +139,17 @@ var AddMember = function AddMember() {
97
139
  key: item.id,
98
140
  avatar: item.headimgurl,
99
141
  rightNode: /*#__PURE__*/React.createElement(agoraChatUikit.Checkbox, {
142
+ checked: !!_findInstanceProperty(memberList).call(memberList, function (child) {
143
+ return child.userid === item.userid;
144
+ }),
145
+ disabled: !!_findInstanceProperty(memberList).call(memberList, function (child) {
146
+ return child.userid === item.userid;
147
+ }),
100
148
  className: "yuze-addMember-checkbox",
101
149
  onChange: function onChange(event) {
102
150
  if (event.target.checked) {
103
- var _context2;
104
- setMemberids(_concatInstanceProperty(_context2 = []).call(_context2, _toConsumableArray(memberids), [item.userid]));
151
+ var _context3;
152
+ setMemberids(_concatInstanceProperty(_context3 = []).call(_context3, _toConsumableArray(memberids), [item.userid]));
105
153
  } else {
106
154
  var filterMember = _filterInstanceProperty(memberids).call(memberids, function (child) {
107
155
  return child !== item.id;
@@ -12,7 +12,6 @@ var _asyncToGenerator = require('@babel/runtime-corejs3/helpers/esm/asyncToGener
12
12
  var _slicedToArray = require('@babel/runtime-corejs3/helpers/esm/slicedToArray');
13
13
  var _Date$now = require('@babel/runtime-corejs3/core-js-stable/date/now');
14
14
  var _forEachInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
15
- var _JSON$stringify = require('@babel/runtime-corejs3/core-js-stable/json/stringify');
16
15
  var _regeneratorRuntime = require('@babel/runtime-corejs3/regenerator');
17
16
  var React = require('react');
18
17
  var agoraChatUikit = require('agora-chat-uikit');
@@ -416,7 +415,6 @@ var Chatbox = function Chatbox(props) {
416
415
  });
417
416
  });
418
417
  }
419
- console.log("the appUsersInfo is ".concat(_JSON$stringify(appUsersInfo)));
420
418
  }
421
419
  };
422
420
  function getShareGroupInfo(_x2, _x3) {
@@ -451,7 +449,6 @@ var Chatbox = function Chatbox(props) {
451
449
  setShowJoinGroupDialog(true);
452
450
  } else {
453
451
  //显示指定的群
454
- console.log('enter specific conversation', groupInfo === null || groupInfo === void 0 ? void 0 : groupInfo.sendbirdid);
455
452
  conversation = {
456
453
  chatType: 'groupChat',
457
454
  conversationId: groupInfo === null || groupInfo === void 0 ? void 0 : groupInfo.sendbirdid,
@@ -14,8 +14,10 @@ var agoraChatUikit = require('agora-chat-uikit');
14
14
  var useDebounce = require('use-debounce');
15
15
  var classNames = require('classnames');
16
16
  var index = require('../NoData/index.js');
17
+ var _ = require('lodash');
17
18
 
18
19
  var ContactList = function ContactList(props) {
20
+ var _$uniqBy;
19
21
  var className = props.className,
20
22
  keyword = props.keyword,
21
23
  renderItem = props.renderItem,
@@ -96,7 +98,7 @@ var ContactList = function ContactList(props) {
96
98
  scrollableTarget: targetId,
97
99
  loader: /*#__PURE__*/React.createElement(React.Fragment, null),
98
100
  className: "h-full"
99
- }, list === null || list === void 0 ? void 0 : _mapInstanceProperty(list).call(list, function (item) {
101
+ }, (_$uniqBy = _.uniqBy(list, "id")) === null || _$uniqBy === void 0 ? void 0 : _mapInstanceProperty(_$uniqBy).call(_$uniqBy, function (item) {
100
102
  return renderItem(item);
101
103
  })), (list === null || list === void 0 ? void 0 : list.length) === 0 && /*#__PURE__*/React.createElement(index, null));
102
104
  };
@@ -14,7 +14,6 @@ var _slicedToArray = require('@babel/runtime-corejs3/helpers/esm/slicedToArray')
14
14
  var _regeneratorRuntime = require('@babel/runtime-corejs3/regenerator');
15
15
  var _findInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/find');
16
16
  var _forEachInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
17
- var _JSON$stringify = require('@babel/runtime-corejs3/core-js-stable/json/stringify');
18
17
  var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
19
18
  var React = require('react');
20
19
  var agoraChatUikit = require('agora-chat-uikit');
@@ -180,7 +179,6 @@ var CustomChatView = function CustomChatView(props) {
180
179
  var cvs = _findInstanceProperty(_context = agoraChatUikit.rootStore.conversationStore.conversationList).call(_context, function (cvs) {
181
180
  return cvs.conversationId === props.conversationId;
182
181
  });
183
- console.log("----getHeaderInfo---", cvs);
184
182
  if (!cvs || !(cvs !== null && cvs !== void 0 && cvs.conversationId)) {
185
183
  return;
186
184
  }
@@ -241,7 +239,6 @@ var CustomChatView = function CustomChatView(props) {
241
239
  });
242
240
  });
243
241
  }
244
- console.log("the appUsersInfo is ".concat(_JSON$stringify(appUsersInfo)));
245
242
  }
246
243
  };
247
244
  function getShareGroupInfo(_x, _x2) {
@@ -276,7 +273,6 @@ var CustomChatView = function CustomChatView(props) {
276
273
  setShowJoinGroupDialog(true);
277
274
  } else {
278
275
  //显示指定的群
279
- console.log('enter specific conversation', groupInfo === null || groupInfo === void 0 ? void 0 : groupInfo.sendbirdid);
280
276
  conversation = {
281
277
  chatType: 'groupChat',
282
278
  conversationId: groupInfo === null || groupInfo === void 0 ? void 0 : groupInfo.sendbirdid,
@@ -66,7 +66,6 @@ var GroupDetailEditView = function GroupDetailEditView(props) {
66
66
  case 6:
67
67
  _yield$http$post = _context.sent;
68
68
  data = _yield$http$post.data;
69
- console.log('data', data);
70
69
  if (data.code === 200) {
71
70
  setGroupForm(function (prev) {
72
71
  return _objectSpread(_objectSpread({}, prev), {}, {
@@ -76,17 +75,17 @@ var GroupDetailEditView = function GroupDetailEditView(props) {
76
75
  } else {
77
76
  antd.message.error(data === null || data === void 0 ? void 0 : data.msg);
78
77
  }
79
- _context.next = 15;
78
+ _context.next = 14;
80
79
  break;
81
- case 12:
82
- _context.prev = 12;
80
+ case 11:
81
+ _context.prev = 11;
83
82
  _context.t0 = _context["catch"](3);
84
83
  console.error('Upload error:', _context.t0);
85
- case 15:
84
+ case 14:
86
85
  case "end":
87
86
  return _context.stop();
88
87
  }
89
- }, _callee, null, [[3, 12]]);
88
+ }, _callee, null, [[3, 11]]);
90
89
  }));
91
90
  return function upAvatar(_x) {
92
91
  return _ref.apply(this, arguments);
@@ -141,24 +140,22 @@ var GroupDetailEditView = function GroupDetailEditView(props) {
141
140
  console.error('群组名称不能为空');
142
141
  return _context3.abrupt("return");
143
142
  case 3:
144
- console.log('保存群组信息:', groupForm);
145
- // 实现保存逻辑
146
143
  if (groupForm.name) {
147
- _context3.next = 6;
144
+ _context3.next = 5;
148
145
  break;
149
146
  }
150
147
  return _context3.abrupt("return");
151
- case 6:
148
+ case 5:
152
149
  options = {
153
150
  sendbirdid: props === null || props === void 0 || (_props$groupInfo4 = props.groupInfo) === null || _props$groupInfo4 === void 0 ? void 0 : _props$groupInfo4.sendbirdid,
154
151
  headimgurl: groupForm === null || groupForm === void 0 ? void 0 : groupForm.imageUrl,
155
152
  name: groupForm.name,
156
153
  description: groupForm.description
157
154
  };
158
- _context3.prev = 7;
159
- _context3.next = 10;
155
+ _context3.prev = 6;
156
+ _context3.next = 9;
160
157
  return http.post("/capi/account/imchannel/update", options);
161
- case 10:
158
+ case 9:
162
159
  response = _context3.sent;
163
160
  _response$data = response.data, code = _response$data.code, msg = _response$data.msg;
164
161
  if (code == 200) {
@@ -170,16 +167,16 @@ var GroupDetailEditView = function GroupDetailEditView(props) {
170
167
  } else {
171
168
  antd.message.error(msg);
172
169
  }
173
- _context3.next = 17;
170
+ _context3.next = 16;
174
171
  break;
175
- case 15:
176
- _context3.prev = 15;
177
- _context3.t0 = _context3["catch"](7);
178
- case 17:
172
+ case 14:
173
+ _context3.prev = 14;
174
+ _context3.t0 = _context3["catch"](6);
175
+ case 16:
179
176
  case "end":
180
177
  return _context3.stop();
181
178
  }
182
- }, _callee2, null, [[7, 15]]);
179
+ }, _callee2, null, [[6, 14]]);
183
180
  }));
184
181
  return function saveGroupInfo() {
185
182
  return _ref2.apply(this, arguments);
@@ -74,9 +74,7 @@ var GroupShareView = function GroupShareView(props) {
74
74
  imgUrl: props.shareObjImageurl
75
75
  }
76
76
  };
77
- customMessage = ChatSDK.message.create({
78
- option: option
79
- });
77
+ customMessage = ChatSDK.message.create(option);
80
78
  _context2.next = 4;
81
79
  return agoraChatUikit.rootStore.messageStore.sendMessage(customMessage);
82
80
  case 4:
@@ -19,8 +19,10 @@ var ic_close = require('../image/ic_close.svg.js');
19
19
  require('./style/index.scss');
20
20
  var InfiniteScroll = require('react-infinite-scroll-component');
21
21
  var index$1 = require('../../NoData/index.js');
22
+ var _ = require('lodash');
22
23
 
23
24
  var CreateGroup = function CreateGroup(props) {
25
+ var _$uniqBy;
24
26
  var onClose = props.onClose,
25
27
  _props$open = props.open,
26
28
  open = _props$open === void 0 ? false : _props$open;
@@ -161,6 +163,14 @@ var CreateGroup = function CreateGroup(props) {
161
163
  return;
162
164
  }
163
165
  handleDebounceGetFrindList(e.target.value);
166
+ },
167
+ onClear: function onClear() {
168
+ pageRef.current = 0;
169
+ listRef.current = [];
170
+ if (!apiRef.current) {
171
+ return;
172
+ }
173
+ handleDebounceGetFrindList("");
164
174
  }
165
175
  }), /*#__PURE__*/React.createElement("div", {
166
176
  className: "yuze-createGroup-left-list w-full overflow-auto",
@@ -174,7 +184,7 @@ var CreateGroup = function CreateGroup(props) {
174
184
  scrollableTarget: "createGroup_list",
175
185
  loader: /*#__PURE__*/React.createElement(React.Fragment, null),
176
186
  className: "h-full"
177
- }, list === null || list === void 0 ? void 0 : _mapInstanceProperty(list).call(list, function (item) {
187
+ }, (_$uniqBy = _.uniqBy(list, "id")) === null || _$uniqBy === void 0 ? void 0 : _mapInstanceProperty(_$uniqBy).call(_$uniqBy, function (item) {
178
188
  return /*#__PURE__*/React.createElement(index, {
179
189
  isSelectable: true,
180
190
  name: item.name,
@@ -201,7 +211,9 @@ var CreateGroup = function CreateGroup(props) {
201
211
  }, /*#__PURE__*/React.createElement("span", {
202
212
  className: "text-sm"
203
213
  }, "Group Member(", member.length, "/2000)")), /*#__PURE__*/React.createElement("div", {
204
- className: "yuze-createGroup-right-list flex flex-row gap-5 py-4 flex-wrap overflow-auto"
214
+ className: "yuze-createGroup-right-list overflow-auto"
215
+ }, /*#__PURE__*/React.createElement("div", {
216
+ className: "flex flex-row gap-5 py-4 flex-wrap"
205
217
  }, _mapInstanceProperty(member).call(member, function (item) {
206
218
  return /*#__PURE__*/React.createElement("div", {
207
219
  className: "yuze-createGroup-right-list-member relative",
@@ -237,7 +249,7 @@ var CreateGroup = function CreateGroup(props) {
237
249
  onClick: function onClick() {
238
250
  handleDebounceCreateGroup();
239
251
  }
240
- }, "Create"))));
252
+ }, "Create")))));
241
253
  };
242
254
 
243
255
  module.exports = CreateGroup;
@@ -31,7 +31,10 @@
31
31
  }
32
32
  }
33
33
  &-right-list {
34
- height: 380px;
34
+ height: 450px;
35
+ &::-webkit-scrollbar{
36
+ display: none;
37
+ }
35
38
  &-member {
36
39
  &-close {
37
40
  background-color: rgba(164, 166, 168, 1);
@@ -55,10 +58,13 @@
55
58
  &:nth-child(1) {
56
59
  background-color: transparent !important;
57
60
  color: var(--im-main-fontColor) !important;
61
+ border:1px solid #fff !important;
62
+ font-size: 14px;
58
63
  }
59
64
  &:nth-child(2) {
60
65
  background-color: var(--im-main-buttonColor) !important;
61
66
  color: var(--im-five-fontColor) !important;
67
+ font-size: 14px;
62
68
  }
63
69
  }
64
70
  }
@@ -3,7 +3,6 @@
3
3
  var _defineProperty = require('@babel/runtime-corejs3/helpers/esm/defineProperty');
4
4
  var _slicedToArray = require('@babel/runtime-corejs3/helpers/esm/slicedToArray');
5
5
  var _findInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/find');
6
- var _JSON$stringify = require('@babel/runtime-corejs3/core-js-stable/json/stringify');
7
6
  var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
8
7
  var _Object$getOwnPropertySymbols = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
9
8
  var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/filter');
@@ -60,13 +59,11 @@ var CustomConversationItem = function CustomConversationItem(props) {
60
59
  agoraChatUikit.rootStore.addressStore.getUserInfo(cvs.conversationId).then(function (value) {
61
60
  if (value) {
62
61
  var _value$avatarurl;
63
- console.log(_JSON$stringify(value), "appUserInfo conversationItem");
64
62
  imageUrl = (_value$avatarurl = value === null || value === void 0 ? void 0 : value.avatarurl) !== null && _value$avatarurl !== void 0 ? _value$avatarurl : "";
65
63
  }
66
64
  });
67
65
  } else {
68
66
  var _appUsersInfo$avataru;
69
- console.log(_JSON$stringify(appUsersInfo), "appUserInfo conversationItem");
70
67
  imageUrl = (_appUsersInfo$avataru = appUsersInfo === null || appUsersInfo === void 0 ? void 0 : appUsersInfo.avatarurl) !== null && _appUsersInfo$avataru !== void 0 ? _appUsersInfo$avataru : "";
71
68
  }
72
69
  setAvatar(imageUrl);
@@ -1,11 +1,12 @@
1
1
  import _toConsumableArray from '@babel/runtime-corejs3/helpers/esm/toConsumableArray';
2
2
  import _asyncToGenerator from '@babel/runtime-corejs3/helpers/esm/asyncToGenerator';
3
3
  import _slicedToArray from '@babel/runtime-corejs3/helpers/esm/slicedToArray';
4
+ import _findInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/find';
4
5
  import _concatInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/concat';
5
6
  import _filterInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/filter';
6
7
  import _regeneratorRuntime from '@babel/runtime-corejs3/regenerator';
7
8
  import classNames from 'classnames';
8
- import React, { useContext, useState, useCallback } from 'react';
9
+ import React, { useContext, useState, useCallback, useEffect } from 'react';
9
10
  import img from './image/ic_close.svg.js';
10
11
  import { rootStore, Input, Checkbox } from 'agora-chat-uikit';
11
12
  import ContactList from '../ContactList/index.js';
@@ -32,9 +33,50 @@ var AddMember = function AddMember() {
32
33
  setMemberids = _useState6[1];
33
34
  var _useContext2 = useContext(Context),
34
35
  http = _useContext2.http;
35
- var handleAddMember = useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
36
+ var _useState7 = useState([]),
37
+ _useState8 = _slicedToArray(_useState7, 2),
38
+ memberList = _useState8[0],
39
+ setMemberList = _useState8[1];
40
+ var handleGetGroupList = useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
41
+ var groupid, result;
36
42
  return _regeneratorRuntime.wrap(function _callee$(_context) {
37
43
  while (1) switch (_context.prev = _context.next) {
44
+ case 0:
45
+ _context.prev = 0;
46
+ groupid = rootStore.conversationStore.currentCvs.conversationId;
47
+ if (groupid) {
48
+ _context.next = 4;
49
+ break;
50
+ }
51
+ return _context.abrupt("return");
52
+ case 4:
53
+ _context.next = 6;
54
+ return http.post("/capi/account/imchannel/getchanneluserv2", {
55
+ page: 1,
56
+ size: 2000,
57
+ sendbirdid: groupid
58
+ });
59
+ case 6:
60
+ result = _context.sent;
61
+ setMemberList(result.data.data.list);
62
+ _context.next = 13;
63
+ break;
64
+ case 10:
65
+ _context.prev = 10;
66
+ _context.t0 = _context["catch"](0);
67
+ console.log(_context.t0);
68
+ case 13:
69
+ case "end":
70
+ return _context.stop();
71
+ }
72
+ }, _callee, null, [[0, 10]]);
73
+ })), [http, rootStore.conversationStore.currentCvs]);
74
+ useEffect(function () {
75
+ handleGetGroupList();
76
+ }, [handleGetGroupList]);
77
+ var handleAddMember = useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
78
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
79
+ while (1) switch (_context2.prev = _context2.next) {
38
80
  case 0:
39
81
  setLoading(true);
40
82
  try {
@@ -51,9 +93,9 @@ var AddMember = function AddMember() {
51
93
  }
52
94
  case 2:
53
95
  case "end":
54
- return _context.stop();
96
+ return _context2.stop();
55
97
  }
56
- }, _callee);
98
+ }, _callee2);
57
99
  })), [http, memberids, setRightComponent]);
58
100
  var handleDebouncdAddMember = useDebouncedCallback(handleAddMember, 150);
59
101
  return /*#__PURE__*/React.createElement("div", {
@@ -95,11 +137,17 @@ var AddMember = function AddMember() {
95
137
  key: item.id,
96
138
  avatar: item.headimgurl,
97
139
  rightNode: /*#__PURE__*/React.createElement(Checkbox, {
140
+ checked: !!_findInstanceProperty(memberList).call(memberList, function (child) {
141
+ return child.userid === item.userid;
142
+ }),
143
+ disabled: !!_findInstanceProperty(memberList).call(memberList, function (child) {
144
+ return child.userid === item.userid;
145
+ }),
98
146
  className: "yuze-addMember-checkbox",
99
147
  onChange: function onChange(event) {
100
148
  if (event.target.checked) {
101
- var _context2;
102
- setMemberids(_concatInstanceProperty(_context2 = []).call(_context2, _toConsumableArray(memberids), [item.userid]));
149
+ var _context3;
150
+ setMemberids(_concatInstanceProperty(_context3 = []).call(_context3, _toConsumableArray(memberids), [item.userid]));
103
151
  } else {
104
152
  var filterMember = _filterInstanceProperty(memberids).call(memberids, function (child) {
105
153
  return child !== item.id;
@@ -10,7 +10,6 @@ import _asyncToGenerator from '@babel/runtime-corejs3/helpers/esm/asyncToGenerat
10
10
  import _slicedToArray from '@babel/runtime-corejs3/helpers/esm/slicedToArray';
11
11
  import _Date$now from '@babel/runtime-corejs3/core-js-stable/date/now';
12
12
  import _forEachInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/for-each';
13
- import _JSON$stringify from '@babel/runtime-corejs3/core-js-stable/json/stringify';
14
13
  import _regeneratorRuntime from '@babel/runtime-corejs3/regenerator';
15
14
  import React, { useContext, useState, useEffect } from 'react';
16
15
  import { rootStore, Chat, MessageList, Tooltip, ImageMessage, FileMessage, VideoMessage, AudioMessage, BaseMessage, TextMessage } from 'agora-chat-uikit';
@@ -414,7 +413,6 @@ var Chatbox = function Chatbox(props) {
414
413
  });
415
414
  });
416
415
  }
417
- console.log("the appUsersInfo is ".concat(_JSON$stringify(appUsersInfo)));
418
416
  }
419
417
  };
420
418
  function getShareGroupInfo(_x2, _x3) {
@@ -449,7 +447,6 @@ var Chatbox = function Chatbox(props) {
449
447
  setShowJoinGroupDialog(true);
450
448
  } else {
451
449
  //显示指定的群
452
- console.log('enter specific conversation', groupInfo === null || groupInfo === void 0 ? void 0 : groupInfo.sendbirdid);
453
450
  conversation = {
454
451
  chatType: 'groupChat',
455
452
  conversationId: groupInfo === null || groupInfo === void 0 ? void 0 : groupInfo.sendbirdid,
@@ -12,8 +12,10 @@ import { rootStore } from 'agora-chat-uikit';
12
12
  import { useDebouncedCallback } from 'use-debounce';
13
13
  import classNames from 'classnames';
14
14
  import NoData from '../NoData/index.js';
15
+ import _ from 'lodash';
15
16
 
16
17
  var ContactList = function ContactList(props) {
18
+ var _$uniqBy;
17
19
  var className = props.className,
18
20
  keyword = props.keyword,
19
21
  renderItem = props.renderItem,
@@ -94,7 +96,7 @@ var ContactList = function ContactList(props) {
94
96
  scrollableTarget: targetId,
95
97
  loader: /*#__PURE__*/React.createElement(React.Fragment, null),
96
98
  className: "h-full"
97
- }, list === null || list === void 0 ? void 0 : _mapInstanceProperty(list).call(list, function (item) {
99
+ }, (_$uniqBy = _.uniqBy(list, "id")) === null || _$uniqBy === void 0 ? void 0 : _mapInstanceProperty(_$uniqBy).call(_$uniqBy, function (item) {
98
100
  return renderItem(item);
99
101
  })), (list === null || list === void 0 ? void 0 : list.length) === 0 && /*#__PURE__*/React.createElement(NoData, null));
100
102
  };
@@ -12,7 +12,6 @@ import _slicedToArray from '@babel/runtime-corejs3/helpers/esm/slicedToArray';
12
12
  import _regeneratorRuntime from '@babel/runtime-corejs3/regenerator';
13
13
  import _findInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/find';
14
14
  import _forEachInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/for-each';
15
- import _JSON$stringify from '@babel/runtime-corejs3/core-js-stable/json/stringify';
16
15
  import _mapInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/map';
17
16
  import React, { useContext, useState, useEffect } from 'react';
18
17
  import { useSDK, rootStore, MessageList, MessageInput, ImageMessage, FileMessage, VideoMessage, AudioMessage, BaseMessage, TextMessage } from 'agora-chat-uikit';
@@ -178,7 +177,6 @@ var CustomChatView = function CustomChatView(props) {
178
177
  var cvs = _findInstanceProperty(_context = rootStore.conversationStore.conversationList).call(_context, function (cvs) {
179
178
  return cvs.conversationId === props.conversationId;
180
179
  });
181
- console.log("----getHeaderInfo---", cvs);
182
180
  if (!cvs || !(cvs !== null && cvs !== void 0 && cvs.conversationId)) {
183
181
  return;
184
182
  }
@@ -239,7 +237,6 @@ var CustomChatView = function CustomChatView(props) {
239
237
  });
240
238
  });
241
239
  }
242
- console.log("the appUsersInfo is ".concat(_JSON$stringify(appUsersInfo)));
243
240
  }
244
241
  };
245
242
  function getShareGroupInfo(_x, _x2) {
@@ -274,7 +271,6 @@ var CustomChatView = function CustomChatView(props) {
274
271
  setShowJoinGroupDialog(true);
275
272
  } else {
276
273
  //显示指定的群
277
- console.log('enter specific conversation', groupInfo === null || groupInfo === void 0 ? void 0 : groupInfo.sendbirdid);
278
274
  conversation = {
279
275
  chatType: 'groupChat',
280
276
  conversationId: groupInfo === null || groupInfo === void 0 ? void 0 : groupInfo.sendbirdid,
@@ -64,7 +64,6 @@ var GroupDetailEditView = function GroupDetailEditView(props) {
64
64
  case 6:
65
65
  _yield$http$post = _context.sent;
66
66
  data = _yield$http$post.data;
67
- console.log('data', data);
68
67
  if (data.code === 200) {
69
68
  setGroupForm(function (prev) {
70
69
  return _objectSpread(_objectSpread({}, prev), {}, {
@@ -74,17 +73,17 @@ var GroupDetailEditView = function GroupDetailEditView(props) {
74
73
  } else {
75
74
  message.error(data === null || data === void 0 ? void 0 : data.msg);
76
75
  }
77
- _context.next = 15;
76
+ _context.next = 14;
78
77
  break;
79
- case 12:
80
- _context.prev = 12;
78
+ case 11:
79
+ _context.prev = 11;
81
80
  _context.t0 = _context["catch"](3);
82
81
  console.error('Upload error:', _context.t0);
83
- case 15:
82
+ case 14:
84
83
  case "end":
85
84
  return _context.stop();
86
85
  }
87
- }, _callee, null, [[3, 12]]);
86
+ }, _callee, null, [[3, 11]]);
88
87
  }));
89
88
  return function upAvatar(_x) {
90
89
  return _ref.apply(this, arguments);
@@ -139,24 +138,22 @@ var GroupDetailEditView = function GroupDetailEditView(props) {
139
138
  console.error('群组名称不能为空');
140
139
  return _context3.abrupt("return");
141
140
  case 3:
142
- console.log('保存群组信息:', groupForm);
143
- // 实现保存逻辑
144
141
  if (groupForm.name) {
145
- _context3.next = 6;
142
+ _context3.next = 5;
146
143
  break;
147
144
  }
148
145
  return _context3.abrupt("return");
149
- case 6:
146
+ case 5:
150
147
  options = {
151
148
  sendbirdid: props === null || props === void 0 || (_props$groupInfo4 = props.groupInfo) === null || _props$groupInfo4 === void 0 ? void 0 : _props$groupInfo4.sendbirdid,
152
149
  headimgurl: groupForm === null || groupForm === void 0 ? void 0 : groupForm.imageUrl,
153
150
  name: groupForm.name,
154
151
  description: groupForm.description
155
152
  };
156
- _context3.prev = 7;
157
- _context3.next = 10;
153
+ _context3.prev = 6;
154
+ _context3.next = 9;
158
155
  return http.post("/capi/account/imchannel/update", options);
159
- case 10:
156
+ case 9:
160
157
  response = _context3.sent;
161
158
  _response$data = response.data, code = _response$data.code, msg = _response$data.msg;
162
159
  if (code == 200) {
@@ -168,16 +165,16 @@ var GroupDetailEditView = function GroupDetailEditView(props) {
168
165
  } else {
169
166
  message.error(msg);
170
167
  }
171
- _context3.next = 17;
168
+ _context3.next = 16;
172
169
  break;
173
- case 15:
174
- _context3.prev = 15;
175
- _context3.t0 = _context3["catch"](7);
176
- case 17:
170
+ case 14:
171
+ _context3.prev = 14;
172
+ _context3.t0 = _context3["catch"](6);
173
+ case 16:
177
174
  case "end":
178
175
  return _context3.stop();
179
176
  }
180
- }, _callee2, null, [[7, 15]]);
177
+ }, _callee2, null, [[6, 14]]);
181
178
  }));
182
179
  return function saveGroupInfo() {
183
180
  return _ref2.apply(this, arguments);
@@ -72,9 +72,7 @@ var GroupShareView = function GroupShareView(props) {
72
72
  imgUrl: props.shareObjImageurl
73
73
  }
74
74
  };
75
- customMessage = ChatSDK.message.create({
76
- option: option
77
- });
75
+ customMessage = ChatSDK.message.create(option);
78
76
  _context2.next = 4;
79
77
  return rootStore.messageStore.sendMessage(customMessage);
80
78
  case 4:
@@ -17,8 +17,10 @@ import img from '../image/ic_close.svg.js';
17
17
  import './style/index.scss';
18
18
  import InfiniteScroll from 'react-infinite-scroll-component';
19
19
  import NoData from '../../NoData/index.js';
20
+ import _ from 'lodash';
20
21
 
21
22
  var CreateGroup = function CreateGroup(props) {
23
+ var _$uniqBy;
22
24
  var onClose = props.onClose,
23
25
  _props$open = props.open,
24
26
  open = _props$open === void 0 ? false : _props$open;
@@ -159,6 +161,14 @@ var CreateGroup = function CreateGroup(props) {
159
161
  return;
160
162
  }
161
163
  handleDebounceGetFrindList(e.target.value);
164
+ },
165
+ onClear: function onClear() {
166
+ pageRef.current = 0;
167
+ listRef.current = [];
168
+ if (!apiRef.current) {
169
+ return;
170
+ }
171
+ handleDebounceGetFrindList("");
162
172
  }
163
173
  }), /*#__PURE__*/React.createElement("div", {
164
174
  className: "yuze-createGroup-left-list w-full overflow-auto",
@@ -172,7 +182,7 @@ var CreateGroup = function CreateGroup(props) {
172
182
  scrollableTarget: "createGroup_list",
173
183
  loader: /*#__PURE__*/React.createElement(React.Fragment, null),
174
184
  className: "h-full"
175
- }, list === null || list === void 0 ? void 0 : _mapInstanceProperty(list).call(list, function (item) {
185
+ }, (_$uniqBy = _.uniqBy(list, "id")) === null || _$uniqBy === void 0 ? void 0 : _mapInstanceProperty(_$uniqBy).call(_$uniqBy, function (item) {
176
186
  return /*#__PURE__*/React.createElement(TypeItem, {
177
187
  isSelectable: true,
178
188
  name: item.name,
@@ -199,7 +209,9 @@ var CreateGroup = function CreateGroup(props) {
199
209
  }, /*#__PURE__*/React.createElement("span", {
200
210
  className: "text-sm"
201
211
  }, "Group Member(", member.length, "/2000)")), /*#__PURE__*/React.createElement("div", {
202
- className: "yuze-createGroup-right-list flex flex-row gap-5 py-4 flex-wrap overflow-auto"
212
+ className: "yuze-createGroup-right-list overflow-auto"
213
+ }, /*#__PURE__*/React.createElement("div", {
214
+ className: "flex flex-row gap-5 py-4 flex-wrap"
203
215
  }, _mapInstanceProperty(member).call(member, function (item) {
204
216
  return /*#__PURE__*/React.createElement("div", {
205
217
  className: "yuze-createGroup-right-list-member relative",
@@ -235,7 +247,7 @@ var CreateGroup = function CreateGroup(props) {
235
247
  onClick: function onClick() {
236
248
  handleDebounceCreateGroup();
237
249
  }
238
- }, "Create"))));
250
+ }, "Create")))));
239
251
  };
240
252
 
241
253
  export { CreateGroup as default };
@@ -31,7 +31,10 @@
31
31
  }
32
32
  }
33
33
  &-right-list {
34
- height: 380px;
34
+ height: 450px;
35
+ &::-webkit-scrollbar{
36
+ display: none;
37
+ }
35
38
  &-member {
36
39
  &-close {
37
40
  background-color: rgba(164, 166, 168, 1);
@@ -55,10 +58,13 @@
55
58
  &:nth-child(1) {
56
59
  background-color: transparent !important;
57
60
  color: var(--im-main-fontColor) !important;
61
+ border:1px solid #fff !important;
62
+ font-size: 14px;
58
63
  }
59
64
  &:nth-child(2) {
60
65
  background-color: var(--im-main-buttonColor) !important;
61
66
  color: var(--im-five-fontColor) !important;
67
+ font-size: 14px;
62
68
  }
63
69
  }
64
70
  }
@@ -1,7 +1,6 @@
1
1
  import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
2
2
  import _slicedToArray from '@babel/runtime-corejs3/helpers/esm/slicedToArray';
3
3
  import _findInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/find';
4
- import _JSON$stringify from '@babel/runtime-corejs3/core-js-stable/json/stringify';
5
4
  import _Object$keys from '@babel/runtime-corejs3/core-js-stable/object/keys';
6
5
  import _Object$getOwnPropertySymbols from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
7
6
  import _filterInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/filter';
@@ -58,13 +57,11 @@ var CustomConversationItem = function CustomConversationItem(props) {
58
57
  rootStore.addressStore.getUserInfo(cvs.conversationId).then(function (value) {
59
58
  if (value) {
60
59
  var _value$avatarurl;
61
- console.log(_JSON$stringify(value), "appUserInfo conversationItem");
62
60
  imageUrl = (_value$avatarurl = value === null || value === void 0 ? void 0 : value.avatarurl) !== null && _value$avatarurl !== void 0 ? _value$avatarurl : "";
63
61
  }
64
62
  });
65
63
  } else {
66
64
  var _appUsersInfo$avataru;
67
- console.log(_JSON$stringify(appUsersInfo), "appUserInfo conversationItem");
68
65
  imageUrl = (_appUsersInfo$avataru = appUsersInfo === null || appUsersInfo === void 0 ? void 0 : appUsersInfo.avatarurl) !== null && _appUsersInfo$avataru !== void 0 ? _appUsersInfo$avataru : "";
69
66
  }
70
67
  setAvatar(imageUrl);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whyuzeim",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "im componenets",
5
5
  "main": "cjs/index.js",
6
6
  "module": "es/index.js",
@@ -39,6 +39,7 @@
39
39
  "classnames": "^2.5.1",
40
40
  "use-debounce": "^10.0.4",
41
41
  "@babel/runtime-corejs3": "^7.26.9",
42
- "react-infinite-scroll-component": "^6.1.0"
42
+ "react-infinite-scroll-component": "^6.1.0",
43
+ "lodash": "^4.17.21"
43
44
  }
44
45
  }
@@ -1,5 +0,0 @@
1
- 'use strict';
2
-
3
- var img = "data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M2.02273 10C2.02273 5.59427 5.59427 2.02273 10 2.02273C12.7648 2.02273 15.2025 3.42934 16.6342 5.56818H15.3182V7.34091H19.75V2.90909H17.9773V4.39303C16.2134 1.88804 13.2987 0.25 10 0.25C4.61522 0.25 0.25 4.61522 0.25 10H2.02273Z' fill='white' fill-opacity='0.4'/%3e%3cpath d='M9.99995 19.75C15.3847 19.75 19.75 15.3848 19.75 10H17.9772C17.9772 14.4057 14.4057 17.9773 9.99995 17.9773C7.23516 17.9773 4.79749 16.5707 3.36579 14.4318H4.68182V12.6591H0.25V17.0909H2.02273V15.607C3.7866 18.112 6.70132 19.75 9.99995 19.75Z' fill='white' fill-opacity='0.4'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.30758 5.23249L6.40385 13.4225C6.37904 13.5052 6.40799 13.5466 6.49072 13.5466H8.11631C8.19904 13.5466 8.25281 13.5052 8.27763 13.4225L8.74917 11.9458H11.7025L12.1865 13.4225C12.2113 13.5052 12.2651 13.5466 12.3478 13.5466H13.961C14.0437 13.5466 14.0727 13.5052 14.0479 13.4225L11.1938 5.23249C11.1689 5.14976 11.1152 5.1084 11.0324 5.1084H9.4689C9.38617 5.1084 9.3324 5.14976 9.30758 5.23249ZM11.2062 10.3947H9.25795L10.2134 7.44131H10.2507L11.2062 10.3947Z' fill='white' fill-opacity='0.4'/%3e%3c/svg%3e";
4
-
5
- module.exports = img;
@@ -1,11 +0,0 @@
1
- import React from "react";
2
- import "./style/index.scss";
3
- export interface IMobileHeader {
4
- leftIcon?: React.ReactElement;
5
- rightIcon?: React.ReactElement;
6
- title?: React.ReactElement;
7
- className?: string;
8
- style?: React.CSSProperties;
9
- }
10
- declare const MobileHeader: React.FC<IMobileHeader>;
11
- export default MobileHeader;
@@ -1,29 +0,0 @@
1
- 'use strict';
2
-
3
- var React = require('react');
4
- require('./style/index.scss');
5
- var classNames = require('classnames');
6
-
7
- var MobileHeader = function MobileHeader(props) {
8
- var title = props.title,
9
- leftIcon = props.leftIcon,
10
- rightIcon = props.rightIcon,
11
- className = props.className,
12
- style = props.style;
13
- return /*#__PURE__*/React.createElement("div", {
14
- className: classNames("yuze-mobileHeader flex flex-row items-center justify-between px-4", className),
15
- style: style
16
- }, /*#__PURE__*/React.createElement("div", {
17
- className: "yuze-mobileHeader-left"
18
- }, /*#__PURE__*/React.createElement("div", {
19
- className: "yuze-mobileHeader-item flex flex-row items-center justify-center"
20
- }, leftIcon)), /*#__PURE__*/React.createElement("div", {
21
- className: "yuze-mobileHeader-middle text-xl text-[var(--im-main-fontColor)]"
22
- }, title), /*#__PURE__*/React.createElement("div", {
23
- className: "yuze-mobileHeader-right"
24
- }, /*#__PURE__*/React.createElement("div", {
25
- className: "yuze-mobileHeader-item flex flex-row items-center justify-center"
26
- }, rightIcon)));
27
- };
28
-
29
- module.exports = MobileHeader;
@@ -1,11 +0,0 @@
1
- .yuze-mobileHeader {
2
- height: 64px;
3
- box-sizing: border-box;
4
- border-bottom: solid 1px var(--im-mainContent-left-borderColor);
5
- &-item {
6
- width: 40px;
7
- height: 40px;
8
- border-radius: 50%;
9
- background-color: #292e23;
10
- }
11
- }
@@ -1,5 +0,0 @@
1
- 'use strict';
2
-
3
- var img = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M14.8571 6.85714H9.14286V1.14286C9.14286 0.514286 8.62857 0 8 0C7.37143 0 6.85714 0.514286 6.85714 1.14286V6.85714H1.14286C0.514286 6.85714 0 7.37143 0 8C0 8.62857 0.514286 9.14286 1.14286 9.14286H6.85714V14.8571C6.85714 15.4857 7.37143 16 8 16C8.62857 16 9.14286 15.4857 9.14286 14.8571V9.14286H14.8571C15.4857 9.14286 16 8.62857 16 8C16 7.37143 15.4857 6.85714 14.8571 6.85714Z' fill='white'/%3e%3c/svg%3e";
4
-
5
- module.exports = img;
@@ -1,3 +0,0 @@
1
- var img = "data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M2.02273 10C2.02273 5.59427 5.59427 2.02273 10 2.02273C12.7648 2.02273 15.2025 3.42934 16.6342 5.56818H15.3182V7.34091H19.75V2.90909H17.9773V4.39303C16.2134 1.88804 13.2987 0.25 10 0.25C4.61522 0.25 0.25 4.61522 0.25 10H2.02273Z' fill='white' fill-opacity='0.4'/%3e%3cpath d='M9.99995 19.75C15.3847 19.75 19.75 15.3848 19.75 10H17.9772C17.9772 14.4057 14.4057 17.9773 9.99995 17.9773C7.23516 17.9773 4.79749 16.5707 3.36579 14.4318H4.68182V12.6591H0.25V17.0909H2.02273V15.607C3.7866 18.112 6.70132 19.75 9.99995 19.75Z' fill='white' fill-opacity='0.4'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.30758 5.23249L6.40385 13.4225C6.37904 13.5052 6.40799 13.5466 6.49072 13.5466H8.11631C8.19904 13.5466 8.25281 13.5052 8.27763 13.4225L8.74917 11.9458H11.7025L12.1865 13.4225C12.2113 13.5052 12.2651 13.5466 12.3478 13.5466H13.961C14.0437 13.5466 14.0727 13.5052 14.0479 13.4225L11.1938 5.23249C11.1689 5.14976 11.1152 5.1084 11.0324 5.1084H9.4689C9.38617 5.1084 9.3324 5.14976 9.30758 5.23249ZM11.2062 10.3947H9.25795L10.2134 7.44131H10.2507L11.2062 10.3947Z' fill='white' fill-opacity='0.4'/%3e%3c/svg%3e";
2
-
3
- export { img as default };
@@ -1,11 +0,0 @@
1
- import React from "react";
2
- import "./style/index.scss";
3
- export interface IMobileHeader {
4
- leftIcon?: React.ReactElement;
5
- rightIcon?: React.ReactElement;
6
- title?: React.ReactElement;
7
- className?: string;
8
- style?: React.CSSProperties;
9
- }
10
- declare const MobileHeader: React.FC<IMobileHeader>;
11
- export default MobileHeader;
@@ -1,27 +0,0 @@
1
- import React from 'react';
2
- import './style/index.scss';
3
- import classNames from 'classnames';
4
-
5
- var MobileHeader = function MobileHeader(props) {
6
- var title = props.title,
7
- leftIcon = props.leftIcon,
8
- rightIcon = props.rightIcon,
9
- className = props.className,
10
- style = props.style;
11
- return /*#__PURE__*/React.createElement("div", {
12
- className: classNames("yuze-mobileHeader flex flex-row items-center justify-between px-4", className),
13
- style: style
14
- }, /*#__PURE__*/React.createElement("div", {
15
- className: "yuze-mobileHeader-left"
16
- }, /*#__PURE__*/React.createElement("div", {
17
- className: "yuze-mobileHeader-item flex flex-row items-center justify-center"
18
- }, leftIcon)), /*#__PURE__*/React.createElement("div", {
19
- className: "yuze-mobileHeader-middle text-xl text-[var(--im-main-fontColor)]"
20
- }, title), /*#__PURE__*/React.createElement("div", {
21
- className: "yuze-mobileHeader-right"
22
- }, /*#__PURE__*/React.createElement("div", {
23
- className: "yuze-mobileHeader-item flex flex-row items-center justify-center"
24
- }, rightIcon)));
25
- };
26
-
27
- export { MobileHeader as default };
@@ -1,11 +0,0 @@
1
- .yuze-mobileHeader {
2
- height: 64px;
3
- box-sizing: border-box;
4
- border-bottom: solid 1px var(--im-mainContent-left-borderColor);
5
- &-item {
6
- width: 40px;
7
- height: 40px;
8
- border-radius: 50%;
9
- background-color: #292e23;
10
- }
11
- }
@@ -1,3 +0,0 @@
1
- var img = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M14.8571 6.85714H9.14286V1.14286C9.14286 0.514286 8.62857 0 8 0C7.37143 0 6.85714 0.514286 6.85714 1.14286V6.85714H1.14286C0.514286 6.85714 0 7.37143 0 8C0 8.62857 0.514286 9.14286 1.14286 9.14286H6.85714V14.8571C6.85714 15.4857 7.37143 16 8 16C8.62857 16 9.14286 15.4857 9.14286 14.8571V9.14286H14.8571C15.4857 9.14286 16 8.62857 16 8C16 7.37143 15.4857 6.85714 14.8571 6.85714Z' fill='white'/%3e%3c/svg%3e";
2
-
3
- export { img as default };