From f6e53e478fcc51b6c4f07c5de3c9ae2741f05a4d Mon Sep 17 00:00:00 2001 From: jtubau Date: Fri, 7 Feb 2025 07:27:36 +0100 Subject: [PATCH 1/2] fix: refs #7318 fixed claim summary warnings --- src/components/ui/VnNotes.vue | 7 ++++++- src/components/ui/VnSearchbar.vue | 4 ++-- src/pages/Claim/Card/ClaimDescriptor.vue | 5 ++--- src/pages/Claim/Card/ClaimNotes.vue | 3 ++- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/components/ui/VnNotes.vue b/src/components/ui/VnNotes.vue index 5b1d6e726..ec6289a67 100644 --- a/src/components/ui/VnNotes.vue +++ b/src/components/ui/VnNotes.vue @@ -18,7 +18,12 @@ import VnInput from 'components/common/VnInput.vue'; const emit = defineEmits(['onFetch']); -const $attrs = useAttrs(); +const originalAttrs = useAttrs(); + +const $attrs = computed(() => { + const { style, ...rest } = originalAttrs; + return rest; +}); const isRequired = computed(() => { return Object.keys($attrs).includes('required') diff --git a/src/components/ui/VnSearchbar.vue b/src/components/ui/VnSearchbar.vue index 30e4135e2..df1dc522f 100644 --- a/src/components/ui/VnSearchbar.vue +++ b/src/components/ui/VnSearchbar.vue @@ -42,8 +42,8 @@ const props = defineProps({ default: null, }, order: { - type: String, - default: '', + type: Array, + default: [], }, limit: { type: Number, diff --git a/src/pages/Claim/Card/ClaimDescriptor.vue b/src/pages/Claim/Card/ClaimDescriptor.vue index f55b0c48b..1a437de7d 100644 --- a/src/pages/Claim/Card/ClaimDescriptor.vue +++ b/src/pages/Claim/Card/ClaimDescriptor.vue @@ -86,7 +86,7 @@ onMounted(async () => { /> - +