1
0
mirror of synced 2024-11-22 05:16:05 +03:00

Adds data-type attribute, and formulate-element--type-- to formulate elment wrappers

This commit is contained in:
Justin Schroeder 2018-02-26 22:15:15 -05:00
parent a8dd145247
commit 03054ebef7
2 changed files with 7 additions and 3 deletions

4
dist/index.js vendored

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,9 @@
<template> <template>
<div :class="classes"> <div :class="classes">
<div class="formulate-element-input-wrapper"> <div
class="formulate-element-input-wrapper"
:data-type="type"
>
<!-- TEXT STYLE INPUTS --> <!-- TEXT STYLE INPUTS -->
<label <label
:for="id" :for="id"
@ -221,6 +224,7 @@ export default {
classes () { classes () {
return { return {
'formulate-element': true, 'formulate-element': true,
[`formulate-element--type--${this.type}`]: true,
'formulate-element--has-value': !!this.value, 'formulate-element--has-value': !!this.value,
'formulate-element--has-errors': this.localAndValidationErrors.length && this.shouldShowErrors 'formulate-element--has-errors': this.localAndValidationErrors.length && this.shouldShowErrors
} }