Adds data-type attribute, and formulate-element--type-- to formulate elment wrappers
This commit is contained in:
parent
a8dd145247
commit
03054ebef7
4
dist/index.js
vendored
4
dist/index.js
vendored
File diff suppressed because one or more lines are too long
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user