Skip to content

Commit

Permalink
feat: check button and breadcrumb and NavMenu and Tabs component
Browse files Browse the repository at this point in the history
  • Loading branch information
徐历敏 committed Nov 11, 2020
1 parent cfd74c5 commit ea59038
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/docs/zh-CN/breadcrumb.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

适用广泛的基础用法。

:::demo 在`el-breadcrumb`中使用`el-breadcrumb-item`标签表示从首页开始的每一级。Element 提供了一个`separator`属性,在`el-breadcrumb`标签中设置它来决定分隔符,它只能是字符串,默认为斜杠`/`
:::demo 在`el-breadcrumb`中使用`el-breadcrumb-item`标签表示从首页开始的每一级。Element3 提供了一个`separator`属性,在`el-breadcrumb`标签中设置它来决定分隔符,它只能是字符串,默认为斜杠`/`

```html
<template>
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/zh-CN/button.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@

带图标的按钮可增强辨识度(有文字)或节省空间(无文字)。

:::demo 设置`icon`属性即可,icon 的列表可以参考 Element 的 icon 组件,也可以设置在文字右边的 icon ,只要使用`i`标签即可,可以使用自定义图标。
:::demo 设置`icon`属性即可,icon 的列表可以参考 Element3 的 icon 组件,也可以设置在文字右边的 icon ,只要使用`i`标签即可,可以使用自定义图标。

```html
<el-button type="primary" icon="el-icon-edit"></el-button>
Expand Down
5 changes: 4 additions & 1 deletion types/menu.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export type MenuDisplayMode = 'horizontal' | 'vertical'
export type MenuTheme = 'light' | 'dark'

/** Menu that provides navigation for your website */
export declare class ElMenu extends ElementUIComponent {
interface IMenu extends ElementUIComponent {
/** Menu display mode */
mode: MenuDisplayMode

Expand Down Expand Up @@ -44,3 +44,6 @@ export declare class ElMenu extends ElementUIComponent {
/** Close the specified sub-menu */
close (index: string): void
}

/** Tabs Component */
export const ElMenu: IMenu
5 changes: 4 additions & 1 deletion types/tabs.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export type TabType = 'card' | 'border-card'
export type TabPosition = 'top' | 'right' | 'bottom' | 'left'

/** Divide data collections which are related yet belong to different types */
export declare class ElTabs extends ElementUIComponent {
interface ITabs extends ElementUIComponent {
/** Type of Tab */
type: TabType

Expand All @@ -29,3 +29,6 @@ export declare class ElTabs extends ElementUIComponent {
/** Hook function before switching tab. If false or a Promise is returned and then is rejected, switching will be prevented */
beforeLeave: (activeName: string, oldActiveName: string) => boolean | Promise<any>
}

/** Tabs Component */
export const ElTabs: ITabs

0 comments on commit ea59038

Please sign in to comment.