File tree Expand file tree Collapse file tree 5 files changed +15
-2
lines changed Expand file tree Collapse file tree 5 files changed +15
-2
lines changed Original file line number Diff line number Diff line change
1
+ import waves from './waves'
2
+
3
+ const install = function ( Vue ) {
4
+ Vue . directive ( 'waves' , waves )
5
+ }
6
+
7
+ if ( window . Vue ) {
8
+ window . waves = waves
9
+ Vue . use ( install ) ; // eslint-disable-line
10
+ }
11
+
12
+ waves . install = install
13
+ export default waves
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 26
26
<script >
27
27
import PanThumb from ' @/components/PanThumb'
28
28
import MdInput from ' @/components/MDinput'
29
- import waves from ' @/directive/waves.js' // 水波纹指令
29
+ import waves from ' @/directive/waves/index .js' // 水波纹指令
30
30
31
31
export default {
32
32
components: {
Original file line number Diff line number Diff line change 151
151
152
152
<script >
153
153
import { fetchList , fetchPv } from ' @/api/article'
154
- import waves from ' @/directive/waves.js' // 水波纹指令
154
+ import waves from ' @/directive/waves/index .js' // 水波纹指令
155
155
import { parseTime } from ' @/utils'
156
156
157
157
const calendarTypeOptions = [
You can’t perform that action at this time.
0 commit comments