mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 08:48:06 +08:00
opt some
This commit is contained in:
parent
e51da4f90a
commit
992f8cf4a8
2
frame.js
2
frame.js
@ -61,7 +61,7 @@ Volcanos("onengine", {help: "搜索引擎", list: [], _init: function(can, meta,
|
|||||||
arguments.callee.meta[name] = (arguments.callee.meta[name]||[]).concat(cb)
|
arguments.callee.meta[name] = (arguments.callee.meta[name]||[]).concat(cb)
|
||||||
}),
|
}),
|
||||||
signal: shy("触发事件", function(can, name, msg) { msg = msg||can.request()
|
signal: shy("触发事件", function(can, name, msg) { msg = msg||can.request()
|
||||||
can.misc.Log("signal", name, msg)
|
name == "onremote"? can.misc.Log("signal", name, msg.Option("_msg")): can.misc.Log("signal", name, msg)
|
||||||
can.core.List(can.onengine.listen.meta[name], function(cb) {
|
can.core.List(can.onengine.listen.meta[name], function(cb) {
|
||||||
can.core.CallFunc(cb, {msg: msg})
|
can.core.CallFunc(cb, {msg: msg})
|
||||||
})
|
})
|
||||||
|
@ -227,9 +227,6 @@ fieldset>div.legend {
|
|||||||
background-color:darkcyan;
|
background-color:darkcyan;
|
||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
}
|
}
|
||||||
fieldset>div.legend {
|
|
||||||
background-color:honeydew;
|
|
||||||
}
|
|
||||||
fieldset>form.option {
|
fieldset>form.option {
|
||||||
float:left;
|
float:left;
|
||||||
display:contents;
|
display:contents;
|
||||||
@ -572,6 +569,9 @@ body.white table input[type=button][value=启动] {
|
|||||||
background:#52ce78;
|
background:#52ce78;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body.white fieldset>div.legend {
|
||||||
|
background-color:honeydew;
|
||||||
|
}
|
||||||
body.white fieldset>div.status>div.item>label {
|
body.white fieldset>div.status>div.item>label {
|
||||||
font-size:10px; color:#cefbfbe0;
|
font-size:10px; color:#cefbfbe0;
|
||||||
}
|
}
|
||||||
|
@ -98,6 +98,7 @@ Volcanos("onaction", {help: "交互操作", list: [
|
|||||||
|
|
||||||
var msg = can.request(event, {link: can.user.MergeURL(can, args)})
|
var msg = can.request(event, {link: can.user.MergeURL(can, args)})
|
||||||
can.search(event, ["Header.onaction.share"])
|
can.search(event, ["Header.onaction.share"])
|
||||||
|
can.user.copy(event, can, msg.Option("link"))
|
||||||
},
|
},
|
||||||
"生成脚本": function(event, can, button) { var conf = can.Conf()
|
"生成脚本": function(event, can, button) { var conf = can.Conf()
|
||||||
var args = can.Input("", true).join(ice.SP); var list = [
|
var args = can.Input("", true).join(ice.SP); var list = [
|
||||||
|
@ -6,7 +6,7 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg,
|
|||||||
can._tree = can.onimport._tree(can, msg.Table(), can._args.field, can._args.split)
|
can._tree = can.onimport._tree(can, msg.Table(), can._args.field, can._args.split)
|
||||||
if (!can._tree[""]) { return }
|
if (!can._tree[""]) { return }
|
||||||
can.dir_root = msg.Option(nfs.DIR_ROOT)||can._args.root
|
can.dir_root = msg.Option(nfs.DIR_ROOT)||can._args.root
|
||||||
can._tree[""].name = can.dir_root.split(can._args.split).slice(-2)[0]
|
can._tree[""].name = can.dir_root.split(ice.PS).slice(-2)[0]
|
||||||
|
|
||||||
can.size = 30, can.margin = 30
|
can.size = 30, can.margin = 30
|
||||||
can.require(["/plugin/local/wiki/draw.js", "/plugin/local/wiki/draw/path.js"], function() {
|
can.require(["/plugin/local/wiki/draw.js", "/plugin/local/wiki/draw/path.js"], function() {
|
||||||
@ -155,10 +155,8 @@ Volcanos("ondetail", {help: "用户交互", list: [],
|
|||||||
plugin: function(can, index, args, prefix) {
|
plugin: function(can, index, args, prefix) {
|
||||||
can.onappend.plugin(can, {type: chat.FLOAT, index: index, args: args}, function(sub) {
|
can.onappend.plugin(can, {type: chat.FLOAT, index: index, args: args}, function(sub) {
|
||||||
sub.run = function(event, cmds, cb) {
|
sub.run = function(event, cmds, cb) {
|
||||||
can.run(event, can.misc.Concat(prefix, cmds), function(msg) {
|
can.run(event, can.misc.Concat(prefix, cmds), cb, true)
|
||||||
can.ondetail.figure(can, sub, msg, cb)
|
}, can.ondetail.figure(can, sub)
|
||||||
}, true)
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
figure: function(can, sub, msg, cb) {
|
figure: function(can, sub, msg, cb) {
|
||||||
|
@ -38,7 +38,8 @@
|
|||||||
"minifyWXSS": true,
|
"minifyWXSS": true,
|
||||||
"disableUseStrict": false,
|
"disableUseStrict": false,
|
||||||
"showES6CompileOption": false,
|
"showES6CompileOption": false,
|
||||||
"useCompilerPlugins": false
|
"useCompilerPlugins": false,
|
||||||
|
"minifyWXML": true
|
||||||
},
|
},
|
||||||
"compileType": "miniprogram",
|
"compileType": "miniprogram",
|
||||||
"libVersion": "2.15.0",
|
"libVersion": "2.15.0",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user