xyc
2024-03-05 f7cf5c4efc4024f4a998dffa1d4c11075c3f7f19
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import adaptive from './adaptive'
 
const install = function (Vue) {
  // 绑定v-adaptive指令
  Vue.directive('adaptive', adaptive)
}
 
if (window.Vue) {
  window['adaptive'] = adaptive
  // eslint-disable-next-line no-undef
  Vue.use(install)
}
 
adaptive.install = install
 
export default adaptive