QBreadcrumbs 组件用作 UI 中的导航辅助。它允许用户跟踪他们在程序、文档或网站中的位置。最常见的用途是在 QToolbar 中,但不限于此。
¥The QBreadcrumbs component is used as a navigational aid in UI. It allows users to keep track of their location within programs, documents, or websites. Most common use is in a QToolbar, but it’s not limited to it.
用法(Usage)
¥Usage
基本(Basic)
¥Basic
设计(Design)
¥Design
连接到 Vue Router(Connecting to Vue Router)
¥Connecting to Vue Router
以下示例不适用于 UMD 版本(因此在 Codepen/jsFiddle 中也是如此),因为它们依赖于 Vue Router。
¥The examples below won’t work with UMD version (so in Codepen/jsFiddle too) because they depend on Vue Router.
你还可以延迟、取消或重定向导航,如下所示。有关下文所用 @click
事件的更深入描述,请参阅页面顶部的 QBreadcrumbsEl API 卡片。
¥You can also delay, cancel or redirect navigation, as seen below. For a more in-depth description of the @click
event being used below, please refer to QBreadcrumbsEl API card at the top of the page.