hrsass-components 1.7.57 → 1.7.59
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 +25 -12
- package/lib/hrsass-components.min.js +1 -1
- package/package.json +1 -1
- package/rollup.build.css +146048 -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.59";
|
|
69
69
|
|
|
70
70
|
/**
|
|
71
71
|
* 版本号
|
|
@@ -3411,6 +3411,10 @@ var HrAppendix = {
|
|
|
3411
3411
|
_this2.$message.error("".concat(_this2.locale.fileSizeError, " (").concat(num, ")"));
|
|
3412
3412
|
}
|
|
3413
3413
|
}
|
|
3414
|
+
if (_this2.maxLength > 0 && _this2.fileList.length > _this2.maxLength) {
|
|
3415
|
+
result = false;
|
|
3416
|
+
_this2.$message.error("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20".concat(_this2.maxLength, "\u4E2A"));
|
|
3417
|
+
}
|
|
3414
3418
|
}
|
|
3415
3419
|
if (!_this2.customBeforeUpload) {
|
|
3416
3420
|
_context.next = 15;
|
|
@@ -3908,12 +3912,13 @@ var HrSelectEmp = {
|
|
|
3908
3912
|
},
|
|
3909
3913
|
handleChange: function handleChange(searchValue) {
|
|
3910
3914
|
this.searchValue = searchValue || '';
|
|
3915
|
+
//修复全删,input框清除不了
|
|
3916
|
+
this.$emit('change', undefined);
|
|
3911
3917
|
},
|
|
3912
3918
|
handleSelect: function handleSelect(value, vnode) {
|
|
3913
3919
|
if (value && value.indexOf('$$') > -1) {
|
|
3914
3920
|
value = value.substr(0, value.indexOf('$$'));
|
|
3915
3921
|
}
|
|
3916
|
-
console.log(value);
|
|
3917
3922
|
var val = value ? +value : undefined;
|
|
3918
3923
|
var allVal = vnode ? _.cloneDeep(vnode.data.attrs.data) : null;
|
|
3919
3924
|
this.$emit('change', val, allVal);
|
|
@@ -3925,7 +3930,7 @@ var HrSelectEmp = {
|
|
|
3925
3930
|
}
|
|
3926
3931
|
},
|
|
3927
3932
|
handleFocus: function handleFocus() {
|
|
3928
|
-
//
|
|
3933
|
+
//this.searchValue = '';
|
|
3929
3934
|
},
|
|
3930
3935
|
isValueExist: function isValueExist() {
|
|
3931
3936
|
var _this2 = this;
|
|
@@ -4114,6 +4119,12 @@ var HrRichText = {
|
|
|
4114
4119
|
require("tinymce/plugins/emoticons/js/emojis");
|
|
4115
4120
|
}
|
|
4116
4121
|
});
|
|
4122
|
+
},
|
|
4123
|
+
onchange: function onchange() {
|
|
4124
|
+
var props = _objectSpread$8(_objectSpread$8({}, this.$props), {}, {
|
|
4125
|
+
init: this.initReset
|
|
4126
|
+
});
|
|
4127
|
+
this.$emit('change', props.value);
|
|
4117
4128
|
}
|
|
4118
4129
|
},
|
|
4119
4130
|
mounted: function mounted() {},
|
|
@@ -4122,6 +4133,8 @@ var HrRichText = {
|
|
|
4122
4133
|
var props = _objectSpread$8(_objectSpread$8({}, this.$props), {}, {
|
|
4123
4134
|
init: this.initReset
|
|
4124
4135
|
});
|
|
4136
|
+
console.log('props', props);
|
|
4137
|
+
console.log('props-value', this.value);
|
|
4125
4138
|
if (this.readOnly) {
|
|
4126
4139
|
props.disabled = true;
|
|
4127
4140
|
}
|
|
@@ -4186,7 +4199,8 @@ var HrDynamic = {
|
|
|
4186
4199
|
fileSizeLimit: VuePropTypes.number,
|
|
4187
4200
|
fileTypes: VuePropTypes.string,
|
|
4188
4201
|
customBeforeUpload: VuePropTypes.func,
|
|
4189
|
-
richInit: VuePropTypes.object
|
|
4202
|
+
richInit: VuePropTypes.object,
|
|
4203
|
+
maxLength: VuePropTypes.number
|
|
4190
4204
|
}, {
|
|
4191
4205
|
prefixCls: "hr-dynamic"
|
|
4192
4206
|
}),
|
|
@@ -4227,7 +4241,8 @@ var HrDynamic = {
|
|
|
4227
4241
|
fileSizeLimit = _getOptionProps.fileSizeLimit,
|
|
4228
4242
|
fileTypes = _getOptionProps.fileTypes,
|
|
4229
4243
|
customBeforeUpload = _getOptionProps.customBeforeUpload,
|
|
4230
|
-
richInit = _getOptionProps.richInit
|
|
4244
|
+
richInit = _getOptionProps.richInit,
|
|
4245
|
+
maxLength = _getOptionProps.maxLength;
|
|
4231
4246
|
var hrDynamicProps = {
|
|
4232
4247
|
"class": classNames(prefixCls, cls, _defineProperty({}, "".concat(prefixCls, "-read-only"), !isEncrypt && readOnly)),
|
|
4233
4248
|
style: {
|
|
@@ -4569,6 +4584,7 @@ var HrDynamic = {
|
|
|
4569
4584
|
fileTypes: fileTypes,
|
|
4570
4585
|
multiple: true,
|
|
4571
4586
|
listType: "picture-card",
|
|
4587
|
+
maxLength: maxLength,
|
|
4572
4588
|
queryData: queryData,
|
|
4573
4589
|
disabled: disabled,
|
|
4574
4590
|
imageSize: imageSize,
|
|
@@ -4631,11 +4647,6 @@ var HrDynamic = {
|
|
|
4631
4647
|
value: value,
|
|
4632
4648
|
init: richInit,
|
|
4633
4649
|
disabled: disabled
|
|
4634
|
-
},
|
|
4635
|
-
on: {
|
|
4636
|
-
"change": function change(val) {
|
|
4637
|
-
_this.$emit("change", val);
|
|
4638
|
-
}
|
|
4639
4650
|
}
|
|
4640
4651
|
})]);
|
|
4641
4652
|
}
|
|
@@ -7268,8 +7279,10 @@ var HrTableBase = {
|
|
|
7268
7279
|
title: text
|
|
7269
7280
|
},
|
|
7270
7281
|
style: {
|
|
7271
|
-
width: "".concat(item.width, "px")
|
|
7272
|
-
|
|
7282
|
+
width: "".concat(item.width, "px"),
|
|
7283
|
+
color: item.textColor
|
|
7284
|
+
} //扩展textColor自定义字体颜色功能
|
|
7285
|
+
,
|
|
7273
7286
|
"class": cellClass
|
|
7274
7287
|
}, [text, item.encryption && !this._isEmpty(v) && h(antDesignVue.Icon, {
|
|
7275
7288
|
on: {
|