图标、动画更新
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 6.7 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 8.8 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 11 KiB |
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
class="command-editor-container"
|
class="command-editor-container"
|
||||||
:class="{ 'leaving': isLeaving }"
|
:class="{ 'leaving': isLeaving, 'run-code': isRunCodePage }"
|
||||||
@animationend="$emit('animationend')"
|
@animationend="$emit('animationend')"
|
||||||
>
|
>
|
||||||
<!-- 命令设置栏 -->
|
<!-- 命令设置栏 -->
|
||||||
@ -310,15 +310,23 @@ export default {
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
z-index: 5000;
|
z-index: 5000;
|
||||||
background: var(--q-page-background);
|
background: var(--q-page-background);
|
||||||
animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
animation: slideUpDefault 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.command-editor-container.run-code {
|
||||||
|
animation: slideDownIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.command-editor-container.leaving {
|
.command-editor-container.leaving {
|
||||||
animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
animation: slideDownOut 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes slideUp {
|
.command-editor-container.leaving.run-code {
|
||||||
|
animation: slideUpOut 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes slideUpDefault {
|
||||||
from {
|
from {
|
||||||
transform: translateY(100%);
|
transform: translateY(100%);
|
||||||
}
|
}
|
||||||
@ -327,7 +335,16 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes slideDown {
|
@keyframes slideDownIn {
|
||||||
|
from {
|
||||||
|
transform: translateY(-100%);
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes slideDownOut {
|
||||||
from {
|
from {
|
||||||
transform: translateY(0);
|
transform: translateY(0);
|
||||||
}
|
}
|
||||||
@ -336,6 +353,15 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@keyframes slideUpOut {
|
||||||
|
from {
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
transform: translateY(-100%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.body--dark .command-editor-container {
|
.body--dark .command-editor-container {
|
||||||
color: white;
|
color: white;
|
||||||
background: var(--q-dark-page);
|
background: var(--q-dark-page);
|
||||||
|