chore: adjust code

This commit is contained in:
chenjiahan
2020-09-04 15:33:35 +08:00
parent 82ac453910
commit 3c415c42d0
5 changed files with 15 additions and 15 deletions
+5 -5
View File
@@ -27,6 +27,11 @@ export default createComponent({
},
setup(props, { slots }) {
const spinnerStyle = computed(() => ({
color: props.color,
...getSizeStyle(props.size),
}));
const renderText = () => {
if (slots.default) {
return (
@@ -42,11 +47,6 @@ export default createComponent({
}
};
const spinnerStyle = computed(() => ({
color: props.color,
...getSizeStyle(props.size),
}));
return () => {
const { type, vertical } = props;
return (