hrsass-components 1.7.23 → 1.7.24
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 +30 -8
- 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.24";
|
|
69
69
|
|
|
70
70
|
/**
|
|
71
71
|
* 版本号
|
|
@@ -4094,8 +4094,10 @@ var HrAppendix = {
|
|
|
4094
4094
|
display: "none"
|
|
4095
4095
|
} : {},
|
|
4096
4096
|
on: {
|
|
4097
|
-
change: function change(
|
|
4098
|
-
|
|
4097
|
+
change: function change(_ref6) {
|
|
4098
|
+
var dataUrl = _ref6.dataUrl,
|
|
4099
|
+
prefix = _ref6.prefix;
|
|
4100
|
+
return _this7.capture(dataUrl, prefix);
|
|
4099
4101
|
}
|
|
4100
4102
|
}
|
|
4101
4103
|
})]), h("a-upload", options, [btn ? this.$slots["default"] || btn : null])]);
|
|
@@ -4893,7 +4895,9 @@ var TableProps = {
|
|
|
4893
4895
|
selection: VuePropTypes.bool,
|
|
4894
4896
|
hasQueryData: VuePropTypes.bool,
|
|
4895
4897
|
showDownload: VuePropTypes.bool,
|
|
4896
|
-
autoLoad: VuePropTypes.bool
|
|
4898
|
+
autoLoad: VuePropTypes.bool,
|
|
4899
|
+
normalizeConfig: VuePropTypes.func,
|
|
4900
|
+
normalizeData: VuePropTypes.func // dataSource: PropTypes.array,
|
|
4897
4901
|
|
|
4898
4902
|
};
|
|
4899
4903
|
var FilterProps = {
|
|
@@ -8344,8 +8348,14 @@ var index = {
|
|
|
8344
8348
|
action: {
|
|
8345
8349
|
fixed: false,
|
|
8346
8350
|
width: 100
|
|
8347
|
-
}
|
|
8348
|
-
|
|
8351
|
+
},
|
|
8352
|
+
//操作列宽度和锁定
|
|
8353
|
+
normalizeConfig: function normalizeConfig(config) {
|
|
8354
|
+
return config;
|
|
8355
|
+
},
|
|
8356
|
+
normalizeData: function normalizeData(data) {
|
|
8357
|
+
return data;
|
|
8358
|
+
}
|
|
8349
8359
|
}),
|
|
8350
8360
|
data: function data() {
|
|
8351
8361
|
return {
|
|
@@ -8514,7 +8524,8 @@ var index = {
|
|
|
8514
8524
|
var _getOptionProps4 = getOptionProps(this),
|
|
8515
8525
|
code = _getOptionProps4.code,
|
|
8516
8526
|
_getOptionProps4$quer = _getOptionProps4.queryData,
|
|
8517
|
-
queryData = _getOptionProps4$quer === void 0 ? {} : _getOptionProps4$quer
|
|
8527
|
+
queryData = _getOptionProps4$quer === void 0 ? {} : _getOptionProps4$quer,
|
|
8528
|
+
normalizeConfig = _getOptionProps4.normalizeConfig;
|
|
8518
8529
|
|
|
8519
8530
|
if (code && this.configState != stateMap.loading) {
|
|
8520
8531
|
this.setState({
|
|
@@ -8522,6 +8533,11 @@ var index = {
|
|
|
8522
8533
|
});
|
|
8523
8534
|
this.configState = stateMap.loading;
|
|
8524
8535
|
this.$axios.get("platform/metadata/getGridConfig.search?code=".concat(code)).then(function (res) {
|
|
8536
|
+
//外部处理config
|
|
8537
|
+
if (lodash.isFunction(normalizeConfig)) {
|
|
8538
|
+
res = normalizeConfig(res);
|
|
8539
|
+
}
|
|
8540
|
+
|
|
8525
8541
|
_this4.configState = stateMap.loaded;
|
|
8526
8542
|
var conditions = res.conditions || [];
|
|
8527
8543
|
var _query = queryData;
|
|
@@ -8575,7 +8591,8 @@ var index = {
|
|
|
8575
8591
|
sorter = this.sorter,
|
|
8576
8592
|
columnList = this.columnList,
|
|
8577
8593
|
tempConditionListByScheme = this.tempConditionListByScheme,
|
|
8578
|
-
conditionListByScheme = this.conditionListByScheme
|
|
8594
|
+
conditionListByScheme = this.conditionListByScheme,
|
|
8595
|
+
normalizeData = this.normalizeData;
|
|
8579
8596
|
var sort = undefined;
|
|
8580
8597
|
|
|
8581
8598
|
if (sorter && sorter.field) {
|
|
@@ -8615,6 +8632,11 @@ var index = {
|
|
|
8615
8632
|
sortList: sort,
|
|
8616
8633
|
conditionList: _conditionList
|
|
8617
8634
|
}).then(function (res) {
|
|
8635
|
+
//外部处理数据
|
|
8636
|
+
if (lodash.isFunction(normalizeData)) {
|
|
8637
|
+
res = normalizeData(res);
|
|
8638
|
+
}
|
|
8639
|
+
|
|
8618
8640
|
_this5.setState({
|
|
8619
8641
|
pagination: _objectSpread$c(_objectSpread$c({}, pagination), {}, {
|
|
8620
8642
|
total: res.total
|