fix(选择器): 选择器选项不存在时显示修复
This commit is contained in:
parent
d52cace152
commit
e887d92873
|
@ -447,6 +447,9 @@ export default defineComponent(
|
|||
});
|
||||
|
||||
function checkOptionExit(label?: string) {
|
||||
if (typeof props.optionLabelRender === 'function') {
|
||||
return label;
|
||||
}
|
||||
const option = remoteOriginOptions.value.find((e) => e[props.labelKey || 'label'] === label);
|
||||
return option ? option[props.labelKey || 'label'] : props.optionNotExitsText || t('ms.select.optionsNotExits');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue