elementui修改源碼方法,及配置

https://blog.csdn.net/weixin_43864045/article/details/85098254

 

表格自動適應出現滾動條

<div class="right_table">
                        <nk-table
                            :showPage="false"
                            height="100%"
                            :page="page"
                            :data="treerightData"
                            :columns="treerightcolumns"
                            :rowselect="rowselect"
                            @rowselectChange="treerightselectChange"
                        ></nk-table>
                    </div>

.right_table{
    width:100%;
    flex:1;height:100%;border:1px solid #ccc;    box-sizing: border-box;
}
.right_table div{height: 100% !important;}

二,tree默認選中和展開到指定節點

this.$refs.tree.setCurrentKey("6336547422568504856");
this.$refs.tree.defaultExpandedKeys=["6336547422568504856"];

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章