mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 08:48:06 +08:00
add some
This commit is contained in:
parent
738e7bc810
commit
f3ee78a0c7
2
frame.js
2
frame.js
@ -553,7 +553,7 @@ Volcanos(chat.ONAPPEND, {_init: function(can, meta, list, cb, target, field) {
|
||||
append(can.page.Append(can, target, [html.LAYOUT])._target, type==FLOW? FLEX: FLOW, item)
|
||||
} else if (can.base.isObject(item)) {
|
||||
if (item.index) { item._index = count++, ui.size[item._index] = item.height||item.width
|
||||
can.onmotion.hidden(can, target)
|
||||
// can.onmotion.hidden(can, target)
|
||||
can.onappend.plugin(can, item, function(sub) { can._plugins = (can._plugins||[]).concat([sub])
|
||||
item.layout = function(height, width) { sub.onimport.size(sub, height, width) }
|
||||
can.onmotion.select(can, sub._target.parentNode, html.FIELDSET, sub._target)
|
||||
|
@ -8,7 +8,8 @@ Volcanos("page", {
|
||||
del: function(can, target, key) { var list = target.className? target.className.split(lex.SP): []
|
||||
return target.className = can.core.List(list, function(value) { return value == key? undefined: value }).join(lex.SP).trim()
|
||||
},
|
||||
set: function(can, target, key, condition) { return (condition? this.add(can, target, key): this.del(can, target, key)).indexOf(key) > -1 },
|
||||
set: function(can, target, key, condition) {
|
||||
return (condition? this.add(can, target, key): this.del(can, target, key)).indexOf(key) > -1 },
|
||||
neg: function(can, target, key) { return (this.has(can, target, key)? this.del(can, target, key): this.add(can, target, key)).indexOf(key) > -1 },
|
||||
tag: function(can, target) { return [document.body.tagName.toLowerCase()].concat(document.body.classList).join(lex.PT) }
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user