@x-edu/live-player 0.0.17 → 0.0.19

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/src/demo/List.jsx CHANGED
@@ -34,7 +34,7 @@ export default function List() {
34
34
  try {
35
35
  await ucInstance.login({
36
36
  loginName: '18695708674',
37
- password: 'Gyh.2233'
37
+ password: 'Gyh.1122'
38
38
  // loginName: '18695708674',
39
39
  // password: 'gyh123456'
40
40
  })
@@ -40,7 +40,8 @@ export default function PublicLiveList({
40
40
  sdpAppId: propSdpAppId,
41
41
  onDetailClick,
42
42
  handleLogin = () => {},
43
- onSubscribe = () => {}
43
+ onSubscribe = () => {},
44
+ emptyClassName
44
45
  }) {
45
46
  setUC(uc, loginInfo?.userInfo)
46
47
  if (propSdpAppId) {
@@ -84,8 +85,8 @@ export default function PublicLiveList({
84
85
  setIsLogin(true)
85
86
  }
86
87
  }
87
- setList(items)
88
- setTotal(count)
88
+ setList(items || [])
89
+ setTotal(count || 0)
89
90
  setLoading(false)
90
91
  }
91
92
  getList()
@@ -136,6 +137,7 @@ export default function PublicLiveList({
136
137
  ) : (
137
138
  <Empty
138
139
  tip="暂无内容"
140
+ className={emptyClassName}
139
141
  />
140
142
  )}
141
143
  </>