mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
perf(components): remove unnecessary const assertions (#8407)
This commit is contained in:
@@ -18,7 +18,7 @@ export const formProps = buildProps({
|
||||
},
|
||||
labelPosition: {
|
||||
type: String,
|
||||
values: ['left', 'right', 'top'] as const,
|
||||
values: ['left', 'right', 'top'],
|
||||
default: 'right',
|
||||
},
|
||||
labelWidth: {
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user