@gitlab/ui
Version:
GitLab UI Components
26 lines (20 loc) • 371 B
JavaScript
import { extend } from '../vue';
// --- Props ---
const props = {
size: {
type: String,
required: false,
default: undefined
}
};
// --- Mixin ---
// @vue/component
const formSizeMixin = extend({
props,
computed: {
sizeFormClass() {
return [this.size ? `form-control-${this.size}` : null];
}
}
});
export { formSizeMixin, props };