修改定位命令的动画

This commit is contained in:
fofolee 2024-05-08 21:53:59 +08:00
parent 4de96bac47
commit 8c111773f5

View File

@ -449,10 +449,10 @@ export default {
return code.slice(0, 8) === "default_"; return code.slice(0, 8) === "default_";
}, },
// //
importCommand(quickCommandInfo) { async importCommand(quickCommandInfo) {
if (!quickCommandInfo) if (!quickCommandInfo)
return quickcommand.showMessageBox("导入未完成!", "warning"); return quickcommand.showMessageBox("导入未完成!", "warning");
let parsedData = quickcommandParser(quickCommandInfo); let parsedData = await quickcommandParser(quickCommandInfo);
if (!parsedData) return quickcommand.showMessageBox("格式错误", "error"); if (!parsedData) return quickcommand.showMessageBox("格式错误", "error");
// //
let dataToPushed = {}; let dataToPushed = {};
@ -481,13 +481,10 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
let el = document.getElementById(code); let el = document.getElementById(code);
el.scrollIntoViewIfNeeded(); el.scrollIntoViewIfNeeded();
// el.querySelector('.q-card').style.boxShadow = "0px 1px var(--q-primary)";
el.style.filter = "drop-shadow(2px 4px 6px gray)";
el.style.transform = "translateY(-5px)";
setTimeout(() => { setTimeout(() => {
el.style.filter = ""; el.querySelector('.q-card').style.boxShadow = "";
el.style.transform = ""; }, 5000);
}, 800);
// //
document document
.querySelector(".q-tab--active") .querySelector(".q-tab--active")