From 09c11be62c36a3d432d4289ccea79dc082fdaa47 Mon Sep 17 00:00:00 2001 From: WebDevNerdStuff Date: Mon, 7 Oct 2024 13:02:13 -0700 Subject: [PATCH 1/8] fix issue of strings not setting switch and checkbox correctly --- .../VInlineCheckbox/VInlineCheckbox.vue | 5 +++-- .../components/VInlineCheckbox/index.ts | 4 +++- .../VInlineSwitch/VInlineSwitch.vue | 5 +++-- src/plugin/components/VInlineSwitch/index.ts | 6 ++++-- src/plugin/components/common/BooleanIcons.vue | 20 ++++++++++++++++--- src/plugin/components/common/index.ts | 4 +++- src/plugin/composables/helpers.ts | 16 +++++++++++++-- src/plugin/types/index.ts | 4 ++-- 8 files changed, 49 insertions(+), 15 deletions(-) diff --git a/src/plugin/components/VInlineCheckbox/VInlineCheckbox.vue b/src/plugin/components/VInlineCheckbox/VInlineCheckbox.vue index ad3b395..28dba58 100644 --- a/src/plugin/components/VInlineCheckbox/VInlineCheckbox.vue +++ b/src/plugin/components/VInlineCheckbox/VInlineCheckbox.vue @@ -22,12 +22,14 @@ > @@ -386,5 +388,4 @@ onUnmounted(() => { }); - + diff --git a/src/plugin/components/VInlineCheckbox/index.ts b/src/plugin/components/VInlineCheckbox/index.ts index eaa84e0..a5e0da9 100644 --- a/src/plugin/components/VInlineCheckbox/index.ts +++ b/src/plugin/components/VInlineCheckbox/index.ts @@ -6,9 +6,11 @@ import type VInlineCheckbox from './VInlineCheckbox.vue'; export interface VInlineCheckboxProps extends Omit { - density?: VCheckbox['$props']['density']; + density?: VCheckbox['density']; falseIcon?: string | undefined; trueIcon?: string | undefined; + falseValue?: VCheckbox['falseValue']; + trueValue?: VCheckbox['trueValue']; } diff --git a/src/plugin/components/VInlineSwitch/VInlineSwitch.vue b/src/plugin/components/VInlineSwitch/VInlineSwitch.vue index 53b004c..e9d1b9d 100644 --- a/src/plugin/components/VInlineSwitch/VInlineSwitch.vue +++ b/src/plugin/components/VInlineSwitch/VInlineSwitch.vue @@ -22,12 +22,14 @@ > @@ -372,5 +374,4 @@ onUnmounted(() => { }); - + diff --git a/src/plugin/components/VInlineSwitch/index.ts b/src/plugin/components/VInlineSwitch/index.ts index a3817ff..275ae57 100644 --- a/src/plugin/components/VInlineSwitch/index.ts +++ b/src/plugin/components/VInlineSwitch/index.ts @@ -6,8 +6,10 @@ import type VInlineSwitch from './VInlineSwitch.vue'; export interface VInlineSwitchProps extends Omit { - density?: VSwitch['$props']['density']; - falseIcon?: VSwitch['$props']['falseIcon']; + density?: VSwitch['density']; + falseIcon?: VSwitch['falseIcon']; + falseValue?: VSwitch['falseValue']; + trueValue?: VSwitch['trueValue']; } diff --git a/src/plugin/components/common/BooleanIcons.vue b/src/plugin/components/common/BooleanIcons.vue index e7c2ec0..386229b 100644 --- a/src/plugin/components/common/BooleanIcons.vue +++ b/src/plugin/components/common/BooleanIcons.vue @@ -1,6 +1,6 @@