UNPKG

@coreui/vue

Version:

UI Components Library for Vue.js

20 lines (16 loc) 512 B
'use strict'; var vue = require('vue'); const CForm = vue.defineComponent({ name: 'CForm', props: { /** * Mark a form as validated. If you set it `true`, all validation styles will be applied to the forms component. */ validated: Boolean, }, setup(props, { slots }) { return () => vue.h('form', { class: [{ ['was-validated']: props.validated }] }, slots.default && slots.default()); }, }); exports.CForm = CForm; //# sourceMappingURL=CForm.js.map