列表项 Cell

普通列表项

  1. <za-cell title="标题文字"></za-cell>

带描述的列表项

  1. <za-cell title="标题文字" description="描述文字"></za-cell>
  2. <za-cell title="标题文字">
  3. <za-icon slot="description" type="right"></za-icon>
  4. </za-cell>

带图标、描述的列表项

  1. <za-cell title="标题文字">
  2. <za-icon type="right" slot="icon"></za-icon>
  3. <div slot="description">描述文字</div>
  4. </za-cell>
  5. <za-cell title="标题文字">
  6. <img style="width:24px;height:24px" src="https://static.zhongan.com/website/health/zarm/images/icons/state.png" alt slot="icon">
  7. <div slot="description">描述文字</div>
  8. </za-cell>

带跳转的列表项

<za-cell is-link @click="() => {}">标题文字</za-cell>
<za-cell is-link @click="() => {}">标题文字</za-cell>

带描述、箭头、跳转的列表项

<za-cell is-link title="标题文字" has-arrow @click="() => {}">
  <div slot="description">描述文字</div>
</za-cell>
<za-cell is-link title="标题文字" has-arrow @click="() => {}">
  <div slot="description">描述文字</div>
</za-cell>

带图标、描述、箭头、跳转的列表项

<za-cell is-link title="标题文字" has-arrow @click="() => {}">
  <div slot="description">描述文字</div>
  <za-icon type="right" slot="icon"></za-icon>
</za-cell>
<za-cell is-link title="标题文字" has-arrow @click="() => {}">
  <div slot="description">描述文字</div>
  <img style="width:24px;height:24px" src="https://static.zhongan.com/website/health/zarm/images/icons/state.png" alt slot="icon">
</za-cell>
<za-cell is-link has-arrow @click="() => {}">
  <div slot="description">描述文字</div>
  <div class="box" slot="title">
    <div class="box-title">标题文字</div>
    <div class="box-description">描述文字</div>
  </div>
  <img style="width:48px;height:48px" src="https://static.zhongan.com/website/health/zarm/images/icons/state.png" alt slot="icon">
</za-cell>

提示信息

<za-cell title="标题">
  <za-message theme="error" slot="help">
    <za-icon type="info-round"></za-icon>
    <span style="marginLeft: 5px">标题不能为空</span>
  </za-message>
  <za-input type="text" placeholder="请输入标题"></za-input>
</za-cell>

API

Cell Attributes

属性类型默认值可选值/参数说明
isLinkbooleanfalse是否带激活样式
titlestring标题
helpstring下方提示信息 通常配合Message组件使用
descriptionstring描述
has-arrowbooleanfalse是否显示箭头

Cell 列表项 - 图1