引入

  1. {
  2. "usingComponents": {
  3. "x-cell-group":"waft-ui/assembly/cell-group/cell-group"
  4. }
  5. }

代码示例

  1. <x-cell-group>
  2. <x-cell title="登录账号" value="天猫精灵" size="small" align="left" labelWidth="160" border="{{false}}" titleColor="#7282A3"></x-cell>
  3. <x-cell title="绑定手机" value="138********" size="small" align="left" labelWidth="160" border="{{false}}" titleColor="#7282A3"></x-cell>
  4. <x-cell title="服务地址" value="浙江省杭州市xxxxxx" size="small" align="left" labelWidth="160" border="{{false}}" titleColor="#7282A3"></x-cell>
  5. </x-cell-group>

效果展示

cell.png

API

  • props | 参数 | 说明 | 类型 | 默认值 | | —- | —- | —- | —- | | title | 分组标题 | string |
    | | border | 是否显示外边框 | boolean | true | | labelWidth | label的宽度 | number |
    | | size | 统一设置 size | string | normal | | align | 统一设置 align | string | right | | center | 统一设置 center | boolean | true | | titleFontSize | title 文字的大小 | number | 38 | | titleColor | title 文字的颜色 | string | |