-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(comp:pagination): add large size and update style (#1249)
- Loading branch information
Showing
31 changed files
with
281 additions
and
264 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
--- | ||
title: | ||
zh: 迷你版本 | ||
en: Small size | ||
zh: 尺寸 | ||
en: Size | ||
order: 3 | ||
--- | ||
|
||
## zh | ||
|
||
通过设置 `size="sm"` 可以使用迷你版本。 | ||
分页器共有 3 种尺寸:小、中、大,默认为中。 | ||
|
||
## en | ||
|
||
The mini version can be used by setting `size="sm"`. | ||
There are three sizes of pagination: small, medium, and large. The default is medium. |
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,5 +1,7 @@ | ||
<template> | ||
<IxPagination :total="500" size="sm" /> | ||
<br /> | ||
<IxPagination :total="500" size="sm" showQuickJumper showSizeChanger /> | ||
<IxSpace vertical block> | ||
<IxPagination :total="500" size="sm" showQuickJumper showSizeChanger /> | ||
<IxPagination :total="500" size="md" showQuickJumper showSizeChanger /> | ||
<IxPagination :total="500" size="lg" showQuickJumper showSizeChanger /> | ||
</IxSpace> | ||
</template> |
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,9 +1,10 @@ | ||
<template> | ||
<IxPagination :total="500" :showTotal="false" /> | ||
<br /> | ||
<IxPagination :total="500"> | ||
<template #total="{ total, range, prefix, suffix }"> | ||
<span> {{ range[0] }}-{{ range[1] }} {{ prefix }} {{ total }} {{ suffix }}</span> | ||
</template> | ||
</IxPagination> | ||
<IxSpace vertical block> | ||
<IxPagination :total="500" :showTotal="false" /> | ||
<IxPagination :total="500"> | ||
<template #total="{ total, range, prefix, suffix }"> | ||
<span> {{ range[0] }}-{{ range[1] }} {{ prefix }} {{ total }} {{ suffix }}</span> | ||
</template> | ||
</IxPagination> | ||
</IxSpace> | ||
</template> |
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 |
---|---|---|
|
@@ -4,5 +4,6 @@ type: 导航 | |
order: 0 | ||
title: Pagination | ||
subtitle: 分页 | ||
theme: true | ||
--- | ||
|
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,24 +1,20 @@ | ||
| 名称 | default | seer | 备注 | | ||
| --- | --- | --- | --- | | ||
| `@pagination-font-size-md` | `@font-size-md` | `@font-size-sm` | - | | ||
| `@pagination-font-size-sm` | `@font-size-sm` | - | - | | ||
| `@pagination-item-icon-font-size` | `@font-size-sm` | - | - | | ||
| `@pagination-item-size-md` | `32px` | - | - | | ||
| `@pagination-item-size-sm` | `24px` | - | - | | ||
| `@pagination-item-padding-md` | `4px` | - | - | | ||
| `@pagination-font-size-sm` | `var(--ix-font-size-sm)` | `var(--ix-font-size-sm)` | - | | ||
| `@pagination-font-size-md` | `var(--ix-font-size-md)` | `var(--ix-font-size-sm)` | - | | ||
| `@pagination-font-size-lg` | `var(--ix-font-size-lg)` | `var(--ix-font-size-md)` | - | | ||
| `@pagination-item-padding-sm` | `0` | - | - | | ||
| `@pagination-item-input-width-md` | `48px` | - | - | | ||
| `@pagination-item-input-width-sm` | `40px` | - | - | | ||
| `@pagination-item-active-color` | `@color-white` | `@color-primary` | - | | ||
| `@pagination-item-active-background-color` | `@color-primary` | `@color-primary-l50` | - | | ||
| `@pagination-item-color` | `@color-graphite-d40` | - | - | | ||
| `@pagination-item-background-color` | `tint(@color-primary, 90%)` | - | - | | ||
| `@pagination-item-hover-color` | `@color-graphite-d40` | - | - | | ||
| `@pagination-item-hover-background-color` | `tint(@color-primary, 90%)` | `@color-graphite-l50` | - | | ||
| `@pagination-item-disabled-color` | `@text-color-disabled` | - | - | | ||
| `@pagination-item-disabled-background-color` | `@background-color-disabled` | - | - | | ||
| `@pagination-item-button-hover-color` | `@color-graphite-d20` | - | - | | ||
| `@pagination-item-button-active-color` | `@color-graphite-d20` | - | - | | ||
| `@pagination-item-button-hover-background-color` | `@color-graphite-l50` | - | - | | ||
| `@pagination-total-color` | `@color-graphite-d10` | - | - | | ||
| `@pagination-sizes-color` | `@color-graphite-d10` | - | - | | ||
| `@pagination-item-padding-md` | `var(--ix-spacing-xs)` | - | - | | ||
| `@pagination-item-padding-lg` | `var(--ix-spacing-xs)` | - | - | | ||
| `@pagination-item-content-size-sm` | `24px` | - | - | | ||
| `@pagination-item-content-size-md` | `24px` | - | - | | ||
| `@pagination-item-content-size-lg` | `32px` | - | - | | ||
| `@pagination-item-content-border-radius` | `50%` | - | - | | ||
| `@pagination-item-content-icon-font-size` | `inherit` | `var(--ix-font-size-lg)` | - | | ||
| `@pagination-color-hover` | `var(--ix-text-color)` | `var(--ix-color-primary)` | - | | ||
| `@pagination-color-active` | `var(--ix-text-color-inverse)` | `var(--ix-color-primary)` | - | | ||
| `@pagination-color-disabled` | `var(--ix-text-color-disabled)` | `var(--ix-text-color-disabled)` | - | | ||
| `@pagination-background-color-hover` | `var(--ix-background-color-deep)` | `var(--ix-background-color-light)` | - | | ||
| `@pagination-background-color-active` | `var(--ix-color-primary)` | `var(--ix-color-primary-l50)` | - | | ||
| `@pagination-background-color-disabled` | `var(--ix-background-color-deep)` | `var(--ix-background-color-deep)` | - | | ||
| `@pagination-outline-color` | `var(--ix-color-primary-l10)` | - | - | |
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.