修改检索

This commit is contained in:
龙运模
2024-10-18 16:35:33 +08:00
parent 9d6a38252c
commit 8bcf74eb0d
6 changed files with 129 additions and 39 deletions
+11
View File
@@ -0,0 +1,11 @@
export default {
mounted(el) {
const inputElement = el.querySelector('.el-input__inner');
inputElement.addEventListener('focus', () => {
el.classList.add('focused');
});
inputElement.addEventListener('blur', () => {
el.classList.remove('focused');
});
},
}