Commit f96d6b221c7ad97e0ed80250acb192b6be92c4a6
1 parent
894b63b8
perf: code style
Showing
6 changed files
with
8 additions
and
7 deletions
src/components/Icon/index.tsx
... | ... | @@ -53,8 +53,6 @@ export default defineComponent({ |
53 | 53 | } |
54 | 54 | }; |
55 | 55 | |
56 | - watch(() => props.icon, update, { flush: 'post' }); | |
57 | - | |
58 | 56 | const wrapStyleRef = computed((): any => { |
59 | 57 | const { size, color } = props; |
60 | 58 | let fs = size; |
... | ... | @@ -68,6 +66,7 @@ export default defineComponent({ |
68 | 66 | }; |
69 | 67 | }); |
70 | 68 | |
69 | + watch(() => props.icon, update, { flush: 'post' }); | |
71 | 70 | onMounted(update); |
72 | 71 | |
73 | 72 | return () => ( | ... | ... |
src/components/Loading/BasicLoading.vue
src/components/Loading/FullLoading.vue
... | ... | @@ -21,7 +21,6 @@ |
21 | 21 | absolute: Boolean as PropType<boolean>, |
22 | 22 | }, |
23 | 23 | setup(props) { |
24 | - // 样式前缀 | |
25 | 24 | const getStyle = computed((): any => { |
26 | 25 | return props.absolute |
27 | 26 | ? { |
... | ... | @@ -32,6 +31,7 @@ |
32 | 31 | } |
33 | 32 | : {}; |
34 | 33 | }); |
34 | + | |
35 | 35 | return { getStyle, SizeEnum }; |
36 | 36 | }, |
37 | 37 | }); | ... | ... |
src/components/Markdown/src/index.vue
src/components/Menu/src/BasicMenu.tsx