diff --git a/package.json b/package.json
index ea56f2b..064cb1f 100644
--- a/package.json
+++ b/package.json
@@ -15,7 +15,7 @@
"element-ui": "2.3.3",
"mavon-editor": "^2.5.2",
"vue": "^2.5.16",
- "vue-core-image-upload": "2.1.11",
+ "vue-cropperjs": "^2.2.0",
"vue-datasource": "1.0.12",
"vue-quill-editor": "3.0.6",
"vue-router": "^3.0.1",
diff --git a/src/components/page/Upload.vue b/src/components/page/Upload.vue
index af46778..cc0e8ec 100644
--- a/src/components/page/Upload.vue
+++ b/src/components/page/Upload.vue
@@ -23,35 +23,63 @@
支持裁剪
-
-
+
+
![]()
+
选择图片
+
+
+
+
+
+
+
+
@@ -73,9 +104,37 @@
font-size: 22px;
color: #1f2f3d;
}
- .pre-img{
- width:250px;
- height: 250px;
- margin-bottom: 20px;
+ .pre-img{
+ width: 100px;
+ height: 100px;
+ background: #f8f8f8;
+ border: 1px solid #eee;
+ border-radius: 5px;
+ }
+ .crop-demo{
+ display: flex;
+ align-items: flex-end;
+ }
+ .crop-demo-btn{
+ position: relative;
+ width: 100px;
+ height: 40px;
+ line-height: 40px;
+ padding: 0 20px;
+ margin-left: 30px;
+ background-color: #409eff;
+ color: #fff;
+ font-size: 14px;
+ border-radius: 4px;
+ box-sizing: border-box;
+ }
+ .crop-input{
+ position: absolute;
+ width: 100px;
+ height: 40px;
+ left: 0;
+ top: 0;
+ opacity: 0;
+ cursor: pointer;
}
\ No newline at end of file