hrsass-components 1.7.55 → 1.7.56

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.
@@ -65,7 +65,7 @@ var contentStyle = _interopDefault(require('!!raw-loader!tinymce/skins/content/d
65
65
  var SvgPanZoom = _interopDefault(require('svg-pan-zoom'));
66
66
  var saveSvgAsPng = require('save-svg-as-png');
67
67
 
68
- var version = "1.7.55";
68
+ var version = "1.7.56";
69
69
 
70
70
  /**
71
71
  * 版本号
@@ -3253,6 +3253,11 @@ var HrAppendix = {
3253
3253
  validator: function validator(val) {
3254
3254
  return ["default", "inch-1", "inch-2"].includes(val);
3255
3255
  }
3256
+ },
3257
+ //是否显示预览按钮
3258
+ isPreviewBtn: {
3259
+ type: Boolean,
3260
+ "default": false
3256
3261
  }
3257
3262
  },
3258
3263
  data: function data() {
@@ -3637,7 +3642,7 @@ var HrAppendix = {
3637
3642
  var dataSource = this.fileList.filter(function (file) {
3638
3643
  return file.status === "done";
3639
3644
  });
3640
- this.$emit('save', dataSource);
3645
+ this.$emit("save", dataSource);
3641
3646
  $appendix = h("div", {
3642
3647
  "class": "hr-appendix hr-appendix-table hr-appendix-".concat(this.imageSize)
3643
3648
  }, [(!disabled || btn) && h("header", [h("a-upload", _objectSpread$6(_objectSpread$6({}, options), {}, {
@@ -3686,14 +3691,14 @@ var HrAppendix = {
3686
3691
  scopedSlots: {
3687
3692
  "default": function _default(uid, record, idx) {
3688
3693
  var fileId = record.response && record.response.fileId || record.uid;
3689
- return h("div", [h("a-button", {
3694
+ return h("div", [_this7.isPreviewBtn ? null : h("a-button", {
3690
3695
  props: {
3691
3696
  type: "link",
3692
3697
  icon: "eye"
3693
3698
  },
3694
3699
  on: {
3695
3700
  click: function click() {
3696
- return _this7.preview(fileId);
3701
+ return _this7.preview(record, fileId);
3697
3702
  }
3698
3703
  }
3699
3704
  }), h("a-button", {