types(Stepper): improve theme prop typing (#8489)

This commit is contained in:
neverland
2021-04-09 14:41:48 +08:00
committed by GitHub
parent 07431487f3
commit 471fabb810
2 changed files with 5 additions and 2 deletions
+3 -1
View File
@@ -30,11 +30,13 @@ function add(num1: number, num2: number) {
return Math.round((num1 + num2) * cardinal) / cardinal;
}
export type StepperTheme = 'default' | 'round';
export default defineComponent({
name,
props: {
theme: String,
theme: String as PropType<StepperTheme>,
integer: Boolean,
disabled: Boolean,
allowEmpty: Boolean,