From 9ae3a6dc29bbbcc6ed12c895a6e8729ebc7b38c8 Mon Sep 17 00:00:00 2001 From: cgfhtw Date: Wed, 13 Mar 2024 14:25:01 +0100 Subject: [PATCH] Form Input: label as prop --- public/js/components/Form/Input.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/public/js/components/Form/Input.js b/public/js/components/Form/Input.js index accd30a0e..e36658160 100644 --- a/public/js/components/Form/Input.js +++ b/public/js/components/Form/Input.js @@ -24,7 +24,8 @@ export default { inputGroup: Boolean, type: String, name: String, - containerClass: [String, Array, Object] + containerClass: [String, Array, Object], + label: String }, data() { return { @@ -174,7 +175,7 @@ export default { let uuid = this.$attrs.id; if (this.lcType == 'datepicker') uuid = this.$attrs.uid; - if (!uuid && this.$attrs.label) + if (!uuid && this.label) uuid = 'fhc-form-input'; if (!uuid) return undefined; @@ -236,7 +237,7 @@ export default { }, template: ` - +