Skip to content

Commit

Permalink
perf(components): remove unnecessary const assertions (#8407)
Browse files Browse the repository at this point in the history
  • Loading branch information
holazz committed Jun 22, 2022
1 parent 63847a9 commit f2e48c1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/components/form/src/form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const formProps = buildProps({
},
labelPosition: {
type: String,
values: ['left', 'right', 'top'] as const,
values: ['left', 'right', 'top'],
default: 'right',
},
labelWidth: {
Expand Down
2 changes: 1 addition & 1 deletion packages/components/result/src/result.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion packages/components/steps/src/item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions packages/components/steps/src/steps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const stepsProps = buildProps({
direction: {
type: String,
default: 'horizontal',
values: ['horizontal', 'vertical'] as const,
values: ['horizontal', 'vertical'],
},
alignCenter: {
type: Boolean,
Expand All @@ -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)
Expand Down

0 comments on commit f2e48c1

Please sign in to comment.