refine:refine directive waves

This commit is contained in:
Pan 2017-09-27 10:34:48 +08:00
parent 329f3b3714
commit 2282135b44
5 changed files with 15 additions and 2 deletions

View File

@ -0,0 +1,13 @@
import waves from './waves'
const install = function(Vue) {
Vue.directive('waves', waves)
}
if (window.Vue) {
window.waves = waves
Vue.use(install); // eslint-disable-line
}
waves.install = install
export default waves

View File

@ -26,7 +26,7 @@
<script> <script>
import PanThumb from '@/components/PanThumb' import PanThumb from '@/components/PanThumb'
import MdInput from '@/components/MDinput' import MdInput from '@/components/MDinput'
import waves from '@/directive/waves.js' // import waves from '@/directive/waves/index.js' //
export default { export default {
components: { components: {

View File

@ -151,7 +151,7 @@
<script> <script>
import { fetchList, fetchPv } from '@/api/article' import { fetchList, fetchPv } from '@/api/article'
import waves from '@/directive/waves.js'// import waves from '@/directive/waves/index.js' //
import { parseTime } from '@/utils' import { parseTime } from '@/utils'
const calendarTypeOptions = [ const calendarTypeOptions = [