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

not showing anything , #834

Open
yuyang-ok opened this issue Jan 11, 2025 · 0 comments
Open

not showing anything , #834

yuyang-ok opened this issue Jan 11, 2025 · 0 comments

Comments

@yuyang-ok
Copy link

I am new to this project and new to front end development.
I maybe make some stupid mistaken.
I use allotment kind of this.


import { Allotment } from 'allotment';
import 'allotment/dist/style.css';


 <Allotment defaultSizes={[200, 700]} vertical={false}>
      <div
        style={{ backgroundColor: 'red', minHeight: '100vh', height: '100vh' }}
      >
        1111
        <Left></Left>
      </div>
      <div style={{ backgroundColor: 'blue', minHeight: '100vh' }}>
        1222222
        <TabsWithContent
          handleClose={(index: number) => {
            let id = tabs[index].id;
            setTabs((prevTabs) => prevTabs.filter((x) => x.id !== id));
            if (selectIndex >= index && selectIndex > 0) {
              setSelectIndex(selectIndex - 1);
            }
          }}
          tabs={tabs}
          selectIndex={selectIndex}
          changeTab={(index) => {
            setSelectIndex(index as number);
          }}
          setTabs={setTabs}
        ></TabsWithContent>
      </div>
    </Allotment>

but nothing shows on the screen.

why???
截屏2025-01-11 14 10 53

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