mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-04-12 14:40:47 +08:00
docs(changelog): fix
This commit is contained in:
parent
2e343130d3
commit
78ebce9fa3
@ -45,7 +45,7 @@
|
||||
- Fix `n-popover` doesn't wrap line if word is too long.
|
||||
- Fix `n-date-picker` can't delete all input content in some cases, closes [#3922](https://github.com/tusen-ai/naive-ui/issues/3922).
|
||||
- Fix `n-input`'s `autosize` prop doesn't work properly if there are multiple spaces, closes [#4027](https://github.com/tusen-ai/naive-ui/issues/4027).
|
||||
- Fix `n-pagination`'s `endIndex` calc incorrect,closes [#4057](https://github.com/tusen-ai/naive-ui/issues/4057)
|
||||
- Fix `n-pagination`'s `endIndex` maybe incorrect in last page, closes [#4057](https://github.com/tusen-ai/naive-ui/issues/4057)
|
||||
|
||||
### i18n
|
||||
|
||||
|
@ -44,7 +44,7 @@
|
||||
- 修复 `n-timeline-item` 在 `n-timeline` 设定 `horizontal` 之后,`line-type="dashed"` 不生效,关闭 [#4014](https://github.com/tusen-ai/naive-ui/issues/4014)
|
||||
- 修复 `n-popover` 在英文和数字过长时不断行
|
||||
- 修复 `n-input` 的属性 `autosize` 在输入包含多个空格的时候表现不正确,关闭 [#4027](https://github.com/tusen-ai/naive-ui/issues/4027)
|
||||
- 修复 `n-pagination` 的 `endIndex` 计算错误,关闭 [#4057](https://github.com/tusen-ai/naive-ui/issues/4057)
|
||||
- 修复 `n-pagination` 的 `endIndex` 在最后一页计算错误,关闭 [#4057](https://github.com/tusen-ai/naive-ui/issues/4057)
|
||||
|
||||
### i18n
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
<script lang="ts">
|
||||
import { h, defineComponent, ref } from 'vue'
|
||||
import { NButton, useMessage } from 'naive-ui'
|
||||
import { NButton, useMessage, PaginationProps } from 'naive-ui'
|
||||
import type { DataTableColumns } from 'naive-ui'
|
||||
|
||||
type Song = {
|
||||
@ -77,6 +77,11 @@ const data: Song[] = [
|
||||
export default defineComponent({
|
||||
setup () {
|
||||
const message = useMessage()
|
||||
const pagination: PaginationProps = {
|
||||
prefix: ({ startIndex, endIndex }) => {
|
||||
return ['startIndex', startIndex, 'endIndex', endIndex]
|
||||
}
|
||||
}
|
||||
return {
|
||||
data,
|
||||
columns: createColumns({
|
||||
@ -85,7 +90,7 @@ export default defineComponent({
|
||||
}
|
||||
}),
|
||||
loading: ref(false),
|
||||
pagination: false as const
|
||||
pagination
|
||||
}
|
||||
}
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user