Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@Nathanielna 1.2.4版本已修复。 #45

Open
lessonli opened this issue Sep 12, 2022 · 3 comments
Open

@Nathanielna 1.2.4版本已修复。 #45

lessonli opened this issue Sep 12, 2022 · 3 comments

Comments

@lessonli
Copy link

@Nathanielna 1.2.4版本已修复。

Originally posted by @yizhiyuyou in #9 (comment)

@lessonli
Copy link
Author

resume is not a function

import { ScrollBoard } from '@jiaminghi/data-view-react';
import styles from './index.module.less';
import './index.scss';

const Home = () => {
const data = [
[1, 2, 3, 4],
[1, 2, 3, 4],
[1, 2, 3, 4],
// ['行1列1', '行1列2', '行1列3', '详情'],
// ['行2列1', '行2列2', '行2列3', '详情'],
// ['行3列1', '行3列2', '行3列3', '详情'],
// ['行4列1', '行4列2', '行4列3', '详情'],
// ['行5列1', '行5列2', '行5列3', '详情'],
// ['行6列1', '行6列2', '行6列3', '详情'],
// ['行7列1', '行7列2', '行7列3', '详情'],
// ['行8列1', '行8列2', '行8列3', '详情'],
// ['行9列1', '行9列2', '行9列3', '详情'],
// ['行10列1', '行10列2', '行10列3', '详情'],
];
const config = {
header: ['列1', '列2', '列3', '详情'],
oddRowBGC: '#ccc',
evenRowBGC: '#ccc',
data,
};
return (
<>
12
<ScrollBoard
style={{ width: '500px', height: '220px' }}
config={config}

    onClick={(a, b, c, d) => {
      console.log(a, b, c, d);
    }}
  />
</>

);
};

export default Home;

@lessonli
Copy link
Author

该版本 ^1.2.5

@lessonli
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant