mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-10 12:01:57 +08:00
Merge d5d59949f24c4071815aac409d697c3c5e983d78 into 0caa975ee224074c77540107b1fe076081cdf306
This commit is contained in:
commit
bf9e115ced
@ -138,9 +138,15 @@ export default {
|
|||||||
// window.removeEventListener('storage', this.afterQRScan)
|
// window.removeEventListener('storage', this.afterQRScan)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
checkCapslock(e) {
|
checkCapslock({ shiftKey, key }) {
|
||||||
const { key } = e
|
if (key && key.length === 1) {
|
||||||
this.capsTooltip = key && key.length === 1 && (key >= 'A' && key <= 'Z')
|
if (shiftKey && (key >= 'a' && key <= 'z') || !shiftKey && (key >= 'A' && key <= 'Z')) {
|
||||||
|
this.capsTooltip = true
|
||||||
|
} else {
|
||||||
|
this.capsTooltip = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
key === 'CapsLock' && this.capsTooltip === true && (this.capsTooltip = false)
|
||||||
},
|
},
|
||||||
showPwd() {
|
showPwd() {
|
||||||
if (this.passwordType === 'password') {
|
if (this.passwordType === 'password') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user