stellar-ui-plus 1.17.5 → 1.17.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
2
  import { computed, defineOptions, type CSSProperties } from 'vue';
3
3
  import { useColorStore } from '../../store/color';
4
- let { getColor } = useColorStore();
4
+ let { color } = useColorStore();
5
5
  import propsData from './props';
6
6
  import utils from '../../utils/utils';
7
7
  import type {
@@ -108,8 +108,9 @@ const cmpBtnStyle = computed(() => {
108
108
  style.fontSize = 'var(--font-size-28, 28rpx)';
109
109
  break;
110
110
  }
111
+ console.log('color', color);
111
112
  // 背景色 & 字体色
112
- style = { ...style, ...utils.bg2style(props.background ? props.background : getColor().steThemeColor) };
113
+ style = { ...style, ...utils.bg2style(props.background ? props.background : color.steThemeColor) };
113
114
  style.color = props.color;
114
115
 
115
116
  // 禁用 disabled | 加载 loading
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stellar-ui-plus",
3
- "version": "1.17.5",
3
+ "version": "1.17.6",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "MIT",
package/store/color.ts CHANGED
@@ -19,24 +19,3 @@ export function useColorStore() {
19
19
  setColor,
20
20
  };
21
21
  }
22
-
23
- // defineStore('color', () => {
24
- // const color = ref({
25
- // steThemeColor: '#0090FF',
26
- // defaultColor: '#0090FF',
27
- // })
28
- // const setColor = (val: any) => {
29
- // console.log('val', val)
30
- // color.value = Object.assign(color.value, val)
31
- // console.log('color', color.value)
32
- // }
33
- // const getColor = () => {
34
- // return color.value
35
- // }
36
-
37
- // return {
38
- // color,
39
- // setColor,
40
- // getColor,
41
- // }
42
- // })