Pre Merge pull request !351 from 谷谷/master

This commit is contained in:
谷谷 2023-11-28 12:30:05 +00:00 committed by Gitee
commit 5bb7600b3d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 97 additions and 92 deletions

View File

@ -58,6 +58,11 @@ export default {
unmatch() {
this.unmatchArray = [];
if (this.value !== null && typeof this.value !== "undefined") {
// Boolean
// truefalse
if (this.value === true || this.value === false) {
this.value = String(this.value);
}
//
if (!Array.isArray(this.value)) {
if (this.options.some((v) => v.value == this.value)) return false;