-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(comp:header): update style and support css variable (#1251)
- Loading branch information
Showing
18 changed files
with
176 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,28 @@ | ||
## API | ||
|
||
### IxHeader | ||
|
||
#### HeaderProps | ||
|
||
| 名称 | 说明 | 类型 | 默认值 | 全局配置 | 备注 | | ||
| --- | --- | --- | --- | --- | --- | | ||
| `avatar` | 自定义头像 | `string \| AvatarProps \| #avatar` | - | - | 传入 `string` 时,为头像的图标 | | ||
| `description` | 标题下方的说明文字 | `string \| #description` | - | - | - | | ||
| `avatar` | 设置头像 | `string \| AvatarProps` | - | - | 传入 `string` 时,为头像的图标 | | ||
| `description` | 标题下方的说明文字 | `string` | - | - | - | | ||
| `disabled` | 是否禁用 | `boolean` | `false` | - | - | | ||
| `prefix` | 标题前缀图标 | `string \| VNode \| #prefix` | - | - | - | | ||
| `size` | 标题大小 | `'xl' \| 'lg' \| 'md' \| 'sm'` | `'md'` | - | - | | ||
| `prefix` | 标题前缀图标 | `string \| VNode` | - | - | - | | ||
| `size` | 标题大小 | `'lg' \| 'md' \| 'sm'` | `'md'` | - | - | | ||
| `showBar` | 是否显示标题前的竖条 | `boolean` | `false` | - | - | | ||
| `subTitle` | 二级标题文字 | `string \| #subTitle` | - | - | - | | ||
| `suffix` | 标题后缀图标 | `string \| VNode \| #suffix` | - | - | 通常用于额外操作 | | ||
| `subTitle` | 二级标题文字 | `string` | - | - | - | | ||
| `suffix` | 标题后缀图标 | `string \| VNode` | - | - | 通常用于额外操作 | | ||
| `title` | 标题文字 | `string \| #default` | - | - | - | | ||
| `onPrefixClick` | 前缀图标被点击 | `(evt: MouseEvent) => void` | - | - | - | | ||
| `onSuffixClick` | 后缀图标被点击 | `(evt: MouseEvent) => void` | - | - | - | | ||
|
||
#### HeaderSlots | ||
|
||
| 名称 | 说明 | 参数类型 | 备注 | | ||
| --- | --- | --- | --- | | ||
| `avatar` | 自定义头像 | - | - | | ||
| `description` | 自定义说明文字 | - | - | | ||
| `prefix` | 自定义前缀图标 | - | - | | ||
| `subTitle` | 自定义二级标题文字 | - | - | | ||
| `suffix` | 自定义后缀图标 | - | - | | ||
| `title` | 自定义标题文字 | - | - | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,23 @@ | ||
| 名称 | default | seer | 备注 | | ||
| --- | --- | --- | --- | | ||
| `@header-line-height` | `@line-height-base` | - | - | | ||
| `@header-height-xl` | `@height-xl` | `@height-xl` | - | | ||
| `@header-height-lg` | `@height-xl` | `@height-xl` | - | | ||
| `@header-height-md` | `@height-lg` | `@height-lg` | - | | ||
| `@header-height-sm` | `@height-md` | `@height-md` | - | | ||
| `@header-font-size` | `@font-size-md` | - | - | | ||
| `@header-color` | `@text-color` | - | - | | ||
| `@header-background-color` | `@background-color-component` | - | - | | ||
| `@header-disabled-color` | `@disabled-color` | - | - | | ||
| `@header-bar-width` | `@spacing-xs` | - | - | | ||
| `@header-bar-margin` | `@spacing-sm 0` | - | - | | ||
| `@header-bar-background-color` | `@color-primary` | - | - | | ||
| `@header-prefix-color` | `@color-graphite-d10` | - | - | | ||
| `@header-prefix-margin-right` | `@spacing-sm` | - | - | | ||
| `@header-prefix-padding-right` | `@spacing-sm` | - | - | | ||
| `@header-prefix-border-right` | `@border-width-sm @border-style @border-color` | `none` | - | | ||
| `@header-prefix-font-size` | `@font-size-lg` | - | - | | ||
| `@header-prefix-active-color` | `@color-primary` | - | - | | ||
| `@header-avatar-margin-right` | `@spacing-lg` | - | - | | ||
| `@header-title-color` | `@color-graphite-d40` | - | - | | ||
| `@header-title-font-weight` | `@font-weight-xl` | - | - | | ||
| `@header-title-margin-right` | `@spacing-lg` | - | - | | ||
| `@header-title-font-size-xl` | `@font-size-3xl` | `@font-size-xl` | - | | ||
| `@header-title-font-size-lg` | `@font-size-2xl` | `@font-size-lg` | - | | ||
| `@header-title-font-size-md` | `@font-size-xl` | `@font-size-md` | - | | ||
| `@header-title-font-size-sm` | `@font-size-lg` | `@font-size-md` | - | | ||
| `@header-sub-title-color` | `@text-color-secondary` | - | - | | ||
| `@header-suffix-color` | `@text-color-secondary` | `@color-graphite-d20` | - | | ||
| `@header-suffix-padding` | `0 @spacing-xs 0 @spacing-sm` | - | - | | ||
| `@header-suffix-active-color` | `@header-title-color` | `@color-blue-l10` | - | | ||
| `@header-suffix-font-size` | `@font-size-lg` | - | - | | ||
| `@header-suffix-font-size-sm` | `@font-size-md` | - | - | | ||
| `@header-description-color` | `@text-color` | - | - | | ||
| `@header-icon-font-size` | `@font-size-lg` | - | - | | ||
| `@header-height-sm` | `var(--ix-height-lg)` | `var(--ix-height-xl)` | - | | ||
| `@header-height-md` | `var(--ix-height-xl)` | - | - | | ||
| `@header-height-lg` | `var(--ix-height-xl)` | - | - | | ||
| `@header-height-xl` | `var(--ix-height-2xl)` | `var(--ix-height-xl)` | - | | ||
| `@header-font-size-sm` | `var(--ix-font-size-md)` | - | - | | ||
| `@header-font-size-md` | `var(--ix-font-size-lg)` | - | - | | ||
| `@header-font-size-lg` | `var(--ix-font-size-xl)` | - | - | | ||
| `@header-font-size-xl` | `var(--ix-font-size-2xl)` | - | - | | ||
| `@header-color` | `var(--ix-text-color-title)` | `var(--ix-text-color)` | - | | ||
| `@header-color-hover` | `var(--ix-color-primary-l10)` | - | - | | ||
| `@header-color-active` | `var(--ix-color-primary-d10)` | - | - | | ||
| `@header-color-disabled` | `var(--ix-text-color-disabled)` | - | - | | ||
| `@header-bar-width` | `4px` | - | - | | ||
| `@header-bar-background-color` | `var(--ix-color-primary)` | - | - | | ||
| `@header-title-font-weight` | `var(--ix-font-weight-lg)` | - | - | | ||
| `@header-sub-title-color` | `var(--ix-text-color-title-secondary)` | - | - | | ||
| `@header-sub-title-font-size` | `var(--ix-font-size-md)` | - | - | | ||
| `@header-suffix-color` | `var(--ix-text-color-title-secondary)` | - | - | | ||
| `@header-description-color` | `var(--ix-text-color-info)` | - | - | | ||
| `@header-description-font-size` | `var(--ix-font-size-md)` | `var(--ix-font-size-sm)` | - | | ||
| `@header-icon-font-size` | `inherit` | `var(--ix-font-size-lg)` | - | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.