chore(web): 前端质量检查 - 规范模型编辑格式并消除回归测试缩进依赖
This commit is contained in:
@@ -27,14 +27,7 @@ export function ModelEditorModal({
|
||||
admin?: boolean;
|
||||
children?: ReactNode | ((tabs: ReactNode) => ReactNode);
|
||||
}) {
|
||||
const tabs = items?.length ? (
|
||||
<Tabs
|
||||
activeKey={activeKey}
|
||||
onChange={onTabChange}
|
||||
animated={false}
|
||||
items={items.map((item) => ({ ...item, forceRender: true, children: <div className="model-editor-panel">{item.children}</div> }))}
|
||||
/>
|
||||
) : null;
|
||||
const tabs = items?.length ? <Tabs activeKey={activeKey} onChange={onTabChange} animated={false} items={items.map((item) => ({ ...item, forceRender: true, children: <div className="model-editor-panel">{item.children}</div> }))} /> : null;
|
||||
const content = typeof children === "function" ? children(tabs) : children || tabs;
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user