小编Oza*_*yev的帖子

Vuejs 允许使用嵌套模板标签吗?

是否允许在模板内使用<template>类似这样的标签?

我必须检查一些值。

<template>
    <div>
        <template v-for="category_field in category_fields">
            <template v-if="category_field.show_type == 'new-row'">
                //and also here can be more nested template tags
            </template>
            <template v-else>
                //and also here can be more nested template tags
            </template>
        </template>
    </div>
</template>
Run Code Online (Sandbox Code Playgroud)

我在我的项目中使用这个系统,想知道这是否正确。

vue.js

5
推荐指数
1
解决办法
6047
查看次数

标签 统计

vue.js ×1