1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-25 16:58:06 +08:00

opt onappend

This commit is contained in:
harveyshao 2023-01-17 23:28:36 +08:00
parent bdf628eaf1
commit 1e93dc2fbd

View File

@ -1,10 +1,18 @@
Volcanos(chat.ONIMPORT, {_init: function(can, msg) {
can.onappend.layout(can, can._output, "flex", [
{view: ["hi", html.DIV, "he"]},
{view: ["he", html.DIV, "he"]},
[
{view: ["hi", html.DIV, "he"]},
{view: ["he", html.DIV, "he"]},
can.onappend.layout(can, can._output, html.FLEX, [
{view: ["hi", html.DIV, "project"]}, [
[
{view: ["hi", html.DIV, "content"]},
{view: ["he", html.DIV, "profile"]},
],
{view: ["he", html.DIV, "display"]},
],
]).layout(can.ConfWidth(), can.ConfHeight())
can.onmotion.clear(can, can._output)
var list = [
{name: "h1", list: [{view: ["h1", html.DIV, "h1111"]}]},
{name: "h2", list: [{view: ["h1", html.DIV, "h222"]}]},
{name: "h3", list: [{view: ["h1", html.DIV, "h3333"]}]},
]
can.onappend.layout(can, can._output, "tabs-bottom", list)
}})