fix: bug
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 2m9s

This commit is contained in:
sexygoat
2026-04-23 14:59:05 +08:00
parent a9467e8a0c
commit a5e76313cb
28 changed files with 1284 additions and 702 deletions

View File

@@ -8,6 +8,7 @@
:disabled="v.disabled || false"
>
</el-option>
<el-option v-if="options.length === 0" label="无数据" value="__NO_DATA__" disabled />
</el-select>
</template>
@@ -39,7 +40,7 @@
// 合并默认配置和自定义配置
const config = reactive({
placeholder: `${t('table.searchBar.searchSelectPlaceholder')}${prop.item.label}`, // 修改默认placeholder文案
placeholder: `${t('table.searchBar.searchSelectPlaceholder')}${prop.item.label}`,
...(prop.item.config || {})
})
@@ -56,14 +57,12 @@
// 计算属性:处理选项数据
const options = computed(() => {
if (prop.item.options) {
// 判断options是数组还是函数
if (Array.isArray(prop.item.options)) {
return prop.item.options
} else {
return prop.item.options()
}
} else {
return []
}
return []
})
</script>