• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 5 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0015 秒)

1. UI-ComboBox [ 100%]

...3,item4,item5"); comboBox.labelSize = 30; comboBox.itemSize = 25; comboBox.selectHandler = new Handler(this, onSelect, [comboBox]); Laya.stage.addChild(comboBox); return comboBox; } function onSelect(cb) { console.log("选中了: " + cb.selectedLabel); } })();module laya { import Stage = Laya.Stag...

来源: Laya_示例 发布时间: 20251209

2. UI-Tab [ 96%]

...dding = "0,0,0,0"; tab.selectedIndex = 1; onSelect(tab.selectedIndex); tab.selectHandler = new Handler(this, onSelect); Laya.stage.addChild(tab); return tab; } function onSelect(index) { console.log("当前选择的标签页索引为 " + index); } })();module laya { import Stage = Laya.Stage; import...

来源: Laya_示例 发布时间: 20251209

3. UI-RadioGroup [ 85%]

..."; rg.labelSize = 20; rg.labelBold = true; rg.labelPadding = "5,0,0,5"; rg.selectHandler = new Handler(this, this.onSelectChange); Laya.stage.addChild(rg); return rg; } private onSelectChange(index: number): void { console.log("你选择了第 " + (index + 1) + " 项"); } } } new laya.UI_RadioGroup(...

来源: Laya_示例 发布时间: 20251209

4. UI-List [ 84%]

...隐藏滚动条 list.vScrollBarSkin = ""; list.selectEnable = true; list.selectHandler = new Handler(this, onSelect); list.renderHandler = new Handler(this, updateItem); Laya.stage.addChild(list); // 设置数据项为对应图片的路径 var data = []; for (var i = 0; i = []; for (var i: number = ...

来源: Laya_示例 发布时间: 20251209

5. 缓动-缓动函数演示 [ 79%]

...rollBarSkin = ''; easeFunctionsList.selectEnable = true; easeFunctionsList.selectHandler = new Handler(this, onEaseFunctionChange, [easeFunctionsList]); easeFunctionsList.renderHandler = new Handler(this, renderList); Laya.stage.addChild(easeFunctionsList); var data = []; data.push('backIn', 'backOu...

来源: Laya_示例 发布时间: 20251209