1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 08:48:06 +08:00
This commit is contained in:
harveyshao 2021-05-08 21:48:33 +08:00
parent 0c176707b8
commit b38441ed1f
4 changed files with 11 additions and 6 deletions

View File

@ -276,7 +276,7 @@ Volcanos("onaction", {help: "交互数据", list: [], _init: function(can, msg,
logout: function(event, can) { can.user.logout(can) },
River: function(can) { can.run({}, [can._SEARCH, "River.onmotion.toggle"]) },
Footer: function(can) { can.run({}, [can._SEARCH, "River.onmotion.toggle"]) },
Footer: function(can) { can.run({}, [can._SEARCH, "Footer.onmotion.toggle"]) },
})
Volcanos("onexport", {help: "导出数据", list: [],
height: function(can) { return can._target.offsetHeight },

View File

@ -1,7 +1,8 @@
fieldset.float.inner.editor {
/* background-color:#332f1ecf; */
z-index:10;
}
fieldset.float.inner.editor div.output {
background-color:#332f1ecf;
max-width:800px;
/* max-width:800px; */
}

View File

@ -136,15 +136,19 @@ Volcanos("ondetail", {help: "用户交互", list: [],
return
}
can.ondetail._show(event, can, [can.dir_root, tree.file, tree.line])
can.ondetail.plugin(event, can, [can.dir_root, tree.file, tree.line])
},
_show: function(event, can, args) {
plugin: function(event, can, args) {
can.onappend.plugin(can, {type: "float", index: "web.code.inner", args: args, _action: ["关闭"]}, function(sub) {
can.page.Modify(can, sub._target, {style: {position: "fixed"}})
sub.run = function(event, cmds, cb) {
can.run(event, ["action", "inner"].concat(cmds), cb, true)
can.onlayout.figure(event, sub, sub._target)
can.search(["Action.onexport.size"], function(msg, left, top, width, height) { left = left||0
can.page.Modify(can, sub._target, {style: {position: "fixed", left: left}})
can.page.Modify(can, sub._output, {style: {"max-width": width}})
})
}
})
},

View File

@ -82,7 +82,7 @@ var Volcanos = shy("火山架", {args: {}, data: {}, pack: {}, libs: [], cache:
get: function(target, field) {
return can.run({}, ["search", target+".onexport."+field])
},
search: function(cmds, cb) { can.run({}, ["search"].concat(cmds), cb) },
search: function(cmds, cb) { can.run({}, ["search"].concat(cmds), cb, true) },
Conf: function(key, value) { return can.core.Value(can._conf, key, value) }, _conf: {},
}; can = can || {}; for (var k in proto) { can.hasOwnProperty(k) || (can[k] = proto[k]) }