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