Commit 4afb2e0b authored by liujiangnan's avatar liujiangnan

feat

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