hrsass-components 2.0.2 → 2.0.3
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
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 = "2.0.
|
|
68
|
+
var version = "2.0.3";
|
|
69
69
|
|
|
70
70
|
/**
|
|
71
71
|
* 版本号
|
|
@@ -6951,10 +6951,7 @@ var HrTableBase = {
|
|
|
6951
6951
|
//自定义列
|
|
6952
6952
|
dataSource: [],
|
|
6953
6953
|
//数据源
|
|
6954
|
-
action: {
|
|
6955
|
-
fixed: false,
|
|
6956
|
-
width: 100
|
|
6957
|
-
},
|
|
6954
|
+
action: {},
|
|
6958
6955
|
//操作列宽度和锁定
|
|
6959
6956
|
loading: false,
|
|
6960
6957
|
showDownload: false,
|
|
@@ -7708,13 +7705,13 @@ var HrTableBase = {
|
|
|
7708
7705
|
return height;
|
|
7709
7706
|
},
|
|
7710
7707
|
_getActionWidth: function _getActionWidth() {
|
|
7711
|
-
var _vnode$, _vnode$2, _actionList$propsData, _actionList$children;
|
|
7708
|
+
var _vnode$, _vnode$2, _vnode$3, _actionList$propsData, _actionList$children;
|
|
7712
7709
|
var action = this.$props.action;
|
|
7713
|
-
if (action !== null && action !== void 0 && action.width) return action.width
|
|
7710
|
+
if (action !== null && action !== void 0 && action.width) return action.width;
|
|
7714
7711
|
if (this.actionWidth) return this.actionWidth;
|
|
7715
7712
|
if (this.dataList.length === 0) return 100;
|
|
7716
7713
|
var vnode = this.$scopedSlots.action && this.$scopedSlots.action(this.dataList[0].id, this.dataList[0]);
|
|
7717
|
-
var actionList = (vnode === null || vnode === void 0 || (_vnode$ = vnode[0]) === null || _vnode$ === void 0 || (_vnode$ = _vnode$.componentOptions) === null || _vnode$ === void 0
|
|
7714
|
+
var actionList = (vnode === null || vnode === void 0 || (_vnode$ = vnode[0]) === null || _vnode$ === void 0 || (_vnode$ = _vnode$.componentOptions) === null || _vnode$ === void 0 ? void 0 : _vnode$.tag) === 'hr-button-list' ? vnode === null || vnode === void 0 || (_vnode$2 = vnode[0]) === null || _vnode$2 === void 0 ? void 0 : _vnode$2.componentOptions : vnode === null || vnode === void 0 || (_vnode$3 = vnode[0]) === null || _vnode$3 === void 0 || (_vnode$3 = _vnode$3.componentOptions) === null || _vnode$3 === void 0 || (_vnode$3 = _vnode$3.children) === null || _vnode$3 === void 0 || (_vnode$3 = _vnode$3[0]) === null || _vnode$3 === void 0 ? void 0 : _vnode$3.componentOptions;
|
|
7718
7715
|
var len = actionList ? (actionList === null || actionList === void 0 || (_actionList$propsData = actionList.propsData) === null || _actionList$propsData === void 0 ? void 0 : _actionList$propsData.count) || (actionList === null || actionList === void 0 || (_actionList$children = actionList.children) === null || _actionList$children === void 0 ? void 0 : _actionList$children.length) || 0 : 0;
|
|
7719
7716
|
var actionWidth = len * 100;
|
|
7720
7717
|
if (!actionWidth) return 100;
|