自定义指令v-dragDialogWidth添加文件名换行功能
This commit is contained in:
@@ -50,6 +50,14 @@ const dragDialogWidth = {
|
||||
if (elUploadDom && elUploadDraggerDom) {
|
||||
elUploadDom.style.width = '100%'
|
||||
elUploadDraggerDom.style.width = '100%'
|
||||
|
||||
// 文件名换行
|
||||
const fileNameNodes = el.querySelectorAll('.el-upload-list__item-name')
|
||||
if (fileNameNodes.length > 0) {
|
||||
fileNameNodes.forEach(node => {
|
||||
node.style.whiteSpace = 'inherit'
|
||||
})
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user