(conditions)
| 8572 | } |
| 8573 | |
| 8574 | function genIfConditions (conditions) { |
| 8575 | if (!conditions.length) { |
| 8576 | return '_e()' |
| 8577 | } |
| 8578 | |
| 8579 | var condition = conditions.shift(); |
| 8580 | if (condition.exp) { |
| 8581 | return ("(" + (condition.exp) + ")?" + (genTernaryExp(condition.block)) + ":" + (genIfConditions(conditions))) |
| 8582 | } else { |
| 8583 | return ("" + (genTernaryExp(condition.block))) |
| 8584 | } |
| 8585 | |
| 8586 | // v-if with v-once should generate code like (a)?_m(0):_m(1) |
| 8587 | function genTernaryExp (el) { |
| 8588 | return el.once ? genOnce(el) : genElement(el) |
| 8589 | } |
| 8590 | } |
| 8591 | |
| 8592 | function genFor (el) { |
| 8593 | var exp = el.for; |
no test coverage detected