The list style and clicks of the select component of iview are invalid

the select component of iview has no effect on list styles and clicks after loading this component on demand, but there is no problem with using this select component after the global introduction of iview in main.js. Only style files are introduced in main.js, and I follow the official documents.


< hr >

the first picture style is written by me
the second picture style is the normal style of the official website
here is the code

< hr >

this is a component file

<template>
  <Select v-model="model1" style="width:200px">
    <Option v-for="item in cityList" :value="item.value" :key="item.value">{{ item.label }}</Option>
  </Select>
</template>
<script>
  import Select from "iview/src/components/Select";
  export default {
      components:{
        Select
      },
    data () {
      return {
        cityList: [
          {
            value: "New York",
            label: "New York"
          },
          {
            value: "London",
            label: "London"
          }
        ],
        model1: ""
      }
    }
  }
</script>

this is configured under module in webapck

{ 
        test: /iview.src.*?js$/, 
        loader: "babel-loader" 
      },
      { 
        test: /\.js$/, 
        loader: "babel-loader", 
        exclude: /node_modules/ 
      }

can someone help me to see what the problem is

Mar.06,2021

changed the style? Is it blocking the original element for a similar pseudo class?


just update the vue.js version to the latest

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e857cf-684cd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e857cf-684cd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?