vue elementui 上传的文件显示title

 // 上传文件 添加title
        fileTick() {
            this.$nextTick(() => {
                let fileElementList = document.getElementsByClassName('el-upload-list__item-name');
                if (fileElementList && fileElementList.length > 0) {
                    for (let ele of fileElementList) {
                        let fileName = ele.innerText;
                        ele.title = fileName
                    }
                }
            })
        },

你可能感兴趣的:(vue.js,elementui,javascript)