refine:refine directive waves
This commit is contained in:
parent
329f3b3714
commit
2282135b44
|
@ -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
|
|
@ -26,7 +26,7 @@
|
|||
<script>
|
||||
import PanThumb from '@/components/PanThumb'
|
||||
import MdInput from '@/components/MDinput'
|
||||
import waves from '@/directive/waves.js' // 水波纹指令
|
||||
import waves from '@/directive/waves/index.js' // 水波纹指令
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
|
|
@ -151,7 +151,7 @@
|
|||
|
||||
<script>
|
||||
import { fetchList, fetchPv } from '@/api/article'
|
||||
import waves from '@/directive/waves.js'// 水波纹指令
|
||||
import waves from '@/directive/waves/index.js' // 水波纹指令
|
||||
import { parseTime } from '@/utils'
|
||||
|
||||
const calendarTypeOptions = [
|
||||
|
|
Loading…
Reference in New Issue