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

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

11. 自动布局容器 [ 92%]

...ZONE 微信 asdf131 赞同来自: 我的想法是这样的 :      let dataSource = ;         let txtArr = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k"];         for (var i = 0; i < allData.length; i++) {             var _data = {                 ui....

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

12. LAYA的AS3项目碰见个问题,求解 [ 88%]

...    private var names:String="";        override public function set dataSource(value:*):void         {             super.dataSource = value;             if(dataSource==null) return;             names=dataSource.name;              txts.text = names;   ...

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

13. 基础使用与构成 · LayaAir3.3 · 引擎文档 · LAYABOX [ 88%]

...面板中拖拽3、UI组件基类属性3.1 相对布局layout3.2 数据源dataSource3.3 变灰与禁用鼠标事件UI组件基础使用与构成 Author: Charley UI 组件是经典 UI 系统的核心构成,封装了大量常用且实用的界面功能,便于开发者高效构建各类用户界面...

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

14. tree异步选中问题 [ 87%]

...个时,另一个关闭 var item:Cell = e.target.parent as Cell; if (item.dataSource.isOpen == true) { if (this.selectedIndex == -1) { this.selectedIndex = index; } else { if (this.selectedIndex < index) { this.listUI.typeTree.setItemState(this.selectedIndex, false); this.selectedIndex = index -...

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

15. List中如何动态加载多个image,并为每个image添加监听事件? [ 86%]

...ng","7tong","8tong","9tong","1tiao","2tiao","3tiao","4tiao","5tiao"]; var _dataSource_=[]; for(var i = 0;i<this.data.length;++i) { var _data_={ skin:"Images/"+this.data[i]+".jpg" }; _dataSource_.push(_data_); } this.selfHand.dataSource = _dataSource_; this.selfHand.selectEnable = true; } Laya.cla...

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

16. List滚动条问题 [ 80%]

...common\\BalanceSellDlg\\xiaodou.png",hot:1,orderCount:9} cell.setGold(cell.dataSource.balance + cell.dataSource.gift); cell.setGoldImage(cell.dataSource.imgPath); cell.setPrice(cell.dataSource.price); }   附件 : --> 2017-04-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

17. list item 添加事件后无法监听 [ 79%]

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

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

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

19. list只能显示一个图片 [ 77%]

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

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

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