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

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

1. 请问下customRender和dataSource问题 [ 100%]

请问下customRender和dataSource问题 假设有如上图层级的内容 box已设置renderType为render,如果用box.dataSource={aa:'我是一个标签'},可以改变Label(aa)的内容,但Label(bb)在Image上面,怎么改变Label(bb)的内容,dataSource的数据结构怎么写? 如...

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

2. List修改datasource数据的时候出现部分数据不能被修改 [ 81%]

List修改datasource数据的时候出现部分数据不能被修改 如图:   我这里在datasource里面同时修改三个数据,但是在下面的显示效果中,只有背景图片显示错误,前面的红勾勾和文字内容都是正确的,这个是bug吗,IDE是最新版本的  ...

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

3. list只能显示一个图片 [ 79%]

...i+'tong.jpg'}}; this.data.push(item); } console.log(this.data); this.list1.dataSource = this.data; this.list1.x = 50; this.list1.y = 500; this.list1.getChildAt(0).height = 100; this.list1.vScrollBarSkin = ""; this.list1.hScrollBarSkin = "comp/hscroll.png"; this.list1.renderHandler = new Laya.Handler...

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

4. list item 添加事件后无法监听 [ 78%]

...tem(cell, index) {     console.log(index);     // console.log(cell.dataSource);     cell.setImg(cell.dataSource[index]);     cell.on(Laya.Event.CLICK, function() {         console.log("click")     }) }  function onSelect(index) {     console.log("当前选择的索...

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

5. IDE-显示IDE创建的界面 [ 78%]

...个属性,比如:label:{color:"#ff0000",text:"Hello LayaAir"} this.box.dataSource = {slider: 50, scroll: 80, progress: 0.2, input: "This is a input", label: {color: "#ff0000", text: "Hello LayaAir"}}; //list赋值,先获得一个数据源数组 var arr = []; for (var i = 0; i /// import test =...

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

6. IDE-显示IDE创建的界面 [ 78%]

...个属性,比如:label:{color:"#ff0000",text:"Hello LayaAir"} this.box.dataSource = {slider: 50, scroll: 80, progress: 0.2, input: "This is a input", label: {color: "#ff0000", text: "Hello LayaAir"}}; //list赋值,先获得一个数据源数组 var arr = []; for (var i = 0; i /// import test =...

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

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

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

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

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

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

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

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