hrsass-components 1.7.9 → 1.7.13

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.9";
68
+ var version = "1.7.13";
69
69
 
70
70
  /**
71
71
  * 版本号
@@ -3496,12 +3496,12 @@ var HrAppendix = {
3496
3496
  type: Number,
3497
3497
  "default": 0
3498
3498
  },
3499
- //支持文件上传类型
3499
+ //支持文件上传类型,多个以逗号隔开(*.jpg,*.gif,*.zip)
3500
3500
  fileTypes: {
3501
3501
  type: String,
3502
3502
  "default": "*"
3503
3503
  },
3504
- //限制单个文件大小
3504
+ //限制单个文件大小,单位KB
3505
3505
  fileSizeLimit: {
3506
3506
  type: Number,
3507
3507
  "default": 10240
@@ -3716,8 +3716,15 @@ var HrAppendix = {
3716
3716
  if (_this2.fileSizeLimit > 0) {
3717
3717
  if (_this2.fileSizeLimit * 1024 < size) {
3718
3718
  result = false;
3719
+ var num = _this2.fileSizeLimit / 1024;
3719
3720
 
3720
- _this2.$message.error("".concat(_this2.locale.fileSizeError, " (").concat(_this2.fileSizeLimit, "KB)"));
3721
+ if (num > 0) {
3722
+ num = "".concat(Number(num.toFixed(2)), "MB");
3723
+ } else {
3724
+ num = "".concat(_this2.fileSizeLimit, "KB");
3725
+ }
3726
+
3727
+ _this2.$message.error("".concat(_this2.locale.fileSizeError, " (").concat(num, ")"));
3721
3728
  }
3722
3729
  }
3723
3730
  }
@@ -3940,6 +3947,9 @@ var HrAppendix = {
3940
3947
  return _this7.fileRemove(file, locale);
3941
3948
  };
3942
3949
 
3950
+ options.props.showUploadList = {
3951
+ showRemoveIcon: !disabled
3952
+ };
3943
3953
  var $appendix;
3944
3954
 
3945
3955
  if (this.listType === "text" && this.$attrs.showUploadList !== false && this.multiple) {
@@ -4072,6 +4082,10 @@ var HrAvatar = {
4072
4082
  type: String,
4073
4083
  "default": ''
4074
4084
  },
4085
+ ename: {
4086
+ type: String,
4087
+ "default": ''
4088
+ },
4075
4089
  // 存在于文件服务器中的图片只需传此属性
4076
4090
  fileId: {
4077
4091
  type: [String, Number],
@@ -4090,7 +4104,9 @@ var HrAvatar = {
4090
4104
  },
4091
4105
  computed: {
4092
4106
  userName: function userName() {
4093
- return this.name || this.$slots["default"];
4107
+ var isEn = this.$i18n.locale === 'en_US';
4108
+ var ename = isEn && this.ename;
4109
+ return ename || this.name || this.$slots["default"];
4094
4110
  },
4095
4111
  avatarOptions: function avatarOptions() {
4096
4112
  var props = _.cloneDeep(this.$attrs);
@@ -4832,7 +4848,8 @@ var FilterProps = {
4832
4848
  locale: VuePropTypes.object,
4833
4849
  schemeList: VuePropTypes.array,
4834
4850
  code: VuePropTypes.string,
4835
- selectedSchemeId: VuePropTypes.any
4851
+ selectedSchemeId: VuePropTypes.any,
4852
+ mask: VuePropTypes.bool
4836
4853
  };
4837
4854
  var ToolbarProps = {
4838
4855
  prefixCls: VuePropTypes.string,
@@ -4857,7 +4874,8 @@ var SettingProps = {
4857
4874
  prefixCls: VuePropTypes.string,
4858
4875
  visible: VuePropTypes.bool,
4859
4876
  data: VuePropTypes.array,
4860
- locale: VuePropTypes.object
4877
+ locale: VuePropTypes.object,
4878
+ mask: VuePropTypes.bool
4861
4879
  };
4862
4880
  var SchemeProps = {
4863
4881
  prefixCls: VuePropTypes.string,
@@ -5384,7 +5402,8 @@ var Setting = {
5384
5402
  props: initDefaultProps(SettingProps, {
5385
5403
  prefixCls: 'hr-table-base-setting',
5386
5404
  data: [],
5387
- locale: {}
5405
+ locale: {},
5406
+ mask: false
5388
5407
  }),
5389
5408
  data: function data() {
5390
5409
  return {
@@ -5441,6 +5460,8 @@ var Setting = {
5441
5460
  isCheckAll = this.isCheckAll,
5442
5461
  indeterminate = this.indeterminate;
5443
5462
  var prefixCls = props.prefixCls,
5463
+ _props$mask = props.mask,
5464
+ mask = _props$mask === void 0 ? true : _props$mask,
5444
5465
  cls = props["class"],
5445
5466
  visible = props.visible,
5446
5467
  data = props.data,
@@ -5449,7 +5470,7 @@ var Setting = {
5449
5470
  attrs: {
5450
5471
  width: '300',
5451
5472
  placement: "right",
5452
- mask: false,
5473
+ mask: mask,
5453
5474
  closable: false,
5454
5475
  visible: visible,
5455
5476
  wrapClassName: classNames(prefixCls, cls)
@@ -6596,8 +6617,9 @@ var Filter = {
6596
6617
  locale: {},
6597
6618
  schemeList: [],
6598
6619
  //方案列表
6599
- selectedSchemeId: null //选择的方案id
6600
-
6620
+ selectedSchemeId: null,
6621
+ //选择的方案id
6622
+ mask: false
6601
6623
  }),
6602
6624
  data: function data() {
6603
6625
  return {
@@ -7016,6 +7038,8 @@ var Filter = {
7016
7038
  eidtData = this.eidtData;
7017
7039
  var props = getOptionProps(this);
7018
7040
  var prefixCls = props.prefixCls,
7041
+ _props$mask = props.mask,
7042
+ mask = _props$mask === void 0 ? true : _props$mask,
7019
7043
  hasReset = props.hasReset,
7020
7044
  cls = props["class"],
7021
7045
  visible = props.visible,
@@ -7024,7 +7048,7 @@ var Filter = {
7024
7048
  attrs: {
7025
7049
  width: "300",
7026
7050
  placement: "right",
7027
- mask: false,
7051
+ mask: mask,
7028
7052
  closable: false,
7029
7053
  visible: visible,
7030
7054
  wrapClassName: "".concat(prefixCls)
@@ -8888,7 +8912,8 @@ var index = {
8888
8912
  if (id) {
8889
8913
  _this12._getSchemeList(id);
8890
8914
  } else {
8891
- _this12.selectedSchemeId = null;
8915
+ // this.selectedSchemeId = null;
8916
+ _this12._getSchemeList();
8892
8917
  }
8893
8918
  },
8894
8919
  "tempSearch": function tempSearch(tempConditionList, schemeId) {
@@ -13169,33 +13194,7 @@ var en_US = {
13169
13194
  selectAll: 'Select all',
13170
13195
  searchPlaceholder: 'Please enter keywords',
13171
13196
  loading: 'Loading'
13172
- } // Modal: {
13173
- // okText: '确定',
13174
- // cancelText: '取消',
13175
- // justOkText: '知道了',
13176
- // },
13177
- // Popconfirm: {
13178
- // cancelText: '取消',
13179
- // okText: '确定',
13180
- // },
13181
- // Transfer: {
13182
- // searchPlaceholder: '请输入搜索内容',
13183
- // itemUnit: '项',
13184
- // itemsUnit: '项',
13185
- // },
13186
- // Upload: {
13187
- // uploading: '文件上传中',
13188
- // removeFile: '删除文件',
13189
- // uploadError: '上传错误',
13190
- // previewFile: '预览文件',
13191
- // },
13192
- // Empty: {
13193
- // description: '暂无数据',
13194
- // },
13195
- // Icon: {
13196
- // icon: '图标',
13197
- // },
13198
-
13197
+ }
13199
13198
  };
13200
13199
 
13201
13200
  function ownKeys$m(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
@@ -13287,6 +13286,7 @@ var index$7 = {
13287
13286
  }
13288
13287
 
13289
13288
  props.name = data.name;
13289
+ props.ename = data.ename;
13290
13290
  return {
13291
13291
  props: props
13292
13292
  };
@@ -13612,6 +13612,7 @@ var HrAddrBookCard = {
13612
13612
  fileId: data.fileId,
13613
13613
  img: data.photo,
13614
13614
  name: data.name,
13615
+ ename: data.english_name,
13615
13616
  size: size
13616
13617
  },
13617
13618
  ref: "avatar"