long
2024-06-26 911e0ed72a790ba054385ffe594262e123948691
提交 | 用户 | age
aeb317 1 // utils/element-ui-preprocessing.js
J 2 import ElementUI from 'element-ui'
3
4 // Fixes an issue with filters not working on mobile
5 ElementUI.Select.computed.readonly = function() {
6   if (!this.filterable) return true
7   // trade-off for IE input readonly problem: https://github.com/ElemeFE/element/issues/10403
8   const isIE = !this.$isServer && !Number.isNaN(Number(document.documentMode))
9   return !(this.filterable || this.multiple || !isIE) && !this.visible
10 }
11
12 export default ElementUI