Implemented tab count limit validation

This commit is contained in:
2023-11-30 08:50:31 +01:00
parent 6f93b03449
commit db7a8e9c2a
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ const props = defineProps(
{
stylizedName: {type: String, required: true},
data: {type: Array<TabData>},
tabCountLimit: {type: Number, required: false}
tabCountLimit: {type: Number, required: false, validator: (value) => typeof value == "number" && value > 0}
}
)
const emit = defineEmits(['update:modelValue'])