@x-edu/live-player 0.0.6 → 0.0.7

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@x-edu/live-player",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "main": "dist/XEduLivePlayer.common.js",
5
5
  "scripts": {
6
6
  "start": "cross-env SDP_ENV=local gms dev",
@@ -3,8 +3,6 @@ import classNames from 'classnames'
3
3
 
4
4
  import style from './index.module.less'
5
5
 
6
- const emptyImg = '@/component/Empty/img/empty.png'
7
-
8
6
  export default function Empty({
9
7
  hideBack = false,
10
8
  tip = '哎呀,该内容被下架了',
@@ -18,7 +16,7 @@ export default function Empty({
18
16
 
19
17
  return (
20
18
  <div className={classNames(style['empty-wrap'], className)}>
21
- <img src={emptyImg} alt="" />
19
+ <img src={require('./img/empty.png')} alt="" />
22
20
  <p>{tip}</p>
23
21
  {description}
24
22
  {!hideBack && (buttonRender
@@ -258,7 +258,7 @@ export default function PublicLiveDetail({
258
258
 
259
259
  if (!isExist) {
260
260
  return (
261
- <Empty hideBack tip="直播不存在" className={style['live-empty']} />
261
+ <Empty hideBack tip="内容已失效" className={style['live-empty']} />
262
262
  )
263
263
  }
264
264