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
d3955af2
Commit
d3955af2
authored
May 14, 2025
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 块调整还不完善,先记一版
parent
6455e64c
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
178 additions
and
334 deletions
+178
-334
index.css
form/index.css
+47
-6
index.js
form/index.js
+131
-328
No files found.
form/index.css
View file @
d3955af2
...
@@ -519,19 +519,20 @@ html, body {
...
@@ -519,19 +519,20 @@ html, body {
display
:
block
!important
;
display
:
block
!important
;
position
:
absolute
!important
;
position
:
absolute
!important
;
height
:
100%
!important
;
height
:
100%
!important
;
width
:
8
px
!important
;
width
:
1
px
!important
;
top
:
0
!important
;
top
:
0
!important
;
cursor
:
ew-resize
!important
;
cursor
:
ew-resize
!important
;
z-index
:
3
!important
;
z-index
:
3
!important
;
background
:
transparent
!important
;
}
}
.wavesurfer-handle-start
{
.wavesurfer-handle-start
{
left
:
0
!important
;
left
:
0
!important
;
background-color
:
rgba
(
0
,
255
,
0
,
0.8
)
!important
;
}
}
.wavesurfer-handle-end
{
.wavesurfer-handle-end
{
right
:
0
!important
;
right
:
0
!important
;
background-color
:
rgba
(
255
,
0
,
0
,
0.8
)
!important
;
}
}
/* 波形图的进度条样式 */
/* 波形图的进度条样式 */
...
@@ -563,6 +564,21 @@ html, body {
...
@@ -563,6 +564,21 @@ html, body {
background-color
:
rgba
(
255
,
165
,
0
,
0.4
)
!important
;
background-color
:
rgba
(
255
,
165
,
0
,
0.4
)
!important
;
}
}
.wavesurfer-region
[
data-id
^=
"group-"
]
.wavesurfer-handle
{
display
:
block
!important
;
width
:
1px
!important
;
height
:
100%
!important
;
cursor
:
ew-resize
!important
;
}
.wavesurfer-region
[
data-id
^=
"group-"
]
.wavesurfer-handle-start
{
background-color
:
rgba
(
0
,
255
,
0
,
0.8
)
!important
;
}
.wavesurfer-region
[
data-id
^=
"group-"
]
.wavesurfer-handle-end
{
background-color
:
rgba
(
255
,
0
,
0
,
0.8
)
!important
;
}
/* 锁定状态下的标记样式 */
/* 锁定状态下的标记样式 */
.wavesurfer-region
[
data-id
$
=
"-start"
]
{
.wavesurfer-region
[
data-id
$
=
"-start"
]
{
background-color
:
rgba
(
0
,
255
,
0
,
0.8
)
!important
;
background-color
:
rgba
(
0
,
255
,
0
,
0.8
)
!important
;
...
@@ -576,14 +592,39 @@ html, body {
...
@@ -576,14 +592,39 @@ html, body {
z-index
:
5
!important
;
z-index
:
5
!important
;
}
}
/* 锁定状态下
隐藏非当前页面的区间
*/
/* 锁定状态下
的组区间样式
*/
.page-locked
.wavesurfer-region
[
data-id
^=
"group-"
]
{
.page-locked
.wavesurfer-region
[
data-id
^=
"group-"
]
{
display
:
block
!important
;
display
:
block
!important
;
background-color
:
rgba
(
255
,
165
,
0
,
0.3
)
!important
;
background-color
:
rgba
(
255
,
165
,
0
,
0.3
)
!important
;
border
:
1px
solid
rgba
(
255
,
165
,
0
,
0.5
)
!important
;
border
:
1px
solid
rgba
(
255
,
165
,
0
,
0.5
)
!important
;
}
}
/* 锁定状态下禁用区间拖动 */
/* 锁定状态下允许组区间显示手柄 */
.page-locked
.wavesurfer-region
.wavesurfer-handle
{
.page-locked
.wavesurfer-region
[
data-id
^=
"group-"
]
.wavesurfer-handle
{
display
:
none
!important
;
display
:
block
!important
;
width
:
1px
!important
;
height
:
100%
!important
;
cursor
:
ew-resize
!important
;
}
.page-locked
.wavesurfer-region
[
data-id
^=
"group-"
]
.wavesurfer-handle-start
{
background-color
:
rgba
(
0
,
255
,
0
,
0.8
)
!important
;
}
.page-locked
.wavesurfer-region
[
data-id
^=
"group-"
]
.wavesurfer-handle-end
{
background-color
:
rgba
(
255
,
0
,
0
,
0.8
)
!important
;
}
#waveform
::part
(
region-handle-start
)
{
background-color
:
rgba
(
0
,
255
,
0
,
0.8
)
!important
;
width
:
1px
!important
;
height
:
100%
!important
;
cursor
:
ew-resize
!important
;
}
#waveform
::part
(
region-handle-end
)
{
background-color
:
rgba
(
255
,
0
,
0
,
0.8
)
!important
;
width
:
1px
!important
;
height
:
100%
!important
;
cursor
:
ew-resize
!important
;
}
}
\ No newline at end of file
form/index.js
View file @
d3955af2
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