当前位置:网站首页>select _ Lazy loading
select _ Lazy loading
2022-06-11 21:15:00 【The breeze is not the moon】
<el-cascader style="width: 80%" :props="props"></el-cascader>
props: {
lazy: true,
lazyLoad(node, resolve) {
console.log(node.level);
if (node.level == 0) {
const nodes = [{
level: 1, value: 1, label: ' In grade one ', leaf: false}, {
level: 1,
value: 2,
label: ' second grade ',
leaf: false
}]
resolve(nodes);
} else if (node.level == 1) {
if (node.value == 1) {
const nodes = [{
level: 1, value: 3, label: ' Class one ', leaf: true}, {
level: 1,
value: 4,
label: ' Class two ',
leaf: true
}]
resolve(nodes);
} else {
const nodes = [{
level: 1, value: 5, label: ' Class two ', leaf: true}, {
level: 1,
value: 6,
label: ' Class three ',
leaf: true
}]
resolve(nodes);
}
}
}
},
边栏推荐
- Explanation of each column output by explain statement
- JVM method area
- Release of version 5.6 of rainbow, add multiple installation methods, and optimize the topology operation experience
- 正则校验匹配[0-100]、[0-1000]之间的正整数或小数点位数限制
- php pcntl_ Fork create multiple child process resolution
- 可综合RTL代码设计方法和注意事项
- Release of version 5.6 of rainbow, add multiple installation methods, and optimize the topology operation experience
- ASCII码对照表
- Go language functions
- ubantu1804 两个opencv版本共存
猜你喜欢

【数据可视化】Apache Superset 1.2.0教程 (二)——快速入门(可视化王者英雄数据)

周刊02|不瞞你說,我其實是MIT的學生

ORA-04098: trigger ‘xxx. xxx‘ is invalid and failed re-validation

Online excel file parsing and conversion to JSON format

JVM object allocation policy TLAB

Online excel file parsing and conversion to JSON format

【C語言進階】整型在內存中的存儲

Goland中在文件模板中为go文件添加个人声明

ORA-04098: trigger ‘xxx.xxx‘ is invalid and failed re-validation

Network security Kali penetration learning introduction to web penetration using MSF penetration to attack win7 host and execute commands remotely
随机推荐
MySQL add adds multiple new fields and specifies the field location
Release of version 5.6 of rainbow, add multiple installation methods, and optimize the topology operation experience
New product release: lr-link Lianrui launched the first 25g OCP 3.0 network card
New product release: domestic single port Gigabit network card is officially mass produced!
JVM object allocation policy TLAB
Vectordrawable error
ORA-04098: trigger ‘xxx.xxx‘ is invalid and failed re-validation
Weekly 02 | pour être honnête, je suis un étudiant du MIT
go语言的goto语句
The gateway starts other microservices first. When the gateway is started, the gateway cannot be started and there is no exception log; Start the gateway first, and all services can be started normall
Application business layer modification
Frequency domain filter
Application scenario: wide application of Poe network card in NDI technology for live broadcast program production
Application analysis of Poe image acquisition card in machine vision industrial computer
Cs144 lab0 lab1 record
PHP strtotime 获取自然月误差问题解决方案
Stream Chinese sorting
Weekly 02 | to tell you the truth, I am actually a student of MIT
Regular check matches positive integer or decimal limit between [0-100] and [0-1000]
Js 监听滚动触底加载更多_浏览器滚动触底加载更多