iter: d05 新增面包屑 breadcrumb 组件
This commit is contained in:
@@ -3,6 +3,7 @@ import {
|
||||
accordion,
|
||||
alert,
|
||||
badge,
|
||||
breadcrumb,
|
||||
button,
|
||||
card,
|
||||
checkbox,
|
||||
@@ -237,6 +238,16 @@ const app = h(
|
||||
h('span', { class: 'out' }, () => (menuPick() ? `已选:${menuPick()}` : '未选择')),
|
||||
),
|
||||
),
|
||||
section(
|
||||
'sec-breadcrumb',
|
||||
'面包屑',
|
||||
'breadcrumb:nav + ol 语义结构,末项自动标为当前页,无 href 的条目走 onNavigate。',
|
||||
breadcrumb({
|
||||
items: [{ label: '首页', href: '#sec-counter' }, { label: '组件库' }, { label: '导航类' }, { label: '面包屑' }],
|
||||
separator: '›',
|
||||
onNavigate: (item) => toast.info(`跳转到 ${item.label}`),
|
||||
}),
|
||||
),
|
||||
section(
|
||||
'sec-accordion',
|
||||
'折叠面板',
|
||||
|
||||
Reference in New Issue
Block a user