完整用法
左标题右值,可跳转可点击的列表行
<cu-cell-group> <cu-cell title="只有 title" /> <cu-cell title="title + value" value="右侧值" /> <cu-cell title="title + label + value" label="label 副标题在 title 下方" value="右侧值" /> <cu-cell title="value 较长" value="右侧值较长时的表现" /> <cu-cell title="value 极端长(负向对照)" value="这里是很长的一段右侧文本用来观察 value 区的换行与对齐表现" /> </cu-cell-group> <cu-cell-group> <cu-cell icon="cuIcon-homefill" title="左图标 cuIcon-homefill" /> <cu-cell icon="cuIcon-phone" title="左图标 cuIcon-phone" value="138****8888" /> </cu-cell-group> <cu-cell-group> <cu-cell title="isLink=true(默认右图标 cuIcon-right)" :isLink="true" /> <cu-cell title="rightIcon 换成本仓合法名" :isLink="true" rightIcon="cuIcon-rounddown" /> <cu-cell title="arrowDirection=up" :isLink="true" arrowDirection="up" /> <cu-cell title="arrowDirection=down" :isLink="true" arrowDirection="down" /> <cu-cell title="arrowDirection=left(参考实现无样式)" :isLink="true" arrowDirection="left" /> <cu-cell title="isLink=false 时 rightIcon 不渲染" rightIcon="cuIcon-warnfill" /> </cu-cell-group> <cu-cell-group> <cu-cell title="center=false(默认,上下撑满)" label="带 label 时顶部对齐" value="值" /> <cu-cell title="center=true" label="带 label 时垂直居中" value="值" :center="true" /> <cu-cell title="disabled=true" label="不 emit、不跳转,三段文字变灰" value="值" :disabled="true" /> <cu-cell title="border=false(无下分割线)" :border="false" /> <cu-cell title="size 默认" value="值" /> <cu-cell title="size=large(唯一生效值)" value="值" size="large" /> <cu-cell title="size=small(非 large 等同默认)" value="值" size="small" /> </cu-cell-group> <cu-cell-group> <cu-cell title="required=true ⇒ 不出现星号" :required="true" value="参考实现声明但模板零消费" /> <cu-cell title="clickable=true ⇒ 与不传无差别" :clickable="true" value="@tap 无条件绑在根节点" /> <cu-cell title="iconStyle / rightIconStyle 不消费" :isLink="true" :iconStyle="styleDemo" :rightIconStyle="styleDemo" value="cu-icon 契约无对应入口" /> <cu-cell title="stop=true 不绑 .stop" :stop="true" value="蒸汽模式事件类型未实测" /> <cu-cell title="titleStyle 是唯一消费的对象 prop" :titleStyle="styleDemo" value="左侧内边距 40px" /> </cu-cell-group> <cu-cell-group> <cu-cell title="navigateTo → cu-icon demo 页" :isLink="true" url="/pages/base/cu-icon" /> <cu-cell title="redirectTo → cu-tag 页(本页被替换)" :isLink="true" url="/pages/base/cu-tag" linkType="redirectTo" /> <cu-cell title="非法 linkType(四分支外,不跳转)" :isLink="true" url="/pages/base/cu-button" linkType="pushWindow" /> </cu-cell-group> <cu-cell-group> <cu-cell title="customStyle 直接落到根节点" :customStyle="styleDemo" /> <cu-cell title="customClass 作为根节点唯一动态类" customClass="custom-class" /> </cu-cell-group> <cu-cell-group> <cu-cell> <template #icon> <text> 槽 icon </text> </template> <template #title> <text> 槽 title(覆盖 title prop) </text> </template> <template #label> <text> 槽 label </text> </template> <template #value> <text> 槽 value </text> </template> <template #right-icon> <text> 槽 right-icon </text> </template> </cu-cell> </cu-cell-group>