天道酬勤,学无止境

多组件动态调用渲染

Perfect realization of multi-component dynamic call rendering in vue

<template> <div class="top"> <div class="top_div"> <div style="background-color:coral;"> <img style="width: 50px;height: 50px" src="../assets/logo.png"> </div> <div class="top_b" style="background-color:lightblue;"> <div v-for='(item,index) in arrl' :class='{itemhover:index===isactivel}' @click='lfn(index)'> {{item}} </div> </div> </div> <div id="left"> <div class="left_div" style="background-color:coral;"> {{arrl[isactivel]}} </div> <div class="center_div" style="background-color:lightblue;"> <div class="center_div_header"> <div v-for='(item,index) in arr[isactivel]' :class='{itemhover:index=

2021-05-13 21:35:13    分类:博客    vue   多组件动态调用渲染