iov-pro-components 0.0.94 → 0.0.95

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.
@@ -7510,7 +7510,6 @@ var script$q = {
7510
7510
  }
7511
7511
  }],
7512
7512
  "attrs": {
7513
- "element-loading-spinner": 'page-loading',
7514
7513
  "disabled": this.disabled,
7515
7514
  "type": this.buttonType
7516
7515
  },
@@ -7529,7 +7528,6 @@ var script$q = {
7529
7528
  }
7530
7529
  }],
7531
7530
  "attrs": {
7532
- "element-loading-spinner": 'page-loading',
7533
7531
  "disabled": this.disabled,
7534
7532
  "type": this.buttonType,
7535
7533
  "icon": this.icon,
@@ -12233,10 +12231,7 @@ var __vue_render__$5 = function __vue_render__() {
12233
12231
  lock: true
12234
12232
  }
12235
12233
  }],
12236
- staticClass: "iov-pro-preview",
12237
- attrs: {
12238
- "element-loading-spinner": "page-loading"
12239
- }
12234
+ staticClass: "iov-pro-preview"
12240
12235
  }, [_vm._t("default")], 2);
12241
12236
  };
12242
12237
  var __vue_staticRenderFns__$5 = [];
@@ -13551,9 +13546,6 @@ var script$d = {
13551
13546
  "lock": true
13552
13547
  }
13553
13548
  }],
13554
- "attrs": {
13555
- "element-loading-spinner": 'page-loading'
13556
- },
13557
13549
  "class": ['iov-pro-table', _this0.tableConfig.fixedHeader ? ' fixed-header' : ''].join(''),
13558
13550
  "style": "--fixed-header-top: ".concat(fixedHeaderTop, "px")
13559
13551
  }, [h(Table, _mergeJSXProps([{
@@ -22807,8 +22799,26 @@ var script = {
22807
22799
  onPreviewFile: function onPreviewFile(data) {
22808
22800
  // 开始预览文件
22809
22801
  if (this.preview) {
22802
+ // 取出文件名
22803
+ var name = data[this.uploadAlias.fileName];
22804
+ // 结构出类型和字段
22805
+ var _ref2 = this.modelFormater || {},
22806
+ type = _ref2.type,
22807
+ fields = _ref2.fields;
22808
+ // 如果是图片
22809
+ if (this.listType === 'picture-card') {
22810
+ // 如果只展示了url
22811
+ if (type === 'String' && isEqual(fields, ['url'])) {
22812
+ name = '预览文件.png';
22813
+ }
22814
+ // 如果只展示了url和uuid
22815
+ if (type === 'Object' && isEqual(fields, ['url', 'uuid'])) {
22816
+ name = '预览文件.png';
22817
+ }
22818
+ }
22819
+ // 调用预览方法
22810
22820
  this.preview({
22811
- name: data[this.uploadAlias.fileName],
22821
+ name: name,
22812
22822
  uuid: data[this.uploadAlias.uuid],
22813
22823
  url: data[this.uploadAlias.url],
22814
22824
  isPrivate: this.private
@@ -22956,7 +22966,7 @@ var script = {
22956
22966
  */
22957
22967
  onBeforeUpload: function onBeforeUpload(file) {
22958
22968
  // 如果当前是禁用状态
22959
- if (this.isDisabled) {
22969
+ if (this.disabled) {
22960
22970
  return false;
22961
22971
  }
22962
22972
  // 如果当前文件没有扩展名
@@ -22996,7 +23006,6 @@ var script = {
22996
23006
  * @time 2023-08-30 20:01:14
22997
23007
  */
22998
23008
  onExceed: function onExceed() {
22999
- // 如果在被工单管理后台包裹着
23000
23009
  this.$message.error("\u4E0A\u4F20\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7".concat(this.limit, "\u4E2A"));
23001
23010
  }
23002
23011
  }
@@ -23111,7 +23120,7 @@ var install = function install(Vue, componentConfig) {
23111
23120
  };
23112
23121
  var index = {
23113
23122
  install: install,
23114
- version: '0.0.94',
23123
+ version: '0.0.95',
23115
23124
  ColumnTooltip: __vue_component__$y,
23116
23125
  Description: __vue_component__$v,
23117
23126
  DialogItemsSelect: __vue_component__$u,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iov-pro-components",
3
- "version": "0.0.94",
3
+ "version": "0.0.95",
4
4
  "description": "IOV Pro Components for Vue.js",
5
5
  "main": "lib/iov-pro-components.min.js",
6
6
  "files": [
@@ -22,7 +22,7 @@
22
22
  "src/**/*.{js,vue,jsx,ts,tsx}": "eslint"
23
23
  },
24
24
  "dependencies": {
25
- "iov-design": "^2.15.70",
25
+ "iov-design": "^2.15.82",
26
26
  "vue": "^2.6.10",
27
27
  "vuedraggable": "2.24.3"
28
28
  },