提交 a572fc2b 编写于 作者: U unknown

meeting语言包整理

上级 43d621b0
...@@ -17,7 +17,7 @@ o2.widget.Tree = new Class({ ...@@ -17,7 +17,7 @@ o2.widget.Tree = new Class({
"icon": "icon", "icon": "icon",
"style": "", "style": "",
"sub": "sub", "sub": "sub",
"defalut" : "defalut" "default" : "default"
}, },
initialize: function(container, options){ initialize: function(container, options){
this.setOptions(options); this.setOptions(options);
...@@ -76,6 +76,7 @@ o2.widget.Tree = new Class({ ...@@ -76,6 +76,7 @@ o2.widget.Tree = new Class({
if (mapping.icon) this.jsonMapping.icon = mapping.icon; if (mapping.icon) this.jsonMapping.icon = mapping.icon;
if (mapping.style) this.jsonMapping.style = mapping.style; if (mapping.style) this.jsonMapping.style = mapping.style;
if (mapping.sub) this.jsonMapping.sub = mapping.sub; if (mapping.sub) this.jsonMapping.sub = mapping.sub;
if (mapping.default) this.jsonMapping.default = mapping.default;
}, },
loadJsonTree: function(treeJson, tree, node){ loadJsonTree: function(treeJson, tree, node){
...@@ -87,6 +88,7 @@ o2.widget.Tree = new Class({ ...@@ -87,6 +88,7 @@ o2.widget.Tree = new Class({
if (item[this.jsonMapping.action]) options.action = item[this.jsonMapping.action]; if (item[this.jsonMapping.action]) options.action = item[this.jsonMapping.action];
if (item[this.jsonMapping.style]) options.style = item[this.jsonMapping.style]; if (item[this.jsonMapping.style]) options.style = item[this.jsonMapping.style];
if (item[this.jsonMapping.icon]) options.icon = item[this.jsonMapping.icon]; if (item[this.jsonMapping.icon]) options.icon = item[this.jsonMapping.icon];
if (item[this.jsonMapping.default]) options.default = item[this.jsonMapping.default];
var treeNode = node.appendChild(options); var treeNode = node.appendChild(options);
...@@ -156,7 +158,7 @@ o2.widget.Tree = new Class({ ...@@ -156,7 +158,7 @@ o2.widget.Tree = new Class({
obj[this.jsonMapping.text] = options.text; obj[this.jsonMapping.text] = options.text;
obj[this.jsonMapping.action] = options.action; obj[this.jsonMapping.action] = options.action;
obj[this.jsonMapping.style] = options.style; obj[this.jsonMapping.style] = options.style;
obj[this.jsonMapping.defalut] = options.defalut; obj[this.jsonMapping.default] = options.default;
obj[this.jsonMapping.icon] = (options.icon) ? options.icon : "none"; obj[this.jsonMapping.icon] = (options.icon) ? options.icon : "none";
return obj; return obj;
} }
......
...@@ -62,9 +62,12 @@ ...@@ -62,9 +62,12 @@
* <b>textValue</b> :文本。<br/> * <b>textValue</b> :文本。<br/>
* <b>numberValue</b> :数字。<br/> * <b>numberValue</b> :数字。<br/>
* <b>dateTimeValue</b> :日期时间。<br/> * <b>dateTimeValue</b> :日期时间。<br/>
* <b>dateValue</b> :仅日期。<br/>
* <b>timeValue</b> :仅时间。<br/>
* <b>booleanValue</b> :布尔值。<br/> * <b>booleanValue</b> :布尔值。<br/>
* </div> * </div>
* @property {(String|Number|Boolean)} value - 过滤的值,根据formatType提供匹配的数据类型的值,如果是dateTimeValue数据类型,则提供日期格式的字符串,格式如“YYYY-MM-DD HH:MM:SS”。 * @property {(String|Number|Boolean)} value - 过滤的值,根据formatType提供匹配的数据类型的值。如果是dateTimeValue数据类型,则提供日期格式的字符串,格式如“YYYY-MM-DD HH:MM:SS”。
* 如果是dateValue数据类型,则提供日期格式的字符串,格式如“YYYY-MM-DD”。如果是timeValue数据类型,则提供时间格式的字符串,格式如“HH:MM:SS”。
* @example * @example
*{ *{
* "path":"o.title", * "path":"o.title",
......
...@@ -65,6 +65,22 @@ MWF.xApplication.query.StatementDesigner.Statement = new Class({ ...@@ -65,6 +65,22 @@ MWF.xApplication.query.StatementDesigner.Statement = new Class({
} }
}.bind(this), 60000); }.bind(this), 60000);
}, },
getDefaultEditorData: function(){
return {
"javascriptEditor": {
"monaco_theme": "vs",
"fontSize" : "12px",
"editor": "monaco"
}
};
// return {
// "javascriptEditor": {
// "theme": "tomorrow",
// "fontSize" : "12px",
// "editor": "ace"
// }
// };
},
getEditorTheme: function(callback){ getEditorTheme: function(callback){
if (!o2.editorData){ if (!o2.editorData){
o2.UD.getData("editor", function(json){ o2.UD.getData("editor", function(json){
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册