+
+
Image Preview
+
+ 基础用法
+
+
+
+
+
diff --git a/docs/nav.config.json b/docs/nav.config.json
index aa6d7e287..4abfcb2a5 100644
--- a/docs/nav.config.json
+++ b/docs/nav.config.json
@@ -131,7 +131,7 @@
},
{
"path": "/image-preview",
- "title": "ImagePreview 图片预览"
+ "title": "ImagePreview"
}
]
}
diff --git a/packages/dialog/src/dialog.vue b/packages/dialog/src/dialog.vue
index ca6b55ed7..b91ea033c 100644
--- a/packages/dialog/src/dialog.vue
+++ b/packages/dialog/src/dialog.vue
@@ -70,10 +70,8 @@ export default {
setTimeout(() => {
if (this.modal && this.bodyOverflow !== 'hidden') {
document.body.style.overflow = this.bodyOverflow;
- document.body.style.paddingRight = this.bodyPaddingRight;
}
this.bodyOverflow = null;
- this.bodyPaddingRight = null;
}, 200);
}
diff --git a/packages/image-preview/index.js b/packages/image-preview/index.js
index 3fffcc094..6ad473649 100644
--- a/packages/image-preview/index.js
+++ b/packages/image-preview/index.js
@@ -1,3 +1,3 @@
-import ImagePreview from './src/image-preview';
+import ImagePreview from './src/image-preview.vue';
export default ImagePreview;
diff --git a/packages/image-preview/src/image-preview.js b/packages/image-preview/src/image-preview.js
new file mode 100644
index 000000000..e69de29bb
diff --git a/packages/image-preview/src/image-preview.vue b/packages/image-preview/src/image-preview.vue
index 0d2c38ebd..7c559222b 100644
--- a/packages/image-preview/src/image-preview.vue
+++ b/packages/image-preview/src/image-preview.vue
@@ -1,18 +1,73 @@