Browse Source

docs: ImagePreview 文档优化 (#701)

* fix: 样式冲突问题修复

* fix: 文档修改ImagePreview
JackieScorpio 4 years ago
parent
commit
627e7105fe
1 changed files with 5 additions and 5 deletions
  1. 5 5
      src/packages/__VUE/imagepreview/doc.md

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

@@ -1,4 +1,4 @@
-# imagepreview组件
+# Imagepreview 组件
 
 ### 介绍
     
@@ -7,18 +7,18 @@
 ### 安装
 
 ```javascript
-import { createApp } from 'vue';
-import { ImagePreview } from '@nutui/nutui';
+import { createApp, reactive, toRefs } from 'vue';
+import { ImagePreview, Swiper, SwiperItem, Popup, Cell, Icon } from '@nutui/nutui';
 
 const app = createApp();
-app.use(ImagePreview);
+app.use(ImagePreview).use(Swiper).use(SwiperItem).use(Popup).use(Cell).use(Icon);
 ```
 
 ### 基础用法
 
 ```html
 <nut-imagepreview :show="showPreview" :images="dataImgItem" @close="hideFn" />
-<nut-cell isLink title="展示图片预览" :showIcon="true" @click="showFn"></nut-cell>
+<nut-cell title="展示图片预览" :showIcon="true" @click="showFn"></nut-cell>
 ```
 
 ```javascript