diff --git a/packages/designer/src/builtin-simulator/host.ts b/packages/designer/src/builtin-simulator/host.ts index bc5b70e1c..eea50ca60 100644 --- a/packages/designer/src/builtin-simulator/host.ts +++ b/packages/designer/src/builtin-simulator/host.ts @@ -753,7 +753,7 @@ export class BuiltinSimulatorHost implements ISimulatorHost { @@ -114,7 +116,33 @@ export class SettingsPrimaryPane extends Component<{ editor: Editor }> { return (
- { + this._activeKey = tabKey; + }} + className="lc-settings-tabs" + > + + { + (items as SettingField[]).map((field) => { + return </Tab> + }) + } + </TabList> + + { + (items as SettingField[]).map((field) => { + return ( + <TabPanel className="lc-settings-tabs-content"> + { this.renderBreadcrumb() } + <SettingsPane target={field} key={field.id} /> + </TabPanel> + ) + }) + } + </Tabs> + {/* <Tab activeKey={activeKey} onChange={(tabKey) => { this._activeKey = tabKey; @@ -126,7 +154,7 @@ export class SettingsPrimaryPane extends Component<{ editor: Editor }> { extra={this.renderBreadcrumb()} > {tabs} - </Tab> + </Tab> */} </div> ); } diff --git a/packages/editor-skeleton/src/layouts/workbench.less b/packages/editor-skeleton/src/layouts/workbench.less index deec754a1..4ec024cb1 100644 --- a/packages/editor-skeleton/src/layouts/workbench.less +++ b/packages/editor-skeleton/src/layouts/workbench.less @@ -345,6 +345,7 @@ body { display: block; } .lc-settings-tabs{ + padding-top: 12px; > .next-tabs-nav-extra{ top: 36px !important; } @@ -354,13 +355,20 @@ body { line-height: 12px; } } + > ul { + padding-left: 8px; + border-bottom: 1px solid #ddd !important; + li.react-tabs__tab--selected { + border-color: #ddd !important; + } + } .lc-title{ color: inherit; line-height: inherit !important; } } .lc-settings-tabs-content{ - top: 66px; + top: 43px; } } }