ztxkui 10.0.29 → 10.0.31
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.
|
@@ -940,13 +940,11 @@ var TableDemo = function () {
|
|
|
940
940
|
// 如果需要保留本地偏好,那么这里需要预处理一下columns数据
|
|
941
941
|
// columns={getTableLayoutFullData(columns, tableLayout)}
|
|
942
942
|
// initColumns={columns}
|
|
943
|
-
// menuId="menuid"
|
|
944
943
|
, {
|
|
945
944
|
// 如果需要保留本地偏好,那么这里需要预处理一下columns数据
|
|
946
945
|
// columns={getTableLayoutFullData(columns, tableLayout)}
|
|
947
946
|
// initColumns={columns}
|
|
948
|
-
|
|
949
|
-
columns: columns, dataSource: records, rowKey: "id", tableHandleRef: tableHandleRef,
|
|
947
|
+
menuId: "menuid", columns: columns, dataSource: records, rowKey: "id", tableHandleRef: tableHandleRef,
|
|
950
948
|
// 配置表格列
|
|
951
949
|
// configInfo={tableConfig}
|
|
952
950
|
// 添加动态列配置
|
|
@@ -972,9 +972,6 @@ function EnhanceSelect(_a) {
|
|
|
972
972
|
var text = textContent(obj.children);
|
|
973
973
|
copyValue(text);
|
|
974
974
|
}
|
|
975
|
-
if (!restProps.mode) {
|
|
976
|
-
setIsOpen(false);
|
|
977
|
-
}
|
|
978
975
|
};
|
|
979
976
|
// 点击时
|
|
980
977
|
var onClickHandle = function (e) {
|
|
@@ -1091,17 +1088,16 @@ function EnhanceSelect(_a) {
|
|
|
1091
1088
|
}
|
|
1092
1089
|
}
|
|
1093
1090
|
};
|
|
1091
|
+
var isIOpenDebounce = debounce(setIsOpen, 200);
|
|
1094
1092
|
return (React.createElement("div", { onContextMenuCapture: function (e) {
|
|
1095
|
-
|
|
1093
|
+
isIOpenDebounce(false);
|
|
1096
1094
|
e.preventDefault();
|
|
1097
1095
|
e.stopPropagation();
|
|
1098
1096
|
onContextMenuCapture && onContextMenuCapture(e);
|
|
1099
1097
|
} },
|
|
1100
1098
|
React.createElement(Select, __assign({ defaultValue: showAll ? '' : undefined, allowClear: true, showSearch: true, filterOption: remoteSearch ? false : filterOptionHandle, onSearch: remoteSearch ? onSearchHandle : onSearchHandleInner, onChange: onChangeHandle, optionLabelProp: "title", loading: loading, onFocus: onFocusHandle, onBlur: onBlurHandle, onClear: onClearHandle, onSelect: onSelectHandle, onClick: onClickHandle, onMouseDown: onMouseDownHandle,
|
|
1101
1099
|
// getPopupContainer={(trigger) => trigger || document.body}
|
|
1102
|
-
open: isOpen,
|
|
1103
|
-
// onDropdownVisibleChange={(visible) => setIsOpen(visible)}
|
|
1104
|
-
onPopupScroll: onPopupScrollHandle, dropdownRender: url && !remoteSearch && isCatch
|
|
1100
|
+
open: isOpen, onDropdownVisibleChange: function (visible) { return isIOpenDebounce(visible); }, onPopupScroll: onPopupScrollHandle, dropdownRender: url && !remoteSearch && isCatch
|
|
1105
1101
|
? function (menu) { return (React.createElement(React.Fragment, null,
|
|
1106
1102
|
menu,
|
|
1107
1103
|
React.createElement(Divider, { style: { marginTop: 0, marginBottom: '4px' } }),
|