hrsass-components 1.7.11 → 1.7.12
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/hrsass-components.js +29 -11
- package/lib/hrsass-components.min.js +1 -1
- package/package.json +1 -1
- package/rollup.build.css +5064 -0
package/lib/hrsass-components.js
CHANGED
|
@@ -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.
|
|
68
|
+
var version = "1.7.12";
|
|
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
|
-
|
|
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) {
|
|
@@ -4838,7 +4848,8 @@ var FilterProps = {
|
|
|
4838
4848
|
locale: VuePropTypes.object,
|
|
4839
4849
|
schemeList: VuePropTypes.array,
|
|
4840
4850
|
code: VuePropTypes.string,
|
|
4841
|
-
selectedSchemeId: VuePropTypes.any
|
|
4851
|
+
selectedSchemeId: VuePropTypes.any,
|
|
4852
|
+
mask: VuePropTypes.bool
|
|
4842
4853
|
};
|
|
4843
4854
|
var ToolbarProps = {
|
|
4844
4855
|
prefixCls: VuePropTypes.string,
|
|
@@ -4863,7 +4874,8 @@ var SettingProps = {
|
|
|
4863
4874
|
prefixCls: VuePropTypes.string,
|
|
4864
4875
|
visible: VuePropTypes.bool,
|
|
4865
4876
|
data: VuePropTypes.array,
|
|
4866
|
-
locale: VuePropTypes.object
|
|
4877
|
+
locale: VuePropTypes.object,
|
|
4878
|
+
mask: VuePropTypes.bool
|
|
4867
4879
|
};
|
|
4868
4880
|
var SchemeProps = {
|
|
4869
4881
|
prefixCls: VuePropTypes.string,
|
|
@@ -5390,7 +5402,8 @@ var Setting = {
|
|
|
5390
5402
|
props: initDefaultProps(SettingProps, {
|
|
5391
5403
|
prefixCls: 'hr-table-base-setting',
|
|
5392
5404
|
data: [],
|
|
5393
|
-
locale: {}
|
|
5405
|
+
locale: {},
|
|
5406
|
+
mask: true
|
|
5394
5407
|
}),
|
|
5395
5408
|
data: function data() {
|
|
5396
5409
|
return {
|
|
@@ -5447,6 +5460,8 @@ var Setting = {
|
|
|
5447
5460
|
isCheckAll = this.isCheckAll,
|
|
5448
5461
|
indeterminate = this.indeterminate;
|
|
5449
5462
|
var prefixCls = props.prefixCls,
|
|
5463
|
+
_props$mask = props.mask,
|
|
5464
|
+
mask = _props$mask === void 0 ? true : _props$mask,
|
|
5450
5465
|
cls = props["class"],
|
|
5451
5466
|
visible = props.visible,
|
|
5452
5467
|
data = props.data,
|
|
@@ -5455,7 +5470,7 @@ var Setting = {
|
|
|
5455
5470
|
attrs: {
|
|
5456
5471
|
width: '300',
|
|
5457
5472
|
placement: "right",
|
|
5458
|
-
mask:
|
|
5473
|
+
mask: mask,
|
|
5459
5474
|
closable: false,
|
|
5460
5475
|
visible: visible,
|
|
5461
5476
|
wrapClassName: classNames(prefixCls, cls)
|
|
@@ -6602,8 +6617,9 @@ var Filter = {
|
|
|
6602
6617
|
locale: {},
|
|
6603
6618
|
schemeList: [],
|
|
6604
6619
|
//方案列表
|
|
6605
|
-
selectedSchemeId: null
|
|
6606
|
-
|
|
6620
|
+
selectedSchemeId: null,
|
|
6621
|
+
//选择的方案id
|
|
6622
|
+
mask: true
|
|
6607
6623
|
}),
|
|
6608
6624
|
data: function data() {
|
|
6609
6625
|
return {
|
|
@@ -7022,6 +7038,8 @@ var Filter = {
|
|
|
7022
7038
|
eidtData = this.eidtData;
|
|
7023
7039
|
var props = getOptionProps(this);
|
|
7024
7040
|
var prefixCls = props.prefixCls,
|
|
7041
|
+
_props$mask = props.mask,
|
|
7042
|
+
mask = _props$mask === void 0 ? true : _props$mask,
|
|
7025
7043
|
hasReset = props.hasReset,
|
|
7026
7044
|
cls = props["class"],
|
|
7027
7045
|
visible = props.visible,
|
|
@@ -7030,7 +7048,7 @@ var Filter = {
|
|
|
7030
7048
|
attrs: {
|
|
7031
7049
|
width: "300",
|
|
7032
7050
|
placement: "right",
|
|
7033
|
-
mask:
|
|
7051
|
+
mask: mask,
|
|
7034
7052
|
closable: false,
|
|
7035
7053
|
visible: visible,
|
|
7036
7054
|
wrapClassName: "".concat(prefixCls)
|