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

大约有 113 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0034 秒)

11. UI-List [ 71%]

...; } 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_示例 发布时间: 20240929

12. List列表使用出现的问题 [ 71%]

...8-03-23 0 2 分享 微博 QZONE 微信 hepengwei 赞同来自: 赋值是用dataSource属性 2018-04-12 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 b456410 相关问题 LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最...

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

13. List列表的问题 [ 70%]

List列表的问题 List的通过arraydataSource属性赋值又有何不同,哪个性能更高,为啥我赋值完后半天列表才显示出来,有哪里要注意的吗? 2018-05-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

14. List组件拖动浏览时item会出现重叠的现象 [ 70%]

List组件拖动浏览时item会出现重叠的现象 module list.datasource { import List = laya.ui.List; export class ListDataSourceMediator { constructor() { } public setUp():void { var list: List = new List(); // 渲染的item list.itemRender = ListDataSourceItem; // 设置行列显示的item...

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

15. List中放TextInput,当list滚动的时候,复用会有问题,input中的内容会乱,尤其有输入框focus的情况下 [ 70%]

....array = data; } function updateItem(cell, index) { cell.label.text = cell.dataSource.lb; cell.input.text = cell.dataSource.value; // cell.setImg(cell.dataSource); } function onSelect(index) { console.log("当前选择的索引:" + index); } })();这段代码直接复制到官网的例子里面执...

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

16. 缓动-缓动函数演示 [ 69%]

...); 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_示例 发布时间: 20240929

17. 缓动-缓动函数演示 [ 69%]

...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_示例 发布时间: 20240929

18. 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

19. list 加载动画为什么实现的效果会错乱掉? [ 66%]

...ist.array = effList; } function updateItem(cell, index) { console.log(cell.dataSource); cell.setImg(cell.dataSource); } function onSelect(index) { console.log("当前选择的索引:" + index); }     我想实现的效果是   设置每个特效宽高都为80 * 80   然后一排显示3个 界...

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

20. UI-RefreshList [ 64%]

...lText.pos(0, 0); this.delText.width = 130; this.delText.height = 80; } get dataSource(){ return super.dataSource; } set dataSource(value) { super.dataSource = value; if (!value) return; this.LmsgTime.changeText(value.msgTime.text); this.LmsgTitle.changeText(value.msgTitle.text); this.redHot.visible ...

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