mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-15 10:48:17 +00:00
1. dialog 设置为 container,解决无法拖动 form 到 container 的问题;
2. page 设置 style prop 解决 page 无法设置样式的问题; 3. 解决 render error 无法找到 engine 对象的 bug
This commit is contained in:
parent
8b6cb03f6f
commit
3e85c283f4
@ -25,6 +25,12 @@
|
|||||||
{
|
{
|
||||||
"componentName": "Page",
|
"componentName": "Page",
|
||||||
"title": "Page",
|
"title": "Page",
|
||||||
|
"props": [
|
||||||
|
{
|
||||||
|
"name": "style",
|
||||||
|
"propType": "object"
|
||||||
|
}
|
||||||
|
],
|
||||||
"configure": {
|
"configure": {
|
||||||
"events": {
|
"events": {
|
||||||
"supportedLifecycles": [
|
"supportedLifecycles": [
|
||||||
@ -4265,7 +4271,12 @@
|
|||||||
"name": "style",
|
"name": "style",
|
||||||
"propType": "object"
|
"propType": "object"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"configure": {
|
||||||
|
"component": {
|
||||||
|
"isContainer": true
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"componentName": "Inner",
|
"componentName": "Inner",
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
"ref":"outterView",
|
"ref":"outterView",
|
||||||
"autoLoading":true,
|
"autoLoading":true,
|
||||||
"style":{
|
"style":{
|
||||||
"padding":20
|
"padding": "0 5px 0 5px"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"fileName":"test",
|
"fileName":"test",
|
||||||
|
|||||||
@ -144,7 +144,6 @@ export class SettingsPrimaryPane extends Component<{ editor: Editor }> {
|
|||||||
animation={false}
|
animation={false}
|
||||||
excessMode="dropdown"
|
excessMode="dropdown"
|
||||||
contentClassName="lc-settings-tabs-content"
|
contentClassName="lc-settings-tabs-content"
|
||||||
disableKeyboard={true}
|
|
||||||
extra={this.renderBreadcrumb()}
|
extra={this.renderBreadcrumb()}
|
||||||
>
|
>
|
||||||
{tabs}
|
{tabs}
|
||||||
|
|||||||
@ -211,11 +211,11 @@ export default class BaseRender extends PureComponent {
|
|||||||
// parentInfo 父组件的信息,包含schema和Comp
|
// parentInfo 父组件的信息,包含schema和Comp
|
||||||
// idx 若为循环渲染的循环Index
|
// idx 若为循环渲染的循环Index
|
||||||
__createVirtualDom = (schema, self, parentInfo, idx) => {
|
__createVirtualDom = (schema, self, parentInfo, idx) => {
|
||||||
|
const { engine } = this.context || {};
|
||||||
try {
|
try {
|
||||||
if (!schema) return null;
|
if (!schema) return null;
|
||||||
const { __appHelper: appHelper, __components: components = {} } =
|
const { __appHelper: appHelper, __components: components = {} } =
|
||||||
this.props || {};
|
this.props || {};
|
||||||
const { engine } = this.context || {};
|
|
||||||
if (isJSExpression(schema)) {
|
if (isJSExpression(schema)) {
|
||||||
return parseExpression(schema, self);
|
return parseExpression(schema, self);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -109,7 +109,7 @@ class Renderer extends Component<{ renderer: SimulatorRenderer }> {
|
|||||||
viewProps._leaf = leaf;
|
viewProps._leaf = leaf;
|
||||||
viewProps._componentName = leaf?.componentName;
|
viewProps._componentName = leaf?.componentName;
|
||||||
// 如果是容器 && 无children && 高宽为空 增加一个占位容器,方便拖动
|
// 如果是容器 && 无children && 高宽为空 增加一个占位容器,方便拖动
|
||||||
if (leaf.isContainer() && children == null && !viewProps.style){
|
if (leaf?.isContainer() && children == null && !viewProps.style){
|
||||||
Object.assign(viewProps, {
|
Object.assign(viewProps, {
|
||||||
style:{
|
style:{
|
||||||
height:'100px',
|
height:'100px',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user