注册vuetify自带指令

v-resize为例

vuetify.js

// 引入【指令】文件
import { Resize } from 'vuetify/lib/directives'

// 注册指令
Vue.use(Vuetify, { directives: { Resize } })

vuetify组件大概内置了如下指令:

export { ClickOutside } from './click-outside';
export { Intersect } from './intersect';
export { Mutate } from './mutate';
export { Resize } from './resize';
export { Ripple } from './ripple';
export { Scroll } from './scroll';
export { Touch } from './touch';
//# sourceMappingURL=index.js.map

你可能感兴趣的:(javascript,vue.js)