mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
opt some
This commit is contained in:
parent
7ffb347240
commit
68348b0176
4
frame.js
4
frame.js
@ -251,7 +251,9 @@ Volcanos(chat.ONAPPEND, {help: "渲染引擎", _init: function(can, meta, list,
|
|||||||
can.Update(event, cmds.slice(0, 2).concat(args), cb||function() {
|
can.Update(event, cmds.slice(0, 2).concat(args), cb||function() {
|
||||||
if (can.core.CallFunc([can.sup, chat.ONIMPORT, ice.MSG_PROCESS], {can: can.sup, msg: msg})) { return }
|
if (can.core.CallFunc([can.sup, chat.ONIMPORT, ice.MSG_PROCESS], {can: can.sup, msg: msg})) { return }
|
||||||
if (can.core.CallFunc([can, chat.ONIMPORT, ice.MSG_PROCESS], {can: can, msg: msg})) { return }
|
if (can.core.CallFunc([can, chat.ONIMPORT, ice.MSG_PROCESS], {can: can, msg: msg})) { return }
|
||||||
if (msg.Result().length > 0 || msg.Length() > 0) {
|
if (cmds[1] == mdb.CREATE || cmds[1] == mdb.INSERT) {
|
||||||
|
can.Update()
|
||||||
|
} else if (msg.Result().length > 0 || msg.Length() > 0) {
|
||||||
can.onappend.table(can, msg), can.onappend.board(can, msg)
|
can.onappend.table(can, msg), can.onappend.board(can, msg)
|
||||||
} else {
|
} else {
|
||||||
can.Update()
|
can.Update()
|
||||||
|
@ -65,7 +65,7 @@ fieldset.float>form.option input[type=button][name=close]{ display:block; }
|
|||||||
fieldset.full>form.option input[type=button][name=close]{ display:block; }
|
fieldset.full>form.option input[type=button][name=close]{ display:block; }
|
||||||
fieldset.plug>form.option input[type=button][name=close]{ display:block; }
|
fieldset.plug>form.option input[type=button][name=close]{ display:block; }
|
||||||
|
|
||||||
fieldset.plugin>div.status { border-top:1px solid darkcyan; }
|
fieldset.plugin>div.status { border-top:1px solid darkcyan; height:30px; }
|
||||||
fieldset.story>div.status { border-top:1px solid darkcyan; }
|
fieldset.story>div.status { border-top:1px solid darkcyan; }
|
||||||
fieldset.output>form.option { display:none; }
|
fieldset.output>form.option { display:none; }
|
||||||
fieldset.output>div.action { display:none; }
|
fieldset.output>div.action { display:none; }
|
||||||
@ -327,7 +327,7 @@ body.white.simple div.carte div.item:hover { background-color:#e3e6f1; }
|
|||||||
body.white.simple fieldset.plugin div.output.json div.item span { color:black; }
|
body.white.simple fieldset.plugin div.output.json div.item span { color:black; }
|
||||||
body.white.simple fieldset.plugin div.output.json div.item span.key { color:blue; }
|
body.white.simple fieldset.plugin div.output.json div.item span.key { color:blue; }
|
||||||
body.white.simple fieldset.plugin div.output.json div.item span.nonce { color:lightgray; }
|
body.white.simple fieldset.plugin div.output.json div.item span.nonce { color:lightgray; }
|
||||||
body.white.simple div.output.card input[type=button] { background-color:#0152d9; font-size:0.8rem; padding:5px 10px; box-shadow:2px 2px 6px 1px gray; }
|
body.white.simple div.output.card input[type=button] { background-color:#0152d9; color:black; font-size:0.8rem; padding:5px 10px; box-shadow:2px 2px 6px 1px gray; }
|
||||||
body.white.simple div.output.card input[type=button]:hover { box-shadow:2px 2px 8px 2px gray; }
|
body.white.simple div.output.card input[type=button]:hover { box-shadow:2px 2px 8px 2px gray; }
|
||||||
body.white.simple div.output div.project div.zone>div.action>div.item input[type=text] { color:black; }
|
body.white.simple div.output div.project div.zone>div.action>div.item input[type=text] { color:black; }
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Volcanos(chat.ONACTION, {help: "控件交互", _init: function(can, meta, cb, target) {
|
Volcanos(chat.ONACTION, {help: "控件交互", _init: function(can, meta, cb, target) {
|
||||||
can.base.isFunc(cb) && cb(); switch (meta.type) {
|
can.base.isFunc(cb) && cb(); switch (meta.type) {
|
||||||
case html.SELECT: meta.value && (target.value = meta.value); break
|
case html.SELECT: meta.value && (target.value = meta.value); break
|
||||||
case html.BUTTON: meta.action == ice.AUTO && target.click(); break
|
case html.BUTTON: !can.sup._delay_init && meta.action == ice.AUTO && target.click(); break
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
run: function(event, can) { can.run(can.request(event, {_toast: "执行中..."})) },
|
run: function(event, can) { can.run(can.request(event, {_toast: "执行中..."})) },
|
||||||
|
@ -39,7 +39,7 @@ fieldset.inner>div.output fieldset.toolkit>div.output fieldset { display:none; }
|
|||||||
fieldset.inner>div.output fieldset.toolkit>div.output fieldset.select { background-color:#0e3369b3; color:white; display:block; z-index:10; }
|
fieldset.inner>div.output fieldset.toolkit>div.output fieldset.select { background-color:#0e3369b3; color:white; display:block; z-index:10; }
|
||||||
fieldset.inner div.output fieldset.toolkit>div.output { position:unset; }
|
fieldset.inner div.output fieldset.toolkit>div.output { position:unset; }
|
||||||
|
|
||||||
fieldset>div.output>fieldset.plug { position:inherit; bottom:0px; right:0px; }
|
fieldset>div.output>fieldset.plug { position:sticky; bottom:0px; right:0px; }
|
||||||
fieldset>div.output>fieldset.plug { display:none; }
|
fieldset>div.output>fieldset.plug { display:none; }
|
||||||
fieldset>div.output>fieldset.plug.select { background-color:#0e3369b3; color:white; display:block; z-index:10; }
|
fieldset>div.output>fieldset.plug.select { background-color:#0e3369b3; color:white; display:block; z-index:10; }
|
||||||
fieldset>div.status legend { float:right; height:30px; }
|
fieldset>div.status legend { float:right; height:30px; }
|
||||||
|
@ -265,7 +265,10 @@ Volcanos(chat.ONIMPORT, {help: "导入数据",
|
|||||||
process: function(can, msg, target, height, width) { can.onmotion.clear(can, target), can.user.toastSuccess(can)
|
process: function(can, msg, target, height, width) { can.onmotion.clear(can, target), can.user.toastSuccess(can)
|
||||||
if (msg.Option(ice.MSG_PROCESS) == "_field") {
|
if (msg.Option(ice.MSG_PROCESS) == "_field") {
|
||||||
msg.Table(function(item) { item.display = msg.Option(ice.MSG_DISPLAY)
|
msg.Table(function(item) { item.display = msg.Option(ice.MSG_DISPLAY)
|
||||||
can.onimport.plug(can, item, target, function(sub) { height && sub.ConfHeight(height-3*html.ACTION_HEIGHT), width && sub.ConfWidth(width), sub.Focus() })
|
can.onimport.plug(can, item, target, function(sub) {
|
||||||
|
sub.onaction.close = function() { can.onmotion.hidden(can, target.parentNode), can.onimport.layout(can) }
|
||||||
|
height && sub.ConfHeight(height-3*html.ACTION_HEIGHT), width && sub.ConfWidth(width), sub.Focus()
|
||||||
|
})
|
||||||
})
|
})
|
||||||
} else if (msg.Option(ice.MSG_DISPLAY) != "") {
|
} else if (msg.Option(ice.MSG_DISPLAY) != "") {
|
||||||
can.onappend._output(can, msg, msg.Option(ice.MSG_DISPLAY), target, false, function(msg) { can.onmotion.delay(can, function() { can.onimport.layout(can) }) })
|
can.onappend._output(can, msg, msg.Option(ice.MSG_DISPLAY), target, false, function(msg) { can.onmotion.delay(can, function() { can.onimport.layout(can) }) })
|
||||||
|
@ -6,6 +6,7 @@ Volcanos(chat.ONIMPORT, {help: "导入数据", _init: function(can, msg, cb, tar
|
|||||||
can.user.isMobile && !can.user.isLandscape() && can.onmotion.hidden(can, can.ui.project)
|
can.user.isMobile && !can.user.isLandscape() && can.onmotion.hidden(can, can.ui.project)
|
||||||
!can.user.isMobile && can.onmotion.toggle(can, can.ui.profile, true)
|
!can.user.isMobile && can.onmotion.toggle(can, can.ui.profile, true)
|
||||||
!can.user.isMobile && can.onmotion.toggle(can, can.ui.display, true)
|
!can.user.isMobile && can.onmotion.toggle(can, can.ui.display, true)
|
||||||
|
can.onappend.tools(can, msg)
|
||||||
},
|
},
|
||||||
_content: function(can, msg, head, list, key, get, set) {
|
_content: function(can, msg, head, list, key, get, set) {
|
||||||
var hash = {}; msg.Table(function(value, index) { var k = key(can.base.Date(value.begin_time)); hash[k] = (hash[k]||[]).concat([value]) })
|
var hash = {}; msg.Table(function(value, index) { var k = key(can.base.Date(value.begin_time)); hash[k] = (hash[k]||[]).concat([value]) })
|
||||||
|
@ -157,6 +157,11 @@ Volcanos(chat.ONIMPORT, {help: "导入数据", _init: function(can, msg, cb, tar
|
|||||||
}},
|
}},
|
||||||
]}
|
]}
|
||||||
}))
|
}))
|
||||||
|
can.page.Select(can, target, "input[type=button]", function(target) {
|
||||||
|
if (target.value == target.name) {
|
||||||
|
target.value = can.user.trans(can, target.name)
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
plug: function(can, meta, target, cb) { if (!meta || !meta.index) { return }
|
plug: function(can, meta, target, cb) { if (!meta || !meta.index) { return }
|
||||||
meta.type = "plug", can.onappend.plugin(can, meta, function(sub) { sub.sup = can
|
meta.type = "plug", can.onappend.plugin(can, meta, function(sub) { sub.sup = can
|
||||||
@ -168,7 +173,7 @@ Volcanos(chat.ONIMPORT, {help: "导入数据", _init: function(can, msg, cb, tar
|
|||||||
},
|
},
|
||||||
tool: function(can, list, cb, target) { target = target||can._output
|
tool: function(can, list, cb, target) { target = target||can._output
|
||||||
can.core.List(list, function(meta) { typeof meta == "string" && (meta = {index: meta})
|
can.core.List(list, function(meta) { typeof meta == "string" && (meta = {index: meta})
|
||||||
can.onimport.plug(can, meta, target, function(sub) {
|
can.onimport.plug(can, meta, target, function(sub) { sub._delay_init = true
|
||||||
sub.ConfHeight(can.ConfHeight()-4*html.ACTION_HEIGHT), sub.ConfWidth(can.ConfWidth())
|
sub.ConfHeight(can.ConfHeight()-4*html.ACTION_HEIGHT), sub.ConfWidth(can.ConfWidth())
|
||||||
sub.page.style(sub, sub._output, html.MAX_HEIGHT, sub.ConfHeight())
|
sub.page.style(sub, sub._output, html.MAX_HEIGHT, sub.ConfHeight())
|
||||||
sub.page.style(sub, sub._output, html.MAX_WIDTH, sub.ConfWidth())
|
sub.page.style(sub, sub._output, html.MAX_WIDTH, sub.ConfWidth())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user