vue-ref

WebJar for vue-ref

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

vue-ref
Last Version

Last Version

2.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

vue-ref
WebJar for vue-ref
Project URL

Project URL

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

Source Code Management

https://github.com/vueComponent/vue-ref

Download vue-ref

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

vue-ref

You can use the callback to get a reference like react.

NPM version NPM downloads

$ npm install vue-ref --save
import ref from 'vue-ref'
Vue.use(ref)
<!-- vm.dom will be the DOM node -->
<p v-ref="c => this.dom = c">hello</p>

<!-- vm.child will be the child component instance -->
<child-component v-ref="c => this.child = c"></child-component>

<span v-for="n in 10" :key="n" v-ref="(c, key) => {...}">{{ n }} </span>
Property Description Type
v-ref a callback function function(dom | vnode, key)

In this callback function, you should not change any reactive data. Otherwise the render will enter an infinite loop.

org.webjars.npm

vueComponent

vue component

Versions

Version
2.0.0