CellGroup Cell group
Group related cells with shared borders and rounded styling.
Import
Use <hui-cell-group> with uni-app easycom. Import public types from @nscode/handy-uni. For ordinary Vue 3, install the preview plugin from @nscode/handy-uni/web and register its components.
Examples
Interact with the controls to see values and event results on the page.
vue
<template>
<view>
<hui-cell-group title="资料 / Profile" inset border
><hui-cell title="名称 / Name" value="Guest" /><hui-cell
title="状态 / Status"
value="正常 / Active"
/></hui-cell-group>
<text>{{ lastEvent }}</text>
</view>
</template>
<script setup lang="ts">
import { ref } from 'vue'
const lastEvent = ref('No event yet')
</script>
Props
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | — | Title. |
inset | boolean | false | Inset the cell group with rounded corners. |
border | boolean | true | Show the outer group border; Cell separators remain independent. |
Root attributes: common props. A Boolean default of undefined supports inheritance; explicit false overrides it. Other Boolean props default to false unless listed otherwise.
Events
None.
Slots
| Slot | Parameters | Description |
|---|---|---|
title | — | Custom title region; replaces its fallback content. |
default | — | Main content. |
Methods
None.
Types
CellGroupProps are available from @nscode/handy-uni.
Platform notes
| Behavior | uni-app H5 | WeChat Mini Program | App-vue | Ordinary Vue 3 Web (preview) |
|---|---|---|---|---|
| Basic interaction | Supported; device checks pending | Supported; device checks pending | Supported; device checks pending | Supported by the web platform adapter |
Follow the smoke checklist. Device evidence is tracked separately; unit tests do not establish device acceptance.