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

Commit b57c958

Browse files
committed
fix(segmented-control): remove required for props with default value
1 parent 7d008ad commit b57c958

File tree

1 file changed

+2
-4
lines changed
  • src/components/segmented-control

1 file changed

+2
-4
lines changed

src/components/segmented-control/index.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ const AtSegmentedControl = defineComponent({
1111
props: {
1212
current: {
1313
type: Number,
14-
default: 0,
15-
required: true
14+
default: 0
1615
},
1716
color: {
1817
type: String,
@@ -40,8 +39,7 @@ const AtSegmentedControl = defineComponent({
4039
},
4140
onClick: {
4241
type: Function as PropType<AtSegmentedControlProps['onClick']>,
43-
default: () => (index: number, event: CommonEvent) => { },
44-
required: true
42+
default: () => (index: number, event: CommonEvent) => { }
4543
},
4644
},
4745

0 commit comments

Comments
 (0)