From 04dac12a24011d28a53e5fe15edf50bde9b79e15 Mon Sep 17 00:00:00 2001 From: puriphatt Date: Thu, 6 Jun 2024 10:29:30 +0000 Subject: [PATCH] feat: tab component readonly --- src/components/TabComponent.vue | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/components/TabComponent.vue b/src/components/TabComponent.vue index e65128f5..5328cf92 100644 --- a/src/components/TabComponent.vue +++ b/src/components/TabComponent.vue @@ -2,6 +2,10 @@ import { ref } from 'vue'; import { CustomerBranchCreate } from 'stores/customer/types'; +defineProps<{ + readonly?: boolean; +}>(); + const customerBranch = defineModel('customerBranch', { default: [], }); @@ -67,6 +71,7 @@ function close(index: number) { style="background-color: var(--_body-bg)" @click="addData()" icon="mdi-plus" + :disable="readonly" > -
+
-