ocpview-pro 0.1.1 → 0.1.2

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.
package/dist/index.js CHANGED
@@ -453,7 +453,7 @@ common.initEview = function(ViewUI2) {
453
453
  common.initAnchor(ViewUI2.Anchor);
454
454
  };
455
455
  const name = "ocpview-pro";
456
- const version$2 = "0.1.0";
456
+ const version$2 = "0.1.1";
457
457
  const title = "ocpviewPlus";
458
458
  const description = "A high quality Service UI components Library with Vue.js";
459
459
  const homepage = "";
@@ -10850,12 +10850,13 @@ const _sfc_main$1I = {
10850
10850
  created() {
10851
10851
  var _a2, _b2;
10852
10852
  this.myConfig = Object.assign({}, this.myConfig, this.config);
10853
- if ((_b2 = (_a2 = this == null ? void 0 : this.OmdUrl) == null ? void 0 : _a2.portalConfig) == null ? void 0 : _b2.appendixsize) {
10854
- this.fileSize = Number(this.OmdUrl.portalConfig.appendixsize) * 1024;
10855
- }
10856
10853
  if (this.myConfig.fileSize !== void 0) {
10857
10854
  this.fileSize = 1024 * Number(this.myConfig.fileSize);
10858
10855
  }
10856
+ if ((_b2 = (_a2 = this == null ? void 0 : this.OmdUrl) == null ? void 0 : _a2.portalConfig) == null ? void 0 : _b2.appendixsize) {
10857
+ this.fileSize = Number(this.OmdUrl.portalConfig.appendixsize) * 1024;
10858
+ this.myConfig.fileSize = Number(this.OmdUrl.portalConfig.appendixsize);
10859
+ }
10859
10860
  this.uploadUrl = this.myConfig.uploadfile;
10860
10861
  },
10861
10862
  methods: {
@@ -19725,10 +19726,15 @@ const _sfc_main$1l = {
19725
19726
  }
19726
19727
  },
19727
19728
  created() {
19729
+ var _a2, _b2;
19728
19730
  this.myConfig = Object.assign({}, this.myConfig, this.config);
19729
19731
  if (this.myConfig.fileSize !== void 0) {
19730
19732
  this.fileSize = 1024 * Number(this.myConfig.fileSize);
19731
19733
  }
19734
+ if ((_b2 = (_a2 = this == null ? void 0 : this.OmdUrl) == null ? void 0 : _a2.portalConfig) == null ? void 0 : _b2.appendixsize) {
19735
+ this.fileSize = Number(this.OmdUrl.portalConfig.appendixsize) * 1024;
19736
+ this.myConfig.fileSize = Number(this.OmdUrl.portalConfig.appendixsize);
19737
+ }
19732
19738
  this.uploadUrl = this.myConfig.uploadfile;
19733
19739
  },
19734
19740
  methods: {
@@ -29821,6 +29827,7 @@ const _sfc_main$J = {
29821
29827
  };
29822
29828
  },
29823
29829
  created() {
29830
+ var _a2, _b2;
29824
29831
  this.myConfig = Object.assign({}, this.myConfig, this.config);
29825
29832
  if (this.myConfig.showTitle !== void 0) {
29826
29833
  this.showTitle = this.myConfig.showTitle;
@@ -29843,6 +29850,10 @@ const _sfc_main$J = {
29843
29850
  if (this.myConfig.fileSize !== void 0) {
29844
29851
  this.fileSize = Number(this.myConfig.fileSize) * 1024;
29845
29852
  }
29853
+ if ((_b2 = (_a2 = this == null ? void 0 : this.OmdUrl) == null ? void 0 : _a2.portalConfig) == null ? void 0 : _b2.appendixsize) {
29854
+ this.fileSize = Number(this.OmdUrl.portalConfig.appendixsize) * 1024;
29855
+ this.myConfig.fileSize = Number(this.OmdUrl.portalConfig.appendixsize);
29856
+ }
29846
29857
  if (this.myConfig.notdelfile) {
29847
29858
  this.myConfig.items[0].visible = true;
29848
29859
  } else {
@@ -36130,6 +36141,7 @@ const _sfc_main$v = {
36130
36141
  };
36131
36142
  },
36132
36143
  created() {
36144
+ var _a2, _b2;
36133
36145
  this.myConfig = Object.assign({}, this.myConfig, this.config);
36134
36146
  if (this.myConfig.showTitle !== void 0) {
36135
36147
  this.showTitle = this.myConfig.showTitle;
@@ -36150,6 +36162,10 @@ const _sfc_main$v = {
36150
36162
  if (this.myConfig.fileSize !== void 0) {
36151
36163
  this.fileSize = Number(this.myConfig.fileSize) * 1024;
36152
36164
  }
36165
+ if ((_b2 = (_a2 = this == null ? void 0 : this.OmdUrl) == null ? void 0 : _a2.portalConfig) == null ? void 0 : _b2.appendixsize) {
36166
+ this.fileSize = Number(this.OmdUrl.portalConfig.appendixsize) * 1024;
36167
+ this.myConfig.fileSize = Number(this.OmdUrl.portalConfig.appendixsize);
36168
+ }
36153
36169
  if (this.myConfig.uploadfile.indexOf("?") != -1) {
36154
36170
  this.uploadfile = this.myConfig.uploadfile + "&token=" + this.getToken();
36155
36171
  } else {