stellar-ui-plus 1.17.6 → 1.17.7
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,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { computed, defineOptions, type CSSProperties } from 'vue';
|
|
2
|
+
import { computed, defineOptions, type CSSProperties, watch } from 'vue';
|
|
3
3
|
import { useColorStore } from '../../store/color';
|
|
4
4
|
let { color } = useColorStore();
|
|
5
5
|
import propsData from './props';
|
|
@@ -49,6 +49,14 @@ const emits = defineEmits<{
|
|
|
49
49
|
(e: 'followLifestyle', event?: Event): void;
|
|
50
50
|
}>();
|
|
51
51
|
|
|
52
|
+
watch(
|
|
53
|
+
() => color,
|
|
54
|
+
v => {
|
|
55
|
+
console.log('vvvv', v);
|
|
56
|
+
},
|
|
57
|
+
{ immediate: true, deep: true }
|
|
58
|
+
);
|
|
59
|
+
|
|
52
60
|
const cmpBtnStyle = computed(() => {
|
|
53
61
|
let style = {} as CSSProperties;
|
|
54
62
|
// 为解决支付宝动态类名时不兼容,尽量使用内联样式
|