mirror of
https://github.com/massbug/judge4c.git
synced 2025-07-03 23:30:50 +00:00
refactor: flexlayout
This commit is contained in:
parent
c6c70e5491
commit
8c96e0d77d
@ -11,9 +11,9 @@ interface ProblemEditViewProps {
|
|||||||
|
|
||||||
export const ProblemEditView = ({ problemId }: ProblemEditViewProps) => {
|
export const ProblemEditView = ({ problemId }: ProblemEditViewProps) => {
|
||||||
const components: Record<string, React.ReactNode> = {
|
const components: Record<string, React.ReactNode> = {
|
||||||
detail: <EditDetailPanel problemId={problemId} />,
|
|
||||||
description: <EditDescriptionPanel problemId={problemId} />,
|
description: <EditDescriptionPanel problemId={problemId} />,
|
||||||
solution: <EditSolutionPanel problemId={problemId} />,
|
solution: <EditSolutionPanel problemId={problemId} />,
|
||||||
|
detail: <EditDetailPanel problemId={problemId} />,
|
||||||
code: <EditCodePanel problemId={problemId} />,
|
code: <EditCodePanel problemId={problemId} />,
|
||||||
testcase: <EditTestcasePanel problemId={problemId} />,
|
testcase: <EditTestcasePanel problemId={problemId} />,
|
||||||
};
|
};
|
||||||
|
@ -144,13 +144,6 @@ const initialProblemEditFlexLayoutJsonModel: IJsonModel = {
|
|||||||
id: "1",
|
id: "1",
|
||||||
weight: 50,
|
weight: 50,
|
||||||
children: [
|
children: [
|
||||||
{
|
|
||||||
type: "tab",
|
|
||||||
id: "detail",
|
|
||||||
name: "Details",
|
|
||||||
component: "detail",
|
|
||||||
enableClose: false,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
type: "tab",
|
type: "tab",
|
||||||
id: "description",
|
id: "description",
|
||||||
@ -165,6 +158,13 @@ const initialProblemEditFlexLayoutJsonModel: IJsonModel = {
|
|||||||
component: "solution",
|
component: "solution",
|
||||||
enableClose: false,
|
enableClose: false,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
type: "tab",
|
||||||
|
id: "detail",
|
||||||
|
name: "Details",
|
||||||
|
component: "detail",
|
||||||
|
enableClose: false,
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user