关于javascript:upload-compponent-style-control

57次阅读

共计 601 个字符,预计需要花费 2 分钟才能阅读完成。

compponent part
      <el-upload
      action=""list-type="picture-card":on-preview="handlePictureCardPreview":on-remove="handleRemove":http-request="imgUpload":limit="5":on-exceed="handleExceed"
    >
      <i class="el-icon-plus"></i>
    </el-upload>



// style part

/deep/ .el-upload–picture-card {
width: 100px;
height: 100px;
}
/deep/ .el-upload {
width: 100px;
height: 100px;
line-height: 100px;
}
/deep/ .el-upload-list–picture-card .el-upload-list__item {
width: 100px;
height: 100px;
line-height: 100px;
}
/deep/ .el-upload-list–picture-card .el-upload-list__item-thumbnail {
width: 100px;
height: 100px;
line-height: 100px;
}
/deep/ .avatar {
width: 100px;
height: 100px;
}

正文完
 0