From dad738677758b5e51c28132557b5aa8df0790d81 Mon Sep 17 00:00:00 2001 From: Justin Schroeder Date: Tue, 26 Feb 2019 10:54:16 -0500 Subject: [PATCH] Adds a prefix and a suffix slot for formulate-elements --- src/components/FormulateElement.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/FormulateElement.vue b/src/components/FormulateElement.vue index 179c5b7..651e495 100644 --- a/src/components/FormulateElement.vue +++ b/src/components/FormulateElement.vue @@ -1,5 +1,6 @@ @@ -311,7 +313,9 @@ export default { 'formulate-element': true, [`formulate-element--type--${this.type}`]: true, 'formulate-element--has-value': !!this.value, - 'formulate-element--has-errors': this.localAndValidationErrors.length && this.shouldShowErrors + 'formulate-element--has-errors': this.localAndValidationErrors.length && this.shouldShowErrors, + 'formulate-element--has-prefix': !!this.slots.prefix, + 'formulate-element--has-suffix': !!this.slots.suffix } }, validationErrors () {