Commit 4afb2e0b authored by liujiangnan's avatar liujiangnan

feat

parent 655fc285
...@@ -255,6 +255,16 @@ ...@@ -255,6 +255,16 @@
padding: 0; padding: 0;
} }
/* 全屏对话框自定义标题(返回 + 标题) */
.dialog-title {
display: flex;
align-items: center;
gap: 8px;
}
.dialog-title__back {
margin-right: 4px;
}
/* 卡片悬停效果 */ /* 卡片悬停效果 */
.upload-section, .upload-section,
.video-section, .video-section,
......
...@@ -169,12 +169,19 @@ ...@@ -169,12 +169,19 @@
<!-- 全屏字幕编辑器 --> <!-- 全屏字幕编辑器 -->
<el-dialog <el-dialog
title="字幕编辑器"
:visible.sync="subtitleEditorVisible" :visible.sync="subtitleEditorVisible"
fullscreen fullscreen
:show-close="false"
:close-on-click-modal="false" :close-on-click-modal="false"
:destroy-on-close="true" :destroy-on-close="true"
@open="onSubtitleEditorOpen"> @open="onSubtitleEditorOpen">
<span slot="title" class="dialog-title">
<el-page-header
@back="confirmExitSubtitleEditor"
title="返回"
content="字幕编辑器">
</el-page-header>
</span>
<div v-loading="subtitleEditorLoading"> <div v-loading="subtitleEditorLoading">
<div style="margin-bottom:12px;"> <div style="margin-bottom:12px;">
<el-button type="primary" size="mini" @click="applyEditorChanges">保存修改</el-button> <el-button type="primary" size="mini" @click="applyEditorChanges">保存修改</el-button>
......
...@@ -627,6 +627,20 @@ function initVueApp(savedData) { ...@@ -627,6 +627,20 @@ function initVueApp(savedData) {
this.subtitleEditorVisible = true; this.subtitleEditorVisible = true;
}, },
// 退出字幕编辑器确认
async confirmExitSubtitleEditor() {
try {
await this.$confirm('是否退出歌词编辑?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
});
this.subtitleEditorVisible = false;
} catch (e) {
// 用户取消,无需处理
}
},
// 弹窗打开时加载数据 // 弹窗打开时加载数据
async onSubtitleEditorOpen() { async onSubtitleEditorOpen() {
try { try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment