perf: 任务群聊中拖拽文件或者照片时并未有确认窗口
This commit is contained in:
parent
b05db6d458
commit
7f14a82053
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "DooTask",
|
"name": "DooTask",
|
||||||
"version": "0.7.10",
|
"version": "0.7.13",
|
||||||
"description": "DooTask is task management system.",
|
"description": "DooTask is task management system.",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "DooTask",
|
"name": "DooTask",
|
||||||
"version": "0.7.10",
|
"version": "0.7.13",
|
||||||
"description": "DooTask is task management system.",
|
"description": "DooTask is task management system.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "./cmd dev",
|
"start": "./cmd dev",
|
||||||
|
2
public/css/app.css
vendored
2
public/css/app.css
vendored
File diff suppressed because one or more lines are too long
2
public/js/build/146.js
vendored
2
public/js/build/146.js
vendored
File diff suppressed because one or more lines are too long
2
public/js/build/161.js
vendored
2
public/js/build/161.js
vendored
File diff suppressed because one or more lines are too long
2
public/js/build/43.js
vendored
2
public/js/build/43.js
vendored
File diff suppressed because one or more lines are too long
2
public/js/build/893.js
vendored
2
public/js/build/893.js
vendored
File diff suppressed because one or more lines are too long
@ -344,8 +344,21 @@ export default {
|
|||||||
const postFiles = Array.prototype.slice.call(files);
|
const postFiles = Array.prototype.slice.call(files);
|
||||||
if (postFiles.length > 0) {
|
if (postFiles.length > 0) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
postFiles.forEach((file) => {
|
this.pasteFile = [];
|
||||||
this.$refs.chatUpload.upload(file);
|
this.pasteItem = [];
|
||||||
|
postFiles.some(file => {
|
||||||
|
let reader = new FileReader();
|
||||||
|
reader.readAsDataURL(file);
|
||||||
|
reader.onload = ({target}) => {
|
||||||
|
this.pasteFile.push(file)
|
||||||
|
this.pasteItem.push({
|
||||||
|
type: $A.getMiddle(file.type, null, '/'),
|
||||||
|
name: file.name,
|
||||||
|
size: file.size,
|
||||||
|
result: target.result
|
||||||
|
})
|
||||||
|
this.pasteShow = true
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -445,10 +445,18 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.dialog-wrapper-paste {
|
.dialog-wrapper-paste {
|
||||||
|
margin-top: -4px;
|
||||||
img {
|
img {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
max-height: 1000px;
|
max-height: 1000px;
|
||||||
}
|
}
|
||||||
|
> div,
|
||||||
|
> img {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
padding: 0;
|
||||||
|
margin: 4px 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user