feat(docs): align documentation shell with HeroUI baseline
This commit is contained in:
@@ -140,16 +140,16 @@ Breadcrumbs 组件使用以下 CSS 类([查看源码样式](https://github.com
|
||||
|
||||
### BreadcrumbsItem
|
||||
|
||||
| 属性 | 类型 | 默认值 | 描述 |
|
||||
| ------------ | --------------------------- | --------- | -------------------------------------------------------------------------------- |
|
||||
| `href` | `string` | - | 链接 URL;未提供时渲染不可导航的 `span[role="link"]`,当前项与禁用项也不可导航。 |
|
||||
| `target` | `string` | `'_self'` | 链接目标;仅在带 `href` 的可导航项输出。 |
|
||||
| `rel` | `string` | - | 链接关系。 |
|
||||
| `download` | `boolean \| string` | - | 原生下载属性。 |
|
||||
| `isDisabled` | `boolean` | `false` | 禁用当前项链接。 |
|
||||
| `as` | `string` | `'li'` | 自定义项元素标签;对应上游 `render` 的元素替换。 |
|
||||
| `class` | `string \| Array \| Object` | - | 附加 CSS 类;同时合并到 `li` 与内部链接。 |
|
||||
| 默认插槽 | `{ isCurrent, isDisabled }` | - | 项内容;可用作用域状态渲染条件内容。 |
|
||||
| 属性 | 类型 | 默认值 | 描述 |
|
||||
| ------------ | --------------------------- | ------- | -------------------------------------------------------------------------------- |
|
||||
| `href` | `string` | - | 链接 URL;未提供时渲染不可导航的 `span[role="link"]`,当前项与禁用项也不可导航。 |
|
||||
| `target` | `string` | — | 链接目标;省略时使用浏览器同窗口默认行为,仅为可导航项输出显式传入的值。 |
|
||||
| `rel` | `string` | - | 链接关系。 |
|
||||
| `download` | `boolean \| string` | - | 原生下载属性。 |
|
||||
| `isDisabled` | `boolean` | `false` | 禁用当前项链接。 |
|
||||
| `as` | `string` | `'li'` | 自定义项元素标签;对应上游 `render` 的元素替换。 |
|
||||
| `class` | `string \| Array \| Object` | - | 附加 CSS 类;同时合并到 `li` 与内部链接。 |
|
||||
| 默认插槽 | `{ isCurrent, isDisabled }` | - | 项内容;可用作用域状态渲染条件内容。 |
|
||||
|
||||
`li` 根节点接收除事件处理器外的 `$attrs`;`onClick`、`onKeydown`、`onFocus` 等事件绑定到真实链接,从而复用 `Link` 的禁用拦截与事件顺序。`isLast` 和 `separatorSlot` 由 `Breadcrumbs` 自动注入,不列入公开 `BreadcrumbsItemProps` 类型或 API 表,调用方无需设置。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user