vue-functions

WebJar for vue-functions

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

vue-functions
Last Version

Last Version

2.0.6
Release Date

Release Date

Type

Type

jar
Description

Description

vue-functions
WebJar for vue-functions
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/phphe/vue-functions

Download vue-functions

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/vue-functions/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>vue-functions</artifactId>
    <version>2.0.6</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/vue-functions/
implementation 'org.webjars.npm:vue-functions:2.0.6'
// https://jarcasting.com/artifacts/org.webjars.npm/vue-functions/
implementation ("org.webjars.npm:vue-functions:2.0.6")
'org.webjars.npm:vue-functions:jar:2.0.6'
<dependency org="org.webjars.npm" name="vue-functions" rev="2.0.6">
  <artifact name="vue-functions" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='vue-functions', version='2.0.6')
)
libraryDependencies += "org.webjars.npm" % "vue-functions" % "2.0.6"
[org.webjars.npm/vue-functions "2.0.6"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : babel__runtime jar [7.7.7,8)
org.webjars.npm : helper-js jar [2.0.0,3)

Project Modules

There are no modules declared in this project.

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)
}

Versions

Version
2.0.6