Skip to content

Commit 34aba51

Browse files
committed
chore(统一lin文件夹内部结构):
1 parent e13a531 commit 34aba51

File tree

6 files changed

+16
-15
lines changed

6 files changed

+16
-15
lines changed

src/components/layout/ReuseTab.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,6 @@ export default {
156156
this.histories = [...this.histories]
157157
},
158158
},
159-
directives: {
160-
ripple,
161-
},
162159
}
163160
</script>
164161

src/lin/directives/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
// import ripple from './ripple/ripple';
2-
3-
export default { }
1+
import './ripple'
2+
import './authorize'

src/lin/directives/ripple.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
import Vue from 'vue'
2+
13
/* eslint-disable func-names */
2-
export default {
4+
Vue.directive('ripple', {
35
inserted(el, binding) {
46
const cl = Array.from(el.classList)
57
if (cl.includes('disabled')) {
@@ -54,4 +56,6 @@ export default {
5456
}, 1000)
5557
})
5658
},
57-
}
59+
})
60+
61+
export default Vue.directive('ripple')
File renamed without changes.

src/lin/plugins/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import './autoJump'
2+
import './axios'

src/main.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@ import '@babel/polyfill'
22
import Vue from 'vue'
33
import ElementUI from 'element-ui'
44

5-
import App from '@/App.vue'
5+
import '@/lin/mixin'
6+
import '@/lin/filter'
7+
import '@/lin/plugins'
8+
import '@/lin/directives'
9+
610
import router from '@/router'
711
import store from '@/store'
8-
9-
import '@/lin/plugins/axios'
10-
import '@/lin/plugins/autoJump'
11-
import '@/lin/mixin/global'
12-
import '@/lin/filter'
13-
import '@/lin/directives/authorize'
12+
import App from '@/App.vue'
1413

1514
import StickyTop from '@/components/base/sticky-top/sticky-top'
1615
import LIcon from '@/components/base/icon/lin-icon'

0 commit comments

Comments
 (0)