List

列表是文本或图像的连续垂直索引。

使用

  1. <m-list
  2. single-selection
  3. items="[{
  4. text: 'Line item1',
  5. icon: 'wifi'
  6. },
  7. { divider: true },
  8. {
  9. text: 'Line item2',
  10. selected: true,
  11. icon: 'bluetooth'
  12. },
  13. { divider: true },
  14. {
  15. text: 'Line item3',
  16. icon: 'data_usage'
  17. }]"></m-list>

API

Props

  1. {
  2. items: object,
  3. singleSelection: boolean,
  4. checkbox: boolean,
  5. radio: boolean,
  6. onItemClick: (evt: CustomEvent) => void
  7. }