下载 index.html
index.css
data.js
vue.global.prod.js
,编辑 data.js
文件,其中 services
对应的是有 icon 的链接,bookmarks
则对应的是无 icon 的链接。其类型如下:
interface Service {
text: string;
href: string;
icon: string;
target?: string;
}
interface Bookmark {
text: string;
href: string;
target?: string;
}
你可以通过 servicesCollapse
bookmarksCollapse
数组传入布尔值来控制默认的展开或收起状态,false
为展开,true
为收起
Download index.html
index.css
data.js
vue.global.prod.js
, edit the data.js
file, services
corresponds to links with icon and bookmarks
corresponds to links without icon.The types are as follows:
interface Service {
text: string;
href: string;
icon: string;
target?: string;
}
interface Bookmark {
text: string;
href: string;
target?: string;
}
You can control the default expanded or collapsed state by passing boolean values through the servicesCollapse
and bookmarksCollapse
arrays, where false
means expanded and true
means collapsed.