mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-02-28 12:50:38 +00:00
Merge branch 'polyfill/vision' of gitlab.alibaba-inc.com:ali-lowcode/ali-lowcode-engine into polyfill/vision
This commit is contained in:
commit
36e4b564b1
@ -10,6 +10,7 @@ import { Skeleton } from './skeleton/skeleton';
|
|||||||
// demo
|
// demo
|
||||||
import Preview from '@ali/lowcode-plugin-sample-preview';
|
import Preview from '@ali/lowcode-plugin-sample-preview';
|
||||||
import { createElement } from 'react';
|
import { createElement } from 'react';
|
||||||
|
import { Button } from '@alifd/next';
|
||||||
|
|
||||||
registerSetters();
|
registerSetters();
|
||||||
|
|
||||||
@ -37,13 +38,12 @@ skeleton.leftArea.add({
|
|||||||
type: 'PanelDock',
|
type: 'PanelDock',
|
||||||
props: {
|
props: {
|
||||||
align: 'top',
|
align: 'top',
|
||||||
icon: 'smile',
|
icon: 'toggle-right',
|
||||||
description: '大纲树',
|
description: '大纲树',
|
||||||
},
|
},
|
||||||
content: Pane,
|
content: Pane,
|
||||||
panelProps: {
|
panelProps: {
|
||||||
area: 'leftFixedArea',
|
area: 'leftFixedArea',
|
||||||
// title: 'awefawe',
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -55,8 +55,8 @@ skeleton.leftArea.add({
|
|||||||
type: 'Dock',
|
type: 'Dock',
|
||||||
props: {
|
props: {
|
||||||
align: 'bottom',
|
align: 'bottom',
|
||||||
icon: 'smile',
|
icon: 'set',
|
||||||
description: 'smile1',
|
description: '设置',
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
skeleton.leftArea.add({
|
skeleton.leftArea.add({
|
||||||
@ -64,8 +64,8 @@ skeleton.leftArea.add({
|
|||||||
type: 'Dock',
|
type: 'Dock',
|
||||||
props: {
|
props: {
|
||||||
align: 'bottom',
|
align: 'bottom',
|
||||||
icon: 'smile',
|
icon: 'help',
|
||||||
description: 'smile1',
|
description: '帮助',
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -75,13 +75,40 @@ skeleton.topArea.add({
|
|||||||
props: {
|
props: {
|
||||||
align: "right",
|
align: "right",
|
||||||
},
|
},
|
||||||
content: Preview,
|
content: createElement(Button, {
|
||||||
|
size: 'small',
|
||||||
|
children: '预览'
|
||||||
|
}),
|
||||||
|
});
|
||||||
|
skeleton.topArea.add({
|
||||||
|
type: "Dock",
|
||||||
|
name: 'publish',
|
||||||
|
props: {
|
||||||
|
align: "right",
|
||||||
|
},
|
||||||
|
content: createElement(Button, {
|
||||||
|
size: 'small',
|
||||||
|
type: 'secondary',
|
||||||
|
children: '发布'
|
||||||
|
}),
|
||||||
|
});
|
||||||
|
skeleton.topArea.add({
|
||||||
|
type: "Dock",
|
||||||
|
name: 'save',
|
||||||
|
props: {
|
||||||
|
align: "right",
|
||||||
|
},
|
||||||
|
content: createElement(Button, {
|
||||||
|
size: 'small',
|
||||||
|
type: 'primary',
|
||||||
|
children: '保存'
|
||||||
|
}),
|
||||||
});
|
});
|
||||||
skeleton.topArea.add({
|
skeleton.topArea.add({
|
||||||
type: "Dock",
|
type: "Dock",
|
||||||
name: 'preview4',
|
name: 'preview4',
|
||||||
props: {
|
props: {
|
||||||
align: "right",
|
align: "center",
|
||||||
},
|
},
|
||||||
content: createElement('img', {
|
content: createElement('img', {
|
||||||
src: "https://img.alicdn.com/tfs/TB1WW.VC.z1gK0jSZLeXXb9kVXa-486-64.png",
|
src: "https://img.alicdn.com/tfs/TB1WW.VC.z1gK0jSZLeXXb9kVXa-486-64.png",
|
||||||
@ -98,21 +125,21 @@ skeleton.topArea.add({
|
|||||||
align: "left",
|
align: "left",
|
||||||
},
|
},
|
||||||
content: createElement('img', {
|
content: createElement('img', {
|
||||||
src: "https://img.alicdn.com/tfs/TB11koUC8v0gK0jSZKbXXbK2FXa-426-76.png",
|
src: "https://img.alicdn.com/tfs/TB1zqBfDlr0gK0jSZFnXXbRRXXa-440-64.png",
|
||||||
style: {
|
style: {
|
||||||
height: 38
|
height: 32
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
skeleton.topArea.add({
|
// skeleton.topArea.add({
|
||||||
type: "Dock",
|
// type: "Dock",
|
||||||
name: 'preview2',
|
// name: 'preview2',
|
||||||
props: {
|
// props: {
|
||||||
align: "center",
|
// align: "center",
|
||||||
title: {
|
// title: {
|
||||||
label: "345",
|
// label: "345",
|
||||||
icon: "smile",
|
// icon: "smile",
|
||||||
tip: "123123123"
|
// tip: "123123123"
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
})
|
// })
|
||||||
|
|||||||
@ -28,9 +28,9 @@ class Contents extends Component<{ area: Area }> {
|
|||||||
if (item.align === 'center') {
|
if (item.align === 'center') {
|
||||||
center.push(item.content);
|
center.push(item.content);
|
||||||
} else if (item.align === 'left') {
|
} else if (item.align === 'left') {
|
||||||
right.push(item.content);
|
|
||||||
} else {
|
|
||||||
left.push(item.content);
|
left.push(item.content);
|
||||||
|
} else {
|
||||||
|
right.push(item.content);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return (
|
return (
|
||||||
|
|||||||
@ -185,7 +185,22 @@ body {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-bottom: 2px;
|
margin-bottom: 2px;
|
||||||
padding: 8px 16px;
|
padding: 8px 12px 8px 16px;
|
||||||
|
.lc-top-area-left{}
|
||||||
|
.lc-top-area-center{
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
margin-right: 8px;
|
||||||
|
}
|
||||||
|
.lc-top-area-right{
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
>* {
|
||||||
|
margin-left: 4px;
|
||||||
|
margin-right: 4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.lc-workbench-body {
|
.lc-workbench-body {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user