NpCellGroup

A cell group that batch-renders NpCell via the options config, with optional group title.

Basic Usage

options supports all np-cell props.

浏览器不支持,请手动复制 group.en.vue

Props

PropDescriptionTypeDefault
titleGroup titlestring-
optionsCell config listNpCellGroupOption[][]
typeControl type on the left'checkbox' | 'radio' | 'switch'-
sizeSize'small' | 'medium' | 'large'medium
borderedWhether to show dividersbooleanfalse

NpCellGroupOption

PropDescriptionTypeDefault
keyOption identifierstring | numbercurrent index
iconLeft iconVNode | () => VNode-
labelCell labelstring | VNode | () => VNode-
valueCell valuestring | VNode | () => VNode-
descriptionCell descriptionstring | VNode | () => VNode-
footerBottom contentVNode | () => VNode-
hoverWhether to enable hover stateboolean-
arrowWhether to show the right arrowbooleanfalse
onClickClick callback() => void-

Events

EventDescriptionCallback
changeTriggered when the selection changes(keys: NpCellGroupKeys, item: NpCellGroupOption) => void
update:keysTriggered when the control state changes(keys: NpCellGroupKeys) => void