hrsass-components 1.7.14 → 1.7.17

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.14";
68
+ var version = "1.7.17";
69
69
 
70
70
  /**
71
71
  * 版本号
@@ -3542,6 +3542,7 @@ var HrAppendix = {
3542
3542
  return {};
3543
3543
  }
3544
3544
  },
3545
+ customBeforeUpload: Function,
3545
3546
  // 值
3546
3547
  value: {
3547
3548
  type: [String, Number, Array],
@@ -3729,6 +3730,10 @@ var HrAppendix = {
3729
3730
  }
3730
3731
  }
3731
3732
 
3733
+ if (_this2.customBeforeUpload) {
3734
+ result = _this2.customBeforeUpload(file);
3735
+ }
3736
+
3732
3737
  result ? resolve(file) : reject(file);
3733
3738
  });
3734
3739
  },
@@ -3962,7 +3967,11 @@ var HrAppendix = {
3962
3967
  });
3963
3968
  $appendix = h("div", {
3964
3969
  "class": "hr-appendix hr-appendix-table hr-appendix-".concat(this.imageSize)
3965
- }, [h("header", [h("a-upload", options, [btn ? this.$slots["default"] || btn : null]), h("div", {
3970
+ }, [h("header", [h("a-upload", _objectSpread$6(_objectSpread$6({}, options), {}, {
3971
+ props: _objectSpread$6(_objectSpread$6({}, options.props), {}, {
3972
+ showUploadList: false
3973
+ })
3974
+ }), [btn ? this.$slots["default"] || btn : null]), h("div", {
3966
3975
  style: "display: inline-block; margin-left: 10px;"
3967
3976
  }, [h(HrPhotograph, {
3968
3977
  style: disabled ? {
@@ -12493,9 +12502,10 @@ var ReportCard = {
12493
12502
  watch: {
12494
12503
  data: {
12495
12504
  handler: function handler() {
12496
- this.avatar = this.data.photo || DEAFULT_AVATAE_ID;
12505
+ this.avatar = this.data && this.data.photo || DEAFULT_AVATAE_ID;
12497
12506
  },
12498
- deep: true
12507
+ deep: true,
12508
+ immediate: true
12499
12509
  }
12500
12510
  },
12501
12511
  render: function render() {