服装智能制造软件平台V3.0 http://182.92.169.222/hhxy/#/user/login
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

23 lines
471 B

import enquireJs from 'enquire.js'
const enquireScreen = function (call) {
// tablet
const handler = {
match: function () {
call && call(0)
},
unmatch: function () {
call && call(-1)
}
}
// mobile
const handler2 = {
match: () => {
call && call(1)
}
}
enquireJs.register('screen and (max-width: 1087.99px)', handler)
enquireJs.register('screen and (max-width: 767.99px)', handler2)
}
export default enquireScreen