1, 在有加上 scoped, 的情况下
<style lang="less" scoped>
2 使用深度选择器对改下class进行操作, 我这里的深度选择器是 ::v-deep()
::v-deep(.ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector) { border-color: transparent !important; box-shadow: none !important; }