|
@@ -28,7 +28,7 @@
|
|
|
style="margin-right: 10px"
|
|
|
>
|
|
|
<div class="by-dropdown-title">
|
|
|
- {{ i.label
|
|
|
+ {{ i.label || i.labelCopy
|
|
|
}}<i
|
|
|
style="margin-left: 5px"
|
|
|
class="iconfont icon-iconm_xialan1"
|
|
@@ -270,7 +270,7 @@ export default defineComponent({
|
|
|
const keywrod = ref("");
|
|
|
const selectConfigCopy = computed(() => {
|
|
|
return props.selectConfig.map((item) => {
|
|
|
- item.labelCopy = item.label;
|
|
|
+ if(!item.labelCopy) item.labelCopy = {...item}.label;
|
|
|
return item;
|
|
|
});
|
|
|
});
|
|
@@ -387,7 +387,7 @@ export default defineComponent({
|
|
|
|
|
|
const searchItemSelct = (item, i,index) => {
|
|
|
if (item == "all") {
|
|
|
- i.label = props.selectConfig[index].labelCopy
|
|
|
+ i.label = {...props.selectConfig[index]}.labelCopy
|
|
|
proxy.$emit(
|
|
|
"getList",
|
|
|
Object.assign(props.filterParams, { [i.prop]: "" })
|