Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-functions

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-functions

```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'},

  • 2.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.2K
increased by5.42%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 15 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc