| 
														
															@@ -7,7 +7,8 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           :key="item.value"
 
														 | 
														
														 | 
														
															           :key="item.value"
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           :index="index"
 
														 | 
														
														 | 
														
															           :index="index"
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           :class="item.elTagClass"
 
														 | 
														
														 | 
														
															           :class="item.elTagClass"
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        >{{ item.label }}</span>
 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+          >{{ item.label + " " }}</span
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        >
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         <el-tag
 
														 | 
														
														 | 
														
															         <el-tag
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           v-else
 
														 | 
														
														 | 
														
															           v-else
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           :disable-transitions="true"
 
														 | 
														
														 | 
														
															           :disable-transitions="true"
 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -15,13 +16,20 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           :index="index"
 
														 | 
														
														 | 
														
															           :index="index"
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           :type="item.elTagType === 'primary' ? '' : item.elTagType"
 
														 | 
														
														 | 
														
															           :type="item.elTagType === 'primary' ? '' : item.elTagType"
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           :class="item.elTagClass"
 
														 | 
														
														 | 
														
															           :class="item.elTagClass"
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        >{{ item.label }}</el-tag>
 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+          >{{ item.label + " " }}</el-tag
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        >
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       </template>
 
														 | 
														
														 | 
														
															       </template>
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     </template>
 
														 | 
														
														 | 
														
															     </template>
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    <template v-if="unmatch && showValue">
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      {{ unmatchArray | handleArray }}
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    </template>
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   </div>
 
														 | 
														
														 | 
														
															   </div>
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 </template>
 
														 | 
														
														 | 
														
															 </template>
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
 
														 | 
														
														 | 
														
															 
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 <script setup>
 
														 | 
														
														 | 
														
															 <script setup>
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+// // 记录未匹配的项
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+const unmatchArray = ref([]);
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 const props = defineProps({
 
														 | 
														
														 | 
														
															 const props = defineProps({
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   // 数据
 
														 | 
														
														 | 
														
															   // 数据
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   options: {
 
														 | 
														
														 | 
														
															   options: {
 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -30,16 +38,47 @@ const props = defineProps({ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   },
 
														 | 
														
														 | 
														
															   },
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   // 当前的值
 
														 | 
														
														 | 
														
															   // 当前的值
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   value: [Number, String, Array],
 
														 | 
														
														 | 
														
															   value: [Number, String, Array],
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-})
 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  // 当未找到匹配的数据时,显示value
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  showValue: {
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    type: Boolean,
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    default: true,
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  },
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+});
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
 
														 | 
														
														 | 
														
															 
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 const values = computed(() => {
 
														 | 
														
														 | 
														
															 const values = computed(() => {
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-  if (props.value !== null && typeof props.value !== 'undefined') {
 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  if (props.value !== null && typeof props.value !== "undefined") {
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     return Array.isArray(props.value) ? props.value : [String(props.value)];
 
														 | 
														
														 | 
														
															     return Array.isArray(props.value) ? props.value : [String(props.value)];
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   } else {
 
														 | 
														
														 | 
														
															   } else {
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     return [];
 
														 | 
														
														 | 
														
															     return [];
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   }
 
														 | 
														
														 | 
														
															   }
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-})
 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+});
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
 
														 | 
														
														 | 
														
															 
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+const unmatch = computed(() => {
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  unmatchArray.value = [];
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  if (props.value !== null && typeof props.value !== "undefined") {
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    // 传入值为非数组
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    if (!Array.isArray(props.value)) {
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      if (props.options.some((v) => v.value == props.value)) return false;
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      unmatchArray.value.push(props.value);
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      return true;
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    }
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    // 传入值为Array
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    props.value.forEach((item) => {
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      if (!props.options.some((v) => v.value == item))
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        unmatchArray.value.push(item);
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    });
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    return true;
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  }
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  // 没有value不显示
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  return false;
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+});
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+function handleArray(array) {
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  if (array.length === 0) return "";
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  return array.reduce((pre, cur) => {
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    return pre + " " + cur;
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  });
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+}
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 </script>
 
														 | 
														
														 | 
														
															 </script>
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
 
														 | 
														
														 | 
														
															 
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 <style scoped>
 
														 | 
														
														 | 
														
															 <style scoped>
 
														 |