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'; return this.name || 'mdtext';
} }
getValue(){ getValue(){
return {this.getname():this.md_content}; var name = this.getname();
var d = {}
d[name] = this.md_content
return d;
} }
setValue(v){ setValue(v){
this.md_content = v; this.md_content = v;

View File

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