fix:数据列点字段编辑 drawer 第一次打开空白

This commit is contained in:
zmq248570 2020-05-05 19:24:08 +08:00
parent 41769d08c2
commit 2701824f6f
5 changed files with 5 additions and 39 deletions

View File

@ -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 = {};

View File

@ -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>
);

View File

@ -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} />

View File

@ -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} />

View File

@ -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,