From 1e93dc2fbd6fdfbcfb129086909b9fa503d3efaf Mon Sep 17 00:00:00 2001 From: harveyshao Date: Tue, 17 Jan 2023 23:28:36 +0800 Subject: [PATCH] opt onappend --- src/hi/layout.js | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/src/hi/layout.js b/src/hi/layout.js index 28b81e9d..8743cf22 100644 --- a/src/hi/layout.js +++ b/src/hi/layout.js @@ -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) }})