mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-18 21:38:14 +00:00
Typography 支持原地编辑
This commit is contained in:
parent
1dcb5ab4d1
commit
2162664741
@ -253,10 +253,10 @@
|
|||||||
"propType": "any"
|
"propType": "any"
|
||||||
}
|
}
|
||||||
],"configure": {
|
],"configure": {
|
||||||
"component": {
|
"component": {
|
||||||
"isContainer": true,
|
"isContainer": true,
|
||||||
"isModel": true
|
"isModel": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -1353,6 +1353,11 @@
|
|||||||
"name": "rtl",
|
"name": "rtl",
|
||||||
"propType": "bool"
|
"propType": "bool"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "children",
|
||||||
|
"description": "内容",
|
||||||
|
"propType": "string"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "link",
|
"name": "link",
|
||||||
"propType": "string",
|
"propType": "string",
|
||||||
@ -1373,11 +1378,6 @@
|
|||||||
"name": "className",
|
"name": "className",
|
||||||
"propType": "any"
|
"propType": "any"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "children",
|
|
||||||
"description": "内容",
|
|
||||||
"propType": "array"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "style",
|
"name": "style",
|
||||||
"propType": "object"
|
"propType": "object"
|
||||||
@ -11615,8 +11615,19 @@
|
|||||||
{
|
{
|
||||||
"name": "style",
|
"name": "style",
|
||||||
"propType": "object"
|
"propType": "object"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "children",
|
||||||
|
"title": "内容",
|
||||||
|
"propType": "string"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"configure": {
|
||||||
|
"component": {
|
||||||
|
"isContainer": true,
|
||||||
|
"isModel": true
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"componentName": "Paragraph",
|
"componentName": "Paragraph",
|
||||||
@ -11661,8 +11672,8 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"componentName": "Text",
|
"componentName": "Typography.Text",
|
||||||
"title": "Text",
|
"title": "Typography.Text",
|
||||||
"docUrl": "",
|
"docUrl": "",
|
||||||
"screenshot": "",
|
"screenshot": "",
|
||||||
"npm": {
|
"npm": {
|
||||||
@ -11720,10 +11731,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "children",
|
"name": "children",
|
||||||
"propType": {
|
"propType": "string"
|
||||||
"type": "instanceOf",
|
|
||||||
"value": "node"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "rtl",
|
"name": "rtl",
|
||||||
@ -11734,7 +11742,12 @@
|
|||||||
"name": "style",
|
"name": "style",
|
||||||
"propType": "object"
|
"propType": "object"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"configure": {
|
||||||
|
"component": {
|
||||||
|
"isContainer": true
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"componentName": "Upload",
|
"componentName": "Upload",
|
||||||
@ -13442,7 +13455,10 @@
|
|||||||
"screenshot": "",
|
"screenshot": "",
|
||||||
"schema": {
|
"schema": {
|
||||||
"componentName": "Typography",
|
"componentName": "Typography",
|
||||||
"props": {}
|
"props": {
|
||||||
|
"component": "span",
|
||||||
|
"children": "基于 Ali-Lowcode-Engine 快速打造高生产力的低代码研发平台"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -13487,9 +13503,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
@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user