ソースを参照

docs(imagepreview): add import component

suzigang 3 年 前
コミット
dedf91a115

+ 1 - 1
src/packages/__VUE/ellipsis/doc.en-US.md

@@ -93,7 +93,7 @@ app.use(Ellipsis);
 | expand-text         | Expand text               | String | ''              |
 | collapse-text         | Collapse text               | String | ''               |
 | symbol         | Symbol     | String | '...'       |
-| line-height`v3.2.4`           | the row height of the container     | String、Number | 20       |
+| line-height         | the row height of the container     | String、Number | 20       |
 
 ### Events
 

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

@@ -93,7 +93,7 @@ app.use(Ellipsis);
 | expand-text         | 展开操作的文案               | String | ''              |
 | collapse-text         | 收起操作的文案               | String | ''               |
 | symbol         | 省略的符号     | String | '...'       |
-| line-height`v3.2.4`           | 容器的行高     | String、Number | 20       |
+| line-height          | 容器的行高     | String、Number | 20       |
 
 ### Events
 

+ 6 - 1
src/packages/__VUE/imagepreview/doc.en-US.md

@@ -8,8 +8,13 @@ Support full screen preview videos and images, support functional call.
 
 ```javascript
 import { createApp, reactive, toRefs } from 'vue';
+//vue
+import { ImagePreview, Overlay, Popup, Swiper, SwiperItem } from '@nutui/nutui';
+//taro
+import { ImagePreview, Overlay, Popup, Swiper, SwiperItem } from '@nutui/nutui-taro';
 
-import { ImagePreview } from '@nutui/nutui';
+const app = createApp();
+app.use(ImagePreview);
 
 
 const app = createApp();

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

@@ -9,9 +9,9 @@
 ```javascript
 import { createApp, reactive, toRefs } from 'vue';
 //vue
-import { ImagePreview } from '@nutui/nutui';
+import { ImagePreview, Overlay, Popup, Swiper, SwiperItem } from '@nutui/nutui';
 //taro
-import { ImagePreview } from '@nutui/nutui-taro';
+import { ImagePreview, Overlay, Popup, Swiper, SwiperItem } from '@nutui/nutui-taro';
 
 const app = createApp();
 app.use(ImagePreview);