jazz
2023-12-26 2471a9b321c22b7ad9aac423957fc8232980b5cd
提交 | 用户 | 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