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

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

11. UI-List [ 76%]

...; } private updateItem(cell: Item, index: number): void { cell.setImg(cell.dataSource); } private onSelect(index: number): void { console.log("当前选择的索引:" + index); } } import Box = Laya.Box; import Image = Laya.Image; class Item extends Box { public static WID: number = 373; public st...

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

12. list组件里面使用box作为渲染项,在渲染项里面再嵌套一个box,这里面的数据该怎么渲染呢 [ 71%]

...一个box,这里面的数据该怎么渲染呢 使用 _data={name值:{datasource:‘dd’}} 这样不能不渲染到渲染项内部box的数据,该怎么做的呢? 2018-07-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

来源: Laya_社区 发布时间: 20180720

13. typescipt在一定范围内加载图片按照等比排列 [ 68%]

...der);   function onImgListRender(box: Laya.Box) {     let model = box.dataSource;     let panel = box.getChildByName('panel') as Laya.Panel;     let img = panel.getChildByName('img') as Laya.Image;      img.skin = model;     let reset = function () {         let source ...

来源: Laya_社区 发布时间: 20180514

14. List滚动条问题 [ 68%]

...common\\BalanceSellDlg\\xiaodou.png",hot:1,orderCount:9} cell.setGold(cell.dataSource.balance + cell.dataSource.gift); cell.setGoldImage(cell.dataSource.imgPath); cell.setPrice(cell.dataSource.price); }   附件 : --> 2017-04-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

来源: Laya_社区 发布时间: 20170422

15. 缓动-缓动函数演示 [ 68%]

...nctionsList.array = data; } function renderList(item) { item.setLabel(item.dataSource); } function onEaseFunctionChange(list) { character.pos(100, 50); tween && tween.clear(); tween = Tween.to(character, { x: 350, y: 250 }, duration, Ease[list.selectedItem]); } function createDurationCrontroller() {...

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

16. list控件内字体大小设置无效 [ 68%]

...itemName:Label=cell.getChildByName("itemName") as Label; itemImg.skin=cell.dataSource.image_url; itemName.width=Number(itemName.text.length*20); itemName.height=20; itemName.fontSize =12; itemName.text=cell.dataSource.cat_name; }fontSize设置无效。  字体等其余的都是默认设置  没有...

来源: Laya_社区 发布时间: 20170829

17. laya.ui.Box_API3.0 [ 67%]

...lor blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numC...

来源: Laya3.0_api 发布时间: 20231115

18. list 怎么嵌套赋值呢? [ 67%]

...air2.0-js 怎么用程序在list中添加多元素的item 关于List问题 DataSource怎么使用网路图片的路径赋值 微信开放域排行榜滑动list滑动没反应 list列表加定时器超过一页后必出问题 问题状态 最新活动: 2018-01-26 19:39 浏览: 971 关注: 3 人

来源: Laya_社区 发布时间: 20180126

19. 如何为list内部的button添加事件 [ 65%]

...ist.getItem(xxx).getChildByName()无效,获取不到,我发现只要是DataSource里面没有定义的参数用list.getItem(xxx)都获取不到,list.getItem(xxx)就是list.datasource[xxx]吧? weiyongwill • 2017-01-06 11:21 "this.sList.getItem(...).getChildByName is not a function&quot...

来源: Laya_社区 发布时间: 20170105

20. 缓动-缓动函数演示 [ 64%]

...); easeFunctionsList.array = data; } renderList(item) { item.setLabel(item.dataSource); } onEaseFunctionChange(list) { const Tween = Laya.Tween, Ease = Laya.Ease; character.pos(100, 50); tween && tween.clear(); tween = Tween.to(character, { x: 350, y: 250 }, duration, Ease[list.selectedItem]); } cre...

来源: Laya2.0_示例 发布时间: 20251130