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 2626<script >
2727import PanThumb from ' @/components/PanThumb'
2828import MdInput from ' @/components/MDinput'
29- import waves from ' @/directive/waves.js' // 水波纹指令
29+ import waves from ' @/directive/waves/index .js' // 水波纹指令
3030
3131export default {
3232 components: {
Original file line number Diff line number Diff line change 151151
152152<script >
153153import { fetchList , fetchPv } from ' @/api/article'
154- import waves from ' @/directive/waves.js' // 水波纹指令
154+ import waves from ' @/directive/waves/index .js' // 水波纹指令
155155import { parseTime } from ' @/utils'
156156
157157const calendarTypeOptions = [
You can’t perform that action at this time.
0 commit comments