Bläddra i källkod

feat:修改主题组件属性配置

liu.shiyi 1 år sedan
förälder
incheckning
5a7ba13f2b

+ 2 - 4
data-room-ui/packages/BasicComponents/ThemeSwitcher/index.vue

@@ -32,11 +32,12 @@
 import paramsMixins from 'data-room-ui/js/mixins/paramsMixins'
 import { themeToSetting } from 'data-room-ui/js/utils/themeFormatting'
 import { mapMutations, mapState } from 'vuex'
+import { refreshComponentMixin } from 'data-room-ui/js/mixins/refreshComponent'
 
 export default {
   name: 'ThemeSwitcher',
   components: {},
-  mixins: [paramsMixins],
+  mixins: [paramsMixins, refreshComponentMixin],
   props: {
     // 卡片的属性
     config: {
@@ -71,9 +72,6 @@ export default {
     ...mapMutations({
       changePageInfo: 'bigScreen/changePageInfo'
     }),
-    // 由于静态组件没有混入公共函数,所以需要定义一个changeStyle方法,以免报错
-    changeStyle (config) {
-    },
     // 点击切换主题
     handleChange (val) {
       const pageInfo = this.pageInfo

+ 1 - 1
data-room-ui/packages/BasicComponents/ThemeSwitcher/settingConfig.js

@@ -21,7 +21,7 @@ const customConfig = {
     version: '2023071001'
   },
   customize: {
-    activeColor: 'red', // 单选框字体激活状态
+    activeColor: '#007aff', // 单选框字体激活状态
     inactiveColor: '#bcc9d4'// 单选框字体非激活状态
   }