vue-ref

WebJar for vue-ref

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

vue-ref
Последняя версия

Последняя версия

2.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

vue-ref
WebJar for vue-ref
Ссылка на сайт

Ссылка на сайт

https://www.webjars.org
Система контроля версий

Система контроля версий

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

Скачать vue-ref

Как подключить последнюю версию

<!-- 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"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
2.0.0