mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-07 19:17:07 +00:00
修改entry问题
This commit is contained in:
parent
9f9c38c676
commit
7c9dc0495b
@ -13,7 +13,6 @@ export default {
|
|||||||
href: '/',
|
href: '/',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
pluginKey: 'undoRedo',
|
pluginKey: 'undoRedo',
|
||||||
type: 'Custom',
|
type: 'Custom',
|
||||||
|
|||||||
@ -2,14 +2,13 @@ import { Component, MouseEvent, Fragment } from 'react';
|
|||||||
import { shallowIntl, createSetterContent, observer, obx, Title } from '@ali/lowcode-editor-core';
|
import { shallowIntl, createSetterContent, observer, obx, Title } from '@ali/lowcode-editor-core';
|
||||||
import { createContent } from '@ali/lowcode-utils';
|
import { createContent } from '@ali/lowcode-utils';
|
||||||
import { createField } from '../field';
|
import { createField } from '../field';
|
||||||
|
import PopupService, { PopupPipe } from '../popup';
|
||||||
import { SkeletonContext } from '../../context';
|
import { SkeletonContext } from '../../context';
|
||||||
import { SettingField, isSettingField, SettingTopEntry, SettingEntry } from '@ali/lowcode-designer';
|
import { SettingField, isSettingField, SettingTopEntry, SettingEntry } from '@ali/lowcode-designer';
|
||||||
import { Icon } from '@alifd/next';
|
// import { Icon } from '@alifd/next';
|
||||||
import { isSetterConfig, CustomView } from '@ali/lowcode-types';
|
import { isSetterConfig, CustomView } from '@ali/lowcode-types';
|
||||||
import { intl } from '../../locale';
|
import { intl } from '../../locale';
|
||||||
import { Skeleton } from 'editor-skeleton/src/skeleton';
|
import { Skeleton } from 'editor-skeleton/src/skeleton';
|
||||||
import { Skeleton } from '../../skeleton';
|
|
||||||
import { Stage } from '../../widget/stage';
|
|
||||||
function transformStringToFunction(str) {
|
function transformStringToFunction(str) {
|
||||||
if (typeof str !== 'string') return str;
|
if (typeof str !== 'string') return str;
|
||||||
return new Function(`"use strict"; return ${str}`)();
|
return new Function(`"use strict"; return ${str}`)();
|
||||||
@ -227,6 +226,9 @@ export class SettingsPane extends Component<SettingsPaneProps> {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private popupPipe = new PopupPipe();
|
||||||
|
private pipe = this.popupPipe.create();
|
||||||
|
|
||||||
private handleClick = (e: MouseEvent) => {
|
private handleClick = (e: MouseEvent) => {
|
||||||
// compatiable vision stageBox
|
// compatiable vision stageBox
|
||||||
// TODO: optimize these codes
|
// TODO: optimize these codes
|
||||||
@ -268,25 +270,16 @@ export class SettingsPane extends Component<SettingsPaneProps> {
|
|||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { target } = this.props;
|
const { target } = this.props;
|
||||||
|
const items = target.items;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="lc-settings-pane" onClick={this.handleClick}>
|
<div className="lc-settings-pane" onClick={this.handleClick}>
|
||||||
{this.currentStage && (
|
{/* todo: add head for single use */}
|
||||||
<div className="lc-setting-stage-back">
|
<PopupService popupPipe={this.popupPipe}>
|
||||||
<Icon
|
<div className="lc-settings-content">
|
||||||
className="lc-setting-stage-back-icon"
|
{items.map((item, index) => createSettingFieldView(item, target, index))}
|
||||||
type="arrow-left"
|
|
||||||
size="xs"
|
|
||||||
onClick={this.popStage.bind(this)}
|
|
||||||
/>
|
|
||||||
<Title title={this.currentStage.title} />
|
|
||||||
</div>
|
</div>
|
||||||
)}
|
</PopupService>
|
||||||
<div className="lc-settings-content">
|
|
||||||
{this.currentStage
|
|
||||||
? this.currentStage.content
|
|
||||||
: target.items.map((item, index) => createSettingFieldView(item, target, index))}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,7 +18,7 @@ export interface IState {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default class UndoRedo extends PureComponent<IProps, IState> {
|
export default class UndoRedo extends PureComponent<IProps, IState> {
|
||||||
public static display = 'LowcodeUndoRedo';
|
static displayName = 'LowcodeUndoRedo';
|
||||||
|
|
||||||
private history: any;
|
private history: any;
|
||||||
|
|
||||||
|
|||||||
@ -53,5 +53,5 @@
|
|||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://registry.npm.alibaba-inc.com"
|
"registry": "http://registry.npm.alibaba-inc.com"
|
||||||
},
|
},
|
||||||
"homepage": "https:/unpkg.alibaba-inc.com/@ali/lowcode-react-renderer@0.8.17/build/index.html"
|
"homepage": "https://unpkg.alibaba-inc.com/@ali/lowcode-react-renderer@0.8.17/build/index.html"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user