Skip to content

Commit

Permalink
fix: Table组件中size属性的validator设置错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Cwealth committed Jan 19, 2024
1 parent cbd74b0 commit f30e37e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Table/src/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default defineComponent({
border: propTypes.bool.def(true),
size: {
type: String as PropType<ComponentSize>,
validator: (v: ComponentSize) => ['medium', 'small', 'mini'].includes(v)
validator: (v: ComponentSize) => ['default', 'small', 'large'].includes(v)
},
fit: propTypes.bool.def(true),
showHeader: propTypes.bool.def(true),
Expand Down

0 comments on commit f30e37e

Please sign in to comment.