Pārlūkot izejas kodu

修复search组件显示异常

luoxiao 2 mēneši atpakaļ
vecāks
revīzija
332b62aadd
1 mainītis faili ar 7 papildinājumiem un 7 dzēšanām
  1. 7 7
      src/components/Search/index.vue

+ 7 - 7
src/components/Search/index.vue

@@ -21,7 +21,7 @@
             placeholder="Select"
           >
             <el-option
-              v-for="item in options"
+              v-for="item in option.options"
               :key="item.value"
               :label="item.label"
               :value="item.value"
@@ -70,12 +70,12 @@ const reset = () => {
 const setSearchFrom = () => {
   props.searchOptions.forEach((option) => {});
 };
-const options = [
-  {
-    lable: "a",
-    value: "a",
-  },
-];
+// const options = [
+//   {
+//     lable: "a",
+//     value: "a",
+//   },
+// ];
 defineExpose({ searchForm });
 </script>
 <style lang="scss" scoped>