perf(components): remove unnecessary const assertions (#8407)

This commit is contained in:
zz
2022-06-22 14:30:13 +08:00
committed by GitHub
parent 63847a981f
commit f2e48c1835
4 changed files with 6 additions and 6 deletions

View File

@@ -18,7 +18,7 @@ export const formProps = buildProps({
},
labelPosition: {
type: String,
values: ['left', 'right', 'top'] as const,
values: ['left', 'right', 'top'],
default: 'right',
},
labelWidth: {

View File

@@ -36,7 +36,7 @@ export const resultProps = buildProps({
},
icon: {
type: String,
values: ['success', 'warning', 'info', 'error'] as const,
values: ['success', 'warning', 'info', 'error'],
default: 'info',
},
} as const)

View File

@@ -16,7 +16,7 @@ export const stepProps = buildProps({
},
status: {
type: String,
values: ['', 'wait', 'process', 'finish', 'error', 'success'] as const,
values: ['', 'wait', 'process', 'finish', 'error', 'success'],
default: '',
},
} as const)

View File

@@ -15,7 +15,7 @@ export const stepsProps = buildProps({
direction: {
type: String,
default: 'horizontal',
values: ['horizontal', 'vertical'] as const,
values: ['horizontal', 'vertical'],
},
alignCenter: {
type: Boolean,
@@ -25,12 +25,12 @@ export const stepsProps = buildProps({
},
finishStatus: {
type: String,
values: ['wait', 'process', 'finish', 'error', 'success'] as const,
values: ['wait', 'process', 'finish', 'error', 'success'],
default: 'finish',
},
processStatus: {
type: String,
values: ['wait', 'process', 'finish', 'error', 'success'] as const,
values: ['wait', 'process', 'finish', 'error', 'success'],
default: 'process',
},
} as const)