hrsass-components 1.7.10 → 1.7.14
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 +36 -40
- package/lib/hrsass-components.min.js +1 -1
- package/package.json +1 -1
- package/rollup.build.css +40512 -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.14";
|
|
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
|
}
|
|
@@ -3938,7 +3945,14 @@ var HrAppendix = {
|
|
|
3938
3945
|
|
|
3939
3946
|
options.props.remove = function (file) {
|
|
3940
3947
|
return _this7.fileRemove(file, locale);
|
|
3941
|
-
};
|
|
3948
|
+
}; //隐藏删除按钮
|
|
3949
|
+
|
|
3950
|
+
|
|
3951
|
+
if (this.readOnly || this.disabled) {
|
|
3952
|
+
options.props.showUploadList = {
|
|
3953
|
+
showRemoveIcon: false
|
|
3954
|
+
};
|
|
3955
|
+
}
|
|
3942
3956
|
|
|
3943
3957
|
var $appendix;
|
|
3944
3958
|
|
|
@@ -4838,7 +4852,8 @@ var FilterProps = {
|
|
|
4838
4852
|
locale: VuePropTypes.object,
|
|
4839
4853
|
schemeList: VuePropTypes.array,
|
|
4840
4854
|
code: VuePropTypes.string,
|
|
4841
|
-
selectedSchemeId: VuePropTypes.any
|
|
4855
|
+
selectedSchemeId: VuePropTypes.any,
|
|
4856
|
+
mask: VuePropTypes.bool
|
|
4842
4857
|
};
|
|
4843
4858
|
var ToolbarProps = {
|
|
4844
4859
|
prefixCls: VuePropTypes.string,
|
|
@@ -4863,7 +4878,8 @@ var SettingProps = {
|
|
|
4863
4878
|
prefixCls: VuePropTypes.string,
|
|
4864
4879
|
visible: VuePropTypes.bool,
|
|
4865
4880
|
data: VuePropTypes.array,
|
|
4866
|
-
locale: VuePropTypes.object
|
|
4881
|
+
locale: VuePropTypes.object,
|
|
4882
|
+
mask: VuePropTypes.bool
|
|
4867
4883
|
};
|
|
4868
4884
|
var SchemeProps = {
|
|
4869
4885
|
prefixCls: VuePropTypes.string,
|
|
@@ -5390,7 +5406,8 @@ var Setting = {
|
|
|
5390
5406
|
props: initDefaultProps(SettingProps, {
|
|
5391
5407
|
prefixCls: 'hr-table-base-setting',
|
|
5392
5408
|
data: [],
|
|
5393
|
-
locale: {}
|
|
5409
|
+
locale: {},
|
|
5410
|
+
mask: false
|
|
5394
5411
|
}),
|
|
5395
5412
|
data: function data() {
|
|
5396
5413
|
return {
|
|
@@ -5447,6 +5464,7 @@ var Setting = {
|
|
|
5447
5464
|
isCheckAll = this.isCheckAll,
|
|
5448
5465
|
indeterminate = this.indeterminate;
|
|
5449
5466
|
var prefixCls = props.prefixCls,
|
|
5467
|
+
mask = props.mask,
|
|
5450
5468
|
cls = props["class"],
|
|
5451
5469
|
visible = props.visible,
|
|
5452
5470
|
data = props.data,
|
|
@@ -5455,7 +5473,7 @@ var Setting = {
|
|
|
5455
5473
|
attrs: {
|
|
5456
5474
|
width: '300',
|
|
5457
5475
|
placement: "right",
|
|
5458
|
-
mask:
|
|
5476
|
+
mask: mask,
|
|
5459
5477
|
closable: false,
|
|
5460
5478
|
visible: visible,
|
|
5461
5479
|
wrapClassName: classNames(prefixCls, cls)
|
|
@@ -6602,8 +6620,9 @@ var Filter = {
|
|
|
6602
6620
|
locale: {},
|
|
6603
6621
|
schemeList: [],
|
|
6604
6622
|
//方案列表
|
|
6605
|
-
selectedSchemeId: null
|
|
6606
|
-
|
|
6623
|
+
selectedSchemeId: null,
|
|
6624
|
+
//选择的方案id
|
|
6625
|
+
mask: false
|
|
6607
6626
|
}),
|
|
6608
6627
|
data: function data() {
|
|
6609
6628
|
return {
|
|
@@ -7022,6 +7041,8 @@ var Filter = {
|
|
|
7022
7041
|
eidtData = this.eidtData;
|
|
7023
7042
|
var props = getOptionProps(this);
|
|
7024
7043
|
var prefixCls = props.prefixCls,
|
|
7044
|
+
_props$mask = props.mask,
|
|
7045
|
+
mask = _props$mask === void 0 ? true : _props$mask,
|
|
7025
7046
|
hasReset = props.hasReset,
|
|
7026
7047
|
cls = props["class"],
|
|
7027
7048
|
visible = props.visible,
|
|
@@ -7030,7 +7051,7 @@ var Filter = {
|
|
|
7030
7051
|
attrs: {
|
|
7031
7052
|
width: "300",
|
|
7032
7053
|
placement: "right",
|
|
7033
|
-
mask:
|
|
7054
|
+
mask: mask,
|
|
7034
7055
|
closable: false,
|
|
7035
7056
|
visible: visible,
|
|
7036
7057
|
wrapClassName: "".concat(prefixCls)
|
|
@@ -8894,7 +8915,8 @@ var index = {
|
|
|
8894
8915
|
if (id) {
|
|
8895
8916
|
_this12._getSchemeList(id);
|
|
8896
8917
|
} else {
|
|
8897
|
-
|
|
8918
|
+
// this.selectedSchemeId = null;
|
|
8919
|
+
_this12._getSchemeList();
|
|
8898
8920
|
}
|
|
8899
8921
|
},
|
|
8900
8922
|
"tempSearch": function tempSearch(tempConditionList, schemeId) {
|
|
@@ -13175,33 +13197,7 @@ var en_US = {
|
|
|
13175
13197
|
selectAll: 'Select all',
|
|
13176
13198
|
searchPlaceholder: 'Please enter keywords',
|
|
13177
13199
|
loading: 'Loading'
|
|
13178
|
-
}
|
|
13179
|
-
// okText: '确定',
|
|
13180
|
-
// cancelText: '取消',
|
|
13181
|
-
// justOkText: '知道了',
|
|
13182
|
-
// },
|
|
13183
|
-
// Popconfirm: {
|
|
13184
|
-
// cancelText: '取消',
|
|
13185
|
-
// okText: '确定',
|
|
13186
|
-
// },
|
|
13187
|
-
// Transfer: {
|
|
13188
|
-
// searchPlaceholder: '请输入搜索内容',
|
|
13189
|
-
// itemUnit: '项',
|
|
13190
|
-
// itemsUnit: '项',
|
|
13191
|
-
// },
|
|
13192
|
-
// Upload: {
|
|
13193
|
-
// uploading: '文件上传中',
|
|
13194
|
-
// removeFile: '删除文件',
|
|
13195
|
-
// uploadError: '上传错误',
|
|
13196
|
-
// previewFile: '预览文件',
|
|
13197
|
-
// },
|
|
13198
|
-
// Empty: {
|
|
13199
|
-
// description: '暂无数据',
|
|
13200
|
-
// },
|
|
13201
|
-
// Icon: {
|
|
13202
|
-
// icon: '图标',
|
|
13203
|
-
// },
|
|
13204
|
-
|
|
13200
|
+
}
|
|
13205
13201
|
};
|
|
13206
13202
|
|
|
13207
13203
|
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; }
|