当前位置:   article > 正文

vue + element-ui + 阿里云oss服务端签名后直传实践,2024前端高级进阶学习资料_ali-oss element-ui直传

ali-oss element-ui直传

imageName() {

if (this.value != null && this.value !== ‘’) {

return this.value.substr(this.value.lastIndexOf(‘/’) + 1)

} else {

return null

}

},

fileList() {

return [{

name: this.imageName,

url: this.imageUrl

}]

},

showFileList: {

get: function() {

return this.value !== null && this.value !== ‘’ && this.value !== undefined

},

set: function(newValue) {

}

}

},

methods: {

emitInput(val) {

this.$emit(‘input’, val)

},

handleRemove(file, fileList) {

this.emitInput(‘’)

},

handlePreview(file) {

this.dialogVisible = true

},

getUUID() {

return ‘xxxxxxxx-xxxx-4xxx-yxxx-xxxx

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/702996
推荐阅读
相关标签
  

闽ICP备14008679号