提交 d214c5c1 编写于 作者: fxy060608's avatar fxy060608

build uni-app-plus,uni-mp-weixin

上级 ad702694
......@@ -604,7 +604,7 @@ function initRefs (vm) {
const components = mpInstance.selectAllComponents('.vue-ref');
components.forEach(component => {
const ref = component.dataset.ref;
$refs[ref] = component.$vm;
$refs[ref] = component.$vm || component;
});
const forComponents = mpInstance.selectAllComponents('.vue-ref-in-for');
forComponents.forEach(component => {
......@@ -612,7 +612,7 @@ function initRefs (vm) {
if (!$refs[ref]) {
$refs[ref] = [];
}
$refs[ref].push(component.$vm);
$refs[ref].push(component.$vm || component);
});
return $refs
}
......
{
"name": "@dcloudio/uni-app-plus",
"version": "0.0.215",
"version": "0.0.216",
"description": "uni-app app-plus",
"main": "dist/index.js",
"scripts": {
......
......@@ -631,7 +631,7 @@ function initRefs (vm) {
const components = mpInstance.selectAllComponents('.vue-ref');
components.forEach(component => {
const ref = component.dataset.ref;
$refs[ref] = component.$vm;
$refs[ref] = component.$vm || component;
});
const forComponents = mpInstance.selectAllComponents('.vue-ref-in-for');
forComponents.forEach(component => {
......@@ -639,7 +639,7 @@ function initRefs (vm) {
if (!$refs[ref]) {
$refs[ref] = [];
}
$refs[ref].push(component.$vm);
$refs[ref].push(component.$vm || component);
});
return $refs
}
......
{
"name": "@dcloudio/uni-mp-weixin",
"version": "0.0.934",
"version": "0.0.935",
"description": "uni-app mp-weixin",
"main": "dist/index.js",
"scripts": {
......
......@@ -306,7 +306,7 @@ export function initRefs (vm) {
const components = mpInstance.selectAllComponents('.vue-ref')
components.forEach(component => {
const ref = component.dataset.ref
$refs[ref] = component.$vm
$refs[ref] = component.$vm || component
})
const forComponents = mpInstance.selectAllComponents('.vue-ref-in-for')
forComponents.forEach(component => {
......@@ -314,7 +314,7 @@ export function initRefs (vm) {
if (!$refs[ref]) {
$refs[ref] = []
}
$refs[ref].push(component.$vm)
$refs[ref].push(component.$vm || component)
})
return $refs
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册