Bläddra i källkod

Merge branch 'master' of http://36.137.93.232:3000/hf/byte-sailing-new

lxf 2 år sedan
förälder
incheckning
08cd0cc263
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. 3 3
      src/components/byTable/index.vue

+ 3 - 3
src/components/byTable/index.vue

@@ -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]: "" })