Skip to content

Commit

Permalink
fix: useGetDataindexColumns render bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hemengke1997 committed Jan 11, 2022
1 parent e40f422 commit 0046af4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@minko-fe/use-antd-resizable-header",
"version": "2.1.4",
"version": "2.1.5",
"description": "antd resizable header column hook",
"author": "hemengke1997 <23536175@qq.com>",
"types": "dist/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/utils/useLocalColumns.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useEffect, useMemo } from 'react';
import type { ColumnOriginType, ColumnsStateType } from '..';
import useGetDataIndexColumns from './useGetDataIndexColumns';
import useGetDataindexColumns from './useGetDataindexColumns';
import useMemoizedFn from './useMemoizedFn';

type LocalColumnsProp<T> = {
Expand All @@ -15,7 +15,7 @@ function useLocalColumns<T extends ColumnOriginType<T>>({
columns,
}: LocalColumnsProp<T>) {
// 列设置需要每一个column都有dataIndex或key
const columnsProp = useGetDataIndexColumns(columns);
const columnsProp = useGetDataindexColumns(columns);

// 初始化本地columns
const initLocalColumns = useMemoizedFn(() => {
Expand Down

0 comments on commit 0046af4

Please sign in to comment.