2.0.6 • Published 4 years ago
vue-functions v2.0.6
vue-functions
install
npm install vue-functions
usage & api
import * as vf from 'vue-functions'
vf.method(...)
api
updatablePropsEvenUnbound
// eg 1
export default {
mixins: [vf.updatablePropsEvenUnbound({
value: {localName: 'current'},
})],
}
// eg 2
// if without localName, the localName will be 'localProps_' + prop name
export default {
mixins: [vf.updatablePropsEvenUnbound({
value: {},
})],
}
// eg 3
// if without localName, the localName will be 'localProps_' + prop name
export default {
mixins: [vf.updatablePropsEvenUnbound({
value: {},
page: {},
other: {},
})],
}
watchAsync(vm, getter, handler, opt)
Watch a function and resolve dependences. The function can contain async dependences. There is no more doc, please check source.
doWatch(vm, handler)
do handler first, handler return getter
* iterateObjectWithoutDollarDash(obj)
Like name
windowSize
Vue component, extend or mixin it to use. Get access to windowSize. The windowSize is reactive.
windowSize: {
innerWidth: window.innerWidth,
innerHeight: window.innerHeight,
outerWidth: window.outerWidth,
outerHeight: window.outerHeight,
}
registerPreventURLChange(Vue, router, msg)
Attach $preventURLChange
and $allowURLChange
to vm.
hookHelper
Vue component, extend or mixin it to use. Help to extend hook.
methods: {
addHook(name, func),
removeHook(name, func),
hasHook(name),
executeHook(name, args)
}
2.0.6
4 years ago
2.0.5
4 years ago
2.0.4
4 years ago
2.0.3
4 years ago
2.0.2
4 years ago
2.0.1
4 years ago
2.0.1-beta
4 years ago
2.0.0
4 years ago
1.0.6
4 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago
0.0.7
5 years ago
0.0.6
5 years ago
0.0.5
5 years ago
0.0.4
6 years ago
0.0.3
6 years ago
0.0.2
6 years ago