提交 de835654 编写于 作者: Q qiang

Merge branch 'dev' of github.com:dcloudio/uni-app into dev

......@@ -402,16 +402,16 @@ function initRefs (vm) {
const $refs = Object.create(null);
const components = mpInstance.selectAllComponents('.__ref__');
components.forEach(component => {
const id = component.id;
$refs[id] = component.$vm;
const ref = component.dataset.ref;
$refs[ref] = component.$vm;
});
const forComponents = mpInstance.selectAllComponents('.__ref-in-for__');
forComponents.forEach(component => {
const id = component.id;
if (!$refs[id]) {
$refs[id] = [];
const ref = component.dataset.ref;
if (!$refs[ref]) {
$refs[ref] = [];
}
$refs[id].push(component.$vm);
$refs[ref].push(component.$vm);
});
return $refs
}
......
{
"name": "@dcloudio/uni-app-plus",
"version": "0.0.1",
"version": "0.0.2",
"description": "uni-app app-plus",
"main": "dist/index.js",
"scripts": {
......
......@@ -404,16 +404,16 @@ function initRefs (vm) {
const $refs = Object.create(null);
const components = mpInstance.selectAllComponents('.__ref__');
components.forEach(component => {
const id = component.id;
$refs[id] = component.$vm;
const ref = component.dataset.ref;
$refs[ref] = component.$vm;
});
const forComponents = mpInstance.selectAllComponents('.__ref-in-for__');
forComponents.forEach(component => {
const id = component.id;
if (!$refs[id]) {
$refs[id] = [];
const ref = component.dataset.ref;
if (!$refs[ref]) {
$refs[ref] = [];
}
$refs[id].push(component.$vm);
$refs[ref].push(component.$vm);
});
return $refs
}
......
{
"name": "@dcloudio/uni-mp-weixin",
"version": "0.0.7",
"version": "0.0.8",
"description": "uni-app mp-weixin",
"main": "dist/index.js",
"scripts": {
......
......@@ -147,16 +147,16 @@ export function initRefs (vm) {
const $refs = Object.create(null)
const components = mpInstance.selectAllComponents('.__ref__')
components.forEach(component => {
const id = component.id
$refs[id] = component.$vm
const ref = component.dataset.ref
$refs[ref] = component.$vm
})
const forComponents = mpInstance.selectAllComponents('.__ref-in-for__')
forComponents.forEach(component => {
const id = component.id
if (!$refs[id]) {
$refs[id] = []
const ref = component.dataset.ref
if (!$refs[ref]) {
$refs[ref] = []
}
$refs[id].push(component.$vm)
$refs[ref].push(component.$vm)
})
return $refs
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册