→ كل المشاريع

vue3-router-tree

بواسطة @boussadjra

34

Tree that represents the routes structure

عن هذا المشروع

Vue 3 router tree This component is based on Vue.js 3, it represents your routes or items as a tree view, by default takes it takes the routes configuration as items, but you could provide your custom items that respects the following format : You could also add any other field that you need it when you want to customize the items rendering Demo LIVE DEMO or you could check this boilerplate on codesandbox Installation npm install vue3-router-tree --save Usage With router : with custom items : props : Name default description ------------- --------- ----------------------------------------------------------------------------------------------- items [] the tree items or if not provided the component renders the current available routes active-color "#5d1df1" the color of the active sub node default-open '' specify the default opened path exclude-field '' In your route config you could specify a field inside meta option which will be used to exclude open-all '' Expand all items that have children slots : Name description ---- ----------------------------------- item override the default item rendering

من ملف README الخاص بالمشروع على GitHub

النجوم
34
التفريعات
6
آخر تحديث
10/01/2021

أضف هذه الشارة إلى ملف README

أظهر أن مشروعك مُدرج على «صُنع في الجزائر».

Made in Algeria
[![Made in Algeria](https://www.madeinalgeria.dev/badge/vue3-router-tree.svg)](https://www.madeinalgeria.dev/projects/vue3-router-tree)

مشاريع ذات صلة