Skip to content

Commit

Permalink
fix(vue): make swiperRef not required in SwiperSlide vue component (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rtabulov authored Sep 23, 2021
1 parent 7cc856a commit 1cd6af8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/vue/swiper-slide.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const SwiperSlide = {
type: String,
default: 'div',
},
swiperRef: Object,
swiperRef: { type: Object, required: false },
zoom: { type: Boolean, default: undefined },
virtualIndex: {
type: [String, Number],
Expand Down
2 changes: 1 addition & 1 deletion src/vue/swiper-vue.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ declare const SwiperSlide: DefineComponent<{
type: StringConstructor;
default: string;
};
swiperRef: SwiperClass;
swiperRef: { type: SwiperClass; required: false };
zoom: { type: BooleanConstructor; default: undefined };
virtualIndex: {
type: StringConstructor | NumberConstructor;
Expand Down

0 comments on commit 1cd6af8

Please sign in to comment.