wujingjing
2025-01-09 cfdb2c4a9239d80baa8747293eddb77834362b5c
src/components/chat/chatComponents/summaryCom/components/recordSetTable/components/StringInput.vue
@@ -2,7 +2,7 @@
   <div class="flex-items-center">
      <span class="flex-0 mr-2" v-if="data?.title">{{ data?.title }}</span>
      <el-input v-if="!isSelect" :disabled="disabled" v-model="modelValue" @input="stringInputInput" clearable></el-input>
      <el-select v-else :disabled="disabled" v-model="modelValue" @change="stringInputInput" filterable multiple clearable>
      <el-select class="w-[268px]"  v-else :disabled="disabled" v-model="modelValue" @change="stringInputInput" filterable multiple clearable collapse-tags collapse-tags-tooltip>
         <el-option v-for="item in data?.origin?.value_list" :key="item" :value="item" :label="item"></el-option>
      </el-select>
   </div>
@@ -19,10 +19,7 @@
const isSelect = computed(() => {
   return props.data?.origin?.value_list?.length > 0;
});
const modelValue = defineModel({
   type: Array,
   default: () => [],
});
const modelValue = defineModel();
const stringInputInput = (val) => {
   let finalValue;
   if (!val) {
@@ -33,4 +30,9 @@
   emit('change', finalValue);
};
</script>
<style scoped lang="scss"></style>
<style scoped lang="scss">
:deep(.el-select__tags-text){
   // max-width: 82px !important;
}
</style>