perf: code style

This commit is contained in:
vben
2020-10-20 23:11:58 +08:00
parent 894b63b801
commit f96d6b221c
6 changed files with 8 additions and 7 deletions

View File

@@ -53,8 +53,6 @@ export default defineComponent({
}
};
watch(() => props.icon, update, { flush: 'post' });
const wrapStyleRef = computed((): any => {
const { size, color } = props;
let fs = size;
@@ -68,6 +66,7 @@ export default defineComponent({
};
});
watch(() => props.icon, update, { flush: 'post' });
onMounted(update);
return () => (