Commit 0177e9da authored by liujiangnan's avatar liujiangnan

feat:

parent e9c2dd1d
...@@ -178,6 +178,25 @@ html, body { ...@@ -178,6 +178,25 @@ html, body {
z-index: 4; z-index: 4;
} }
/* 添加时间调整控件样式 */
.time-adjust-controls {
display: flex;
align-items: center;
margin-left: 20px;
padding-left: 20px;
border-left: 1px solid #DCDFE6;
}
.time-label {
font-size: 14px;
color: #606266;
margin-right: 5px;
}
.time-adjust-controls .el-input-number {
margin: 0 5px;
}
/* 分页器样式 */ /* 分页器样式 */
.pagination-container { .pagination-container {
position: fixed; position: fixed;
...@@ -327,7 +346,28 @@ html, body { ...@@ -327,7 +346,28 @@ html, body {
cursor: pointer !important; cursor: pointer !important;
} }
/* 区间拖拽手柄样式 */
.wavesurfer-handle { .wavesurfer-handle {
display: block !important;
position: absolute !important;
height: 100% !important;
width: 8px !important;
top: 0 !important;
cursor: ew-resize !important;
z-index: 3 !important;
background: transparent !important;
}
.wavesurfer-handle-start {
left: 0 !important;
}
.wavesurfer-handle-end {
right: 0 !important;
}
/* 禁用状态下的手柄样式 */
.wavesurfer-region[data-drag="false"] .wavesurfer-handle {
display: none !important; display: none !important;
} }
......
...@@ -307,6 +307,34 @@ ...@@ -307,6 +307,34 @@
<i :class="isPageLocked ? 'el-icon-lock' : 'el-icon-unlock'"></i> <i :class="isPageLocked ? 'el-icon-lock' : 'el-icon-unlock'"></i>
{{ isPageLocked ? '解锁页面' : '锁定页面' }} {{ isPageLocked ? '解锁页面' : '锁定页面' }}
</el-button> </el-button>
<!-- 添加时间调整控件 -->
<div class="time-adjust-controls" v-if="currentGroup">
<span class="time-label">开始时间:</span>
<el-input-number
v-model="currentGroup.start"
:min="0"
:max="currentGroup.end"
:step="0.1"
:precision="3"
size="small"
:disabled="isPageLocked"
@change="handleTimeChange('start', $event)"
style="width: 120px">
</el-input-number>
<span class="time-label" style="margin-left: 10px">结束时间:</span>
<el-input-number
v-model="currentGroup.end"
:min="currentGroup.start"
:max="wavesurfer ? wavesurfer.getDuration() : 999999"
:step="0.1"
:precision="3"
size="small"
:disabled="isPageLocked"
@change="handleTimeChange('end', $event)"
style="width: 120px">
</el-input-number>
</div>
</div> </div>
</div> </div>
</el-card> </el-card>
......
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