mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 08:48:06 +08:00
opt some
This commit is contained in:
parent
a09a7ef922
commit
10c06a51d6
@ -229,8 +229,7 @@ Volcanos("onaction", {help: "交互数据", list: [], _init: function(can, msg,
|
||||
carte: function(event, can, list, cb) {
|
||||
can.menu && can.page.Remove(can, can.menu.first)
|
||||
can.menu = can.user.carte(event, can, can.onaction, list, cb)
|
||||
can.page.Modify(can, can.menu.first, {style: {top: -list.length*15, left: event.target.offsetLeft}})
|
||||
can.onmotion.downward(can, can.menu.first, can._target.offsetHeight, 2)
|
||||
can.page.Modify(can, can.menu.first, {style: {top: can._target.offsetHeight, left: event.target.offsetLeft}})
|
||||
},
|
||||
|
||||
River: function(can) { can.run({}, ["search", "River.onmotion.toggle"]) },
|
||||
|
@ -14,16 +14,8 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg,
|
||||
}, {style: {left: can._target.offsetWidth}})
|
||||
}, target)
|
||||
|
||||
can.page.Modify(can, view, {onmouseenter: function(event) {
|
||||
can.onaction.carte(event, can, can.ondetail.list)
|
||||
}})
|
||||
|
||||
if (index == 0 || [value.hash, value.name].indexOf(can._main_river) > -1) { select = view }
|
||||
}), select && select.click(), typeof cb == "function" && cb(msg)
|
||||
|
||||
can.page.Modify(can, can._output, {onmouseover: function(event) {
|
||||
can.menu && can.page.Remove(can, can.menu.first)
|
||||
}})
|
||||
},
|
||||
})
|
||||
Volcanos("onengine", {help: "解析引擎", list: [], engine: function(event, can, msg, panel, cmds, cb) {
|
||||
@ -78,10 +70,6 @@ Volcanos("onaction", {help: "控件交互", list: [], _init: function(can, msg,
|
||||
can.user.carte(event, can, can.ondetail, ["共享应用", "添加工具", "保存参数", "重命名应用", "删除应用"], function(ev, item, meta) {
|
||||
can.ondetail[item](event, can, item, river, storm.hash)
|
||||
}, {style: {left: can._target.offsetWidth}})
|
||||
}, _init: function(view) {
|
||||
can.page.Modify(can, view, {onmouseenter: function(event) {
|
||||
can.onaction.carte(event, can, ["共享应用", "添加工具", "保存参数", "重命名应用", "删除应用"])
|
||||
}})
|
||||
}}
|
||||
}) }]).first, list.children.length > 0 && list.children[select].click()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user