Skip to content

Commit

Permalink
fix(comp:transfer): pagination should enable quick jumper, meanwhile …
Browse files Browse the repository at this point in the history
…fix header suffix style (#1459)

* style(comp:transfer): transfer header suffix isn't vertially centered

* fix(comp:transfer): pagination quick jumper should be enabled

* docs(comp:transfer): modify header suffix size of demo
  • Loading branch information
sallerli1 committed Feb 23, 2023
1 parent c688624 commit 499ae90
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/components/transfer/demo/CustomHeaderLabelSuffix.vue
Expand Up @@ -11,15 +11,17 @@
<span v-else> Target ({{ data.length }}) </span>
</template>
<template #headerSuffix>
<IxIcon name="plus" :onClick="handleSuffixClick" />
<IxIcon name="plus" size="16px" :onClick="handleSuffixClick" />
</template>
</IxTransfer>
</template>

<script setup lang="ts">
import type { TransferData } from '@idux/components/transfer'
import { ref } from 'vue'
interface Data {
interface Data extends TransferData {
key: number
value: number
label: string
Expand Down
Expand Up @@ -79,6 +79,7 @@ function createPagination(
return {
simple: true,
showTotal: false,
showQuickJumper: true,
...pagination,
pageIndex: pageIndex.value,
pageSize: pageSize.value,
Expand Down
1 change: 1 addition & 0 deletions packages/components/transfer/style/content.less
Expand Up @@ -74,6 +74,7 @@
}

&-suffix {
line-height: 1;
margin-left: auto;
}
&-clear-icon + &-suffix,
Expand Down

0 comments on commit 499ae90

Please sign in to comment.