UNPKG

@coreui/vue

Version:

UI Components Library for Vue.js

29 lines (25 loc) 781 B
'use strict'; var vue = require('vue'); var props = require('../../props.js'); const CTableHeaderCell = vue.defineComponent({ name: 'CTableHeaderCell', props: { /** * Sets the color context of the component to one of CoreUI’s themed colors. * * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light', string */ color: props.Color, }, setup(props, { slots }) { return () => vue.h('th', { class: [ { [`table-${props.color}`]: props.color, }, ], }, slots.default && slots.default()); }, }); exports.CTableHeaderCell = CTableHeaderCell; //# sourceMappingURL=CTableHeaderCell.js.map