@bit-sun/business-component 4.2.0-alpha.6.1 → 4.2.0-alpha.6.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/dist/components/Business/AddSelectBusiness/index.d.ts +4 -3
- package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +2 -1
- package/dist/components/Business/BsLayouts/index.d.ts +1 -1
- package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
- package/dist/components/Business/BsSulaQueryTable/index.d.ts +2 -1
- package/dist/components/Business/BsSulaQueryTable/setting.d.ts +6 -6
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +15 -14
- package/dist/components/Business/CommodityEntry/index.d.ts +2 -1
- package/dist/components/Business/CommonAlert/index.d.ts +2 -1
- package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
- package/dist/components/Business/DetailPageWrapper/index.d.ts +12 -11
- package/dist/components/Business/HomePageWrapper/index.d.ts +2 -1
- package/dist/components/Business/ItemPropertySelector/index.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +2 -1
- package/dist/components/Business/PropertyModal/index.d.ts +2 -1
- package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Business/StateFlow/index.d.ts +2 -1
- package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
- package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
- package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +2 -1
- package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/utils.d.ts +2 -1
- package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
- package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
- package/dist/components/Common/Section/index.d.ts +1 -1
- package/dist/components/Functional/AddSelect/index.d.ts +2 -1
- package/dist/components/Functional/AuthButton/index.d.ts +2 -1
- package/dist/components/Functional/DataImport/index.d.ts +3 -3
- package/dist/components/Functional/DataValidation/index.d.ts +4 -4
- package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +2 -1
- package/dist/components/Functional/QueryMutipleInput/index.d.ts +2 -1
- package/dist/components/Functional/QueryMutipleSelect/index.d.ts +2 -1
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/utils.d.ts +3 -2
- package/dist/components/Functional/TreeSearchSelect/index.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/Formula.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +2 -1
- package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +2 -1
- package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
- package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
- package/dist/index.esm.js +1233 -773
- package/dist/index.js +1233 -773
- package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
- package/dist/utils/TableUtils.d.ts +19 -18
- package/package.json +1 -1
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +93 -2
- package/src/components/Functional/AddSelect/index.tsx +92 -0
|
@@ -38,14 +38,14 @@ declare class TableColumnSetting extends React.Component<TableColumnSettingProps
|
|
|
38
38
|
} | {
|
|
39
39
|
title: string;
|
|
40
40
|
dataIndex: string;
|
|
41
|
-
render: (text: any, record: any) => JSX.Element;
|
|
41
|
+
render: (text: any, record: any) => React.JSX.Element;
|
|
42
42
|
className?: undefined;
|
|
43
43
|
width?: undefined;
|
|
44
44
|
} | {
|
|
45
45
|
title: string;
|
|
46
46
|
dataIndex: string;
|
|
47
47
|
className: string;
|
|
48
|
-
render: () => JSX.Element;
|
|
48
|
+
render: () => React.JSX.Element;
|
|
49
49
|
width?: undefined;
|
|
50
50
|
})[];
|
|
51
51
|
showModal: () => void;
|
|
@@ -53,13 +53,13 @@ declare class TableColumnSetting extends React.Component<TableColumnSettingProps
|
|
|
53
53
|
handleCancel: (e: React.MouseEvent<HTMLElement>) => void;
|
|
54
54
|
handleTableHeadHidden: (title: string) => void;
|
|
55
55
|
onSortEnd: ({ oldIndex, newIndex }: any) => void;
|
|
56
|
-
DraggableContainer: (props: any) => JSX.Element;
|
|
57
|
-
DraggableBodyRow: ({ className, style, ...restProps }: any) => JSX.Element;
|
|
56
|
+
DraggableContainer: (props: any) => React.JSX.Element;
|
|
57
|
+
DraggableBodyRow: ({ className, style, ...restProps }: any) => React.JSX.Element;
|
|
58
58
|
onChange: (e: any, title: any) => void;
|
|
59
59
|
handleReset: () => void;
|
|
60
60
|
handleResetSetting: () => Promise<unknown>;
|
|
61
61
|
onSearch: (e: any) => void;
|
|
62
62
|
onSearchSort: (e: any) => void;
|
|
63
|
-
render(): JSX.Element;
|
|
63
|
+
render(): React.JSX.Element;
|
|
64
64
|
}
|
|
65
65
|
export default TableColumnSetting;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import moment from 'moment';
|
|
2
3
|
type mediaListType = {
|
|
3
4
|
type: number;
|
|
@@ -48,24 +49,24 @@ declare const updateGuanDate: (requestParams: any, dateKeyParams?: any) => {
|
|
|
48
49
|
};
|
|
49
50
|
submit: any;
|
|
50
51
|
};
|
|
51
|
-
declare const textIcon: (type: string | number, text?: string) => JSX.Element | undefined;
|
|
52
|
-
declare const handleTextDoubleOrId: (textOne: string | undefined, textTwo: string | undefined) => JSX.Element;
|
|
53
|
-
declare const handleTextDouble: (textOne: string | undefined, textTwo: string | undefined) => JSX.Element;
|
|
54
|
-
declare const handleTextOverflow: (text: string | undefined, width?: number) => JSX.Element;
|
|
55
|
-
declare const handleTextLineFeed: (text: string | undefined, width?: number) => JSX.Element;
|
|
56
|
-
declare const handleTextTooltip: (text: any) => JSX.Element;
|
|
57
|
-
declare const handleTextBreakSpaces: (text: any) => JSX.Element;
|
|
58
|
-
declare const handleStatusBadge: (text: any, color: any) => JSX.Element;
|
|
59
|
-
declare const HandleTotalCount: (totalParams: any) => JSX.Element;
|
|
52
|
+
declare const textIcon: (type: string | number, text?: string) => React.JSX.Element | undefined;
|
|
53
|
+
declare const handleTextDoubleOrId: (textOne: string | undefined, textTwo: string | undefined) => React.JSX.Element;
|
|
54
|
+
declare const handleTextDouble: (textOne: string | undefined, textTwo: string | undefined) => React.JSX.Element;
|
|
55
|
+
declare const handleTextOverflow: (text: string | undefined, width?: number) => React.JSX.Element;
|
|
56
|
+
declare const handleTextLineFeed: (text: string | undefined, width?: number) => React.JSX.Element;
|
|
57
|
+
declare const handleTextTooltip: (text: any) => React.JSX.Element;
|
|
58
|
+
declare const handleTextBreakSpaces: (text: any) => React.JSX.Element;
|
|
59
|
+
declare const handleStatusBadge: (text: any, color: any) => React.JSX.Element;
|
|
60
|
+
declare const HandleTotalCount: (totalParams: any) => React.JSX.Element;
|
|
60
61
|
declare const handleCommonTimeRender: (text: any, format?: any) => any;
|
|
61
|
-
declare const handleTooltip: (text: any, timeTrue?: boolean) => JSX.Element;
|
|
62
|
-
declare const handleTooltipHours: (text: any, timeTrue?: boolean) => JSX.Element;
|
|
62
|
+
declare const handleTooltip: (text: any, timeTrue?: boolean) => React.JSX.Element;
|
|
63
|
+
declare const handleTooltipHours: (text: any, timeTrue?: boolean) => React.JSX.Element;
|
|
63
64
|
type tableColumnsImageType = {
|
|
64
65
|
width?: number | string;
|
|
65
66
|
height?: number | string;
|
|
66
67
|
[key: string]: any;
|
|
67
68
|
};
|
|
68
|
-
declare const tableColumnsImage: (url?: string, paramsObj?: tableColumnsImageType) => JSX.Element;
|
|
69
|
+
declare const tableColumnsImage: (url?: string, paramsObj?: tableColumnsImageType) => React.JSX.Element;
|
|
69
70
|
interface ColumnsEditInterfave {
|
|
70
71
|
text?: string;
|
|
71
72
|
record?: any;
|
|
@@ -81,7 +82,7 @@ interface ColumnsEditInterfave {
|
|
|
81
82
|
};
|
|
82
83
|
[key: string]: any;
|
|
83
84
|
}
|
|
84
|
-
declare const ColumnsEdit: (props: ColumnsEditInterfave) => JSX.Element;
|
|
85
|
+
declare const ColumnsEdit: (props: ColumnsEditInterfave) => React.JSX.Element;
|
|
85
86
|
type UserColumnsType = {
|
|
86
87
|
name: string;
|
|
87
88
|
department?: string;
|
|
@@ -89,13 +90,13 @@ type UserColumnsType = {
|
|
|
89
90
|
company?: string;
|
|
90
91
|
avatar?: string;
|
|
91
92
|
};
|
|
92
|
-
declare const userColumns: (props: UserColumnsType) => JSX.Element;
|
|
93
|
-
declare const userInfoCard: (props: any) => JSX.Element;
|
|
93
|
+
declare const userColumns: (props: UserColumnsType) => React.JSX.Element;
|
|
94
|
+
declare const userInfoCard: (props: any) => React.JSX.Element;
|
|
94
95
|
declare const getItemDefaultWidth: (item: any) => number;
|
|
95
|
-
declare const sulaTableRenderTooltip: ({ text }: any) => JSX.Element;
|
|
96
|
+
declare const sulaTableRenderTooltip: ({ text }: any) => React.JSX.Element;
|
|
96
97
|
declare const renderNumberText: ({ text }: any) => any;
|
|
97
98
|
declare const renderFixed2: (text: any) => any;
|
|
98
|
-
declare const handleTextWarpCustom: (text: any, style?: {}) => JSX.Element;
|
|
99
|
+
declare const handleTextWarpCustom: (text: any, style?: {}) => React.JSX.Element;
|
|
99
100
|
declare const calculateValidPeriod: (start: any, end: any) => string;
|
|
100
|
-
declare const handleTextWarp: (text: any) => JSX.Element;
|
|
101
|
+
declare const handleTextWarp: (text: any) => React.JSX.Element;
|
|
101
102
|
export { getSkuImg, updateGuanDate, textIcon, handleTextDoubleOrId, handleTextDouble, handleTextOverflow, handleTextLineFeed, handleTextTooltip, handleTextBreakSpaces, handleStatusBadge, HandleTotalCount, handleTooltip, handleCommonTimeRender, handleTooltipHours, tableColumnsImage, ColumnsEdit, userColumns, userInfoCard, getItemDefaultWidth, renderNumberText, sulaTableRenderTooltip, renderFixed2, handleTextWarpCustom, handleTextWarp, calculateValidPeriod };
|
package/package.json
CHANGED
|
@@ -1198,12 +1198,84 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1198
1198
|
sourceName: 'warehouseIds',
|
|
1199
1199
|
...requestConfigProp,
|
|
1200
1200
|
}
|
|
1201
|
+
const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
|
|
1202
|
+
Promise.all([
|
|
1203
|
+
loadSelectSource(`/channel-manage/channelInfo/tree`, {
|
|
1204
|
+
'qp-status-eq': 10,
|
|
1205
|
+
'qp-isMain-eq': 1,
|
|
1206
|
+
'qp-type-in': '1,2',
|
|
1207
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
|
|
1208
|
+
loadSelectSource(`/channel-manage/tagNode/getTree/10`, {
|
|
1209
|
+
'qp-status-eq': 1,
|
|
1210
|
+
},getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
|
|
1211
|
+
]).then((x: any)=>{
|
|
1212
|
+
const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
|
|
1213
|
+
const areaDisabledJude = (data: any) => data['parent'] === '0'; // 所属营销区域 树节点不能点判断
|
|
1214
|
+
formatTreeDataSource(x, 0, 4, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
|
|
1215
|
+
formatTreeDataSource(x, 1, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude)
|
|
1216
|
+
})
|
|
1201
1217
|
tableSearchForm = [
|
|
1202
1218
|
{ name: 'realWarehouseName*multiInput', label: '逻辑仓名称', type: 'multipleQueryInput' },
|
|
1203
1219
|
{ name: 'realWarehouseCode*multiInput', label: '逻辑仓编码', type: 'multipleQueryInput' },
|
|
1204
1220
|
{ name: 'qp-realWarehouseType-eq', type: 'select', label: '逻辑仓类型', initialSource: getDictionarySource('SC00004') },
|
|
1205
1221
|
{ name: 'belongArea', field: {type: 'select', props: {mode: 'multiple',}}, label: '管理大区', initialSource: getDictionarySource('BUSINESS_belongArea'), },
|
|
1206
|
-
|
|
1222
|
+
{
|
|
1223
|
+
name: 'qp-channelCode-in', type: 'treeSelect', label: '销售渠道', field: {
|
|
1224
|
+
type: 'treeSelect',
|
|
1225
|
+
props: {
|
|
1226
|
+
multiple: true,
|
|
1227
|
+
treeData: [],
|
|
1228
|
+
treeCheckable: false,
|
|
1229
|
+
notFoundContent: '暂无数据',
|
|
1230
|
+
allowClear: true,
|
|
1231
|
+
showSearch: true,
|
|
1232
|
+
showArrow: true,
|
|
1233
|
+
maxTagCount: 1,
|
|
1234
|
+
optionFilterProp: 'children',
|
|
1235
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
1236
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1237
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL',
|
|
1238
|
+
},
|
|
1239
|
+
}
|
|
1240
|
+
},
|
|
1241
|
+
{
|
|
1242
|
+
name: 'qp-refCode-in', type: 'treeSelect', label: '营销区域', field: {
|
|
1243
|
+
type: 'treeSelect',
|
|
1244
|
+
props: {
|
|
1245
|
+
multiple: true,
|
|
1246
|
+
treeData: [],
|
|
1247
|
+
treeCheckable: false,
|
|
1248
|
+
notFoundContent: '暂无数据',
|
|
1249
|
+
allowClear: true,
|
|
1250
|
+
showSearch: true,
|
|
1251
|
+
showArrow: true,
|
|
1252
|
+
maxTagCount: 1,
|
|
1253
|
+
optionFilterProp: 'children',
|
|
1254
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
1255
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1256
|
+
|
|
1257
|
+
showCheckedStrategy: 'TreeSelect.SHOW_ALL',
|
|
1258
|
+
},
|
|
1259
|
+
}
|
|
1260
|
+
},
|
|
1261
|
+
{
|
|
1262
|
+
name: 'qp-type-in', type: 'select', label: '店铺性质', field: {
|
|
1263
|
+
type: 'select',
|
|
1264
|
+
props: {
|
|
1265
|
+
mode: 'multiple',
|
|
1266
|
+
notFoundContent: '暂无数据',
|
|
1267
|
+
allowClear: true,
|
|
1268
|
+
showSearch: true,
|
|
1269
|
+
showArrow: true,
|
|
1270
|
+
maxTagCount: 1,
|
|
1271
|
+
optionFilterProp: 'children',
|
|
1272
|
+
filterOption: (input: string, option: { props: { children: string } }) =>
|
|
1273
|
+
option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
|
|
1274
|
+
},
|
|
1275
|
+
},
|
|
1276
|
+
initialSource: getDictionarySource('BUSINESS_StoreType')
|
|
1277
|
+
},
|
|
1278
|
+
...(modalTableBusProps?.needStatusSearch?[{ name: 'qp-isEnable-eq', type: 'select', label: '逻辑仓状态', initialSource: getDictionarySource('SC00001') }]:[]),
|
|
1207
1279
|
]
|
|
1208
1280
|
modalTableProps = {
|
|
1209
1281
|
modalTableTitle: '选择逻辑仓',
|
|
@@ -1230,10 +1302,29 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1230
1302
|
defaultSort: 3,
|
|
1231
1303
|
render: (text: number) => getDictionaryTextByValue('SC00004', text),
|
|
1232
1304
|
},
|
|
1305
|
+
{
|
|
1306
|
+
title: '所属销售渠道',
|
|
1307
|
+
dataIndex: 'channelName',
|
|
1308
|
+
defaultSort: 4,
|
|
1309
|
+
width: 100,
|
|
1310
|
+
},
|
|
1311
|
+
{
|
|
1312
|
+
title: '营销区域',
|
|
1313
|
+
dataIndex: 'commonRelationAreaName',
|
|
1314
|
+
defaultSort: 5,
|
|
1315
|
+
width: 100,
|
|
1316
|
+
},
|
|
1317
|
+
{
|
|
1318
|
+
title: '店铺性质',
|
|
1319
|
+
dataIndex: 'type',
|
|
1320
|
+
defaultSort: 6,
|
|
1321
|
+
render: (text: any) => getDictionaryTextByValue('BUSINESS_StoreType', text),
|
|
1322
|
+
width: 80,
|
|
1323
|
+
},
|
|
1233
1324
|
...(modalTableBusProps?.needStatusSearch?[{
|
|
1234
1325
|
title: '状态',
|
|
1235
1326
|
dataIndex: 'isEnable',
|
|
1236
|
-
defaultSort:
|
|
1327
|
+
defaultSort: 7,
|
|
1237
1328
|
render: (text: number) => getDictionaryTextByValue('SC00001', text),
|
|
1238
1329
|
}]:[]),
|
|
1239
1330
|
],
|
|
@@ -222,6 +222,98 @@ const AddSelect = (props: any) => {
|
|
|
222
222
|
acc[key] = typeof value === 'function' ? value?.(record) : value;
|
|
223
223
|
return acc;
|
|
224
224
|
}, {});
|
|
225
|
+
|
|
226
|
+
// 可输入非数字字符
|
|
227
|
+
if(item.canInputString) {
|
|
228
|
+
return (
|
|
229
|
+
<InputNumber
|
|
230
|
+
min={0}
|
|
231
|
+
precision={0}
|
|
232
|
+
controls={false}
|
|
233
|
+
{...inputProps}
|
|
234
|
+
value={text || ''}
|
|
235
|
+
keyboard={false}
|
|
236
|
+
onPressEnter={(e: any) => {
|
|
237
|
+
e.target.blur();
|
|
238
|
+
}}
|
|
239
|
+
onBlur={async (e: any) => {
|
|
240
|
+
const {
|
|
241
|
+
target: { value },
|
|
242
|
+
} = e;
|
|
243
|
+
record[item.dataIndex] = value
|
|
244
|
+
editRecord(record)
|
|
245
|
+
}}
|
|
246
|
+
onKeyDown={(e) => {
|
|
247
|
+
if(e.keyCode === 13 && e.ctrlKey) {
|
|
248
|
+
handleOk(true)
|
|
249
|
+
document.getElementById("first-query")?.focus()
|
|
250
|
+
}
|
|
251
|
+
if(e.keyCode === 8 && e.ctrlKey) {
|
|
252
|
+
message.success('删除当前行')
|
|
253
|
+
e.stopPropagation();
|
|
254
|
+
e.preventDefault();
|
|
255
|
+
let dom = e.nativeEvent.path[5].children[index + 2]?.getElementsByTagName('input')[currentIndex]
|
|
256
|
+
if (dom) {
|
|
257
|
+
dom.select();
|
|
258
|
+
dom.focus();
|
|
259
|
+
dom.scrollIntoView(false)
|
|
260
|
+
}
|
|
261
|
+
dom = null
|
|
262
|
+
deleteRecord(record, popvalue);
|
|
263
|
+
}
|
|
264
|
+
if (e.keyCode === 37 && e.shiftKey) { // 左滑动
|
|
265
|
+
e.stopPropagation();
|
|
266
|
+
e.preventDefault();
|
|
267
|
+
let dom = e.nativeEvent.path[5].children[index + 1]?.getElementsByTagName('input')[currentIndex - 1]
|
|
268
|
+
if (dom) {
|
|
269
|
+
dom.select();
|
|
270
|
+
dom.focus();
|
|
271
|
+
dom.scrollIntoView(false)
|
|
272
|
+
}
|
|
273
|
+
dom = null
|
|
274
|
+
}
|
|
275
|
+
if (e.keyCode === 39 && e.shiftKey) { // 右滑
|
|
276
|
+
e.stopPropagation();
|
|
277
|
+
e.preventDefault();
|
|
278
|
+
let dom = e.nativeEvent.path[5].children[index + 1]?.getElementsByTagName('input')[currentIndex + 1]
|
|
279
|
+
if (dom) {
|
|
280
|
+
dom.select();
|
|
281
|
+
dom.focus();
|
|
282
|
+
dom.scrollIntoView(false)
|
|
283
|
+
}
|
|
284
|
+
dom = null
|
|
285
|
+
}
|
|
286
|
+
if (e.keyCode === 40) {
|
|
287
|
+
e.stopPropagation();
|
|
288
|
+
e.preventDefault();
|
|
289
|
+
let dom = e.nativeEvent.path[5].children[index + 2]?.getElementsByTagName('input')[currentIndex]
|
|
290
|
+
if (dom) {
|
|
291
|
+
dom.select();
|
|
292
|
+
dom.focus();
|
|
293
|
+
dom.scrollIntoView(false)
|
|
294
|
+
}
|
|
295
|
+
dom = null
|
|
296
|
+
} else if (e.keyCode === 38) {
|
|
297
|
+
e.stopPropagation();
|
|
298
|
+
e.preventDefault();
|
|
299
|
+
let dom1 = e.nativeEvent.path[5].children[index]?.getElementsByTagName('input')[currentIndex]
|
|
300
|
+
if (dom1) {
|
|
301
|
+
// dom1.value=""
|
|
302
|
+
// dom1.setSelectionRange(100, 0);
|
|
303
|
+
dom1.select();
|
|
304
|
+
dom1.focus();
|
|
305
|
+
dom1.scrollIntoViewIfNeeded(false)
|
|
306
|
+
// dom1.value=record['count']
|
|
307
|
+
}
|
|
308
|
+
dom1 = null
|
|
309
|
+
} else if (e.keyCode === 9 && index === selectedRowKeys.length - 1 && currentIndex === inputLength - 1) {
|
|
310
|
+
e.stopPropagation();
|
|
311
|
+
e.preventDefault();
|
|
312
|
+
}
|
|
313
|
+
}}
|
|
314
|
+
/>
|
|
315
|
+
);
|
|
316
|
+
}
|
|
225
317
|
|
|
226
318
|
return (
|
|
227
319
|
<InputNumber
|