You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
545 B
30 lines
545 B
7 years ago
|
<cn>
|
||
|
#### 上一步和下一步
|
||
|
修改上一步和下一步为文字链接。
|
||
|
</cn>
|
||
|
|
||
|
<us>
|
||
|
#### Prev and next
|
||
|
Use text link for prev and next button.
|
||
|
</us>
|
||
|
|
||
|
```html
|
||
|
<template>
|
||
|
<a-pagination :total="500" :itemRender="itemRender" />
|
||
|
</template>
|
||
|
<script>
|
||
|
export default {
|
||
|
methods: {
|
||
|
itemRender(current, type, originalElement) {
|
||
|
if (type === 'prev') {
|
||
|
return <a>Previous</a>;
|
||
|
} else if (type === 'next') {
|
||
|
return <a>Next</a>;
|
||
|
}
|
||
|
return originalElement;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
```
|