Browse Source

fix: imagepreview 引入 swiper 报错问题修复 (#792)

* fix: imagepreview 引入 swiper 报错问题修复
JackieScorpio 4 years ago
parent
commit
d97883b4ff

+ 1 - 1
src/packages/__VUE/imagepreview/doc.md

@@ -10,7 +10,7 @@
 import { createApp, reactive, toRefs } from 'vue';
 
 // vue
-import { ImagePreview } from '@nutui/nutui';
+import { ImagePreview, Swiper, SwiperItem } from '@nutui/nutui';
 // taro
 import { ImagePreview } from '@nutui/nutui-taro';
 

+ 1 - 5
src/packages/__VUE/imagepreview/index.vue

@@ -21,8 +21,6 @@
 import { toRefs, reactive, watch } from 'vue';
 import { createComponent } from '../../utils/create';
 import Popup from '../popup/index.vue';
-import Swiper from '../swiper/index.vue';
-import SwiperItem from '../Swiperitem/index.vue';
 const { componentName, create } = createComponent('imagepreview');
 
 export default create({
@@ -37,9 +35,7 @@ export default create({
     }
   },
   components: {
-    [Popup.name]: Popup,
-    [Swiper.name]: Swiper,
-    [SwiperItem.name]: SwiperItem
+    [Popup.name]: Popup
   },
 
   setup(props, { emit }) {