mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-18 21:38:14 +00:00
Merge branch 'preset-vision/0.9.0' of gitlab.alibaba-inc.com:ali-lowcode/ali-lowcode-engine into preset-vision/0.9.0
This commit is contained in:
commit
cc53f4ede2
@ -753,7 +753,7 @@ export class BuiltinSimulatorHost implements ISimulatorHost<BuiltinSimulatorProp
|
|||||||
this.sensing = true;
|
this.sensing = true;
|
||||||
this.scroller.scrolling(e);
|
this.scroller.scrolling(e);
|
||||||
const dropContainer = this.getDropContainer(e);
|
const dropContainer = this.getDropContainer(e);
|
||||||
if (!dropContainer) {
|
if (!dropContainer || dropContainer.container?.componentName === 'Page') {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -26,7 +26,8 @@
|
|||||||
"@alifd/next": "^1.x",
|
"@alifd/next": "^1.x",
|
||||||
"classnames": "^2.2.6",
|
"classnames": "^2.2.6",
|
||||||
"react": "^16.8.1",
|
"react": "^16.8.1",
|
||||||
"react-dom": "^16.8.1"
|
"react-dom": "^16.8.1",
|
||||||
|
"react-tabs": "^3.1.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@alib/build-scripts": "^0.1.3",
|
"@alib/build-scripts": "^0.1.3",
|
||||||
|
|||||||
@ -1,10 +1,12 @@
|
|||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import { Tab, Breadcrumb } from '@alifd/next';
|
import { Breadcrumb } from '@alifd/next';
|
||||||
|
import { Tabs, Tab, TabList, TabPanel } from 'react-tabs';
|
||||||
import { Title, observer, Editor, obx } from '@ali/lowcode-editor-core';
|
import { Title, observer, Editor, obx } from '@ali/lowcode-editor-core';
|
||||||
import { Node, isSettingField, SettingField } from '@ali/lowcode-designer';
|
import { Node, isSettingField, SettingField } from '@ali/lowcode-designer';
|
||||||
import { SettingsMain } from './main';
|
import { SettingsMain } from './main';
|
||||||
import { SettingsPane } from './settings-pane';
|
import { SettingsPane } from './settings-pane';
|
||||||
import { createIcon } from '@ali/lowcode-utils';
|
import { createIcon } from '@ali/lowcode-utils';
|
||||||
|
import 'react-tabs/style/react-tabs.css';
|
||||||
|
|
||||||
@observer
|
@observer
|
||||||
export class SettingsPrimaryPane extends Component<{ editor: Editor }> {
|
export class SettingsPrimaryPane extends Component<{ editor: Editor }> {
|
||||||
@ -114,7 +116,33 @@ export class SettingsPrimaryPane extends Component<{ editor: Editor }> {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="lc-settings-main">
|
<div className="lc-settings-main">
|
||||||
<Tab
|
<Tabs
|
||||||
|
selectedKey={activeKey}
|
||||||
|
onSelect={(tabKey) => {
|
||||||
|
this._activeKey = tabKey;
|
||||||
|
}}
|
||||||
|
className="lc-settings-tabs"
|
||||||
|
>
|
||||||
|
<TabList>
|
||||||
|
{
|
||||||
|
(items as SettingField[]).map((field) => {
|
||||||
|
return <Tab><Title title={field.title} /></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}
|
activeKey={activeKey}
|
||||||
onChange={(tabKey) => {
|
onChange={(tabKey) => {
|
||||||
this._activeKey = tabKey;
|
this._activeKey = tabKey;
|
||||||
@ -126,7 +154,7 @@ export class SettingsPrimaryPane extends Component<{ editor: Editor }> {
|
|||||||
extra={this.renderBreadcrumb()}
|
extra={this.renderBreadcrumb()}
|
||||||
>
|
>
|
||||||
{tabs}
|
{tabs}
|
||||||
</Tab>
|
</Tab> */}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -345,6 +345,7 @@ body {
|
|||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
.lc-settings-tabs{
|
.lc-settings-tabs{
|
||||||
|
padding-top: 12px;
|
||||||
> .next-tabs-nav-extra{
|
> .next-tabs-nav-extra{
|
||||||
top: 36px !important;
|
top: 36px !important;
|
||||||
}
|
}
|
||||||
@ -354,13 +355,20 @@ body {
|
|||||||
line-height: 12px;
|
line-height: 12px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
> ul {
|
||||||
|
padding-left: 8px;
|
||||||
|
border-bottom: 1px solid #ddd !important;
|
||||||
|
li.react-tabs__tab--selected {
|
||||||
|
border-color: #ddd !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
.lc-title{
|
.lc-title{
|
||||||
color: inherit;
|
color: inherit;
|
||||||
line-height: inherit !important;
|
line-height: inherit !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.lc-settings-tabs-content{
|
.lc-settings-tabs-content{
|
||||||
top: 66px;
|
top: 43px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user