|  |  |  | 
|---|
|  |  |  | :accept="uploadData.fileTyp" | 
|---|
|  |  |  | :action="uploadImgUrl" | 
|---|
|  |  |  | :limit="1" | 
|---|
|  |  |  | :before-remove="removes" | 
|---|
|  |  |  | :on-exceed="handleExceed" | 
|---|
|  |  |  | :on-success="handleFileSuccess" | 
|---|
|  |  |  | :on-error="uploadError" | 
|---|
|  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | methods: { | 
|---|
|  |  |  | removes() { | 
|---|
|  |  |  | this.$emit('remove') | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // 上传图片 | 
|---|
|  |  |  | handleExceed(){}, | 
|---|
|  |  |  | handleFileSuccess(res, file) { | 
|---|
|  |  |  | 
|---|
|  |  |  | height: 90px !important; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | ::v-deep .el-upload-list__item { | 
|---|
|  |  |  | width: 90px !important; | 
|---|
|  |  |  | height: 90px !important; | 
|---|
|  |  |  | width: 80% !important; | 
|---|
|  |  |  | height: 50px !important; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | .icon { | 
|---|
|  |  |  | -webkit-transform: translate(-50%,-50%); | 
|---|
|  |  |  | -ms-transform: translate(-50%,-50%); | 
|---|
|  |  |  | transform: translate(0%, -85%); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | ::v-deep .el-upload-list__item { | 
|---|
|  |  |  | width: 90px !important; | 
|---|
|  |  |  | height: 90px !important; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | </style> | 
|---|
|  |  |  |  | 
|---|