(children)
| 13691 | } |
| 13692 | //找到上一个节点 |
| 13693 | function findPrevElement(children) { |
| 13694 | var i = children.length; |
| 13695 | while (i--) { |
| 13696 | if (children[i].type === 1) { |
| 13697 | return children[i] |
| 13698 | } else {//如果是其他节点则删除 |
| 13699 | if ("development" !== 'production' && children[i].text !== ' ') { |
| 13700 | warn$2( |
| 13701 | "text \"" + (children[i].text.trim()) + "\" between v-if and v-else(-if) " + |
| 13702 | "will be ignored." |
| 13703 | ); |
| 13704 | } |
| 13705 | children.pop(); |
| 13706 | } |
| 13707 | } |
| 13708 | } |
| 13709 | |
| 13710 | //为if指令添加标记 |
| 13711 | function addIfCondition( |
no outgoing calls
no test coverage detected