Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
AI_BOOK_TOOL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
AI_BOOK_TOOL
Commits
0177e9da
Commit
0177e9da
authored
May 12, 2025
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:
parent
e9c2dd1d
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
213 additions
and
27 deletions
+213
-27
index.css
form/index.css
+40
-0
index.html
form/index.html
+28
-0
index.js
form/index.js
+145
-27
No files found.
form/index.css
View file @
0177e9da
...
@@ -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
;
}
}
...
...
form/index.html
View file @
0177e9da
...
@@ -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>
...
...
form/index.js
View file @
0177e9da
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment