Commit 2282135b authored by Pan's avatar Pan

refine:refine directive waves

parent 329f3b37
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
...@@ -26,7 +26,7 @@ ...@@ -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: {
......
...@@ -151,7 +151,7 @@ ...@@ -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 = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment