修改定位命令的动画

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