React EasyUI 數(shù)據(jù)列表

2020-06-24 12:12 更新

屬性列表

名稱 數(shù)據(jù)類型 作用描述 默認值
data array 要加載的數(shù)據(jù)。 [ ]
itemCls string 數(shù)據(jù)項樣式類。 null
itemStyle Object 數(shù)據(jù)項內(nèi)聯(lián)樣式。 null
hoverCls string 當(dāng)鼠標懸停在數(shù)據(jù)項樣式類上時。 datagrid-row-over
selectedCls string 選擇數(shù)據(jù)項時的樣式類。 datagrid-row-selected
renderItem ({row,rowIndex}) 呈現(xiàn)項目的函數(shù)。

方法列表

名稱 參數(shù) 返回值 作用描述
navRow step void 瀏覽行。
scrollToSelectedRow none void 滾動到選中的行。

注意:
- 繼承: ListBase 。

使用方法

<DataList
  style={{ width: 550, height: 250 }}
  renderItem={this.renderItem.bind(this)}
  data={this.state.data}
  selectionMode="single"
  onSelectionChange={this.handleSelectionChange.bind(this)}
/>
以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號