当前位置:网站首页>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 :
边栏推荐
- 企业级日志分析系统ELK(如果事与愿违那一定另有安排)
- js获取对象中嵌套的属性值
- Analysis of classical pointer and array written test questions in C language
- C language simple student management system (including source code)
- fastjson
- Thinkphp6.0 middleware with limited access frequency think throttle
- 【QT】制作MyComboBox点击事件
- 2022年A特种设备相关管理(电梯)考试题模拟考试平台操作
- LabVIEW错误对话框的出现
- (4) Canal multi instance use
猜你喜欢

Halcon image calibration enables subsequent image processing to become the same as the template image

19. Framebuffer application programming

Solar insect killing system based on single chip microcomputer

Signification des lettres du module optique et abréviation des paramètres Daquan

Void convolution, deformable convolution, deformable ROI pooling
![BUU-Crypto-[GXYCTF2019]CheckIn](/img/b8/ad6c05977f6943f30e9975acb6eb6e.jpg)
BUU-Crypto-[GXYCTF2019]CheckIn

Input displays the currently selected picture

VB.net 简单的处理图片,黑白(类库——7)

Evolution of system architecture: differences and connections between SOA and microservice architecture

配置交叉编译工具链和环境变量
随机推荐
2022 t elevator repair operation certificate examination question bank and simulation examination
ansys命令
SQL injection - injection based on MSSQL (SQL Server)
拓扑排序和关键路径的图形化显示
接地继电器DD-1/60
BUU-Reverse-easyre
Zhanrui tankbang | jointly build, cooperate and win-win zhanrui core ecology
XII Golang others
Simulink与Arduino串口通信
Evolution of system architecture: differences and connections between SOA and microservice architecture
1.1 history of Statistics
Arc135 a (time complexity analysis)
Topological sorting and graphical display of critical path
安装 Pytorch geometric
Unity2d -- character moves and turns
Overview of relevant subclasses of beanfactorypostprocessor and beanpostprocessor
Character types of C language
VB.net GIF(制作、拆解——优化代码,类库——5)
总线的基本概念
How to clone objects