Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Vue 3 v-else-if Directive

Vue 3 v-else-if Directive

Vue3 Built-in Directives Vue 3 Built-in Directives


v-else-if The directive is used to represent the else-if block of v-if, and can be chained to form multi-condition branching.


Basic Explanation

v-else-if The directive must immediately follow a v-if or another v-else-if element, representing another condition when the previous one is not met.


Basic Usage

Example


Vue3 Built-in Directives Vue 3 Built-in Directives