From 08c9d2bfa08cc93be3072cc13545d1774d150b43 Mon Sep 17 00:00:00 2001 From: ttquoccuong Date: Sun, 5 Mar 2023 21:09:58 +0700 Subject: [PATCH 1/2] Update FormControl.vue Added `optionValue` & `optionLabel` in case `options` which do not use `id` & `label` --- src/components/FormControl.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/components/FormControl.vue b/src/components/FormControl.vue index b8ac0fa4..bec9aed9 100644 --- a/src/components/FormControl.vue +++ b/src/components/FormControl.vue @@ -36,6 +36,14 @@ const props = defineProps({ type: Array, default: null, }, + optionLabel: { + type: String, + default: 'label', + }, + optionValue: { + type: String, + default: 'id', + }, type: { type: String, default: "text", @@ -137,9 +145,9 @@ if (props.ctrlKFocus) {