当前位置:网站首页>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 :
边栏推荐
- Unity2d -- character moves and turns
- 2022 question bank and answers for safety management personnel of hazardous chemical business units
- 卸载Google Drive 硬盘-必须退出程序才能卸载
- 509. 斐波那契数、爬楼梯所有路径、爬楼梯最小花费
- 如何判断数组中是否含有某个元素
- ansys命令
- Flink1.13 SQL basic syntax (I) DDL, DML
- px em rem的区别
- Notepad++ -- display related configurations
- BeanFactoryPostProcessor 与 BeanPostProcessor 相关子类概述
猜你喜欢
LM小型可编程控制器软件(基于CoDeSys)笔记二十二:错误4268/4052
如何获取el-tree中所有节点的父节点
Actual cases and optimization solutions of cloud native architecture
One click filtering to select Baidu online disk files
Character types of C language
谷歌 Chrome 浏览器将支持选取文字翻译功能
VB. Net simple processing pictures, black and white (class library - 7)
Halcon图片标定,使得后续图片处理过后变成与模板图片一样
【QT】制作MyComboBox点击事件
Write a complete answer applet (including single choice questions, judgment questions and multiple topics) (III) single choice questions, judgment questions, and the first question display
随机推荐
拓扑排序和关键路径的图形化显示
Redis realizes ranking function
XII Golang others
Kubernets first meeting
Evolution of system architecture: differences and connections between SOA and microservice architecture
Halcon image calibration enables subsequent image processing to become the same as the template image
Enterprise level log analysis system elk (if things backfire, there must be other arrangements)
Accidentally deleted the data file of Clickhouse, can it be restored?
谷歌 Chrome 浏览器将支持选取文字翻译功能
Upper computer software development - log information is stored in the database based on log4net
win10清除快速访问-不留下痕迹
光模块字母含义及参数简称大全
Steady! Huawei micro certification Huawei cloud computing service practice is stable!
HMS v1.0 appointment.php editid参数 SQL注入漏洞(CVE-2022-25491)
Introduction To AMBA 简单理解
Just do it with your hands 7 - * project construction details 2 - hook configuration
2022g2 power station boiler stoker special operation certificate examination question bank and answers
[interested reading] advantageous filtering modeling on long term user behavior sequences for click through rate pre
Unity2d -- character moves and turns
(4) Canal multi instance use