@bit-sun/business-component 4.2.1-alpha.6-aiwei → 4.2.1-alpha.8-aiwei

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.
Files changed (65) hide show
  1. package/dist/components/Business/AddSelectBusiness/index.d.ts +4 -3
  2. package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +2 -1
  3. package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +2 -1
  4. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
  5. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
  6. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
  7. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +2 -1
  8. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +2 -1
  9. package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
  10. package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +2 -1
  11. package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +2 -1
  12. package/dist/components/Business/BsLayouts/index.d.ts +1 -1
  13. package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
  14. package/dist/components/Business/BsSulaQueryTable/index.d.ts +2 -1
  15. package/dist/components/Business/BsSulaQueryTable/setting.d.ts +6 -6
  16. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +15 -14
  17. package/dist/components/Business/CommodityEntry/index.d.ts +2 -1
  18. package/dist/components/Business/CommonAlert/index.d.ts +2 -1
  19. package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
  20. package/dist/components/Business/DetailPageWrapper/index.d.ts +12 -11
  21. package/dist/components/Business/HomePageWrapper/index.d.ts +2 -1
  22. package/dist/components/Business/ItemPropertySelector/index.d.ts +2 -1
  23. package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +2 -1
  24. package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +2 -1
  25. package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +2 -1
  26. package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +2 -1
  27. package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +2 -1
  28. package/dist/components/Business/PropertyModal/index.d.ts +2 -1
  29. package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
  30. package/dist/components/Business/SearchSelect/index.d.ts +1 -1
  31. package/dist/components/Business/StateFlow/index.d.ts +2 -1
  32. package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
  33. package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
  34. package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +2 -1
  35. package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
  36. package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +3 -3
  37. package/dist/components/Business/columnSettingTable/utils.d.ts +2 -1
  38. package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
  39. package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
  40. package/dist/components/Common/Section/index.d.ts +1 -1
  41. package/dist/components/Functional/AddSelect/index.d.ts +2 -1
  42. package/dist/components/Functional/AuthButton/index.d.ts +2 -1
  43. package/dist/components/Functional/DataImport/index.d.ts +3 -3
  44. package/dist/components/Functional/DataValidation/index.d.ts +4 -4
  45. package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +2 -1
  46. package/dist/components/Functional/QueryMutipleInput/index.d.ts +2 -1
  47. package/dist/components/Functional/QueryMutipleSelect/index.d.ts +2 -1
  48. package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
  49. package/dist/components/Functional/SearchSelect/utils.d.ts +3 -2
  50. package/dist/components/Functional/TreeSearchSelect/index.d.ts +2 -1
  51. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
  52. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +2 -1
  53. package/dist/components/Solution/RuleComponent/Formula.d.ts +2 -1
  54. package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +2 -1
  55. package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +2 -1
  56. package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +2 -1
  57. package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
  58. package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
  59. package/dist/index.esm.js +1169 -770
  60. package/dist/index.js +1168 -769
  61. package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
  62. package/dist/utils/TableUtils.d.ts +19 -18
  63. package/package.json +1 -1
  64. package/src/components/Business/SearchSelect/BusinessUtils.tsx +93 -10
  65. package/src/components/Functional/SearchSelect/index.tsx +32 -1
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "4.2.1-alpha.6-aiwei",
3
+ "version": "4.2.1-alpha.8-aiwei",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -6,7 +6,7 @@ import { handleTextOverflow, tableColumnsImage, handleTooltip } from '@/componen
6
6
  import { getSkuImg } from '@/utils/TableUtils';
7
7
  import { getEmployeeCode, getCurrentTargetBgId } from '@/utils/LocalstorageUtils';
8
8
  import { Image } from 'antd';
9
- import { isBoolean } from 'lodash';
9
+ import { isBoolean, trim } from 'lodash';
10
10
 
11
11
  const hasDictSharingType = getDictionarySource('UC000013')?.length;
12
12
  const sharingTypeDataList = hasDictSharingType && getDictionarySource('UC000013') || sharingType
@@ -1858,15 +1858,15 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
1858
1858
  tableSearchForm = [
1859
1859
  { name: 'qp-name-like', label: '客户名称' },
1860
1860
  { name: 'qp-code-like', label: '客户编码' },
1861
- { name: 'qp-createOrgCode-eq', type: 'select', label: '创建组织', field: {
1861
+ { name: 'qp-createOrgCode-in', type: 'select', label: '创建组织', field: {
1862
1862
  type: 'select',
1863
1863
  props: {
1864
- // mode: 'multiple',
1864
+ mode: 'multiple',
1865
1865
  notFoundContent: '暂无数据',
1866
1866
  allowClear: true,
1867
1867
  showSearch: true,
1868
1868
  showArrow: true,
1869
- // maxTagCount: 1,
1869
+ maxTagCount: 1,
1870
1870
  optionFilterProp: 'children',
1871
1871
  filterOption: (input: string, option: { props: { children: string } }) =>
1872
1872
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
@@ -2295,11 +2295,74 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2295
2295
  },
2296
2296
  },
2297
2297
  },
2298
- { name: 'qp-manageSupervisor-like', label: '管理督导', type: 'input' },
2299
- { name: 'qp-directSupervisor-like', label: '直接督导', type: 'input' },
2300
- { name: 'qp-distributionItem-like', label: '分销商品', type: 'input' },
2301
- { name: 'qp-headItem-like', label: '总部商品', type: 'input' },
2302
- { name: 'qp-storeChannelName-like', label: '管理模式', type: 'input' },
2298
+ { name: 'qp-manageSupervisor-like', type: 'select', label: '管理督导', field: {
2299
+ type: 'select',
2300
+ props: {
2301
+ notFoundContent: '暂无数据',
2302
+ allowClear: true,
2303
+ showSearch: true,
2304
+ showArrow: true,
2305
+ maxTagCount: 1,
2306
+ optionFilterProp: 'children',
2307
+ filterOption: (input: string, option: { props: { children: string } }) =>
2308
+ {
2309
+ debugger
2310
+ return (option?.value ?? '').toLowerCase().includes(input.toLowerCase())
2311
+ }
2312
+ },
2313
+ } },
2314
+ { name: 'qp-directSupervisor-like', type: 'select', label: '直接督导', field: {
2315
+ type: 'select',
2316
+ props: {
2317
+ notFoundContent: '暂无数据',
2318
+ allowClear: true,
2319
+ showSearch: true,
2320
+ showArrow: true,
2321
+ maxTagCount: 1,
2322
+ optionFilterProp: 'children',
2323
+ filterOption: (input: string, option: { props: { children: string } }) =>
2324
+ (option?.value ?? '').toLowerCase().includes(input.toLowerCase())
2325
+ },
2326
+ } },
2327
+ { name: 'qp-distributionItem-like', type: 'select', label: '分销商品', field: {
2328
+ type: 'select',
2329
+ props: {
2330
+ notFoundContent: '暂无数据',
2331
+ allowClear: true,
2332
+ showSearch: true,
2333
+ showArrow: true,
2334
+ maxTagCount: 1,
2335
+ optionFilterProp: 'children',
2336
+ filterOption: (input: string, option: { props: { children: string } }) =>
2337
+ (option?.value ?? '').toLowerCase().includes(input.toLowerCase())
2338
+ },
2339
+ } },
2340
+ { name: 'qp-headItem-like', type: 'select', label: '总部商品', field: {
2341
+ type: 'select',
2342
+ props: {
2343
+ notFoundContent: '暂无数据',
2344
+ allowClear: true,
2345
+ showSearch: true,
2346
+ showArrow: true,
2347
+ maxTagCount: 1,
2348
+ optionFilterProp: 'children',
2349
+ filterOption: (input: string, option: { props: { children: string } }) =>
2350
+ (option?.value ?? '').toLowerCase().includes(input.toLowerCase())
2351
+ },
2352
+ } },
2353
+ { name: 'qp-storeChannelName-like', type: 'select', label: '管理模式', field: {
2354
+ type: 'select',
2355
+ props: {
2356
+ notFoundContent: '暂无数据',
2357
+ allowClear: true,
2358
+ showSearch: true,
2359
+ showArrow: true,
2360
+ maxTagCount: 1,
2361
+ optionFilterProp: 'children',
2362
+ filterOption: (input: string, option: { props: { children: string } }) =>
2363
+ (option?.value ?? '').toLowerCase().includes(input.toLowerCase())
2364
+ },
2365
+ } },
2303
2366
  ]
2304
2367
  const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
2305
2368
  Promise.all([
@@ -2320,7 +2383,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2320
2383
  pageSize: 5000,
2321
2384
  currentPage: 1,
2322
2385
  'ctl-withAuth': true,
2323
- },getQueryHeadersItem(queryHeaderParams,'ctl-withAuth'))
2386
+ },getQueryHeadersItem(queryHeaderParams,'ctl-withAuth')),
2387
+ loadSelectSource(`/channel-manage/store/selectStoreOperationalInfo`, {}, getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in'))
2324
2388
  ]).then((x: any)=>{
2325
2389
  const newData1: any[] = [];
2326
2390
  x[1]?.data[0]?.channelInfoSon?.forEach((item: any) => {
@@ -2333,6 +2397,25 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2333
2397
  formatTreeDataSource(x, 1, 4, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
2334
2398
  formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude)
2335
2399
  formatSource(x,3, 7, tableSearchForm, ['brandCode', 'name']);
2400
+
2401
+ const opRaw = x[4]?.data;
2402
+ // 新增label属性
2403
+ opList?.forEach((r: any) => {
2404
+ r.label = r?.value;
2405
+ })
2406
+ let opList = Array.isArray(opRaw) ? opRaw : (opRaw?.items || opRaw?.list || []);
2407
+ if (Array.isArray(opList) && Array.isArray(opList[0]) && !opList[0]?.field) { opList = opList[0]; }
2408
+ const m1 = opList?.filter((r: any) => r?.field === 'manage_supervisor' && trim(r?.value));
2409
+ const m2 = opList?.filter((r: any) => r?.field === 'direct_supervisor' && trim(r?.value));
2410
+ const m3 = opList?.filter((r: any) => r?.field === 'distribution_item' && trim(r?.value));
2411
+ debugger
2412
+ const m4 = opList?.filter((r: any) => r?.field === 'head_item' && trim(r?.value));
2413
+ const m5 = opList?.filter((r: any) => r?.field === 'store_channel_name' && trim(r?.value));
2414
+ tableSearchForm[8] = { ...tableSearchForm[8], initialSource: m1 };
2415
+ tableSearchForm[9] = { ...tableSearchForm[9], initialSource: m2 };
2416
+ tableSearchForm[10] = { ...tableSearchForm[10], initialSource: m3 };
2417
+ tableSearchForm[11] = { ...tableSearchForm[11], initialSource: m4 };
2418
+ tableSearchForm[12] = { ...tableSearchForm[12], initialSource: m5 };
2336
2419
  })
2337
2420
  modalTableProps = {
2338
2421
  modalTableTitle: '选择商店',
@@ -55,6 +55,7 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
55
55
  viewShowValueStr, // 详情展示值,不传展示组件处理的默认值
56
56
  searchStartLength, // 默认不校验长度去搜索,如果配置了,则按照配置项长度进行处理搜索
57
57
  isQuery = false, // 是否是查询条件
58
+ requireSearchCondition = false, // 是否必须选择一个值
58
59
  } = rCTemp || {};
59
60
  const requestConfig = {url,method,otherParams,isMap,fixedparameter,fieldValToParam,fixedparamsDisabled,mappingTextField,mappingTextShowKeyField,mappingValueField,mappingTextShowTextField,init,extralHeaders,specialBracket,noNeedSplit,noOperate,viewShowValueStr,searchStartLength,...rCTemp};
60
61
  const resultSourceKey = handleSourceName(sourceName || requestConfig?.sourceName || ctx?.name || 'supplierCode')
@@ -479,6 +480,18 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
479
480
 
480
481
  const onSearchTable = () => {
481
482
  const params = form.getFieldsValue();
483
+ // 必须选择一个值
484
+ if(requireSearchCondition) {
485
+ const hasValidValue = Object.values(params).some(value =>
486
+ (Array.isArray(value) && value.length > 0) ||
487
+ (typeof value === 'string' && value.trim().length > 0)
488
+ );
489
+
490
+ if(!hasValidValue) {
491
+ message.warning('请至少选择一个搜索条件');
492
+ return;
493
+ }
494
+ }
482
495
  setModalSearched(true);
483
496
  setTableFormParams(params);
484
497
  getData({ ...params, pageSize: tableInitPageSize }, 2, null);
@@ -711,7 +724,25 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
711
724
  }
712
725
 
713
726
  const renderShowTable = (tableList, type) => {
714
- const tableBoxHeighth = getTableHeigth(modalTableProps?.tableSearchForm);
727
+ const viCount = modalTableProps?.visibleFieldsCount || defaultVisibleFieldsCount;
728
+ const canExpand = hasMoreQueryFields(modalTableProps);
729
+ const collapsedList = modalTableProps?.tableSearchForm?.slice(0, viCount);
730
+ const baseHeight = getTableHeigth(collapsedList);
731
+ const rowsCollapsed = getFormRowInfo(collapsedList, modalTableProps?.tableSearchColSpan).totalRows;
732
+ const rowsExpandedData = getFormRowInfo(modalTableProps?.tableSearchForm, modalTableProps?.tableSearchColSpan);
733
+ let rowsExpanded = rowsExpandedData.totalRows;
734
+ let isMoreAction = false;
735
+ if(24 / modalTableProps?.tableSearchColSpan - rowsExpandedData.emptyArray.length === 1) {
736
+ rowsExpanded++;
737
+ isMoreAction = true;
738
+ }
739
+ const extraRows = (!collapsed && canExpand) ? Math.max(0, rowsExpanded - rowsCollapsed) : 0;
740
+ let tableBoxHeighth = baseHeight;
741
+ if(isMoreAction && extraRows > 0) {
742
+ tableBoxHeighth = tableBoxHeighth + ((extraRows - 1) ? (extraRows - 1) : 0) * 34 + 32
743
+ } else {
744
+ tableBoxHeighth = tableBoxHeighth + extraRows * 34
745
+ }
715
746
  const x = tableList?.length ? 82 : 28; // 无数据没有分页,有数据计算减去:分页 24+16*2+10 「高 + margin * 2 + paddingBottom 10 」
716
747
  const oSY = `calc(100vh - ${tableBoxHeighth}px - ${x}px)`;
717
748
  const mTB = `calc(50vh - ${tableBoxHeighth/2}px - ${x/2}px - 40px)`