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

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

151. 如何实现虚拟列表? [ 82%]

如何实现虚拟列表? 我想在list指定item里动态设置控件的数量或者类型,然后item自适应内容来改变高度,不影响其他的item高度与其内部的控件结构 2017-12-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

152. List的展开效果 [ 81%]

...List的展开效果 Laya能不能实现如图所示的效果?点击一个Item之后展开显示其详细信息,下面的Item顺延向下?   用Panel应该可以实现点击之后瞬间切换到右图的效果,那有没有办法能让页签缓慢展开?即实现tween控件的效果? 附件...

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

153. IDE-显示IDE创建的界面 [ 81%]

...rr: Array = []; for (var i: number = 0; i < 100; i++) { arr.push({ label: "item " + i, clip: i % 9 }); } //给list赋值更改list的显示 this.list.array = arr; //还可以自定义list渲染方式,可以打开下面注释看一下效果 //list.renderHandler = new Handler(this, onListRender); } ...

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

154. IDE-显示IDE创建的界面 [ 81%]

...rr: Array = []; for (var i: number = 0; i < 100; i++) { arr.push({ label: "item " + i, clip: i % 9 }); } //给list赋值更改list的显示 this.list.array = arr; //还可以自定义list渲染方式,可以打开下面注释看一下效果 //list.renderHandler = new Handler(this, onListRender); } ...

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

155. 在微信小游戏中使用list,兼听不到mouseHandler跟selectHandler。 [ 81%]

... Laya.Box; var Image = Laya.Image;   var WID = 373, HEI = 85;   function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img);   this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box);   // 主要逻辑代码 var Sta...

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

156. 关于list的renderHander [ 81%]

...刷新判定条件是什么?我这调试了下,发现并不是简单的item或者像素移动,各种玄学!!!! 2018-01-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 单...

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

157. 缓动-缓动函数演示 [ 81%]

...dler = Laya.Handler; let easeFunctionsList = new List(); easeFunctionsList.itemRender = ListItemRender; easeFunctionsList.pos(5, 5); easeFunctionsList.repeatX = 1; easeFunctionsList.repeatY = 20; easeFunctionsList.vScrollBarSkin = ''; easeFunctionsList.selectEnable = true; easeFunctionsList.selectHa...

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

158. laya.utils.ClassUtils [ 81%]

...点对象。 比如: { "type":"Sprite", "props":{ "x":100, "y":50, "name":"item1", "scale":[2,2] }, "customProps":{ "x":100, "y":50, "name":"item1", "scale":[2,2] }, "child":[ { "type":"Text", "props":{ "text":"this is a test", "var":"label", "rumtime":"" } } ] } ClassUtils  getClass(className:Str...

来源: Laya2.0_api 发布时间: 20190513

159. ViewStack属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 81%]

...组件的子页面name属性 ViewStack子页面name属性的命名规则为item0、item1、item2.....”如果有更多页面以此类推,如动图3-2所示,不按此规则增加name属性,生成的ViewStack组件为无效组件,不能正常运行。 ![(动图3-2](img/3-2.gif) (动图3-2) **...

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

160. 缓动-缓动函数演示 [ 81%]

...{ // 项渲染器 var Box = Laya.Box; var Label = Laya.Label; function ListItemRender() { var label = null; ListItemRender.__super.call(this); this.size(100, 20); label = new Label(); label.fontSize = 12; label.color = "#FFFFFF"; this.addChild(label); this.setLabel = function(value) { label.text = v...

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