Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ghsby
o2oa
提交
35470a88
o2oa
项目概览
ghsby
/
o2oa
落后 Fork 源项目 2880 个版本
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
1
Star
1
Fork
0
代码
文件
提交
分支
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,发现更多精彩内容 >>
提交
35470a88
编写于
6月 19, 2020
作者:
U
unknown
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
选择框增加expand\collapse事件
上级
d5683e0a
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
9 addition
and
3 deletion
+9
-3
o2web/source/x_component_Selector/Person.js
o2web/source/x_component_Selector/Person.js
+3
-1
o2web/source/x_component_Selector/Unit.js
o2web/source/x_component_Selector/Unit.js
+4
-2
o2web/source/x_component_Selector/UnitWithType.js
o2web/source/x_component_Selector/UnitWithType.js
+2
-0
未找到文件。
o2web/source/x_component_Selector/Person.js
浏览文件 @
35470a88
...
...
@@ -27,7 +27,7 @@ MWF.xApplication.Selector.Person = new Class({
"
hasShuttle
"
:
false
,
//穿梭按钮
"
searchbarInTopNode
"
:
true
,
//搜索框在标题上还是另起一行
"
hasSelectedSearchbar
"
:
false
,
//已选是不是有搜索框
"
noSelectedContainer
"
:
true
,
//是否有已选项
"
noSelectedContainer
"
:
false
,
//是否隐藏右侧已选区域
"
contentUrl
"
:
""
,
//和默认的页面布局不一样的话,可以传入页面布局HTML URL
"
injectToBody
"
:
false
,
//当传入HTML URL的时候是否插入到document.body, false的时候插入到this.container
...
...
@@ -2395,6 +2395,7 @@ MWF.xApplication.Selector.Person.ItemCategory = new Class({
if
(
!
this
.
fx
.
isRunning
()){
var
display
=
this
.
children
.
getStyle
(
"
display
"
);
if
(
display
===
"
none
"
){
this
.
selector
.
fireEvent
(
"
expand
"
,
[
this
]
);
this
.
children
.
setStyles
({
"
display
"
:
"
block
"
,
"
height
"
:
"
0px
"
...
...
@@ -2403,6 +2404,7 @@ MWF.xApplication.Selector.Person.ItemCategory = new Class({
this
.
actionNode
.
setStyles
(
this
.
selector
.
css
.
selectorItemCategoryActionNode_expand
);
this
.
isExpand
=
true
;
}
else
{
this
.
selector
.
fireEvent
(
"
collapse
"
,
[
this
]
);
if
(
!
this
.
childrenHeight
)
this
.
childrenHeight
=
this
.
children
.
getStyle
(
"
height
"
).
toFloat
();
this
.
fx
.
start
(
"
height
"
,
""
+
this
.
childrenHeight
+
"
px
"
,
"
0px
"
).
chain
(
function
(){
this
.
children
.
setStyles
({
...
...
o2web/source/x_component_Selector/Unit.js
浏览文件 @
35470a88
...
...
@@ -232,9 +232,9 @@ MWF.xApplication.Selector.Unit.Item = new Class({
debugger
;
if
(
!
this
.
selector
.
options
.
expandSubEnable
)
return
;
this
.
isExpand
=
(
this
.
selector
.
options
.
expand
);
if
(
this
.
_hasChild
()
){
if
(
this
.
_hasChild
()
||
this
.
selector
.
options
.
expandEmptyCategory
){
if
(
this
.
selector
.
options
.
expand
){
if
(
this
.
level
===
1
){
if
(
this
.
level
===
1
&&
this
.
_hasChild
()
){
this
.
levelNode
.
setStyles
(
this
.
selector
.
css
.
selectorItemLevelNode_expand
);
this
.
loadSubItems
();
}
else
{
...
...
@@ -246,10 +246,12 @@ MWF.xApplication.Selector.Unit.Item = new Class({
}
this
.
levelNode
.
addEvent
(
"
click
"
,
function
(
e
){
if
(
this
.
isExpand
){
this
.
selector
.
fireEvent
(
"
collapse
"
,
[
this
]
);
this
.
children
.
setStyle
(
"
display
"
,
"
none
"
);
this
.
levelNode
.
setStyles
(
this
.
selector
.
css
.
selectorItemLevelNode_collapse
);
this
.
isExpand
=
false
;
}
else
{
this
.
selector
.
fireEvent
(
"
expand
"
,
[
this
]
);
this
.
loadSubItems
();
this
.
levelNode
.
setStyles
(
this
.
selector
.
css
.
selectorItemLevelNode_expand
);
this
.
isExpand
=
true
;
...
...
o2web/source/x_component_Selector/UnitWithType.js
浏览文件 @
35470a88
...
...
@@ -141,10 +141,12 @@ MWF.xApplication.Selector.UnitWithType.Item = new Class({
}
this
.
levelNode
.
addEvent
(
"
click
"
,
function
(
e
){
if
(
this
.
isExpand
){
this
.
selector
.
fireEvent
(
"
collapse
"
,
[
this
]
);
this
.
children
.
setStyle
(
"
display
"
,
"
none
"
);
this
.
levelNode
.
setStyles
(
this
.
selector
.
css
.
selectorItemLevelNode_collapse
);
this
.
isExpand
=
false
;
}
else
{
this
.
selector
.
fireEvent
(
"
expand
"
,
[
this
]
);
this
.
loadSubItems
();
this
.
levelNode
.
setStyles
(
this
.
selector
.
css
.
selectorItemLevelNode_expand
);
this
.
isExpand
=
true
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录