eoss-ui 0.4.97 → 0.4.98

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/lib/upload.js CHANGED
@@ -3431,8 +3431,8 @@ function normalizeComponent(
3431
3431
  // ESM COMPAT FLAG
3432
3432
  __webpack_require__.r(__webpack_exports__);
3433
3433
 
3434
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=74d3e866&
3435
- var mainvue_type_template_id_74d3e866_render = function () {
3434
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=079ba0f8&
3435
+ var mainvue_type_template_id_079ba0f8_render = function () {
3436
3436
  var _vm = this
3437
3437
  var _h = _vm.$createElement
3438
3438
  var _c = _vm._self._c || _h
@@ -3812,10 +3812,10 @@ var mainvue_type_template_id_74d3e866_render = function () {
3812
3812
  : _vm._e()
3813
3813
  }
3814
3814
  var staticRenderFns = []
3815
- mainvue_type_template_id_74d3e866_render._withStripped = true
3815
+ mainvue_type_template_id_079ba0f8_render._withStripped = true
3816
3816
 
3817
3817
 
3818
- // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=74d3e866&
3818
+ // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=079ba0f8&
3819
3819
 
3820
3820
  // EXTERNAL MODULE: ./src/config/api.js
3821
3821
  var api = __webpack_require__(1);
@@ -4513,7 +4513,9 @@ var _props;
4513
4513
  return item;
4514
4514
  }).join(',');
4515
4515
  }
4516
- _this2.kkfileview = res.results.kkViewRootPath ? res.results.kkViewRootPath : null;
4516
+ if (res.results.kkViewRootPath) {
4517
+ _this2.kkfileview = res.results.kkViewRootPath;
4518
+ }
4517
4519
  _this2.fileSize = res.results.limitFileSize ? res.results.limitFileSize : 0;
4518
4520
  _this2.fileTotalSize = res.results.limitTotalSize;
4519
4521
  store["a" /* default */].set(_this2.code, {
@@ -4574,7 +4576,16 @@ var _props;
4574
4576
  this.$refs.upload.submit();
4575
4577
  },
4576
4578
  openKkfileview: function openKkfileview(file) {
4577
- var url = encodeURIComponent(external_js_base64_["Base64"].encode((typeof this.download === 'string' ? this.download : api["q" /* downloadByAdjunctId */]) + ('?adjunctId=' + (file.adjunctId || file.response.adjunctId) + '&fullfilename=' + file.originalName)));
4579
+ var host = util["a" /* default */].win.top.location.origin;
4580
+ if (this.host) {
4581
+ if (util["a" /* default */].startWith(this.host, 'http')) {
4582
+ host = this.host;
4583
+ } else {
4584
+ host += this.host;
4585
+ }
4586
+ }
4587
+ console.log(host);
4588
+ var url = encodeURIComponent(external_js_base64_["Base64"].encode(host + (typeof this.download === 'string' ? this.download : api["q" /* downloadByAdjunctId */]) + ('?adjunctId=' + (file.adjunctId || file.response.adjunctId) + '&fullfilename=' + file.originalName)));
4578
4589
  util["a" /* default */].win.top.open(this.kkfileview + '?url=' + url);
4579
4590
  },
4580
4591
  handlePreview: function handlePreview(res) {
@@ -4903,7 +4914,7 @@ var componentNormalizer = __webpack_require__(3);
4903
4914
 
4904
4915
  var component = Object(componentNormalizer["a" /* default */])(
4905
4916
  src_mainvue_type_script_lang_js_,
4906
- mainvue_type_template_id_74d3e866_render,
4917
+ mainvue_type_template_id_079ba0f8_render,
4907
4918
  staticRenderFns,
4908
4919
  false,
4909
4920
  null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.4.97",
3
+ "version": "0.4.98",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -723,9 +723,9 @@ export default {
723
723
  })
724
724
  .join(',');
725
725
  }
726
- this.kkfileview = res.results.kkViewRootPath
727
- ? res.results.kkViewRootPath
728
- : null;
726
+ if (res.results.kkViewRootPath) {
727
+ this.kkfileview = res.results.kkViewRootPath;
728
+ }
729
729
  this.fileSize = res.results.limitFileSize
730
730
  ? res.results.limitFileSize
731
731
  : 0;
@@ -802,11 +802,21 @@ export default {
802
802
  this.$refs.upload.submit();
803
803
  },
804
804
  openKkfileview(file) {
805
+ let host = util.win.top.location.origin;
806
+ if (this.host) {
807
+ if (util.startWith(this.host, 'http')) {
808
+ host = this.host;
809
+ } else {
810
+ host += this.host;
811
+ }
812
+ }
813
+ console.log(host);
805
814
  let url = encodeURIComponent(
806
815
  Base64.encode(
807
- (typeof this.download === 'string'
808
- ? this.download
809
- : downloadByAdjunctId) +
816
+ host +
817
+ (typeof this.download === 'string'
818
+ ? this.download
819
+ : downloadByAdjunctId) +
810
820
  `?adjunctId=${
811
821
  file.adjunctId || file.response.adjunctId
812
822
  }&fullfilename=${file.originalName}`
package/src/index.js CHANGED
@@ -117,7 +117,7 @@ if (typeof window !== 'undefined' && window.Vue) {
117
117
  }
118
118
 
119
119
  export default {
120
- version: '0.4.97',
120
+ version: '0.4.98',
121
121
  install,
122
122
  Button,
123
123
  ButtonGroup,