Skip to content
This repository has been archived by the owner on Dec 6, 2021. It is now read-only.

Commit

Permalink
fix(tabs): removerequired for props with default value
Browse files Browse the repository at this point in the history
  • Loading branch information
b2nil committed Apr 3, 2021
1 parent 385cc1b commit 7d008ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/components/tabs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ const AtTabs = defineComponent({
},
current: {
type: Number,
default: 0,
required: true
default: 0
},
scroll: {
type: Boolean,
Expand All @@ -45,8 +44,7 @@ const AtTabs = defineComponent({
},
onClick: {
type: Function as PropType<AtTabsProps['onClick']>,
default: () => (index: number, event: CommonEvent) => { },
required: true
default: () => (index: number, event: CommonEvent) => { }
},
},

Expand Down
3 changes: 1 addition & 2 deletions src/components/tabs/pane/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ const AtTabsPane = defineComponent({
props: {
tabDirection: {
type: String as PropType<AtTabsPaneProps['tabDirection']>,
default: 'horizontal',
required: true
default: 'horizontal'
},
index: {
type: Number,
Expand Down

0 comments on commit 7d008ad

Please sign in to comment.