linkmore-design 1.1.22-beta.4 → 1.1.22-beta.6
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/dist/LmTable/components/Container/Container.d.ts +2 -0
- package/dist/LmTable/components/DndContainer.d.ts +0 -1
- package/dist/QuickMenu/index.d.ts +2 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.umd.css +8 -8
- package/dist/index.umd.js +62 -52
- package/dist/index.umd.min.css +1 -1
- package/dist/index.umd.min.js +2 -2
- package/dist/variables.css +10 -0
- package/es/Form/style/index.css +4 -0
- package/es/Form/style/variables.css +4 -0
- package/es/LmTable/Table.js +32 -13
- package/es/LmTable/components/Container/Container.css +8 -1
- package/es/LmTable/components/Container/Container.d.ts +2 -0
- package/es/LmTable/components/Container/Container.js +7 -3
- package/es/LmTable/components/DndContainer.d.ts +0 -1
- package/es/LmTable/components/DndContainer.js +12 -27
- package/es/LmTable/components/sheelTableCell.js +6 -3
- package/es/LmTable/expression.js +1 -0
- package/es/LmTable/style/index.css +6 -0
- package/es/LmTable/style/variables.css +6 -0
- package/es/QuickMenu/index.d.ts +2 -1
- package/es/QuickMenu/index.js +11 -11
- package/es/index.d.ts +1 -0
- package/es/styles/variables.css +10 -0
- package/lib/Form/style/index.css +4 -0
- package/lib/Form/style/variables.css +4 -0
- package/lib/LmTable/Table.js +32 -13
- package/lib/LmTable/components/Container/Container.css +8 -1
- package/lib/LmTable/components/Container/Container.d.ts +2 -0
- package/lib/LmTable/components/Container/Container.js +7 -3
- package/lib/LmTable/components/DndContainer.d.ts +0 -1
- package/lib/LmTable/components/DndContainer.js +12 -27
- package/lib/LmTable/components/sheelTableCell.js +6 -3
- package/lib/LmTable/expression.js +1 -0
- package/lib/LmTable/style/index.css +6 -0
- package/lib/LmTable/style/variables.css +6 -0
- package/lib/QuickMenu/index.d.ts +2 -1
- package/lib/QuickMenu/index.js +11 -11
- package/lib/index.d.ts +1 -0
- package/lib/styles/variables.css +10 -0
- package/package.json +1 -1
- package/es/LmTable/components/DndContainer.module.css +0 -6
- package/lib/LmTable/components/DndContainer.module.css +0 -6
|
@@ -14,5 +14,7 @@ export interface Props {
|
|
|
14
14
|
unstyled?: boolean;
|
|
15
15
|
onClick?: (e: any) => void;
|
|
16
16
|
onRemove?: (e: any) => void;
|
|
17
|
+
ulClassName?: string;
|
|
18
|
+
isNoneBorder?: boolean;
|
|
17
19
|
}
|
|
18
20
|
export declare const Container: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CancelDrop, Modifiers, UniqueIdentifier, KeyboardCoordinateGetter } from '@dnd-kit/core';
|
|
3
|
-
import './DndContainer.module.less';
|
|
4
3
|
declare type Items = Record<UniqueIdentifier, UniqueIdentifier[]>;
|
|
5
4
|
interface Props {
|
|
6
5
|
adjustScale?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
interface IMenuData {
|
|
2
|
+
export interface IMenuData {
|
|
3
3
|
menuId: string;
|
|
4
4
|
title: string | React.ReactNode;
|
|
5
5
|
hidden?: boolean;
|
|
@@ -10,6 +10,7 @@ export interface IQuickMenuProps {
|
|
|
10
10
|
top?: number;
|
|
11
11
|
menuData: IMenuData[];
|
|
12
12
|
warpElement: any;
|
|
13
|
+
root?: IntersectionObserver['root'] | undefined;
|
|
13
14
|
}
|
|
14
15
|
declare const LMQuickMenu: React.FC<IQuickMenuProps>;
|
|
15
16
|
export default LMQuickMenu;
|
package/dist/index.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ export { default as LmEditTable } from './LmEditTable';
|
|
|
54
54
|
export type { CountdownHandle, TLmEditTable } from './LmEditTable/EditTable';
|
|
55
55
|
export { default as List } from './List';
|
|
56
56
|
export { default as LMQuickMenu } from './QuickMenu';
|
|
57
|
+
export type { IMenuData, IQuickMenuProps } from './QuickMenu';
|
|
57
58
|
export { default as DatePicker } from './DatePicker';
|
|
58
59
|
export type { DatePickerProps, MonthPickerProps, WeekPickerProps, RangePickerProps } from './DatePicker';
|
|
59
60
|
export { default as Popover } from './Popover';
|
package/dist/index.umd.css
CHANGED
|
@@ -26811,6 +26811,10 @@ div.ant-typography-edit-content.ant-typography-rtl {
|
|
|
26811
26811
|
.dnd_container:last-child {
|
|
26812
26812
|
margin-right: 0;
|
|
26813
26813
|
}
|
|
26814
|
+
.dnd_container.isNoneBorder {
|
|
26815
|
+
border: 0 !important;
|
|
26816
|
+
margin: 0;
|
|
26817
|
+
}
|
|
26814
26818
|
.dnd_container ul {
|
|
26815
26819
|
display: -webkit-box;
|
|
26816
26820
|
display: -ms-flexbox;
|
|
@@ -26821,7 +26825,10 @@ div.ant-typography-edit-content.ant-typography-rtl {
|
|
|
26821
26825
|
list-style: none;
|
|
26822
26826
|
padding: 10px;
|
|
26823
26827
|
margin: 0;
|
|
26824
|
-
min-height:
|
|
26828
|
+
min-height: 57px;
|
|
26829
|
+
}
|
|
26830
|
+
.dnd_container ul.ulClassName {
|
|
26831
|
+
padding: 0px;
|
|
26825
26832
|
}
|
|
26826
26833
|
.dnd_container.scrollable ul {
|
|
26827
26834
|
overflow-y: auto;
|
|
@@ -26899,13 +26906,6 @@ div.ant-typography-edit-content.ant-typography-rtl {
|
|
|
26899
26906
|
opacity: 1;
|
|
26900
26907
|
}
|
|
26901
26908
|
|
|
26902
|
-
.DndContainer-module_dnd_table_container__28N0s > div {
|
|
26903
|
-
border: none !important;
|
|
26904
|
-
}
|
|
26905
|
-
.DndContainer-module_dnd_table_container__28N0s ul {
|
|
26906
|
-
padding: 0 !important;
|
|
26907
|
-
}
|
|
26908
|
-
|
|
26909
26909
|
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
|
|
26910
26910
|
/* stylelint-disable no-duplicate-selectors */
|
|
26911
26911
|
/* stylelint-disable */
|
package/dist/index.umd.js
CHANGED
|
@@ -222918,7 +222918,7 @@
|
|
|
222918
222918
|
null, handle ? /*#__PURE__*/React__default['default'].createElement(Handle$1, _objectSpread(_objectSpread({}, handleProps), listeners)) : null)));
|
|
222919
222919
|
}));
|
|
222920
222920
|
|
|
222921
|
-
var _excluded$1V = ["children", "columns", "handleProps", "horizontal", "hover", "onClick", "onRemove", "label", "placeholder", "style", "scrollable", "shadow", "unstyled"];
|
|
222921
|
+
var _excluded$1V = ["children", "columns", "handleProps", "horizontal", "hover", "onClick", "onRemove", "label", "placeholder", "style", "scrollable", "shadow", "unstyled", "ulClassName", "isNoneBorder"];
|
|
222922
222922
|
var Container$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
222923
222923
|
var children = _ref.children,
|
|
222924
222924
|
_ref$columns = _ref.columns,
|
|
@@ -222934,20 +222934,24 @@
|
|
|
222934
222934
|
scrollable = _ref.scrollable,
|
|
222935
222935
|
shadow = _ref.shadow,
|
|
222936
222936
|
unstyled = _ref.unstyled,
|
|
222937
|
+
ulClassName = _ref.ulClassName,
|
|
222938
|
+
isNoneBorder = _ref.isNoneBorder,
|
|
222937
222939
|
props = _objectWithoutProperties$1(_ref, _excluded$1V);
|
|
222938
222940
|
return /*#__PURE__*/React__default['default'].createElement("div", _objectSpread(_objectSpread({}, props), {}, {
|
|
222939
222941
|
ref: ref,
|
|
222940
222942
|
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
222941
222943
|
'--columns': columns
|
|
222942
222944
|
}),
|
|
222943
|
-
className: _classnames_2_3_2_classnames('dnd_container', unstyled && 'unstyled', horizontal && 'horizontal', hover && 'hover', placeholder && 'placeholder', scrollable && 'scrollable', shadow && 'shadow'),
|
|
222945
|
+
className: _classnames_2_3_2_classnames('dnd_container', unstyled && 'unstyled', horizontal && 'horizontal', hover && 'hover', placeholder && 'placeholder', scrollable && 'scrollable', shadow && 'shadow', isNoneBorder && 'isNoneBorder'),
|
|
222944
222946
|
onClick: onClick,
|
|
222945
222947
|
tabIndex: onClick ? 0 : undefined
|
|
222946
222948
|
}), label ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
222947
222949
|
className: 'dnd_header'
|
|
222948
222950
|
}, label, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
222949
222951
|
className: 'dnd_actions'
|
|
222950
|
-
})) : null, placeholder ? children : /*#__PURE__*/React__default['default'].createElement("ul",
|
|
222952
|
+
})) : null, placeholder ? children : /*#__PURE__*/React__default['default'].createElement("ul", {
|
|
222953
|
+
className: ulClassName
|
|
222954
|
+
}, children));
|
|
222951
222955
|
});
|
|
222952
222956
|
|
|
222953
222957
|
var _excluded$1W = ["children", "columns", "disabled", "id", "items", "style"];
|
|
@@ -223054,7 +223058,7 @@
|
|
|
223054
223058
|
})
|
|
223055
223059
|
};
|
|
223056
223060
|
var TRASH_ID = 'void';
|
|
223057
|
-
|
|
223061
|
+
// const PLACEHOLDER_ID = 'placeholder';
|
|
223058
223062
|
// const empty: UniqueIdentifier[] = [];
|
|
223059
223063
|
function DndContainer(_ref3) {
|
|
223060
223064
|
var _ref3$adjustScale = _ref3.adjustScale,
|
|
@@ -223296,30 +223300,13 @@
|
|
|
223296
223300
|
setActiveId(null);
|
|
223297
223301
|
return;
|
|
223298
223302
|
}
|
|
223299
|
-
if (overId === PLACEHOLDER_ID) {
|
|
223300
|
-
var newContainerId = getNextContainerId();
|
|
223301
|
-
ReactDOM.unstable_batchedUpdates(function () {
|
|
223302
|
-
setContainers(function (containers) {
|
|
223303
|
-
return [].concat(_toConsumableArray$1(containers), [newContainerId]);
|
|
223304
|
-
});
|
|
223305
|
-
console.log('PLACEHOLDER_ID', overId);
|
|
223306
|
-
setItems(function (items) {
|
|
223307
|
-
var _objectSpread4;
|
|
223308
|
-
return _objectSpread(_objectSpread({}, items), {}, (_objectSpread4 = {}, _defineProperty$1(_objectSpread4, activeContainer, items[activeContainer].filter(function (id) {
|
|
223309
|
-
return id !== activeId;
|
|
223310
|
-
})), _defineProperty$1(_objectSpread4, newContainerId, [active.id]), _objectSpread4));
|
|
223311
|
-
});
|
|
223312
|
-
setActiveId(null);
|
|
223313
|
-
});
|
|
223314
|
-
return;
|
|
223315
|
-
}
|
|
223316
223303
|
var overContainer = findContainer(overId);
|
|
223317
223304
|
if (overContainer) {
|
|
223318
223305
|
var activeIndex = items[activeContainer].indexOf(active.id);
|
|
223319
223306
|
var overIndex = items[overContainer].indexOf(overId);
|
|
223320
223307
|
if (activeIndex !== overIndex) {
|
|
223321
223308
|
var newItems = _objectSpread(_objectSpread({}, items), {}, _defineProperty$1({}, overContainer, arrayMove(items[overContainer], activeIndex, overIndex)));
|
|
223322
|
-
setItems(newItems);
|
|
223309
|
+
// setItems(newItems);
|
|
223323
223310
|
updateItems(newItems);
|
|
223324
223311
|
} else {
|
|
223325
223312
|
updateItems(items);
|
|
@@ -223379,7 +223366,9 @@
|
|
|
223379
223366
|
items: items[tableContainer],
|
|
223380
223367
|
scrollable: scrollable,
|
|
223381
223368
|
style: containerStyle,
|
|
223382
|
-
unstyled: false
|
|
223369
|
+
unstyled: false,
|
|
223370
|
+
ulClassName: 'ulClassName',
|
|
223371
|
+
isNoneBorder: true
|
|
223383
223372
|
}, /*#__PURE__*/React__default['default'].createElement(SortableContext$1, {
|
|
223384
223373
|
items: items[tableContainer],
|
|
223385
223374
|
strategy: horizontalListSortingStrategy
|
|
@@ -223445,12 +223434,13 @@
|
|
|
223445
223434
|
});
|
|
223446
223435
|
}));
|
|
223447
223436
|
}
|
|
223448
|
-
function getNextContainerId() {
|
|
223449
|
-
|
|
223450
|
-
|
|
223451
|
-
|
|
223452
|
-
}
|
|
223437
|
+
// function getNextContainerId() {
|
|
223438
|
+
// const containerIds = Object.keys(items);
|
|
223439
|
+
// const lastContainerId = containerIds[containerIds.length - 1];
|
|
223440
|
+
// return String.fromCharCode(lastContainerId.charCodeAt(0) + 1);
|
|
223441
|
+
// }
|
|
223453
223442
|
}
|
|
223443
|
+
|
|
223454
223444
|
function getColor(id) {
|
|
223455
223445
|
switch (String(id)[0]) {
|
|
223456
223446
|
case 'A':
|
|
@@ -224361,6 +224351,7 @@
|
|
|
224361
224351
|
} else if (expression === 'average') {
|
|
224362
224352
|
item[key] = sum / item.children.length;
|
|
224363
224353
|
}
|
|
224354
|
+
// console.log(item)
|
|
224364
224355
|
});
|
|
224365
224356
|
}
|
|
224366
224357
|
}
|
|
@@ -225486,14 +225477,19 @@
|
|
|
225486
225477
|
if (trigger === 'row') {
|
|
225487
225478
|
var selectedRows = useSelectedRows.selectedRows;
|
|
225488
225479
|
if (tableRowType === 'select' || tableRowType === 'default' && selectedRows.length) {
|
|
225489
|
-
|
|
225490
|
-
|
|
225491
|
-
|
|
225492
|
-
|
|
225493
|
-
|
|
225494
|
-
selectedRows:
|
|
225495
|
-
|
|
225496
|
-
|
|
225480
|
+
if ((rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.type) === 'radio') {
|
|
225481
|
+
setSelectedRows({
|
|
225482
|
+
selectedRows: [lodash.isObject(selectedRows[0]) || !selectedRows.length ? record : record[rowKey]]
|
|
225483
|
+
});
|
|
225484
|
+
} else {
|
|
225485
|
+
var selectIndex = selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.findIndex(function (v) {
|
|
225486
|
+
return lodash.isObject(v) ? v[rowKey] === record[rowKey] : v === record[rowKey];
|
|
225487
|
+
});
|
|
225488
|
+
selectIndex >= 0 ? selectedRows.splice(selectIndex, 1) : selectedRows.push(lodash.isObject(selectedRows[0]) || !selectedRows.length ? record : record[rowKey]);
|
|
225489
|
+
setSelectedRows({
|
|
225490
|
+
selectedRows: lodash.cloneDeep(selectedRows)
|
|
225491
|
+
});
|
|
225492
|
+
}
|
|
225497
225493
|
}
|
|
225498
225494
|
} else {
|
|
225499
225495
|
rowClick === null || rowClick === void 0 ? void 0 : rowClick(record);
|
|
@@ -225583,7 +225579,7 @@
|
|
|
225583
225579
|
// rowClick?.(reulstSelect)
|
|
225584
225580
|
} : undefined,
|
|
225585
225581
|
onSelect: (rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.selectedRows) ? function (record, selected) {
|
|
225586
|
-
var reulstSelect = selected ? lodash.uniqBy([].concat(_toConsumableArray$1(rowSelection.selectedRows), [record]), rowKey) : rowSelection.selectedRows.filter(function (item) {
|
|
225582
|
+
var reulstSelect = rowSelection.type === 'radio' ? [record] : selected ? lodash.uniqBy([].concat(_toConsumableArray$1(rowSelection.selectedRows), [record]), rowKey) : rowSelection.selectedRows.filter(function (item) {
|
|
225587
225583
|
return item[rowKey] !== record[rowKey];
|
|
225588
225584
|
});
|
|
225589
225585
|
setSelectedRows({
|
|
@@ -225703,7 +225699,7 @@
|
|
|
225703
225699
|
if (!width) {
|
|
225704
225700
|
return /*#__PURE__*/React__default['default'].createElement("th", restProps);
|
|
225705
225701
|
}
|
|
225706
|
-
var column = treeFind(
|
|
225702
|
+
var column = treeFind(columns, function (node) {
|
|
225707
225703
|
return node.dataIndex === dataIndex;
|
|
225708
225704
|
});
|
|
225709
225705
|
if (!column) {
|
|
@@ -225768,7 +225764,7 @@
|
|
|
225768
225764
|
cell: openSheet ? SheelTabelCell : null
|
|
225769
225765
|
}, body)
|
|
225770
225766
|
};
|
|
225771
|
-
}, [sortOpen, resizeable, components, colSortOpen, customizeDataSource]);
|
|
225767
|
+
}, [sortOpen, resizeable, components, colSortOpen, customizeDataSource, columns]);
|
|
225772
225768
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
225773
225769
|
style: {
|
|
225774
225770
|
height: '100%',
|
|
@@ -225860,7 +225856,10 @@
|
|
|
225860
225856
|
var _props$autoSizer = props.autoSizer,
|
|
225861
225857
|
autoSizer = _props$autoSizer === void 0 ? false : _props$autoSizer,
|
|
225862
225858
|
openRowGroup = props.openRowGroup,
|
|
225863
|
-
openColGroup = props.openColGroup
|
|
225859
|
+
openColGroup = props.openColGroup,
|
|
225860
|
+
groupHeight = props.groupHeight,
|
|
225861
|
+
footer = props.footer,
|
|
225862
|
+
footerHeight = props.footerHeight;
|
|
225864
225863
|
var _useState21 = React.useState({
|
|
225865
225864
|
width: '100%',
|
|
225866
225865
|
height: '100%'
|
|
@@ -225871,9 +225870,11 @@
|
|
|
225871
225870
|
var defaultRef = ref || React.useRef(null);
|
|
225872
225871
|
var tableWarpRef = React.useRef(null);
|
|
225873
225872
|
var resizeRef = React.useRef(null);
|
|
225873
|
+
var clsName = _classnames_2_3_2_classnames(footer && 'lm_protable_footer');
|
|
225874
225874
|
if (!autoSizer) {
|
|
225875
225875
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
225876
225876
|
ref: tableWarpRef,
|
|
225877
|
+
className: clsName,
|
|
225877
225878
|
id: "lm_protable_warp",
|
|
225878
225879
|
style: {
|
|
225879
225880
|
width: '100%',
|
|
@@ -225903,8 +225904,16 @@
|
|
|
225903
225904
|
})) {
|
|
225904
225905
|
h -= 32;
|
|
225905
225906
|
}
|
|
225907
|
+
// 行列分组的高度
|
|
225906
225908
|
if (openRowGroup || openColGroup) {
|
|
225907
|
-
h -=
|
|
225909
|
+
h -= groupHeight || 102;
|
|
225910
|
+
}
|
|
225911
|
+
if (footer) {
|
|
225912
|
+
h -= footerHeight || 54;
|
|
225913
|
+
}
|
|
225914
|
+
// safe area
|
|
225915
|
+
if (h < 0) {
|
|
225916
|
+
h = 0;
|
|
225908
225917
|
}
|
|
225909
225918
|
return h;
|
|
225910
225919
|
}, [props.hiddenPage, props.customCheck, props.columns, tableSize]);
|
|
@@ -225958,6 +225967,7 @@
|
|
|
225958
225967
|
};
|
|
225959
225968
|
}, []);
|
|
225960
225969
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
225970
|
+
className: clsName,
|
|
225961
225971
|
ref: tableWarpRef,
|
|
225962
225972
|
id: "lm_protable_warp",
|
|
225963
225973
|
style: {
|
|
@@ -241005,7 +241015,8 @@
|
|
|
241005
241015
|
top = _props$top === void 0 ? '104px' : _props$top,
|
|
241006
241016
|
_props$menuData = props.menuData,
|
|
241007
241017
|
menuData = _props$menuData === void 0 ? [] : _props$menuData,
|
|
241008
|
-
warpElement = props.warpElement
|
|
241018
|
+
warpElement = props.warpElement,
|
|
241019
|
+
root = props.root;
|
|
241009
241020
|
var idTopInfo = React.useRef({});
|
|
241010
241021
|
var _useState = React.useState(false),
|
|
241011
241022
|
_useState2 = _slicedToArray$1(_useState, 2),
|
|
@@ -241051,11 +241062,13 @@
|
|
|
241051
241062
|
// eslint-disable-next-line global-require
|
|
241052
241063
|
var scrollama = require('scrollama');
|
|
241053
241064
|
menuTimeEventRef.current = scrollama();
|
|
241065
|
+
console.log(getTargetElement$1(warpElement || document), '--getTargetElement(warpElement || document)');
|
|
241054
241066
|
(_menuTimeEventRef$cur2 = menuTimeEventRef.current) === null || _menuTimeEventRef$cur2 === void 0 ? void 0 : (_menuTimeEventRef$cur3 = _menuTimeEventRef$cur2.setup({
|
|
241055
241067
|
step: filterMenuData.map(function (item) {
|
|
241056
241068
|
return document.getElementById("".concat(item.menuId));
|
|
241057
241069
|
}).filter(Boolean),
|
|
241058
|
-
container: getTargetElement$1(warpElement || document)
|
|
241070
|
+
container: getTargetElement$1(warpElement || document),
|
|
241071
|
+
root: root ? getTargetElement$1(root) : undefined
|
|
241059
241072
|
})) === null || _menuTimeEventRef$cur3 === void 0 ? void 0 : _menuTimeEventRef$cur3.onStepEnter(function (_ref) {
|
|
241060
241073
|
var element = _ref.element;
|
|
241061
241074
|
updateActiveToc(element.id);
|
|
@@ -241081,11 +241094,6 @@
|
|
|
241081
241094
|
}, [scroll], {
|
|
241082
241095
|
wait: 50
|
|
241083
241096
|
});
|
|
241084
|
-
var bindDom = function bindDom() {
|
|
241085
|
-
if (!Object.keys(idTopInfo.current).length) {
|
|
241086
|
-
setKeysDom();
|
|
241087
|
-
}
|
|
241088
|
-
};
|
|
241089
241097
|
var handleScroll = function handleScroll() {
|
|
241090
241098
|
setScrollOpenStatus(true);
|
|
241091
241099
|
};
|
|
@@ -241096,10 +241104,6 @@
|
|
|
241096
241104
|
React.useEffect(function () {
|
|
241097
241105
|
var _getTargetElement2;
|
|
241098
241106
|
// bindScroller();
|
|
241099
|
-
setTimeout(function () {
|
|
241100
|
-
bindDom();
|
|
241101
|
-
bindScroller();
|
|
241102
|
-
}, 200);
|
|
241103
241107
|
(_getTargetElement2 = getTargetElement$1(warpElement || document)) === null || _getTargetElement2 === void 0 ? void 0 : _getTargetElement2.addEventListener('scroll', handleScroll, {
|
|
241104
241108
|
once: true
|
|
241105
241109
|
});
|
|
@@ -241108,6 +241112,12 @@
|
|
|
241108
241112
|
(_getTargetElement3 = getTargetElement$1(warpElement || document)) === null || _getTargetElement3 === void 0 ? void 0 : _getTargetElement3.removeEventListener('scroll', handleScroll);
|
|
241109
241113
|
};
|
|
241110
241114
|
}, []);
|
|
241115
|
+
React.useEffect(function () {
|
|
241116
|
+
setTimeout(function () {
|
|
241117
|
+
setKeysDom();
|
|
241118
|
+
bindScroller();
|
|
241119
|
+
}, 200);
|
|
241120
|
+
}, [filterMenuData]);
|
|
241111
241121
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
241112
241122
|
className: _classnames_2_3_2_classnames(prefixCls$a),
|
|
241113
241123
|
onMouseEnter: function onMouseEnter() {
|