@kyfe/ks-query-table 0.0.12 → 0.0.13
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/{inidex.js → index.js} +207 -207
- package/package.json +1 -1
package/{inidex.js → index.js}
RENAMED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
self :
|
|
12
12
|
{};
|
|
13
13
|
|
|
14
|
-
_global.SENTRY_RELEASE={id:"@kyfe/ks-query-table@0.0.
|
|
14
|
+
_global.SENTRY_RELEASE={id:"@kyfe/ks-query-table@0.0.13"};}
|
|
15
15
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
16
16
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
17
17
|
module.exports = factory();
|
|
@@ -9695,14 +9695,14 @@ function getWindowScrollingElement() {
|
|
|
9695
9695
|
return document.documentElement;
|
|
9696
9696
|
}
|
|
9697
9697
|
}
|
|
9698
|
-
/**
|
|
9699
|
-
* Returns the "bounding client rect" of given element
|
|
9700
|
-
* @param {HTMLElement} el The element whose boundingClientRect is wanted
|
|
9701
|
-
* @param {[Boolean]} relativeToContainingBlock Whether the rect should be relative to the containing block of (including) the container
|
|
9702
|
-
* @param {[Boolean]} relativeToNonStaticParent Whether the rect should be relative to the relative parent of (including) the contaienr
|
|
9703
|
-
* @param {[Boolean]} undoScale Whether the container's scale() should be undone
|
|
9704
|
-
* @param {[HTMLElement]} container The parent the element will be placed in
|
|
9705
|
-
* @return {Object} The boundingClientRect of el, with specified adjustments
|
|
9698
|
+
/**
|
|
9699
|
+
* Returns the "bounding client rect" of given element
|
|
9700
|
+
* @param {HTMLElement} el The element whose boundingClientRect is wanted
|
|
9701
|
+
* @param {[Boolean]} relativeToContainingBlock Whether the rect should be relative to the containing block of (including) the container
|
|
9702
|
+
* @param {[Boolean]} relativeToNonStaticParent Whether the rect should be relative to the relative parent of (including) the contaienr
|
|
9703
|
+
* @param {[Boolean]} undoScale Whether the container's scale() should be undone
|
|
9704
|
+
* @param {[HTMLElement]} container The parent the element will be placed in
|
|
9705
|
+
* @return {Object} The boundingClientRect of el, with specified adjustments
|
|
9706
9706
|
*/
|
|
9707
9707
|
|
|
9708
9708
|
|
|
@@ -9774,12 +9774,12 @@ function getRect(el, relativeToContainingBlock, relativeToNonStaticParent, undoS
|
|
|
9774
9774
|
height: height
|
|
9775
9775
|
};
|
|
9776
9776
|
}
|
|
9777
|
-
/**
|
|
9778
|
-
* Checks if a side of an element is scrolled past a side of its parents
|
|
9779
|
-
* @param {HTMLElement} el The element who's side being scrolled out of view is in question
|
|
9780
|
-
* @param {String} elSide Side of the element in question ('top', 'left', 'right', 'bottom')
|
|
9781
|
-
* @param {String} parentSide Side of the parent in question ('top', 'left', 'right', 'bottom')
|
|
9782
|
-
* @return {HTMLElement} The parent scroll element that the el's side is scrolled past, or null if there is no such element
|
|
9777
|
+
/**
|
|
9778
|
+
* Checks if a side of an element is scrolled past a side of its parents
|
|
9779
|
+
* @param {HTMLElement} el The element who's side being scrolled out of view is in question
|
|
9780
|
+
* @param {String} elSide Side of the element in question ('top', 'left', 'right', 'bottom')
|
|
9781
|
+
* @param {String} parentSide Side of the parent in question ('top', 'left', 'right', 'bottom')
|
|
9782
|
+
* @return {HTMLElement} The parent scroll element that the el's side is scrolled past, or null if there is no such element
|
|
9783
9783
|
*/
|
|
9784
9784
|
|
|
9785
9785
|
|
|
@@ -9805,13 +9805,13 @@ function isScrolledPast(el, elSide, parentSide) {
|
|
|
9805
9805
|
|
|
9806
9806
|
return false;
|
|
9807
9807
|
}
|
|
9808
|
-
/**
|
|
9809
|
-
* Gets nth child of el, ignoring hidden children, sortable's elements (does not ignore clone if it's visible)
|
|
9810
|
-
* and non-draggable elements
|
|
9811
|
-
* @param {HTMLElement} el The parent element
|
|
9812
|
-
* @param {Number} childNum The index of the child
|
|
9813
|
-
* @param {Object} options Parent Sortable's options
|
|
9814
|
-
* @return {HTMLElement} The child at index childNum, or null if not found
|
|
9808
|
+
/**
|
|
9809
|
+
* Gets nth child of el, ignoring hidden children, sortable's elements (does not ignore clone if it's visible)
|
|
9810
|
+
* and non-draggable elements
|
|
9811
|
+
* @param {HTMLElement} el The parent element
|
|
9812
|
+
* @param {Number} childNum The index of the child
|
|
9813
|
+
* @param {Object} options Parent Sortable's options
|
|
9814
|
+
* @return {HTMLElement} The child at index childNum, or null if not found
|
|
9815
9815
|
*/
|
|
9816
9816
|
|
|
9817
9817
|
|
|
@@ -9834,11 +9834,11 @@ function getChild(el, childNum, options) {
|
|
|
9834
9834
|
|
|
9835
9835
|
return null;
|
|
9836
9836
|
}
|
|
9837
|
-
/**
|
|
9838
|
-
* Gets the last child in the el, ignoring ghostEl or invisible elements (clones)
|
|
9839
|
-
* @param {HTMLElement} el Parent element
|
|
9840
|
-
* @param {selector} selector Any other elements that should be ignored
|
|
9841
|
-
* @return {HTMLElement} The last child, ignoring ghostEl
|
|
9837
|
+
/**
|
|
9838
|
+
* Gets the last child in the el, ignoring ghostEl or invisible elements (clones)
|
|
9839
|
+
* @param {HTMLElement} el Parent element
|
|
9840
|
+
* @param {selector} selector Any other elements that should be ignored
|
|
9841
|
+
* @return {HTMLElement} The last child, ignoring ghostEl
|
|
9842
9842
|
*/
|
|
9843
9843
|
|
|
9844
9844
|
|
|
@@ -9851,12 +9851,12 @@ function lastChild(el, selector) {
|
|
|
9851
9851
|
|
|
9852
9852
|
return last || null;
|
|
9853
9853
|
}
|
|
9854
|
-
/**
|
|
9855
|
-
* Returns the index of an element within its parent for a selected set of
|
|
9856
|
-
* elements
|
|
9857
|
-
* @param {HTMLElement} el
|
|
9858
|
-
* @param {selector} selector
|
|
9859
|
-
* @return {number}
|
|
9854
|
+
/**
|
|
9855
|
+
* Returns the index of an element within its parent for a selected set of
|
|
9856
|
+
* elements
|
|
9857
|
+
* @param {HTMLElement} el
|
|
9858
|
+
* @param {selector} selector
|
|
9859
|
+
* @return {number}
|
|
9860
9860
|
*/
|
|
9861
9861
|
|
|
9862
9862
|
|
|
@@ -9877,11 +9877,11 @@ function index(el, selector) {
|
|
|
9877
9877
|
|
|
9878
9878
|
return index;
|
|
9879
9879
|
}
|
|
9880
|
-
/**
|
|
9881
|
-
* Returns the scroll offset of the given element, added with all the scroll offsets of parent elements.
|
|
9882
|
-
* The value is returned in real pixels.
|
|
9883
|
-
* @param {HTMLElement} el
|
|
9884
|
-
* @return {Array} Offsets in the format of [left, top]
|
|
9880
|
+
/**
|
|
9881
|
+
* Returns the scroll offset of the given element, added with all the scroll offsets of parent elements.
|
|
9882
|
+
* The value is returned in real pixels.
|
|
9883
|
+
* @param {HTMLElement} el
|
|
9884
|
+
* @return {Array} Offsets in the format of [left, top]
|
|
9885
9885
|
*/
|
|
9886
9886
|
|
|
9887
9887
|
|
|
@@ -9902,11 +9902,11 @@ function getRelativeScrollOffset(el) {
|
|
|
9902
9902
|
|
|
9903
9903
|
return [offsetLeft, offsetTop];
|
|
9904
9904
|
}
|
|
9905
|
-
/**
|
|
9906
|
-
* Returns the index of the object within the given array
|
|
9907
|
-
* @param {Array} arr Array that may or may not hold the object
|
|
9908
|
-
* @param {Object} obj An object that has a key-value pair unique to and identical to a key-value pair in the object you want to find
|
|
9909
|
-
* @return {Number} The index of the object in the array, or -1
|
|
9905
|
+
/**
|
|
9906
|
+
* Returns the index of the object within the given array
|
|
9907
|
+
* @param {Array} arr Array that may or may not hold the object
|
|
9908
|
+
* @param {Object} obj An object that has a key-value pair unique to and identical to a key-value pair in the object you want to find
|
|
9909
|
+
* @return {Number} The index of the object in the array, or -1
|
|
9910
9910
|
*/
|
|
9911
9911
|
|
|
9912
9912
|
|
|
@@ -12978,9 +12978,9 @@ function MultiDragPlugin() {
|
|
|
12978
12978
|
// Static methods & properties
|
|
12979
12979
|
pluginName: 'multiDrag',
|
|
12980
12980
|
utils: {
|
|
12981
|
-
/**
|
|
12982
|
-
* Selects the provided multi-drag item
|
|
12983
|
-
* @param {HTMLElement} el The element to be selected
|
|
12981
|
+
/**
|
|
12982
|
+
* Selects the provided multi-drag item
|
|
12983
|
+
* @param {HTMLElement} el The element to be selected
|
|
12984
12984
|
*/
|
|
12985
12985
|
select: function select(el) {
|
|
12986
12986
|
var sortable = el.parentNode[expando];
|
|
@@ -12996,9 +12996,9 @@ function MultiDragPlugin() {
|
|
|
12996
12996
|
multiDragElements.push(el);
|
|
12997
12997
|
},
|
|
12998
12998
|
|
|
12999
|
-
/**
|
|
13000
|
-
* Deselects the provided multi-drag item
|
|
13001
|
-
* @param {HTMLElement} el The element to be deselected
|
|
12999
|
+
/**
|
|
13000
|
+
* Deselects the provided multi-drag item
|
|
13001
|
+
* @param {HTMLElement} el The element to be deselected
|
|
13002
13002
|
*/
|
|
13003
13003
|
deselect: function deselect(el) {
|
|
13004
13004
|
var sortable = el.parentNode[expando],
|
|
@@ -13068,10 +13068,10 @@ function insertMultiDragElements(clonesInserted, rootEl) {
|
|
|
13068
13068
|
}
|
|
13069
13069
|
});
|
|
13070
13070
|
}
|
|
13071
|
-
/**
|
|
13072
|
-
* Insert multi-drag clones
|
|
13073
|
-
* @param {[Boolean]} elementsInserted Whether the multi-drag elements are inserted
|
|
13074
|
-
* @param {HTMLElement} rootEl
|
|
13071
|
+
/**
|
|
13072
|
+
* Insert multi-drag clones
|
|
13073
|
+
* @param {[Boolean]} elementsInserted Whether the multi-drag elements are inserted
|
|
13074
|
+
* @param {HTMLElement} rootEl
|
|
13075
13075
|
*/
|
|
13076
13076
|
|
|
13077
13077
|
|
|
@@ -23414,12 +23414,12 @@ var customDateTime = function customDateTime(d) {
|
|
|
23414
23414
|
return formatter_date(d, fmt);
|
|
23415
23415
|
};
|
|
23416
23416
|
|
|
23417
|
-
/**
|
|
23418
|
-
* 9级组织过滤器
|
|
23419
|
-
* @param val 投资集团/快递事业部/京津冀大区/取派中心/北京分区/顺义区/顺义取派部/东城片区/顺义八里庄点部@顺义取派部@顺义八里庄点部
|
|
23420
|
-
* @param dept Array:9级组织 | 1:部门 | 2:点部
|
|
23421
|
-
* @param split 组织、部门、点部 的分隔符,默认为“@”
|
|
23422
|
-
* @returns {string} 根据用户保存的点部配置,解析出对应的部门数据
|
|
23417
|
+
/**
|
|
23418
|
+
* 9级组织过滤器
|
|
23419
|
+
* @param val 投资集团/快递事业部/京津冀大区/取派中心/北京分区/顺义区/顺义取派部/东城片区/顺义八里庄点部@顺义取派部@顺义八里庄点部
|
|
23420
|
+
* @param dept Array:9级组织 | 1:部门 | 2:点部
|
|
23421
|
+
* @param split 组织、部门、点部 的分隔符,默认为“@”
|
|
23422
|
+
* @returns {string} 根据用户保存的点部配置,解析出对应的部门数据
|
|
23423
23423
|
*/
|
|
23424
23424
|
var deptFilter = function deptFilter(val, dept) {
|
|
23425
23425
|
var split = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '@';
|
|
@@ -23805,26 +23805,26 @@ var render_cells_createRowCellOption = function createRowCellOption(_ref3) {
|
|
|
23805
23805
|
};
|
|
23806
23806
|
};
|
|
23807
23807
|
|
|
23808
|
-
/**
|
|
23809
|
-
*
|
|
23810
|
-
* #@description 渲染单元格的方法
|
|
23811
|
-
* @param {*} {
|
|
23812
|
-
* cell,
|
|
23813
|
-
* columns,
|
|
23814
|
-
* isRenderFixedCells,
|
|
23815
|
-
* cellComponentMap,
|
|
23816
|
-
* removeCells,
|
|
23817
|
-
* rowData,
|
|
23818
|
-
* rowKey,
|
|
23819
|
-
* gridOffsetX,
|
|
23820
|
-
* isHeader,
|
|
23821
|
-
* handleEvent,
|
|
23822
|
-
* rowIndex,
|
|
23823
|
-
* grid,
|
|
23824
|
-
* rowContainerDom,
|
|
23825
|
-
* }
|
|
23826
|
-
* @param {*} i
|
|
23827
|
-
* @return {*}
|
|
23808
|
+
/**
|
|
23809
|
+
*
|
|
23810
|
+
* #@description 渲染单元格的方法
|
|
23811
|
+
* @param {*} {
|
|
23812
|
+
* cell,
|
|
23813
|
+
* columns,
|
|
23814
|
+
* isRenderFixedCells,
|
|
23815
|
+
* cellComponentMap,
|
|
23816
|
+
* removeCells,
|
|
23817
|
+
* rowData,
|
|
23818
|
+
* rowKey,
|
|
23819
|
+
* gridOffsetX,
|
|
23820
|
+
* isHeader,
|
|
23821
|
+
* handleEvent,
|
|
23822
|
+
* rowIndex,
|
|
23823
|
+
* grid,
|
|
23824
|
+
* rowContainerDom,
|
|
23825
|
+
* }
|
|
23826
|
+
* @param {*} i
|
|
23827
|
+
* @return {*}
|
|
23828
23828
|
*/
|
|
23829
23829
|
var render_cells_renderCellComponent = function renderCellComponent(_ref5, i) {
|
|
23830
23830
|
var _ref5$cell = _ref5.cell,
|
|
@@ -23944,27 +23944,27 @@ function removeCellComponents(componentMap, rowContainerDom) {
|
|
|
23944
23944
|
}
|
|
23945
23945
|
}
|
|
23946
23946
|
|
|
23947
|
-
/**
|
|
23948
|
-
*
|
|
23949
|
-
* @description 计算可视区域单元格渲染逻辑
|
|
23950
|
-
* @export
|
|
23951
|
-
* @param {*} {
|
|
23952
|
-
* columns,
|
|
23953
|
-
* startCell,
|
|
23954
|
-
* endCell,
|
|
23955
|
-
* cells,
|
|
23956
|
-
* cellComponentMap,
|
|
23957
|
-
* type,
|
|
23958
|
-
* rowContainerDom,
|
|
23959
|
-
* isRenderFixedCells,
|
|
23960
|
-
* gridOffsetX,
|
|
23961
|
-
* rowKey,
|
|
23962
|
-
* handleEvent,
|
|
23963
|
-
* rowData,
|
|
23964
|
-
* rowIndex,
|
|
23965
|
-
* grid = {},
|
|
23966
|
-
* headerParentColcellComponentMap,
|
|
23967
|
-
* }
|
|
23947
|
+
/**
|
|
23948
|
+
*
|
|
23949
|
+
* @description 计算可视区域单元格渲染逻辑
|
|
23950
|
+
* @export
|
|
23951
|
+
* @param {*} {
|
|
23952
|
+
* columns,
|
|
23953
|
+
* startCell,
|
|
23954
|
+
* endCell,
|
|
23955
|
+
* cells,
|
|
23956
|
+
* cellComponentMap,
|
|
23957
|
+
* type,
|
|
23958
|
+
* rowContainerDom,
|
|
23959
|
+
* isRenderFixedCells,
|
|
23960
|
+
* gridOffsetX,
|
|
23961
|
+
* rowKey,
|
|
23962
|
+
* handleEvent,
|
|
23963
|
+
* rowData,
|
|
23964
|
+
* rowIndex,
|
|
23965
|
+
* grid = {},
|
|
23966
|
+
* headerParentColcellComponentMap,
|
|
23967
|
+
* }
|
|
23968
23968
|
*/
|
|
23969
23969
|
function calculateRenderCells(_ref7) {
|
|
23970
23970
|
var columns = _ref7.columns,
|
|
@@ -24067,23 +24067,23 @@ function calculateRenderCells(_ref7) {
|
|
|
24067
24067
|
}, commonRowParams));
|
|
24068
24068
|
}
|
|
24069
24069
|
}
|
|
24070
|
-
/**
|
|
24071
|
-
*
|
|
24072
|
-
* @description 计算表头父节点单元格渲染逻辑
|
|
24073
|
-
* @export
|
|
24074
|
-
* @param {*} {
|
|
24075
|
-
* parentCols,
|
|
24076
|
-
* headerParentColcellComponentMap,
|
|
24077
|
-
* renderParentCells,
|
|
24078
|
-
* rowContainerDom,
|
|
24079
|
-
* isRenderFixedCells,
|
|
24080
|
-
* gridOffsetX,
|
|
24081
|
-
* rowKey,
|
|
24082
|
-
* handleEvent,
|
|
24083
|
-
* rowData,
|
|
24084
|
-
* rowIndex,
|
|
24085
|
-
* grid,
|
|
24086
|
-
* }
|
|
24070
|
+
/**
|
|
24071
|
+
*
|
|
24072
|
+
* @description 计算表头父节点单元格渲染逻辑
|
|
24073
|
+
* @export
|
|
24074
|
+
* @param {*} {
|
|
24075
|
+
* parentCols,
|
|
24076
|
+
* headerParentColcellComponentMap,
|
|
24077
|
+
* renderParentCells,
|
|
24078
|
+
* rowContainerDom,
|
|
24079
|
+
* isRenderFixedCells,
|
|
24080
|
+
* gridOffsetX,
|
|
24081
|
+
* rowKey,
|
|
24082
|
+
* handleEvent,
|
|
24083
|
+
* rowData,
|
|
24084
|
+
* rowIndex,
|
|
24085
|
+
* grid,
|
|
24086
|
+
* }
|
|
24087
24087
|
*/
|
|
24088
24088
|
function calculateHeaderParentColRenderCells(_ref8) {
|
|
24089
24089
|
var parentCols = _ref8.parentCols,
|
|
@@ -24292,15 +24292,15 @@ function smoothEaseOut(t) {
|
|
|
24292
24292
|
return t < 0.5 ? 4 * t * t * t : 1 - Math.pow(-2 * t + 2, 3) / 2;
|
|
24293
24293
|
}
|
|
24294
24294
|
|
|
24295
|
-
/**
|
|
24296
|
-
* 平滑滚动到指定位置
|
|
24297
|
-
* @param {Object} options 滚动配置
|
|
24298
|
-
* @param {Number} options.from 起始位置
|
|
24299
|
-
* @param {Number} options.to 目标位置
|
|
24300
|
-
* @param {Number} options.duration 动画持续时间(毫秒)
|
|
24301
|
-
* @param {Function} options.onUpdate 位置更新回调
|
|
24302
|
-
* @param {Function} [options.onComplete] 动画完成回调
|
|
24303
|
-
* @param {Function} [options.easing=easeOutCubic] 缓动函数
|
|
24295
|
+
/**
|
|
24296
|
+
* 平滑滚动到指定位置
|
|
24297
|
+
* @param {Object} options 滚动配置
|
|
24298
|
+
* @param {Number} options.from 起始位置
|
|
24299
|
+
* @param {Number} options.to 目标位置
|
|
24300
|
+
* @param {Number} options.duration 动画持续时间(毫秒)
|
|
24301
|
+
* @param {Function} options.onUpdate 位置更新回调
|
|
24302
|
+
* @param {Function} [options.onComplete] 动画完成回调
|
|
24303
|
+
* @param {Function} [options.easing=easeOutCubic] 缓动函数
|
|
24304
24304
|
*/
|
|
24305
24305
|
function animateScroll(options) {
|
|
24306
24306
|
var from = options.from,
|
|
@@ -24425,11 +24425,11 @@ function animateScroll(options) {
|
|
|
24425
24425
|
this.renderViewportRows();
|
|
24426
24426
|
this.emitScroll();
|
|
24427
24427
|
},
|
|
24428
|
-
/**
|
|
24429
|
-
* 垂直滚动到指定行
|
|
24430
|
-
* @param {Number} rowKey 数据源中的行Key(从0开始)
|
|
24431
|
-
* @param {Number} [offset=0] 额外偏移量(像素)
|
|
24432
|
-
* @param {Number} [duration] 动画持续时间(毫秒)
|
|
24428
|
+
/**
|
|
24429
|
+
* 垂直滚动到指定行
|
|
24430
|
+
* @param {Number} rowKey 数据源中的行Key(从0开始)
|
|
24431
|
+
* @param {Number} [offset=0] 额外偏移量(像素)
|
|
24432
|
+
* @param {Number} [duration] 动画持续时间(毫秒)
|
|
24433
24433
|
*/
|
|
24434
24434
|
scrollToColumn: function scrollToColumn(key) {
|
|
24435
24435
|
var _this = this;
|
|
@@ -24461,11 +24461,11 @@ function animateScroll(options) {
|
|
|
24461
24461
|
this.renderScollXTable(targetScrollLeft);
|
|
24462
24462
|
}
|
|
24463
24463
|
},
|
|
24464
|
-
/**
|
|
24465
|
-
* 垂直滚动到指定行
|
|
24466
|
-
* @param {Number} rowIndex 数据源中的行索引(从0开始)
|
|
24467
|
-
* @param {Number} [offset=0] 额外偏移量(像素)
|
|
24468
|
-
* @param {Number} [duration] 动画持续时间(毫秒)
|
|
24464
|
+
/**
|
|
24465
|
+
* 垂直滚动到指定行
|
|
24466
|
+
* @param {Number} rowIndex 数据源中的行索引(从0开始)
|
|
24467
|
+
* @param {Number} [offset=0] 额外偏移量(像素)
|
|
24468
|
+
* @param {Number} [duration] 动画持续时间(毫秒)
|
|
24469
24469
|
*/
|
|
24470
24470
|
scrollToRow: function scrollToRow(targetIndex) {
|
|
24471
24471
|
var _this2 = this;
|
|
@@ -25503,20 +25503,20 @@ var isNaN_default = /*#__PURE__*/__webpack_require__.n(lodash_isNaN);
|
|
|
25503
25503
|
|
|
25504
25504
|
|
|
25505
25505
|
|
|
25506
|
-
/**
|
|
25507
|
-
* 触摸滚动处理类
|
|
25508
|
-
* 实现移动端触摸滚动及惯性滚动效果
|
|
25506
|
+
/**
|
|
25507
|
+
* 触摸滚动处理类
|
|
25508
|
+
* 实现移动端触摸滚动及惯性滚动效果
|
|
25509
25509
|
*/
|
|
25510
25510
|
var touch_scroll_TouchScrolling = /*#__PURE__*/function () {
|
|
25511
|
-
/**
|
|
25512
|
-
* 构造函数
|
|
25513
|
-
* @param {HTMLElement} el - 需要绑定滚动效果的目标元素
|
|
25514
|
-
* @param {Object} options - 配置选项
|
|
25515
|
-
* @param {boolean} options.unScrollX - 是否禁用X轴滚动
|
|
25516
|
-
* @param {boolean} options.unScrollY - 是否禁用Y轴滚动
|
|
25517
|
-
* @param {boolean} options.isShowHorizontal - 是否显示水平滚动条
|
|
25518
|
-
* @param {Function} options.handlerTouchend - 触摸结束回调函数
|
|
25519
|
-
* @param {Function} options.handlerScrollEnd - 滚动结束回调函数
|
|
25511
|
+
/**
|
|
25512
|
+
* 构造函数
|
|
25513
|
+
* @param {HTMLElement} el - 需要绑定滚动效果的目标元素
|
|
25514
|
+
* @param {Object} options - 配置选项
|
|
25515
|
+
* @param {boolean} options.unScrollX - 是否禁用X轴滚动
|
|
25516
|
+
* @param {boolean} options.unScrollY - 是否禁用Y轴滚动
|
|
25517
|
+
* @param {boolean} options.isShowHorizontal - 是否显示水平滚动条
|
|
25518
|
+
* @param {Function} options.handlerTouchend - 触摸结束回调函数
|
|
25519
|
+
* @param {Function} options.handlerScrollEnd - 滚动结束回调函数
|
|
25520
25520
|
*/
|
|
25521
25521
|
function TouchScrolling(el) {
|
|
25522
25522
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -25559,8 +25559,8 @@ var touch_scroll_TouchScrolling = /*#__PURE__*/function () {
|
|
|
25559
25559
|
this.addEventListeners();
|
|
25560
25560
|
}
|
|
25561
25561
|
|
|
25562
|
-
/**
|
|
25563
|
-
* 添加事件监听器
|
|
25562
|
+
/**
|
|
25563
|
+
* 添加事件监听器
|
|
25564
25564
|
*/
|
|
25565
25565
|
return _createClass(TouchScrolling, [{
|
|
25566
25566
|
key: "addEventListeners",
|
|
@@ -25578,8 +25578,8 @@ var touch_scroll_TouchScrolling = /*#__PURE__*/function () {
|
|
|
25578
25578
|
this.el.addEventListener('pointermove', pointermove);
|
|
25579
25579
|
}
|
|
25580
25580
|
|
|
25581
|
-
/**
|
|
25582
|
-
* 移除事件监听器
|
|
25581
|
+
/**
|
|
25582
|
+
* 移除事件监听器
|
|
25583
25583
|
*/
|
|
25584
25584
|
}, {
|
|
25585
25585
|
key: "removeEventListeners",
|
|
@@ -25594,10 +25594,10 @@ var touch_scroll_TouchScrolling = /*#__PURE__*/function () {
|
|
|
25594
25594
|
this.el.removeEventListener('pointermove', pointermove);
|
|
25595
25595
|
}
|
|
25596
25596
|
|
|
25597
|
-
/**
|
|
25598
|
-
* 确保值为有效数字
|
|
25599
|
-
* @param {*} value - 需要转换的值
|
|
25600
|
-
* @returns {number} - 转换后的数字
|
|
25597
|
+
/**
|
|
25598
|
+
* 确保值为有效数字
|
|
25599
|
+
* @param {*} value - 需要转换的值
|
|
25600
|
+
* @returns {number} - 转换后的数字
|
|
25601
25601
|
*/
|
|
25602
25602
|
}, {
|
|
25603
25603
|
key: "ensureNumeric",
|
|
@@ -25606,10 +25606,10 @@ var touch_scroll_TouchScrolling = /*#__PURE__*/function () {
|
|
|
25606
25606
|
return isNaN_default()(numericValue) ? 0 : numericValue;
|
|
25607
25607
|
}
|
|
25608
25608
|
|
|
25609
|
-
/**
|
|
25610
|
-
* 派发滚轮事件
|
|
25611
|
-
* @param {number} deltaY - Y轴滚动量
|
|
25612
|
-
* @param {number} deltaX - X轴滚动量
|
|
25609
|
+
/**
|
|
25610
|
+
* 派发滚轮事件
|
|
25611
|
+
* @param {number} deltaY - Y轴滚动量
|
|
25612
|
+
* @param {number} deltaX - X轴滚动量
|
|
25613
25613
|
*/
|
|
25614
25614
|
}, {
|
|
25615
25615
|
key: "dispatchWheelEvent",
|
|
@@ -25632,10 +25632,10 @@ var touch_scroll_TouchScrolling = /*#__PURE__*/function () {
|
|
|
25632
25632
|
this.el.dispatchEvent(wheelEvent);
|
|
25633
25633
|
}
|
|
25634
25634
|
|
|
25635
|
-
/**
|
|
25636
|
-
* 设置滚动属性
|
|
25637
|
-
* @param {string} key - 属性名
|
|
25638
|
-
* @param {*} val - 属性值
|
|
25635
|
+
/**
|
|
25636
|
+
* 设置滚动属性
|
|
25637
|
+
* @param {string} key - 属性名
|
|
25638
|
+
* @param {*} val - 属性值
|
|
25639
25639
|
*/
|
|
25640
25640
|
}, {
|
|
25641
25641
|
key: "setScroll",
|
|
@@ -25645,10 +25645,10 @@ var touch_scroll_TouchScrolling = /*#__PURE__*/function () {
|
|
|
25645
25645
|
}
|
|
25646
25646
|
}
|
|
25647
25647
|
|
|
25648
|
-
/**
|
|
25649
|
-
* 模拟惯性减速滚动效果
|
|
25650
|
-
* @param {number} decelerationId - 当前减速动画ID
|
|
25651
|
-
* @param {Boolean} isYAndDownToTop - Y轴并且从下至上滚动
|
|
25648
|
+
/**
|
|
25649
|
+
* 模拟惯性减速滚动效果
|
|
25650
|
+
* @param {number} decelerationId - 当前减速动画ID
|
|
25651
|
+
* @param {Boolean} isYAndDownToTop - Y轴并且从下至上滚动
|
|
25652
25652
|
*/
|
|
25653
25653
|
}, {
|
|
25654
25654
|
key: "simulateDeceleratedScrolling",
|
|
@@ -25690,9 +25690,9 @@ var touch_scroll_TouchScrolling = /*#__PURE__*/function () {
|
|
|
25690
25690
|
var lastTime = performance.now(); // 上次动画帧时间
|
|
25691
25691
|
var elapsedTime = 0; // 已过去的时间
|
|
25692
25692
|
|
|
25693
|
-
/**
|
|
25694
|
-
* 动画帧回调函数
|
|
25695
|
-
* @param {number} timestamp - 当前时间戳
|
|
25693
|
+
/**
|
|
25694
|
+
* 动画帧回调函数
|
|
25695
|
+
* @param {number} timestamp - 当前时间戳
|
|
25696
25696
|
*/
|
|
25697
25697
|
var _step = function step(timestamp) {
|
|
25698
25698
|
var _this$handlerBeforeAn2;
|
|
@@ -25739,9 +25739,9 @@ var touch_scroll_TouchScrolling = /*#__PURE__*/function () {
|
|
|
25739
25739
|
requestAnimationFrame(_step);
|
|
25740
25740
|
}
|
|
25741
25741
|
|
|
25742
|
-
/**
|
|
25743
|
-
* 触发滚动结束回调
|
|
25744
|
-
* @param {Object|null} direction - 滚动方向对象
|
|
25742
|
+
/**
|
|
25743
|
+
* 触发滚动结束回调
|
|
25744
|
+
* @param {Object|null} direction - 滚动方向对象
|
|
25745
25745
|
*/
|
|
25746
25746
|
}, {
|
|
25747
25747
|
key: "triggerScrollEnd",
|
|
@@ -25759,9 +25759,9 @@ var touch_scroll_TouchScrolling = /*#__PURE__*/function () {
|
|
|
25759
25759
|
(_this$onScrollEnd = this.onScrollEnd) === null || _this$onScrollEnd === void 0 || _this$onScrollEnd.call(this, direction);
|
|
25760
25760
|
}
|
|
25761
25761
|
|
|
25762
|
-
/**
|
|
25763
|
-
* 触摸开始事件处理
|
|
25764
|
-
* @param {TouchEvent} event - 触摸事件对象
|
|
25762
|
+
/**
|
|
25763
|
+
* 触摸开始事件处理
|
|
25764
|
+
* @param {TouchEvent} event - 触摸事件对象
|
|
25765
25765
|
*/
|
|
25766
25766
|
}, {
|
|
25767
25767
|
key: "onTouchStart",
|
|
@@ -25796,15 +25796,15 @@ var touch_scroll_TouchScrolling = /*#__PURE__*/function () {
|
|
|
25796
25796
|
(_this$handlerTouchSta = this.handlerTouchStar) === null || _this$handlerTouchSta === void 0 || _this$handlerTouchSta.call(this, event);
|
|
25797
25797
|
}
|
|
25798
25798
|
|
|
25799
|
-
/**
|
|
25800
|
-
* 触摸取消事件处理
|
|
25799
|
+
/**
|
|
25800
|
+
* 触摸取消事件处理
|
|
25801
25801
|
*/
|
|
25802
25802
|
}, {
|
|
25803
25803
|
key: "onTouchCancel",
|
|
25804
25804
|
value: function onTouchCancel() {}
|
|
25805
25805
|
|
|
25806
|
-
/**
|
|
25807
|
-
* 触摸结束事件处理
|
|
25806
|
+
/**
|
|
25807
|
+
* 触摸结束事件处理
|
|
25808
25808
|
*/
|
|
25809
25809
|
}, {
|
|
25810
25810
|
key: "onTouchEnd",
|
|
@@ -25862,9 +25862,9 @@ var touch_scroll_TouchScrolling = /*#__PURE__*/function () {
|
|
|
25862
25862
|
key: "onPointermove",
|
|
25863
25863
|
value: function onPointermove() {}
|
|
25864
25864
|
|
|
25865
|
-
/**
|
|
25866
|
-
* 触摸移动事件处理
|
|
25867
|
-
* @param {TouchEvent} event - 触摸事件对象
|
|
25865
|
+
/**
|
|
25866
|
+
* 触摸移动事件处理
|
|
25867
|
+
* @param {TouchEvent} event - 触摸事件对象
|
|
25868
25868
|
*/
|
|
25869
25869
|
}, {
|
|
25870
25870
|
key: "onTouchMove",
|
|
@@ -25929,12 +25929,12 @@ var touch_scroll_TouchScrolling = /*#__PURE__*/function () {
|
|
|
25929
25929
|
}, 150); // 150ms 内没有新的 touchmove 事件则认为停止
|
|
25930
25930
|
}
|
|
25931
25931
|
|
|
25932
|
-
/**
|
|
25933
|
-
* 更新触摸状态
|
|
25934
|
-
* @param {number} y - 当前Y坐标
|
|
25935
|
-
* @param {number} x - 当前X坐标
|
|
25936
|
-
* @param {number} deltaY - Y轴滚动量
|
|
25937
|
-
* @param {number} deltaX - X轴滚动量
|
|
25932
|
+
/**
|
|
25933
|
+
* 更新触摸状态
|
|
25934
|
+
* @param {number} y - 当前Y坐标
|
|
25935
|
+
* @param {number} x - 当前X坐标
|
|
25936
|
+
* @param {number} deltaY - Y轴滚动量
|
|
25937
|
+
* @param {number} deltaX - X轴滚动量
|
|
25938
25938
|
*/
|
|
25939
25939
|
}, {
|
|
25940
25940
|
key: "updateTouchState",
|
|
@@ -25948,8 +25948,8 @@ var touch_scroll_TouchScrolling = /*#__PURE__*/function () {
|
|
|
25948
25948
|
this.touchScrollState.lastDeltaX = deltaX;
|
|
25949
25949
|
}
|
|
25950
25950
|
|
|
25951
|
-
/**
|
|
25952
|
-
* 销毁方法,清理资源
|
|
25951
|
+
/**
|
|
25952
|
+
* 销毁方法,清理资源
|
|
25953
25953
|
*/
|
|
25954
25954
|
}, {
|
|
25955
25955
|
key: "destroy",
|
|
@@ -26173,9 +26173,9 @@ var RowConstructor = pe_tablevue_type_script_lang_js_Vue.extend(pe_table_row);
|
|
|
26173
26173
|
// window.removeEventListener('resize', this.throttleHandleResize)
|
|
26174
26174
|
},
|
|
26175
26175
|
activated: function activated() {
|
|
26176
|
-
/*
|
|
26177
|
-
释放掉,存在一个页面多个表格,路由回来A表格从新被activate挂起,handleVisibility没有走,
|
|
26178
|
-
B表格这时候也会被activate = true给锁死,导致没办法更新白屏问题,比如一个页面存在tabs的场景
|
|
26176
|
+
/*
|
|
26177
|
+
释放掉,存在一个页面多个表格,路由回来A表格从新被activate挂起,handleVisibility没有走,
|
|
26178
|
+
B表格这时候也会被activate = true给锁死,导致没办法更新白屏问题,比如一个页面存在tabs的场景
|
|
26179
26179
|
*/
|
|
26180
26180
|
var isVisible = this.isVisible();
|
|
26181
26181
|
if (isVisible) {
|
|
@@ -33174,10 +33174,10 @@ var table_settings_component = normalizeComponent(
|
|
|
33174
33174
|
}, _callee2);
|
|
33175
33175
|
}))();
|
|
33176
33176
|
},
|
|
33177
|
-
/**
|
|
33178
|
-
* 用户变更列显示/隐藏后,保存状态
|
|
33179
|
-
* @param {*} columns
|
|
33180
|
-
* @returns
|
|
33177
|
+
/**
|
|
33178
|
+
* 用户变更列显示/隐藏后,保存状态
|
|
33179
|
+
* @param {*} columns
|
|
33180
|
+
* @returns
|
|
33181
33181
|
*/
|
|
33182
33182
|
saveConfigToHttp: function saveConfigToHttp(columns) {
|
|
33183
33183
|
var _this4 = this;
|
|
@@ -33215,9 +33215,9 @@ var table_settings_component = normalizeComponent(
|
|
|
33215
33215
|
}, _callee3);
|
|
33216
33216
|
}))();
|
|
33217
33217
|
},
|
|
33218
|
-
/**
|
|
33219
|
-
* 个性设置重置
|
|
33220
|
-
* @returns
|
|
33218
|
+
/**
|
|
33219
|
+
* 个性设置重置
|
|
33220
|
+
* @returns
|
|
33221
33221
|
*/
|
|
33222
33222
|
resetToHttp: function resetToHttp() {
|
|
33223
33223
|
var _this5 = this;
|
|
@@ -34362,11 +34362,11 @@ var addRowLength = 500;
|
|
|
34362
34362
|
return _ref4.apply(this, arguments);
|
|
34363
34363
|
};
|
|
34364
34364
|
}(), 100),
|
|
34365
|
-
/**
|
|
34366
|
-
* 基于ID过滤并合并两个大型数组,保持原始顺序
|
|
34367
|
-
* @param {Array} arr1 第一个数组(将被过滤)
|
|
34368
|
-
* @param {Array} arr2 第二个数组(将完整保留)
|
|
34369
|
-
* @returns {Array} 合并后的新数组
|
|
34365
|
+
/**
|
|
34366
|
+
* 基于ID过滤并合并两个大型数组,保持原始顺序
|
|
34367
|
+
* @param {Array} arr1 第一个数组(将被过滤)
|
|
34368
|
+
* @param {Array} arr2 第二个数组(将完整保留)
|
|
34369
|
+
* @returns {Array} 合并后的新数组
|
|
34370
34370
|
*/
|
|
34371
34371
|
filterAndMergeArrays: function filterAndMergeArrays(arr1, arr2) {
|
|
34372
34372
|
// 创建第二个数组的ID集合用于快速查找
|