Skip to content

Commit

Permalink
feat: replace npm download link
Browse files Browse the repository at this point in the history
  • Loading branch information
hemengke1997 committed Jan 10, 2022
1 parent 5618d11 commit 967db98
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ yarn add @minko-fe/use-antd-resizable-header
## Example

```tsx
import useARH from 'use-antd-resizable-header';
import 'use-antd-resizable-header/dist/style.css';
import useARH from '@minko-fe/use-antd-resizable-header';
import '@minko-fe/use-antd-resizable-header/dist/style.css';

function App() {
const columns = [];
Expand Down Expand Up @@ -88,9 +88,9 @@ function App() {
```tsx
import React, { useReducer } from 'react';
import { Table, Tag, Space } from 'antd';
import useARH from 'use-antd-resizable-header';
import useARH from '@minko-fe/use-antd-resizable-header';
import 'antd/dist/antd.css';
import 'use-antd-resizable-header/dist/style.css';
import '@minko-fe/use-antd-resizable-header/dist/style.css';

const data = [
{
Expand Down Expand Up @@ -243,10 +243,10 @@ export const genEllipsis = (text: string, copyable?: boolean, stopPropagation?:
```tsx
// index.tsx
import ProTable from '@ant-design/pro-table'; // or import { Table } from 'antd'
import useARH from 'use-antd-resizable-header';
import useARH from '@minko-fe/use-antd-resizable-header';
import { genEllipsis } from './utils.tsx';

import 'use-antd-resizable-header/dist/style.css';
import '@minko-fe/use-antd-resizable-header/dist/style.css';
import './index.css';

const columns: ProColumns[] = [
Expand Down
4 changes: 2 additions & 2 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';
import { Table } from 'antd';
import ProTable from '@ant-design/pro-table';
import './App.css';
import useARH from 'use-antd-resizable-header';
import 'use-antd-resizable-header/dist/style.css';
import useARH from '@minko-fe/use-antd-resizable-header';
import '@minko-fe/use-antd-resizable-header/dist/style.css';
import 'antd/es/table/style/index.css';
import { useReducer } from 'react';
import { useMemo } from 'react';
Expand Down
4 changes: 2 additions & 2 deletions example/src/Test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from "react";
import "antd/dist/antd.css";
import "./index.less";
import { Table } from "antd";
import useARH from 'use-antd-resizable-header';
import 'use-antd-resizable-header/dist/style.css';
import useARH from '@minko-fe/use-antd-resizable-header';
import '@minko-fe/use-antd-resizable-header/dist/style.css';

const columns = [
{
Expand Down

0 comments on commit 967db98

Please sign in to comment.