1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-26 01:04:06 +08:00
This commit is contained in:
harveyshao 2022-03-25 12:14:14 +08:00
parent f33ba0c897
commit 23ae6ef757
4 changed files with 10 additions and 3 deletions

View File

@ -385,7 +385,7 @@ Volcanos("onappend", {help: "渲染引擎", list: [], _init: function(can, meta,
return {text: [value, html.TD], onclick: function(event) { var target = event.target
if (target.tagName == "INPUT" && target.type == html.BUTTON) { return run([ctx.ACTION, target.name]) }
if (key == mdb.HASH && can.user.mod.isDiv) { return can.user.jumps("/chat/div/"+value) }
can.sup.onaction.change(event, can.sup, key, value)
can.sup.onaction.change(event, can.sup, key, event.target.innerText)
}, ondblclick: function(event) { if ([mdb.KEY].indexOf(key) > -1) { return }
var item = can.core.List(can.Conf("feature.insert"), function(item) { if (item.name == key) { return item } })[0]||{name: key, value: value}

View File

@ -55,7 +55,7 @@ div.action>div.item.select { background:none; }
div.action>div.item.space { width:10px; }
div.output { position:relative; }
div.output td.project { background-color:#435f8c8c; }
div.output td.project div.project { min-width:88px; max-width:240px; }
div.output td.project div.project { min-width:88px; max-width:360px; }
div.output td.project div.project div.item { padding:2px 10px; }
div.output td.project div.project div.list { margin-left:10px; }
div.output td.profile { background-color:#71909c91; }
@ -64,6 +64,7 @@ div.status>div.item { padding:4px; height:18px; }
fieldset.Action>div.output>fieldset.plugin { background-color:#061c3c9e; padding:10px; margin:10px; }
fieldset.plugin div.status { border-top:1px solid darkcyan; }
fieldset.story div.status { border-top:1px solid darkcyan; }
/* fieldset.story>legend { float:left; height:30px; } */
fieldset.float { background-color:#023531cf; }
/* fieldset.float>div.action { display:block; height:2.3rem; } */
fieldset.float table { color:white; }

View File

@ -3,6 +3,7 @@ Volcanos("onfigure", {help: "控件详情", list: [], key: {
can.onmotion.clear(can), can.onappend.table(can, msg, function(value, key, index, line) {
return {text: [value, html.TD], onclick: function(event) { target.value = line[key]
if (msg.Option(ice.MSG_PROCESS) != ice.PROCESS_AGAIN) { return can.close() }
target._hold = true
can.run(event, [ctx.ACTION, mdb.INPUTS, can.Conf(mdb.NAME), target.value], function(msg) { call(can, msg, target) })
}}
}), can.Status(mdb.TOTAL, msg.Length()), can.onmotion.hidden(can, can._target, msg.Length() > 0)
@ -17,7 +18,8 @@ Volcanos("onfigure", {help: "控件详情", list: [], key: {
// can.onfigure.key._show(event, can, meta.name, cbs, target), can.onmotion.focus(can, target)
// }) },
onblur: function(event, can, meta, cb, target) {
can.onmotion.delay(can, function() { delete(target._figure), target._can && target._can.close() })
target._hold || can.onmotion.delay(can, function() { delete(target._figure), target._can && target._can.close() })
target._hold = false
},
onclick: function(event, can, meta, cb, target) { if (target._figure) { target._figure = can.onlayout.figure(event, can, can.core.Value(target, "_can._target")||{}); return } target._figure = {}; cb(function(can, cbs) {
target._figure = can.onlayout.figure(event, can)

View File

@ -1,5 +1,9 @@
fieldset.inner>form.option input[name=path] { width:80px; }
fieldset.inner>form.option input[name=file] { width:160px; }
fieldset.inner>div.action>div.tabs { background-color:#5c809c5c; }
fieldset.inner>div.action>div.tabs:hover { background-color:#013b675c; }
fieldset.inner>div.action>div.tabs.select { background-color:#013b675c; }
fieldset.inner>div.output { color:white; }
fieldset.inner>div.output>table.layout div.toggle.project { font-size:24px; min-width:15px; }
fieldset.inner>div.output>table.layout div.toggle.profile { font-size:24px; min-width:15px; }