mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 01:21:58 +00:00
fix:数据列点字段编辑 drawer 第一次打开空白
This commit is contained in:
parent
41769d08c2
commit
2701824f6f
@ -102,10 +102,7 @@ function initDemoPanes() {
|
||||
props: {
|
||||
align: 'bottom',
|
||||
icon: 'set',
|
||||
description: '设置',
|
||||
// onClick:()=>{
|
||||
// Engine.Pages.currentPage.root.select();
|
||||
// }
|
||||
description: '设置'
|
||||
},
|
||||
});
|
||||
skeleton.add({
|
||||
@ -115,16 +112,7 @@ function initDemoPanes() {
|
||||
props: {
|
||||
align: 'bottom',
|
||||
icon: 'help',
|
||||
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');
|
||||
}
|
||||
description: '帮助'
|
||||
},
|
||||
});
|
||||
|
||||
@ -200,18 +188,6 @@ async function initTrunkPane() {
|
||||
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() {
|
||||
const dpConfigs = {};
|
||||
|
||||
@ -13,7 +13,7 @@ export default class MainArea extends Component<{ area: Area<any, Panel | Widget
|
||||
render() {
|
||||
const { area } = this.props;
|
||||
return (
|
||||
<div className={classNames('lc-main-area')}>
|
||||
<div className={classNames('lc-main-area engine-workspacepane')}>
|
||||
{area.container.items.map((item) => item.content)}
|
||||
</div>
|
||||
);
|
||||
|
||||
@ -12,7 +12,7 @@ export default class RightArea extends Component<{ area: Area<any, Panel> }> {
|
||||
render() {
|
||||
const { area } = this.props;
|
||||
return (
|
||||
<div className={classNames('lc-right-area', {
|
||||
<div className={classNames('lc-right-area engine-tabpane', {
|
||||
'lc-area-visible': area.visible,
|
||||
})}>
|
||||
<Contents area={area} />
|
||||
|
||||
@ -8,7 +8,7 @@ export default class TopArea extends Component<{ area: Area }> {
|
||||
render() {
|
||||
const { area } = this.props;
|
||||
return (
|
||||
<div className={classNames("lc-top-area", {
|
||||
<div className={classNames("lc-top-area engine-actionpane", {
|
||||
'lc-area-visible': area.visible
|
||||
})}>
|
||||
<Contents area={area} />
|
||||
|
||||
@ -84,16 +84,6 @@ class Renderer extends Component<{ renderer: SimulatorRenderer }> {
|
||||
const { __id, __desingMode, ...viewProps } = props;
|
||||
viewProps.componentId = __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(
|
||||
Component,
|
||||
viewProps,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user