大约有 6 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0033 秒)
...= "#232628"; setup(); })(); function setup() { var list = new List(); list.itemRender = Item; list.repeatX = 1; list.repeatY = 4; list.x = (Laya.stage.width - WID) / 2; list.y = (Laya.stage.height - HEI * list.repeatY) / 2; // 使用但隐藏滚动条 list.vScrollBarSkin = ""; list.selectEnable = tr...
来源: Laya2.0_文档 发布时间: 20210714
... this.setup(); } private setup(): void { var list: List = new List(); list.itemRender = Item; list.repeatX = 1; list.repeatY = 4; list.x = (Laya.stage.width - Item.WID) / 2; list.y = (Laya.stage.height - Item.HEI * list.repeatY) / 2; // 使用但隐藏滚动条 list.vScrollBarSkin = ""; list.selectE...
来源: Laya2.0_文档 发布时间: 20210715
...必须是类,不能是实例化对象,Item需类继承于Box) list.itemRender =Item; //列表显示区单元格的列数 list.repeatX = 1; //列表显示区单元格的行数 list.repeatY = 4; //设置列表位置 list.x = (Laya.stage.width - Item.WID) / 2; list.y = (Laya.stage.height - Item.H...
来源: Laya2.0_文档 发布时间: 20210715
...r tree = new Tree(); tree.scrollBarSkin = "../../res/ui/vscroll.png"; tree.itemRender = Item; tree.xml = xml; tree.size(300, 300); tree.x = (Laya.stage.width - tree.width) / 2; tree.y = (Laya.stage.height - tree.height) / 2; Laya.stage.addChild(tree); } })(); ```
来源: Laya2.0_文档 发布时间: 20210715
...r tree: Tree = new Tree(); tree.scrollBarSkin = "res/ui/vscroll.png"; tree.itemRender = Item; tree.xml = xml; tree.size(300, 300); tree.x = (Laya.stage.width - tree.width) / 2; tree.y = (Laya.stage.height - tree.height) / 2; Laya.stage.addChild(tree); } } } import Box = Laya.Box; import Clip = Laya....
来源: Laya2.0_文档 发布时间: 20210714
...置单元格为Item类(只能用类,不能用实例的对象) tree.itemRender = Item; //对树形结构赋值 tree.xml = xml; //修改大小 tree.size(300, 300); //修改树的位置 tree.x = (Laya.stage.width - tree.width) / 2; tree.y = (Laya.stage.height - tree.height) / 2; //加载到舞台...
来源: Laya2.0_文档 发布时间: 20210715