{/*视频正在播放{state.activeIndex == -1 ? '' : `到 ${state.activeIndex + 1} 条`}*/}
@@ -259,12 +280,14 @@ export default function LiveIndex() {
-
-
{editable ? t('live.edit_unlock') : t('live.edit_locked')}
-
- {editable ? : }
-
+
+ {editable ? (
+
+
+ ):(
+ {t('live.edit_locked')}
+
+
)}
- handleAllCheckedChange()}/>
+ handleAllCheckedChange()}/>
@@ -308,7 +331,7 @@ export default function LiveIndex() {
}
}}>
- {videoData.map((v, index) => (
+ {videoData.filter(v=>(!(delIds.includes(v.id) || rollbackIds.includes(v.id)))).map((v, index) => (
processDeleteVideo([v.id])}
- editable={!editable && state.playId != v.id}
+ editable={editable && state.playId != v.id}
sortable={editable && state.playId != v.id}
+ additionOperationBefore={<>
+ {editable && state.playId != v.id && }
+ title={t('video.live_rollback_confirm_title')}
+ onConfirm={() => handleRollback(v)}
+ >}
+ >}
/>))}
diff --git a/src/pages/live/style.module.scss b/src/pages/live/style.module.scss
index 5ba3fb7..4ace97c 100644
--- a/src/pages/live/style.module.scss
+++ b/src/pages/live/style.module.scss
@@ -1,3 +1,26 @@
.videoListContainer{
+}
+@mixin btnDefault{
+ border-radius: 20px;
+ padding: 2px 16px;
+ height: auto;
+}
+.btn{
+ @include btnDefault;
+ background: #4096FF;
+ color:#fff;
+ border: 1px solid #4096FF;
+ &:hover{
+ background: #337acc;
+ }
+}
+
+.btnDefault{
+ @include btnDefault;
+ color:#00000099;
+ border: 1px solid #00000099;
+ &:hover{
+ background: #00000011;
+ }
}
\ No newline at end of file
diff --git a/src/pages/video/index.tsx b/src/pages/video/index.tsx
index 1ea4cdd..17fa707 100644
--- a/src/pages/video/index.tsx
+++ b/src/pages/video/index.tsx
@@ -185,7 +185,7 @@ export default function VideoIndex() {