Commit 01c3336f authored by Jeff nan's avatar Jeff nan

feat

parent 5665c6f3
......@@ -383,12 +383,46 @@
.waveform-tune-handle--end span {
background: #f56c6c;
}
.waveform-tune-playhead {
position: absolute;
top: 0;
bottom: 0;
width: 2px;
margin-left: -1px;
background: #e6a23c;
box-shadow: 0 0 6px rgba(230, 162, 60, 0.85);
z-index: 3;
pointer-events: none;
}
.waveform-tune-playhead span {
position: absolute;
bottom: 6px;
left: 50%;
transform: translateX(-50%);
padding: 1px 6px;
border-radius: 3px;
font-size: 12px;
color: #fff;
background: #e6a23c;
white-space: nowrap;
pointer-events: none;
}
.waveform-tune-error {
margin-top: 12px;
color: #f56c6c;
font-size: 13px;
line-height: 1.5;
}
.waveform-tune-actions {
display: flex;
align-items: center;
gap: 10px;
margin-top: 12px;
}
.waveform-tune-actions__tip {
color: #909399;
font-size: 12px;
}
/* 提示包裹,保证禁用按钮仍可触发 tooltip */
.disabled-tip {
......
......@@ -393,6 +393,22 @@
class="waveform-tune-selection"
:style="{ left: waveformStartPct + '%', width: Math.max(0, waveformEndPct - waveformStartPct) + '%' }"
></div>
<div
v-if="waveformPlayheadPct != null"
class="waveform-tune-playhead"
:style="{ left: waveformPlayheadPct + '%' }"
>
<span>{{ formatTime(waveformDialog.playheadSec) }}</span>
</div>
</div>
<div class="waveform-tune-actions">
<el-button
size="small"
type="success"
:disabled="!!waveformDialog.loading || !!waveformDialog.error"
@click="toggleWaveformPreview"
>{{ waveformDialog.playing ? '停止' : '播放' }}</el-button>
<span class="waveform-tune-actions__tip">试听当前选中区间</span>
</div>
<div v-if="waveformDialog.error" class="waveform-tune-error">{{ waveformDialog.error }}</div>
</div>
......
This diff is collapsed.
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