main.js
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
const app = createApp(App)
app.mixin({
mounted () {
if (typeof this.$el.className === 'string') {
if (this.$el.className.split(' ').indexOf('el-select') !== -1) {
this.$el.children[0].children[0].children[0].removeAttribute('readOnly')
this.$el.children[0].children[0].children[0].onblur = function () {
let _this = this
setTimeout(() => {
_this.removeAttribute('readOnly')
}, 200)
}
}
}
}
})
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)