This commit is contained in:
yumoqing 2024-04-07 20:53:18 +08:00
parent 7901d7018d
commit c292767a0d
2 changed files with 12 additions and 1 deletions

View File

@ -54,7 +54,10 @@ bricks.MdWidget = class extends bricks.JsWidget {
return this.name || 'mdtext';
}
getValue(){
return {this.getname():this.md_content};
var name = this.getname();
var d = {}
d[name] = this.md_content
return d;
}
setValue(v){
this.md_content = v;

View File

@ -58,6 +58,10 @@ bricks.JsWidget = class {
"y",
"height",
"margin",
"marginLeft",
"marginRight",
"marginTop",
"marginBottom",
"padding",
"align",
"textAlign",
@ -68,6 +72,10 @@ bricks.JsWidget = class {
];
var mapping_keys = {
"flex-shrink":"flexShrink",
"margin-left":"marginLeft",
"margin-right":"marginRight",
"margin-top":"marginTop",
"margin-bottom":"marginBottom",
"z-index":"zIndex",
"overflow-x":"overflowX",
"opveflow-y":"overflowY",