fix: 用户选择器不存在选项回显&缺陷抽屉内删除自动切换下一条
This commit is contained in:
parent
c562fe6527
commit
102dc1d8d6
|
@ -17,7 +17,7 @@
|
||||||
:remote-extra-params="{ ...props.loadOptionParams, type: props.type }"
|
:remote-extra-params="{ ...props.loadOptionParams, type: props.type }"
|
||||||
:option-label-render="optionLabelRender"
|
:option-label-render="optionLabelRender"
|
||||||
:fallback-option="(val) => ({
|
:fallback-option="(val) => ({
|
||||||
label: (val as Record<string, any>).name,
|
label: `${(val as Record<string, any>).name}(${(val as Record<string, any>).email})`,
|
||||||
value: val,
|
value: val,
|
||||||
})"
|
})"
|
||||||
:object-value="true"
|
:object-value="true"
|
||||||
|
|
|
@ -514,7 +514,7 @@
|
||||||
if (!props.pagination && !props.tableData) {
|
if (!props.pagination && !props.tableData) {
|
||||||
showDrawerVisible.value = false;
|
showDrawerVisible.value = false;
|
||||||
} else {
|
} else {
|
||||||
detailDrawerRef.value?.openPrevDetail();
|
detailDrawerRef.value?.openNextDetail();
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
|
|
Loading…
Reference in New Issue