feat: template docs

This commit is contained in:
mathuo 2025-10-30 22:02:31 +00:00
parent 897b96b7df
commit 9e6eaf5c77
No known key found for this signature in database
GPG Key ID: C6EEDEFD6CA07281
3 changed files with 9 additions and 9 deletions

View File

@ -42,7 +42,7 @@ export const App: React.FC = (props: { theme?: string }) => {
id: 'panel_2',
component: 'default',
title: 'Panel 2',
position: { referencePanel: panel },
position: { referencePanel: panel.id },
});
const panel3 = event.api.addPanel({
@ -50,14 +50,14 @@ export const App: React.FC = (props: { theme?: string }) => {
component: 'default',
title: 'Panel 3',
position: { referencePanel: panel, direction: 'right' },
position: { referencePanel: panel.id, direction: 'right' },
});
const panel4 = event.api.addPanel({
id: 'panel_4',
component: 'default',
title: 'Panel 4',
position: { referencePanel: panel3 },
position: { referencePanel: panel3.id },
});
};

View File

@ -48,19 +48,19 @@ export class AppComponent {
const panel2 = api.addPanel({
id: 'panel_2',
component: 'default',
position: { referencePanel: panel1, direction: 'right' },
position: { referencePanel: panel1.id, direction: 'right' },
});
api.addPanel({
id: 'panel_3',
component: 'default',
position: { referencePanel: panel1, direction: 'below' },
position: { referencePanel: panel1.id, direction: 'below' },
});
api.addPanel({
id: 'panel_4',
component: 'default',
position: { referencePanel: panel2, direction: 'below' },
position: { referencePanel: panel2.id, direction: 'below' },
});
}
}

View File

@ -44,17 +44,17 @@ const panel1 = api.addPanel({
const panel2 = api.addPanel({
id: 'panel_2',
component: 'default',
position: { referencePanel: panel1, direction: 'right' },
position: { referencePanel: panel1.id, direction: 'right' },
});
api.addPanel({
id: 'panel_3',
component: 'default',
position: { referencePanel: panel1, direction: 'below' },
position: { referencePanel: panel1.id, direction: 'below' },
});
api.addPanel({
id: 'panel_4',
component: 'default',
position: { referencePanel: panel2, direction: 'below' },
position: { referencePanel: panel2.id, direction: 'below' },
});