Commit 75bce4a2 authored by Xuguangxing's avatar Xuguangxing

feat: 修复部分组件属性变更问题,修复上传组件问题

parent 3d119a41
...@@ -15,6 +15,9 @@ export default { ...@@ -15,6 +15,9 @@ export default {
} }
}, },
watch: { watch: {
value(val) {
this.selected = val;
},
selected(val) { selected(val) {
this.$emit('input', val); this.$emit('input', val);
} }
......
...@@ -15,6 +15,9 @@ export default { ...@@ -15,6 +15,9 @@ export default {
} }
}, },
watch: { watch: {
value(val) {
this.selected = val;
},
selected(val) { selected(val) {
this.$emit('input', val); this.$emit('input', val);
} }
......
...@@ -15,6 +15,9 @@ export default { ...@@ -15,6 +15,9 @@ export default {
} }
}, },
watch: { watch: {
value(val) {
this.selected = val;
},
selected(val) { selected(val) {
this.$emit('input', val); this.$emit('input', val);
} }
......
...@@ -15,6 +15,9 @@ export default { ...@@ -15,6 +15,9 @@ export default {
} }
}, },
watch: { watch: {
value(val) {
this.selected = val;
},
selected(val) { selected(val) {
this.$emit('input', val); this.$emit('input', val);
} }
......
...@@ -136,6 +136,7 @@ ...@@ -136,6 +136,7 @@
limit = 5 * 1024 * 1024; limit = 5 * 1024 * 1024;
if (size > limit) { if (size > limit) {
this.$toast('gif图大小不允许超过5Mb'); this.$toast('gif图大小不允许超过5Mb');
up.removeFile(file);
return false; return false;
} }
} else if (type.toLowerCase().indexOf('video/') === 0) { } else if (type.toLowerCase().indexOf('video/') === 0) {
...@@ -144,6 +145,7 @@ ...@@ -144,6 +145,7 @@
limit = 4 * 1024 * 1024; limit = 4 * 1024 * 1024;
if (size > limit) { if (size > limit) {
this.$toast('文件大小不允许超过4Mb'); this.$toast('文件大小不允许超过4Mb');
up.removeFile(file);
return false; return false;
} }
} else { } else {
...@@ -152,6 +154,7 @@ ...@@ -152,6 +154,7 @@
limit = 800 * 1024; limit = 800 * 1024;
if (size > limit) { if (size > limit) {
this.$toast('文件大小不允许超过800Kb'); this.$toast('文件大小不允许超过800Kb');
up.removeFile(file);
return false; return false;
} }
} }
......
...@@ -2176,9 +2176,9 @@ ...@@ -2176,9 +2176,9 @@
} }
}, },
"@qg/citrus-ui": { "@qg/citrus-ui": {
"version": "0.3.53-beta1", "version": "0.3.53-beta2",
"resolved": "http://npmprivate.quantgroups.com/@qg%2fcitrus-ui/-/citrus-ui-0.3.53-beta1.tgz", "resolved": "http://npmprivate.quantgroups.com/@qg%2fcitrus-ui/-/citrus-ui-0.3.53-beta2.tgz",
"integrity": "sha512-sotg6LavIBsSH6I6kMB+k5OxOolW8SLT9ibtUfLGRxvOYD3jSFl4NL0//a435Oyi9heQNW3qFGqWwn7HYk5JLA==", "integrity": "sha512-7uPJn2SbOuTpMs022BM7SWUOvsZ7AjO75nCUtGWVJhg/xSnc40VQ9uWqBaK3NHQlPyHWLNG6iJPEa03PSGklgQ==",
"requires": { "requires": {
"@better-scroll/core": "^2.1.1", "@better-scroll/core": "^2.1.1",
"@qg/cherry-ui": "^2.23.9", "@qg/cherry-ui": "^2.23.9",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment