@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/.gem-mine +11 -11
- package/dist/XEduLivePlayer.common.js +196 -591
- package/dist/XEduLivePlayerPre.common.js +521 -880
- package/package.json +1 -1
- package/public/JsBridge.js +1602 -1602
- package/src/demo/List.jsx +1 -1
- package/src/list/index.jsx +5 -3
package/src/demo/List.jsx
CHANGED
package/src/list/index.jsx
CHANGED
|
@@ -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
|
</>
|