mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-20 15:38:32 +00:00
fix:数据列点字段编辑 drawer 第一次打开空白
This commit is contained in:
parent
41769d08c2
commit
2701824f6f
@ -102,10 +102,7 @@ function initDemoPanes() {
|
|||||||
props: {
|
props: {
|
||||||
align: 'bottom',
|
align: 'bottom',
|
||||||
icon: 'set',
|
icon: 'set',
|
||||||
description: '设置',
|
description: '设置'
|
||||||
// onClick:()=>{
|
|
||||||
// Engine.Pages.currentPage.root.select();
|
|
||||||
// }
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
skeleton.add({
|
skeleton.add({
|
||||||
@ -115,16 +112,7 @@ function initDemoPanes() {
|
|||||||
props: {
|
props: {
|
||||||
align: 'bottom',
|
align: 'bottom',
|
||||||
icon: 'help',
|
icon: 'help',
|
||||||
description: '帮助',
|
description: '帮助'
|
||||||
onClick:()=>{
|
|
||||||
const linkConfig = getDesignerModuleConfigs({}, 'helpLink');
|
|
||||||
const reVersion = getConfig('RE_VERSION');
|
|
||||||
let defaultLink = 'https://go.alibaba-inc.com/help/';
|
|
||||||
if (cv(reVersion, '7.0.0') >= 0) {
|
|
||||||
defaultLink = 'https://go.alibaba-inc.com/help3/';
|
|
||||||
}
|
|
||||||
window.open(linkConfig.url ? linkConfig.url : defaultLink, '_blank');
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -200,18 +188,6 @@ async function initTrunkPane() {
|
|||||||
Panes.add(TrunkPane);
|
Panes.add(TrunkPane);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 帮助面板
|
|
||||||
function getDesignerModuleConfigs(source?:any, moduleName?:any) {
|
|
||||||
return _get(source, ['modules', moduleName], {});
|
|
||||||
}
|
|
||||||
function getConfig(name: any) {
|
|
||||||
const { g_config, pageConfig } = window as any;
|
|
||||||
return (
|
|
||||||
window[name]
|
|
||||||
|| (g_config || {})[name]
|
|
||||||
|| (pageConfig || {})[name]
|
|
||||||
);
|
|
||||||
}
|
|
||||||
// 数据源面板
|
// 数据源面板
|
||||||
function initDataPoolPane() {
|
function initDataPoolPane() {
|
||||||
const dpConfigs = {};
|
const dpConfigs = {};
|
||||||
|
|||||||
@ -13,7 +13,7 @@ export default class MainArea extends Component<{ area: Area<any, Panel | Widget
|
|||||||
render() {
|
render() {
|
||||||
const { area } = this.props;
|
const { area } = this.props;
|
||||||
return (
|
return (
|
||||||
<div className={classNames('lc-main-area')}>
|
<div className={classNames('lc-main-area engine-workspacepane')}>
|
||||||
{area.container.items.map((item) => item.content)}
|
{area.container.items.map((item) => item.content)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -12,7 +12,7 @@ export default class RightArea extends Component<{ area: Area<any, Panel> }> {
|
|||||||
render() {
|
render() {
|
||||||
const { area } = this.props;
|
const { area } = this.props;
|
||||||
return (
|
return (
|
||||||
<div className={classNames('lc-right-area', {
|
<div className={classNames('lc-right-area engine-tabpane', {
|
||||||
'lc-area-visible': area.visible,
|
'lc-area-visible': area.visible,
|
||||||
})}>
|
})}>
|
||||||
<Contents area={area} />
|
<Contents area={area} />
|
||||||
|
|||||||
@ -8,7 +8,7 @@ export default class TopArea extends Component<{ area: Area }> {
|
|||||||
render() {
|
render() {
|
||||||
const { area } = this.props;
|
const { area } = this.props;
|
||||||
return (
|
return (
|
||||||
<div className={classNames("lc-top-area", {
|
<div className={classNames("lc-top-area engine-actionpane", {
|
||||||
'lc-area-visible': area.visible
|
'lc-area-visible': area.visible
|
||||||
})}>
|
})}>
|
||||||
<Contents area={area} />
|
<Contents area={area} />
|
||||||
|
|||||||
@ -84,16 +84,6 @@ class Renderer extends Component<{ renderer: SimulatorRenderer }> {
|
|||||||
const { __id, __desingMode, ...viewProps } = props;
|
const { __id, __desingMode, ...viewProps } = props;
|
||||||
viewProps.componentId = __id;
|
viewProps.componentId = __id;
|
||||||
viewProps._leaf = host.document.getNode(__id);
|
viewProps._leaf = host.document.getNode(__id);
|
||||||
// if (Component.displayName === 'Calendar') {
|
|
||||||
// // debugger
|
|
||||||
// const testProps = {
|
|
||||||
// // defaultDate: undefined,
|
|
||||||
// // dateCellRender:(date: any)=>{return date.date();}
|
|
||||||
// // onSelect:(value:any)=>{console.log(value,'test')}
|
|
||||||
// // defaultMonth: undefined,
|
|
||||||
// };
|
|
||||||
// Object.assign(viewProps, testProps);
|
|
||||||
// }
|
|
||||||
return createElement(
|
return createElement(
|
||||||
Component,
|
Component,
|
||||||
viewProps,
|
viewProps,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user