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

@ -283,10 +283,10 @@
"propType": "any"
}
],"configure": {
"component": {
"isContainer": true,
"isModel": true
}
"component": {
"isContainer": true,
"isModel": true
}
}
},
{
@ -1383,6 +1383,11 @@
"name": "rtl",
"propType": "bool"
},
{
"name": "children",
"description": "内容",
"propType": "string"
},
{
"name": "link",
"propType": "string",
@ -1403,11 +1408,6 @@
"name": "className",
"propType": "any"
},
{
"name": "children",
"description": "内容",
"propType": "array"
},
{
"name": "style",
"propType": "object"
@ -11645,8 +11645,19 @@
{
"name": "style",
"propType": "object"
},
{
"name": "children",
"title": "内容",
"propType": "string"
}
]
],
"configure": {
"component": {
"isContainer": true,
"isModel": true
}
}
},
{
"componentName": "Paragraph",
@ -11691,8 +11702,8 @@
]
},
{
"componentName": "Text",
"title": "Text",
"componentName": "Typography.Text",
"title": "Typography.Text",
"docUrl": "",
"screenshot": "",
"npm": {
@ -11750,10 +11761,7 @@
},
{
"name": "children",
"propType": {
"type": "instanceOf",
"value": "node"
}
"propType": "string"
},
{
"name": "rtl",
@ -11764,7 +11772,12 @@
"name": "style",
"propType": "object"
}
]
],
"configure": {
"component": {
"isContainer": true
}
}
},
{
"componentName": "Upload",
@ -13472,7 +13485,10 @@
"screenshot": "",
"schema": {
"componentName": "Typography",
"props": {}
"props": {
"component": "span",
"children": "基于 Ali-Lowcode-Engine 快速打造高生产力的低代码研发平台"
}
}
}
]
@ -13517,9 +13533,7 @@
"componentName": "Breadcrumb.Item",
"props": {
"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 propTarget = ['title', 'label', 'text', 'content'].find(prop => {
const propTarget = ['title', 'label', 'text', 'content', 'children'].find(prop => {
return equalText(getText(node, prop), innerText);
});