Skip to content

基础使用

vue
<hi-cell title="基础使用"></hi-cell>

显示图标

通过 leftIconName 属性设置图标。

vue
<hi-cell title="显示图标" leftIconName="/static/images/icons/phone.png"></hi-cell>

显示描述

通过 desc 属性设置描述。

vue
<hi-cell title="显示描述" leftIconName="/static/images/icons/phone.png" desc="单元格描述"></hi-cell>

显示提示

通过 tips 属性设置提示。

vue
<hi-cell title="显示提示" leftIconName="/static/images/icons/phone.png" desc="单元格描述" tips="我是单元格提示"></hi-cell>

垂直居中

通过 center 属性设置垂直居中。

vue
<hi-cell title="垂直居中" leftIconName="/static/images/icons/phone.png" desc="单元格描述" tips="我是单元格提示" center></hi-cell>

Props

参数说明类型默认值可选值
hoverClass单元格的 hover-classStringhi-hover-
center是否垂直居中Booleanfalse-
leftIconName左侧图标名称String--
title标题String--
desc描述String--
tips提示String--
showRight是否显示右侧箭头Booleanfalse-
rightIconName右侧图标名称String--

Slots

名称说明
#left左侧内容插槽
body垂直居中时为 title + tips,非垂直居中时为 left + title + desc + right
#title标题内容插槽
#desc描述内容插槽
#right右侧内容插槽
#tips提示内容插槽