UNPKG

@coreui/vue

Version:

UI Components Library for Vue.js

46 lines (42 loc) 1.15 kB
'use strict'; var vue = require('vue'); const CPagination = vue.defineComponent({ name: 'CPagination', props: { /** * Set the alignment of pagination components. * * @values 'start', 'center', 'end' */ align: { type: String, validator: (value) => { return ['start', 'center', 'end'].includes(value); }, }, /** * Size the component small or large. * * @values 'sm', 'lg' */ size: { type: String, validator: (value) => { return ['sm', 'lg'].includes(value); }, }, }, setup(props, { slots }) { return () => vue.h('nav', {}, vue.h('ul', { class: [ 'pagination', { [`justify-content-${props.align}`]: props.align, [`pagination-${props.size}`]: props.size, }, ], }, slots.default && slots.default())); }, }); exports.CPagination = CPagination; //# sourceMappingURL=CPagination.js.map