Merge branch 'components-panel' of gitlab.alibaba-inc.com:ali-lowcode/ali-lowcode-engine into components-panel

This commit is contained in:
zude.hzd 2020-07-31 15:53:40 +08:00
commit 7b522624d4
3 changed files with 37 additions and 23 deletions

View File

@ -1383,6 +1383,11 @@
"name": "rtl", "name": "rtl",
"propType": "bool" "propType": "bool"
}, },
{
"name": "children",
"description": "内容",
"propType": "string"
},
{ {
"name": "link", "name": "link",
"propType": "string", "propType": "string",
@ -1403,11 +1408,6 @@
"name": "className", "name": "className",
"propType": "any" "propType": "any"
}, },
{
"name": "children",
"description": "内容",
"propType": "array"
},
{ {
"name": "style", "name": "style",
"propType": "object" "propType": "object"
@ -11645,8 +11645,19 @@
{ {
"name": "style", "name": "style",
"propType": "object" "propType": "object"
},
{
"name": "children",
"title": "内容",
"propType": "string"
}
],
"configure": {
"component": {
"isContainer": true,
"isModel": true
}
} }
]
}, },
{ {
"componentName": "Paragraph", "componentName": "Paragraph",
@ -11691,8 +11702,8 @@
] ]
}, },
{ {
"componentName": "Text", "componentName": "Typography.Text",
"title": "Text", "title": "Typography.Text",
"docUrl": "", "docUrl": "",
"screenshot": "", "screenshot": "",
"npm": { "npm": {
@ -11750,10 +11761,7 @@
}, },
{ {
"name": "children", "name": "children",
"propType": { "propType": "string"
"type": "instanceOf",
"value": "node"
}
}, },
{ {
"name": "rtl", "name": "rtl",
@ -11764,7 +11772,12 @@
"name": "style", "name": "style",
"propType": "object" "propType": "object"
} }
] ],
"configure": {
"component": {
"isContainer": true
}
}
}, },
{ {
"componentName": "Upload", "componentName": "Upload",
@ -13472,7 +13485,10 @@
"screenshot": "", "screenshot": "",
"schema": { "schema": {
"componentName": "Typography", "componentName": "Typography",
"props": {} "props": {
"component": "span",
"children": "基于 Ali-Lowcode-Engine 快速打造高生产力的低代码研发平台"
}
} }
} }
] ]
@ -13517,9 +13533,7 @@
"componentName": "Breadcrumb.Item", "componentName": "Breadcrumb.Item",
"props": { "props": {
"prefix": "next-", "prefix": "next-",
"children": [ "children": "一级"
"一级"
]
} }
} }
} }

File diff suppressed because one or more lines are too long

View File

@ -30,7 +30,7 @@ export function liveEditingRule(target: EditingTarget) {
} }
const innerText = targetElement.innerText; const innerText = targetElement.innerText;
const propTarget = ['title', 'label', 'text', 'content'].find(prop => { const propTarget = ['title', 'label', 'text', 'content', 'children'].find(prop => {
return equalText(getText(node, prop), innerText); return equalText(getText(node, prop), innerText);
}); });