当前位置:网站首页>uniapp folding box secondary loop
uniapp folding box secondary loop
2022-07-30 23:14:00 【Hel1x】
uni-collapse
I stepped on some pits with collapse when I made a WeChat applet
Use secondary loop directly
each foldThe same item appears in all boxes
Solutions tried
Import subcomponent, pass value
but the child component does not render
Determine whether it is selected and update the secondary list
This solution can show which one is displayed
But because my secondary list data comes from http request
The asynchronous request will cause the secondary list to be rendered before it is updated
Select when judging and add a secondary list
Add data to the second-level list when requesting data
Use a two-dimensional array and locate it according to the incoming first-level list index
This solution can solve the problem
The source code will be posted later
边栏推荐
- Calico 网络通信原理揭秘
- VS2017 compile Tars test project
- grub 学习
- PyTorch model export to ONNX file example (LeNet-5)
- 2022牛客暑期多校训练营1 J Serval and Essay
- Reverse linked list - in-place inversion method
- 2021GDCPC Guangdong University Student Programming Competition B.Byfibonacci
- Week 19 Progress (Understanding IoT Basics)
- EasyExcel comprehensive course combat
- 【LeetCode】70. 爬楼梯 - Go 语言题解
猜你喜欢
随机推荐
Abstract classes and interfaces (study notes)
Chapter 8 Intermediate Shell Tools II
Ningbo Zhongning Pawn will transfer 29.5% of the equity for 2.8338 million yuan, and the owner's equity in 2021 will be 9.6875 million yuan
通过对抗性知识蒸馏压缩深度图神经网络
MySql统计函数COUNT详解
ZZULIOJ:1119: sequence order
# # yyds dry goods inventory interview will brush TOP101: to determine whether there is a part of the list
mysql获取当前时间
A detailed explanation: SRv6 Policy model, calculation and drainage
【LeetCode】70. 爬楼梯 - Go 语言题解
uniapp开发微信小程序-软考刷题小程序
2021GDCPC广东省大学生程序设计竞赛 B.Byfibonacci
"NIO Cup" 2022 Nioke Summer Multi-School Training Camp 4 DHKLN
科技的成就(三十一)
成功解决ModuleNotFoundError: No module named ‘Image‘
抽象类和接口(学习笔记)
vscode上利用screen命令跑代码
软考总结
Learning about XML (1)
reindex win10









