UNPKG

@coreui/vue-pro

Version:

UI Components Library for Vue.js

53 lines (49 loc) 1.5 kB
'use strict'; var vue = require('vue'); const CListGroup = vue.defineComponent({ name: 'CListGroup', props: { /** * Component used for the root node. Either a string to use a HTML element or a component. */ as: { type: String, default: 'ul', }, /** * Remove some borders and rounded corners to render list group items edge-to-edge in a parent component (e.g., `<CCard>`) */ flush: Boolean, /** * Specify a layout type. * * @values 'horizontal', 'horizontal-sm', 'horizontal-md', 'horizontal-lg', 'horizontal-xl', 'horizontal-xxl', */ layout: { type: String, validator: (value) => { return [ 'horizontal', 'horizontal-sm', 'horizontal-md', 'horizontal-lg', 'horizontal-xl', 'horizontal-xxl', ].includes(value); }, }, }, setup(props, { slots }) { return () => vue.h(props.as, { class: [ 'list-group', { 'list-group-flush': props.flush, [`list-group-${props.layout}`]: props.layout, }, ], }, slots.default && slots.default()); }, }); exports.CListGroup = CListGroup; //# sourceMappingURL=CListGroup.js.map