1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 16:58:06 +08:00
This commit is contained in:
harveyshao 2021-04-26 16:59:55 +08:00
parent a09a7ef922
commit 10c06a51d6
2 changed files with 1 additions and 14 deletions

View File

@ -229,8 +229,7 @@ Volcanos("onaction", {help: "交互数据", list: [], _init: function(can, msg,
carte: function(event, can, list, cb) { carte: function(event, can, list, cb) {
can.menu && can.page.Remove(can, can.menu.first) can.menu && can.page.Remove(can, can.menu.first)
can.menu = can.user.carte(event, can, can.onaction, list, cb) 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.page.Modify(can, can.menu.first, {style: {top: can._target.offsetHeight, left: event.target.offsetLeft}})
can.onmotion.downward(can, can.menu.first, can._target.offsetHeight, 2)
}, },
River: function(can) { can.run({}, ["search", "River.onmotion.toggle"]) }, River: function(can) { can.run({}, ["search", "River.onmotion.toggle"]) },

View File

@ -14,16 +14,8 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg,
}, {style: {left: can._target.offsetWidth}}) }, {style: {left: can._target.offsetWidth}})
}, target) }, 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 } if (index == 0 || [value.hash, value.name].indexOf(can._main_river) > -1) { select = view }
}), select && select.click(), typeof cb == "function" && cb(msg) }), 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) { 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.user.carte(event, can, can.ondetail, ["共享应用", "添加工具", "保存参数", "重命名应用", "删除应用"], function(ev, item, meta) {
can.ondetail[item](event, can, item, river, storm.hash) can.ondetail[item](event, can, item, river, storm.hash)
}, {style: {left: can._target.offsetWidth}}) }, {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() }) }]).first, list.children.length > 0 && list.children[select].click()