eoss-ui 0.4.27 → 0.4.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,6 +17,7 @@
17
17
  @import "./flow-list.scss";
18
18
  @import "./handle-user.scss";
19
19
  @import "./handler.scss";
20
+ @import "./icons.scss";
20
21
  @import "./input.scss";
21
22
  @import "./input-number.scss";
22
23
  @import "./label.scss";
@@ -859,9 +859,7 @@ export default {
859
859
  text = '附件总';
860
860
  }
861
861
  }
862
- if (flag) {
863
- this.filesTotalSize += se;
864
- } else {
862
+ if (!flag) {
865
863
  this.$message.error(`上传${text}大小不能超过${size}KB!`);
866
864
  }
867
865
  return flag;
@@ -917,6 +915,10 @@ export default {
917
915
  })
918
916
  .then((res) => {
919
917
  if (res.rCode === 0) {
918
+ let se =
919
+ this.filesTotalSize -
920
+ Math.ceil((file.size / 1024) * 100) / 100;
921
+ this.filesTotalSize = se;
920
922
  this.$message.success(res.msg);
921
923
  resolve();
922
924
  } else {
@@ -1045,6 +1047,8 @@ export default {
1045
1047
  this.$message.success(response.msg);
1046
1048
  }
1047
1049
  }
1050
+ let se = this.filesTotalSize + Math.ceil((file.size / 1024) * 100) / 100;
1051
+ this.filesTotalSize = se;
1048
1052
  this.onSuccess && this.onSuccess(response, file, fileList);
1049
1053
  this.$emit('success', response, file, fileList);
1050
1054
  if (this.resultFile) {
package/src/index.js CHANGED
@@ -18,7 +18,7 @@ import FlowGroup from '../packages/flow-group/index.js';
18
18
  import FlowList from '../packages/flow-list/index.js';
19
19
  import HandleUser from '../packages/handle-user/index.js';
20
20
  import Handler from '../packages/handler/index.js';
21
- import Icon from '../packages/icon/index.js';
21
+ import Icons from '../packages/icons/index.js';
22
22
  import Input from '../packages/input/index.js';
23
23
  import InputNumber from '../packages/input-number/index.js';
24
24
  import Label from '../packages/label/index.js';
@@ -70,7 +70,7 @@ const components = [
70
70
  FlowList,
71
71
  HandleUser,
72
72
  Handler,
73
- Icon,
73
+ Icons,
74
74
  Input,
75
75
  InputNumber,
76
76
  Label,
@@ -115,7 +115,7 @@ if (typeof window !== 'undefined' && window.Vue) {
115
115
  }
116
116
 
117
117
  export default {
118
- version: '0.4.27',
118
+ version: '0.4.29',
119
119
  install,
120
120
  Button,
121
121
  ButtonGroup,
@@ -135,7 +135,7 @@ export default {
135
135
  FlowList,
136
136
  HandleUser,
137
137
  Handler,
138
- Icon,
138
+ Icons,
139
139
  Input,
140
140
  InputNumber,
141
141
  Label,