大约有 103 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0048 秒)
Laya_社区(90) Laya3.0_api(5) Laya2.0_文档(3) laya_api(1) Laya_示例(1) Laya3.0_文档(1) Laya2.0_api(1) Laya2.0_示例(1)
list渲染的时候取不到cell.x的值【不必现】 list.array正确赋值了,但在渲染的时候 renderItems函数内的X值未NaN。会导致list不能显示出其内容。 版本1.7.9 附件 : --> 2018-06-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20180601
...tial Index Constructors constructor Accessors bvhSpatialBox Methods addOne cellLegal destroy getItemByCameraCullInfo getItemByFrustum getItemBySCI motionOne rebuild removeOne update Constructors constructor new BVHRenderSpatial(bvhConfig?: BVHSpatialConfig, bvhManager?: BVHSpatialManager): BVHRender...
来源: Laya3.0_api 发布时间: 20231115
...erHandler = new Handler(this, onRender); function onRender(cell,index){ //如果索引不再可索引范围,则终止该函数 if(index > json.length)return; //获取当前渲染条目的数据 ...
来源: Laya_社区 发布时间: 20180717
...--------------------------------------------------------------- updateItem(cell:Item,index:number){ var img1 = cell.getChildByName("img1") as Laya.Image; var img2 = cell.getChildByName("img2") as Laya.Image; img1.on("click",this,this.onRefresh,[inde...
来源: Laya_社区 发布时间: 20190522
...st.array = that._items;updateitem代码如下: function UpdateMarketItem(cell, index) { // {id:1,name:"10金豆-测试",price:0.01,title:"10金豆-测试",desc:"测试",balance:10,gift:0,imgPath:"res\\common\\BalanceSellDlg\\xiaodou.png",hot:1,orderCount:9} cell.setGold(cell.dataSource.balance + c...
来源: Laya_社区 发布时间: 20170422
...使用 你们的 list 1.7 版的 一个list }, _render_bigList: function (cell, idx) { var data = this.bigList.array; if (idx >= data.length) { return; } cell.removeChildren(); var root = cell.getChildByName('root'); if (!root) { root = new Sprite(); root.pos(0, 0); root.name = "root"; cell.addCh...
来源: Laya_社区 发布时间: 20170324
ui.list的高度如果是cell高度的3.5倍,但是repeatY只是1-2的时候还是会可以上下滑动 个人猜测,感觉这个可能是changeCells里面计算this._cellOffset的方法里面乘数是Math.max而不是Math.min得出来的数值导致的问题(2.0.0 laya.ui.js 8451行) 附件 : ...
来源: Laya_社区 发布时间: 20190418
...ew Handler(this, updateItem); return list; } function updateItem(cell, index) { console.log(index); // console.log(cell.dataSource); cell.setImg(cell.dataSource[index]); cell.on(Laya.Event.CLICK, function() { console.log("click") }) }...
来源: Laya_社区 发布时间: 20180724
...event,index } public function onRender(cell:Box,index:int):void { //当list刷新时接收并更改单元格属性 var hero:Image = cell.getChildByName("hero")as Image;//根据名字查找...
来源: Laya_社区 发布时间: 20180503
... 1 个回复 qian 赞同来自: https://ask.layabox.com/question/2321 是cell么 2018-03-12 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 182*****278 相关问题 Dialog:屏蔽点击Dialog之外的区域关闭弹框 分享:自定...
来源: Laya_社区 发布时间: 20180312