当前位置:网站首页>How to expand all collapse panels
How to expand all collapse panels
2022-07-04 05:42:00 【_ Virgo programmer's daily life】
Method : The default expansion value of the folding panel is activeNames, Just traverse all el-collapse-iteme, Put it name Value is inserted into the
activeNames Then you can .
<template>
<div>
<el-collapse v-model="activeNames">
<div v-for="(item,index) in moduleFiles">
<el-collapse-item :title="item.totle" :name="index">
<div>{
{
item.content}}</div>
</el-collapse-item>
</div>
</el-collapse>
</div>
</template>
data() {
return {
moduleFiles:[
{
title:" study hard ",content:" Reading is not just about strengthening yourself , And for the rise of China "},
{
title:" study hard ",content:" Reading is not just about strengthening yourself , And for the rise of China "},
{
title:" study hard ",content:" Reading is not just about strengthening yourself , And for the rise of China "},
{
title:" study hard ",content:" Reading is not just about strengthening yourself , And for the rise of China "},
],
activeNames:[],
}
},
mounted(){
const open =[];
for(let i=0;i<this.moduleFiles.length;i++){
open.push(i);
}
this.activeNames = open;
}
give the result as follows :
边栏推荐
- Arc135 a (time complexity analysis)
- ping端口神器psping
- One click filtering to select Baidu online disk files
- Risc-v-qemu-virt in FreeRTOS_ Lock mechanism analysis of GCC
- VB.net 调用FFmpeg简单处理视频(类库——6)
- Google Chrome browser will support the function of selecting text translation
- 补某视频网站的js,进行视频解密
- Actual cases and optimization solutions of cloud native architecture
- [MySQL practice of massive data with high concurrency, high performance and high availability -8] - transaction isolation mechanism of InnoDB
- BUU-Pwn-test_ your_ nc
猜你喜欢
Enterprise level log analysis system elk (if things backfire, there must be other arrangements)
Take you to quickly learn how to use qsort and simulate qsort
谷歌 Chrome 浏览器将支持选取文字翻译功能
Flask
光模块字母含义及参数简称大全
[MySQL practice of massive data with high concurrency, high performance and high availability -8] - transaction isolation mechanism of InnoDB
BUU-Pwn-test_ your_ nc
724. Find the central subscript of the array
VB.net 简单的处理图片,黑白(类库——7)
Etcd database source code analysis - initialization overview
随机推荐
光模块字母含义及参数简称大全
【雕爷学编程】Arduino动手做(105)---压电陶瓷振动模块
BUU-Crypto-[GXYCTF2019]CheckIn
With the advent of the IP era, how can E-sports hotels take advantage of the "east wind" of games?
left_and_right_net可解释性设计
Nodejs learning document
JS string splicing enhancement
1480. Dynamic sum of one-dimensional array
What is MQ?
Tutle clock improved version
Excel 比较日器
How to use postman to realize simple interface Association [add, delete, modify and query]
win10清除快速访问-不留下痕迹
Take you to quickly learn how to use qsort and simulate qsort
Kubernets first meeting
VB. Net GIF (making and disassembling - optimizing code, class library - 5)
Analysis of classical pointer and array written test questions in C language
LM小型可编程控制器软件(基于CoDeSys)笔记二十一:错误3703
Easy change
FreeRTOS 中 RISC-V-Qemu-virt_GCC 的 锁机制 分析