omi-mp - fix array rendering of hyperscript

This commit is contained in:
dntzhang 2018-11-20 09:43:49 +08:00
parent 81064f24ed
commit acc045eeec
4 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{
"name": "omi-cli",
"version": "3.0.16",
"version": "3.0.17",
"description": "Create website with no build configuration. be friendly to [Omi](https://github.com/Tencent/omi) framework.",
"main": "bin/omi",
"engines": {

View File

@ -20,7 +20,7 @@ function checkIsArray(json) {
let tagName = json.child[i].tag
if (tagName) {
if (tagName === 'block') {
if (json.child[i].attr['wx:if']) {
if (json.child[i].attr['wx:if'] || json.child[i].attr['wx:for']) {
count++
}
} else {

View File

@ -20,7 +20,7 @@ function checkIsArray(json) {
let tagName = json.child[i].tag
if (tagName) {
if (tagName === 'block') {
if (json.child[i].attr['wx:if']) {
if (json.child[i].attr['wx:if'] || json.child[i].attr['wx:for']) {
count++
}
} else {

View File

@ -20,7 +20,7 @@ function checkIsArray(json) {
let tagName = json.child[i].tag
if (tagName) {
if (tagName === 'block') {
if (json.child[i].attr['wx:if']) {
if (json.child[i].attr['wx:if'] || json.child[i].attr['wx:for']) {
count++
}
} else {
@ -49,7 +49,7 @@ function walk(node, fnName) {
}`
}
}
function _walk(node, currentIndex, children) {