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

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

11. 缓动-缓动函数演示 [ 87%]

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

12. 缓动-缓动函数演示 [ 84%]

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

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

...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 加载动画为什么实现的效果会错乱掉? [ 79%]

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

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

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

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

16. 【LIST无法拖动】参照官方实例做的 [ 78%]

...rivate updateItem(cell: Item): void {         cell.setImg(cell.dataSource);      }     private onSelect(index: number): void {         console.log("当前选择的索引:" + index);         console.log("目的是哪一关" + this.box_arr[index]);    ...

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

17. List属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 78%]

...} list.array = data; } function updateItem(cell, index) { cell.setImg(cell.dataSource); } function onSelect(index) { console.log("当前选择的索引:" + index); } })(); ```

来源: Laya2.0_文档 发布时间: 20210714

18. List属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 78%]

...; } 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...

来源: Laya2.0_文档 发布时间: 20210715

19. 列表组件 · LayaAir3.0文档 · LAYABOX [ 77%]

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

来源: Laya3.0_文档 发布时间: 20230927

20. list里面可以加入多个view吗? [ 77%]

...; } private function onRender(cell:Item,index:int):void { cell.setImg(cell.dataSource.src); cell.setLabel(cell.dataSource.txt); } } } import laya.ui.Image; import laya.ui.Label; import laya.ui.View; class Item extends View { public static var WID:int=150; public static var HEI:int=85; private var im...

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