Skip to content

Commit 63639c8

Browse files
committed
chore: 优化类型使用方式
1 parent 81f0359 commit 63639c8

File tree

1 file changed

+1
-5
lines changed
  • src/element-plus/components/use-pagination

1 file changed

+1
-5
lines changed

src/element-plus/components/use-pagination/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type { PaginationPropsPublic } from 'element-plus'
2-
import type { Writable } from 'type-fest'
32
import type { FunctionalComponent } from 'vue'
43
import type {
54
ElUsePaginationEmits,
@@ -23,10 +22,7 @@ export const ElUsePagination: FunctionalComponent<
2322
const { currentPage, currentPageSize, pageCount, total } = pagination
2423

2524
const finalProps: PaginationPropsPublic = mergeProps(
26-
objectPick(
27-
config?.defaultProps || {},
28-
defaultPropKeys as Writable<typeof defaultPropKeys>,
29-
),
25+
objectPick(config?.defaultProps || {}, defaultPropKeys as any),
3026

3127
// 需要与 attrs 内的事件名保持一致
3228
{

0 commit comments

Comments
 (0)