wt-vue-utils
v0.3.3
Published
vue常用工具函数、自定义指令
Downloads
12
Maintainers
Readme
wt-vue-utils
引用方式
全局引用
import WtUtils from 'wt-vue-utils'
Vue.use(WtUtils)
this.$wt[util.functionName]
按需引用
import {utils, directives} from 'wt-vue-utils'
utils[util.functionName]
Vue.directive('[directive.name]', [directive.name])
directives
- ellipsis
<!--超出父节点宽度,隐藏子节点,以省略号显示,鼠标放置显示隐藏节点 class:隐藏的类名,scrollParent视图元素,默认window-->
<parent-element v-ellipsis="{class: 'num-box' }">
<child-element class="num-box"></child-element>
<child-element class="num-box"></child-element>
<child-element class="num-box"></child-element>
</parent-element>
utils
具体文档:document.txt