```sh npm install vue-functions ``` # usage & api ```js import * as vf from 'vue-functions' vf.method(...) ``` # api ### updatablePropsEvenUnbound ```js // eg 1 export default { mixins: [vf.updatablePropsEvenUnbound({ value: {localName: 'current'},
npm install vue-functionssh
npm install vue-functions
`
usage & api
`js
import * as vf from 'vue-functions'
vf.method(...)
`
api
$3
`js
// 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: {},
})],
}
`
$3
Watch a function and resolve dependences. The function can contain async dependences. There is no more doc, please check source.$3
do handler first, handler return getter$3
Like name$3
Vue component, extend or mixin it to use. Get access to windowSize. The windowSize is reactive.
`js
windowSize: {
innerWidth: window.innerWidth,
innerHeight: window.innerHeight,
outerWidth: window.outerWidth,
outerHeight: window.outerHeight,
}
`$3
Attach $preventURLChange and $allowURLChange to vm.$3
Vue component, extend or mixin it to use. Help to extend hook.
`js
methods: {
addHook(name, func),
removeHook(name, func),
hasHook(name),
executeHook(name, args)
}
``