Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
LiuHao 2024-01-26 09:58:09 +08:00
commit 15243ab713

View File

@ -50,12 +50,13 @@ const values = computed(() => {
const unmatch = computed(() => {
if (props.options?.length == 0 || props.value === '' || props.value === null || typeof props.value === 'undefined') return false;
//
let unmatch = false; //
values.value.forEach((item) => {
if (!props.options.some((v) => v.value === item)) {
return true; // true
unmatch = true; // true
}
});
return false; //
return unmatch; //
});
const unmatchArray = computed(() => {