Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
浙江兰德纵横网络技术股份有限公司
o2oa
提交
b8cd391b
o2oa
项目概览
浙江兰德纵横网络技术股份有限公司
/
o2oa
通知
338
Star
10
Fork
6
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
o2oa
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b8cd391b
编写于
9月 09, 2021
作者:
NoSubject
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'cherry-pick-
9cc2840f
' into 'release'
ElementUI的Elicon组件修复 See merge request o2oa/o2oa!5343
上级
31566bf8
eaad42c8
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
60 addition
and
33 deletion
+60
-33
o2web/source/x_component_process_FormDesigner/Module/Elicon.js
.../source/x_component_process_FormDesigner/Module/Elicon.js
+16
-1
o2web/source/x_component_process_Xform/Elicon.js
o2web/source/x_component_process_Xform/Elicon.js
+44
-32
未找到文件。
o2web/source/x_component_process_FormDesigner/Module/Elicon.js
浏览文件 @
b8cd391b
...
...
@@ -64,5 +64,20 @@ MWF.xApplication.process.FormDesigner.Module.Elicon = MWF.FCElicon = new Class({
return
this
.
copyNode
;
},
setPropertyName
:
function
(){},
setPropertyId
:
function
(){}
setPropertyId
:
function
(){},
_preprocessingModuleData
:
function
(){
this
.
node
.
clearStyles
();
//if (this.initialStyles) this.node.setStyles(this.initialStyles);
this
.
json
.
recoveryStyles
=
Object
.
clone
(
this
.
json
.
styles
);
if
(
this
.
json
.
recoveryStyles
)
Object
.
each
(
this
.
json
.
recoveryStyles
,
function
(
value
,
key
){
if
((
value
.
indexOf
(
"
x_processplatform_assemble_surface
"
)
!=-
1
||
value
.
indexOf
(
"
x_portal_assemble_surface
"
)
!=-
1
)){
//需要运行时处理
}
else
{
this
.
node
.
setStyle
(
key
,
value
);
delete
this
.
json
.
styles
[
key
];
}
}.
bind
(
this
));
this
.
json
.
preprocessing
=
"
y
"
;
},
});
o2web/source/x_component_process_Xform/Elicon.js
浏览文件 @
b8cd391b
...
...
@@ -16,6 +16,17 @@ MWF.xApplication.process.Xform.Elicon = MWF.APPElicon = new Class(
{
Implements
:
[
Events
],
Extends
:
MWF
.
APP$Module
,
_loadVue
:
function
(
callback
){
if
(
!
window
.
Vue
){
var
vue
=
(
o2
.
session
.
isDebugger
)
?
"
vue_develop
"
:
"
vue
"
;
o2
.
loadAll
({
"
css
"
:
"
../o2_lib/vue/element/index.css
"
,
"
js
"
:
[
vue
,
"
elementui
"
]},
{
"
sequence
"
:
true
},
callback
);
}
else
{
if
(
callback
)
callback
();
}
},
_queryLoaded
:
function
(){
this
.
_loadVue
();
}
// load: function(){
// this._loadModuleEvents();
...
...
@@ -69,9 +80,9 @@ MWF.xApplication.process.Xform.Elicon = MWF.APPElicon = new Class(
// }
// };
// },
_createVueData
:
function
(){
return
this
.
json
;
},
//
_createVueData: function(){
//
return this.json;
//
},
// _afterMounted: function(el){
// this.node = el;
// this.node.set({
...
...
@@ -83,33 +94,34 @@ MWF.xApplication.process.Xform.Elicon = MWF.APPElicon = new Class(
// this.fireEvent("postLoad");
// this.fireEvent("load");
// },
_createElementHtml
:
function
(){
var
html
=
"
<i
"
;
html
+=
"
:class=
\"
icon
\"
"
;
if
(
this
.
json
.
elProperties
){
Object
.
keys
(
this
.
json
.
elProperties
).
forEach
(
function
(
k
){
if
(
this
.
json
.
elProperties
[
k
])
html
+=
"
"
+
k
+
"
=
\"
"
+
this
.
json
.
elProperties
[
k
]
+
"
\"
"
;
},
this
);
}
// var styles = {};
// if (this.json.iconSize) styles["font-size"] = this.json.iconSize+"px";
// if (this.json.iconColor) styles["color"] = this.json.iconColor;
// styles = Object.merge(styles, this.json.elStyles);
//
// if (styles){
// var style = "";
// Object.keys(styles).forEach(function(k){
// if (styles[k]) style += k+":"+styles[k]+";";
// }, this);
// html += " style=\""+style+"\"";
// }
html
+=
"
:style=
\"
[elStyles, {fontSize: iconSize+'px', color: iconColor}]
\"
"
;
html
+=
"
></i>
"
;
return
html
;
}
// _createElementHtml: function(){
// debugger;
// var html = "<i";
// html += " :class=\"icon\"";
//
// if (this.json.elProperties){
// Object.keys(this.json.elProperties).forEach(function(k){
// if (this.json.elProperties[k]) html += " "+k+"=\""+this.json.elProperties[k]+"\"";
// }, this);
// }
//
// // var styles = {};
// // if (this.json.iconSize) styles["font-size"] = this.json.iconSize+"px";
// // if (this.json.iconColor) styles["color"] = this.json.iconColor;
// // styles = Object.merge(styles, this.json.elStyles);
// //
// // if (styles){
// // var style = "";
// // Object.keys(styles).forEach(function(k){
// // if (styles[k]) style += k+":"+styles[k]+";";
// // }, this);
// // html += " style=\""+style+"\"";
// // }
//
// html += " :style=\"[elStyles, {fontSize: iconSize+'px', color: iconColor}]\"";
//
//
// html += "></i>";
// return html;
// }
});
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录