Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Yuan Zhixiang
c-render-vue
Commits
d8c63d96
Commit
d8c63d96
authored
Apr 26, 2024
by
Yuan Zhixiang
Browse files
优化断点跳转布局
parent
c0ed4f9f
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/App.vue
View file @
d8c63d96
...
@@ -311,7 +311,7 @@ provide('app', {
...
@@ -311,7 +311,7 @@ provide('app', {
/* 黑魔法,勿动 */
/* 黑魔法,勿动 */
display
:
grid
;
display
:
grid
;
grid-template-columns
:
34%
66%
;
grid-template-columns
:
34%
66%
;
grid-template-rows
:
80
%
2
0
%
;
grid-template-rows
:
74
%
2
6
%
;
height
:
100%
;
height
:
100%
;
width
:
100%
;
width
:
100%
;
}
}
...
...
src/components/ControlPanel.vue
View file @
d8c63d96
...
@@ -31,6 +31,7 @@ const command_available = computed(()=>{
...
@@ -31,6 +31,7 @@ const command_available = computed(()=>{
<PrevButton
v-show=
"!edit_mode"
/>
<PrevButton
v-show=
"!edit_mode"
/>
<NextButton
v-show=
"!edit_mode"
/>
<NextButton
v-show=
"!edit_mode"
/>
<CommandButton
v-show=
"command_available && edit_mode"
/>
<CommandButton
v-show=
"command_available && edit_mode"
/>
<br
v-show=
"!edit_mode"
>
<NextBreakpoint
v-show=
"!edit_mode"
/>
<NextBreakpoint
v-show=
"!edit_mode"
/>
<PrevBreakpoint
v-show=
"!edit_mode"
/>
<PrevBreakpoint
v-show=
"!edit_mode"
/>
</div>
</div>
...
...
src/components/buttons/NextBreakpoint.vue
View file @
d8c63d96
<
script
setup
>
<
script
setup
>
import
{
inject
}
from
'
vue
'
;
import
{
computed
,
inject
}
from
'
vue
'
;
const
{
current_step
,
highlight_steps
}
=
inject
(
'
app
'
)
const
{
current_step
,
highlight_steps
}
=
inject
(
'
app
'
)
const
clickable
=
computed
(()
=>
{
return
highlight_steps
.
value
.
length
==
0
})
function
click
()
{
function
click
()
{
let
target
let
target
let
success
=
false
let
success
=
false
...
@@ -23,7 +27,7 @@ function click() {
...
@@ -23,7 +27,7 @@ function click() {
</
script
>
</
script
>
<
template
>
<
template
>
<button
class=
"button"
@
click=
"click"
>
下个断点
</button>
<button
class=
"button"
@
click=
"click"
:disabled=
"clickable"
>
下个断点
</button>
</
template
>
</
template
>
<
style
scoped
>
<
style
scoped
>
...
...
src/components/buttons/PrevBreakpoint.vue
View file @
d8c63d96
<
script
setup
>
<
script
setup
>
import
{
inject
}
from
'
vue
'
;
import
{
computed
,
inject
}
from
'
vue
'
;
const
{
current_step
,
highlight_steps
}
=
inject
(
'
app
'
)
const
{
current_step
,
highlight_steps
}
=
inject
(
'
app
'
)
const
clickable
=
computed
(()
=>
{
return
highlight_steps
.
value
.
length
==
0
})
function
click
()
{
function
click
()
{
let
target
let
target
let
success
=
false
let
success
=
false
...
@@ -23,7 +27,7 @@ function click() {
...
@@ -23,7 +27,7 @@ function click() {
</
script
>
</
script
>
<
template
>
<
template
>
<button
class=
"button"
@
click=
"click"
>
上个断点
</button>
<button
class=
"button"
@
click=
"click"
:disabled=
"clickable"
>
上个断点
</button>
</
template
>
</
template
>
<
style
scoped
>
<
style
scoped
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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