一、TableTreeLevel組件?
<template>
<div class='main'>
<div class="btns">
<el-button type="primary" @click="expandLevel(1)">展開(kāi)一級(jí)</el-button>
<el-button type="primary" @click="expandLevel(2)">展開(kāi)二級(jí)</el-button>
<el-button type="primary" @click="expandLevel(3)">展開(kāi)三級(jí)</el-button>
<el-button type="primary" @click="expandLevel(4)">展開(kāi)四級(jí)</el-button>
<el-button type="warning" @click="putAwayLevel(0)">全部收起</el-button>
</div>
<div>
<el-table ref="multipleTableRef" :height="height" :default-expand-all=
文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-612048.html
文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-612048.html
到了這里,關(guān)于vue3+ts+elementui-plus二次封裝樹(shù)形表格實(shí)現(xiàn)不同層級(jí)展開(kāi)收起的功能的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!