refactor(projects): 添加exportDefaults替换defineProps

This commit is contained in:
Soybean
2021-11-07 01:23:01 +08:00
committed by Soybean
parent 43b832bee0
commit e61ee32a88
42 changed files with 886 additions and 970 deletions

View File

@ -9,9 +9,9 @@ import { computed } from 'vue';
interface Props {
/** 渐变开始的颜色 */
startColor: string;
startColor?: string;
/** 渐变结束的颜色 */
endColor: string;
endColor?: string;
}
const props = withDefaults(defineProps<Props>(), {