소스 검색

fix:选择组件添加主题配置

liu.shiyi 1 년 전
부모
커밋
a1ac5ec06e
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      data-room-ui/packages/BasicComponents/Select/index.vue

+ 1 - 0
data-room-ui/packages/BasicComponents/Select/index.vue

@@ -123,6 +123,7 @@ export default {
       return config
     },
     changeStyle (config) {
+      config = { ...this.config, ...config }
       // 样式改变时更新主题配置
       config.theme = settingToTheme(cloneDeep(config), this.customTheme)
       this.changeChartConfig(config)