@lingxiteam/ebe-utils 0.3.23 → 0.3.25

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 (152) hide show
  1. package/es/index.js +1 -1
  2. package/es/renameComponents.d.ts +1 -0
  3. package/es/renameComponents.js +70 -0
  4. package/lib/h5public/src/components/common/BannerModal/index.tsx +1 -1
  5. package/lib/h5public/src/components/common/DocViewer/index.tsx +1 -0
  6. package/lib/h5public/src/components/common/PreviewFile/index.tsx +5 -5
  7. package/lib/h5public/src/components/factory/src/Animation/index.tsx +1 -1
  8. package/lib/h5public/src/components/factory/src/Audio/index.tsx +1 -1
  9. package/lib/h5public/src/components/factory/src/BasicComponents/Empty/empty.tsx +2 -0
  10. package/lib/h5public/src/components/factory/src/BasicComponents/Empty/index.tsx +1 -1
  11. package/lib/h5public/src/components/factory/src/BasicComponents/FormItem/index.tsx +1 -1
  12. package/lib/h5public/src/components/factory/src/BasicComponents/Spin/index.tsx +1 -0
  13. package/lib/h5public/src/components/factory/src/BasicComponents/SpinComp/index.tsx +1 -1
  14. package/lib/h5public/src/components/factory/src/BlockSelect/assets/index.tsx +2 -0
  15. package/lib/h5public/src/components/factory/src/BlockSelect/components/ActionView/index.tsx +1 -0
  16. package/lib/h5public/src/components/factory/src/BlockSelect/components/Icon/index.tsx +1 -0
  17. package/lib/h5public/src/components/factory/src/Calendar/index.tsx +1 -0
  18. package/lib/h5public/src/components/factory/src/CardBody/index.tsx +1 -0
  19. package/lib/h5public/src/components/factory/src/CardFooter/index.tsx +1 -0
  20. package/lib/h5public/src/components/factory/src/DAddressPicker/index.tsx +1 -1
  21. package/lib/h5public/src/components/factory/src/DMultiplePicker/index.tsx +1 -1
  22. package/lib/h5public/src/components/factory/src/DatePicker/InnerDatePicker.tsx +1 -1
  23. package/lib/h5public/src/components/factory/src/DatePicker/index.tsx +1 -0
  24. package/lib/h5public/src/components/factory/src/DformDate/DatePicker.tsx +1 -1
  25. package/lib/h5public/src/components/factory/src/DformImagePicker/ImagePicker.tsx +1 -1
  26. package/lib/h5public/src/components/factory/src/DformInput/index.tsx +1 -0
  27. package/lib/h5public/src/components/factory/src/DformInputNumber/FormInputNumber.tsx +1 -1
  28. package/lib/h5public/src/components/factory/src/DformList/Group/index.tsx +1 -0
  29. package/lib/h5public/src/components/factory/src/DformList/List/index.tsx +1 -1
  30. package/lib/h5public/src/components/factory/src/DformList/Title/index.tsx +1 -0
  31. package/lib/h5public/src/components/factory/src/DformPicker/index.tsx +1 -1
  32. package/lib/h5public/src/components/factory/src/DformRangePicker/RangePicker.tsx +1 -1
  33. package/lib/h5public/src/components/factory/src/DformSelect/index.tsx +1 -1
  34. package/lib/h5public/src/components/factory/src/DformSwitch/index.tsx +1 -0
  35. package/lib/h5public/src/components/factory/src/DformTextArea/index.tsx +1 -0
  36. package/lib/h5public/src/components/factory/src/Donut/Dount.tsx +1 -1
  37. package/lib/h5public/src/components/factory/src/Donut/index.tsx +1 -1
  38. package/lib/h5public/src/components/factory/src/DynamicDataContainer/index.tsx +1 -1
  39. package/lib/h5public/src/components/factory/src/DynamicList/index.tsx +1 -1
  40. package/lib/h5public/src/components/factory/src/DynamicTable/assets/index.tsx +2 -0
  41. package/lib/h5public/src/components/factory/src/DynamicTable/hooks/useCreateColumn.tsx +1 -1
  42. package/lib/h5public/src/components/factory/src/DynamicTable/hooks/useFormatCell.tsx +1 -0
  43. package/lib/h5public/src/components/factory/src/FilterItems/index.tsx +1 -0
  44. package/lib/h5public/src/components/factory/src/Flex/index.tsx +1 -0
  45. package/lib/h5public/src/components/factory/src/Grid/index.tsx +1 -1
  46. package/lib/h5public/src/components/factory/src/GroupColumn/GroupColumn.tsx +1 -1
  47. package/lib/h5public/src/components/factory/src/GroupColumn/index.tsx +1 -1
  48. package/lib/h5public/src/components/factory/src/Icon/index.tsx +1 -1
  49. package/lib/h5public/src/components/factory/src/Image/factoryImage.tsx +1 -1
  50. package/lib/h5public/src/components/factory/src/Image/index.tsx +1 -0
  51. package/lib/h5public/src/components/factory/src/LXBarChart/index.tsx +1 -1
  52. package/lib/h5public/src/components/factory/src/LXLineChart/ChartLine.tsx +1 -0
  53. package/lib/h5public/src/components/factory/src/LXLineChart/index.tsx +1 -1
  54. package/lib/h5public/src/components/factory/src/LXPieChart/LXPieChart.tsx +1 -0
  55. package/lib/h5public/src/components/factory/src/LXPieChart/index.tsx +1 -1
  56. package/lib/h5public/src/components/factory/src/LXRadarChart/LXRadarChat.tsx +1 -0
  57. package/lib/h5public/src/components/factory/src/LXRadarChart/index.tsx +1 -1
  58. package/lib/h5public/src/components/factory/src/Line/Line.tsx +1 -1
  59. package/lib/h5public/src/components/factory/src/Line/index.tsx +1 -1
  60. package/lib/h5public/src/components/factory/src/LineColumn/LineColumn.tsx +1 -1
  61. package/lib/h5public/src/components/factory/src/LineColumn/index.tsx +1 -1
  62. package/lib/h5public/src/components/factory/src/LoadMore/index.tsx +1 -1
  63. package/lib/h5public/src/components/factory/src/MultipleProgress/MultipleProgress.tsx +1 -1
  64. package/lib/h5public/src/components/factory/src/MultipleProgress/index.tsx +1 -1
  65. package/lib/h5public/src/components/factory/src/NoticeBarPlus/index.tsx +1 -1
  66. package/lib/h5public/src/components/factory/src/Notification/index.tsx +1 -0
  67. package/lib/h5public/src/components/factory/src/Picker/InnerPicker.tsx +1 -1
  68. package/lib/h5public/src/components/factory/src/Picker/index.tsx +1 -0
  69. package/lib/h5public/src/components/factory/src/ProgressBar/index.tsx +1 -1
  70. package/lib/h5public/src/components/factory/src/QRCode/index.tsx +1 -1
  71. package/lib/h5public/src/components/factory/src/RemoteComponent/assets/iconFailComp.tsx +2 -0
  72. package/lib/h5public/src/components/factory/src/RemoteComponent/components/FishRender.tsx +1 -0
  73. package/lib/h5public/src/components/factory/src/RemoteComponent/components/ReactRender.tsx +1 -1
  74. package/lib/h5public/src/components/factory/src/RemoteComponent/components/VueRender.tsx +1 -0
  75. package/lib/h5public/src/components/factory/src/RemoteComponent/index.tsx +1 -1
  76. package/lib/h5public/src/components/factory/src/Selector/LxSelector.tsx +1 -1
  77. package/lib/h5public/src/components/factory/src/SideBar/index.tsx +1 -1
  78. package/lib/h5public/src/components/factory/src/SingleProgress/index.tsx +1 -0
  79. package/lib/h5public/src/components/factory/src/SmallColumnar/SmallColumnar.tsx +1 -1
  80. package/lib/h5public/src/components/factory/src/SmallColumnar/index.tsx +1 -1
  81. package/lib/h5public/src/components/factory/src/StackColumn/StackColumn.tsx +1 -1
  82. package/lib/h5public/src/components/factory/src/StackColumn/index.tsx +1 -1
  83. package/lib/h5public/src/components/factory/src/StepBar/constant/checkcircle.tsx +2 -0
  84. package/lib/h5public/src/components/factory/src/StepBar/constant/vector.tsx +2 -0
  85. package/lib/h5public/src/components/factory/src/StepProcess/index.tsx +1 -1
  86. package/lib/h5public/src/components/factory/src/TabBar/TabImage/index.tsx +1 -1
  87. package/lib/h5public/src/components/factory/src/TabBar/TabPage/index.tsx +1 -1
  88. package/lib/h5public/src/components/factory/src/TabBar/index.tsx +1 -1
  89. package/lib/h5public/src/components/factory/src/Table/index.tsx +1 -1
  90. package/lib/h5public/src/components/factory/src/VerificationCode/index.tsx +1 -1
  91. package/lib/h5public/src/components/factory/src/VideoPlayer/ViewPlayer.tsx +1 -1
  92. package/lib/h5public/src/components/factory/src/VideoPlayer/index.tsx +1 -1
  93. package/lib/h5public/src/components/factory/src/View/index.tsx +1 -1
  94. package/lib/h5public/src/components/factory/src/utils/LoaderHelper.tsx +1 -0
  95. package/lib/h5public/src/components/factory/src/utils/hooks/useCompState.tsx +1 -1
  96. package/lib/pcpublic/src/components/pcfactory/src/Cascader/index.tsx +1 -1
  97. package/lib/pcpublic/src/components/pcfactory/src/ChartBar/index.tsx +1 -1
  98. package/lib/pcpublic/src/components/pcfactory/src/CheckboxGroup/index.tsx +41 -29
  99. package/lib/pcpublic/src/components/pcfactory/src/CollapsePanel/index.tsx +1 -1
  100. package/lib/pcpublic/src/components/pcfactory/src/DynamicDataContainer/index.tsx +1 -1
  101. package/lib/pcpublic/src/components/pcfactory/src/DynamicTabs/index.tsx +1 -1
  102. package/lib/pcpublic/src/components/pcfactory/src/FormGroup/TitleComp.tsx +1 -0
  103. package/lib/pcpublic/src/components/pcfactory/src/FormGroup/index.tsx +1 -1
  104. package/lib/pcpublic/src/components/pcfactory/src/Gantt/index.tsx +1 -1
  105. package/lib/pcpublic/src/components/pcfactory/src/GridView/index.tsx +1 -1
  106. package/lib/pcpublic/src/components/pcfactory/src/Icon/hooks/index.tsx +1 -1
  107. package/lib/pcpublic/src/components/pcfactory/src/Img/BasicImage/index.tsx +1 -1
  108. package/lib/pcpublic/src/components/pcfactory/src/Menu/index.tsx +1 -1
  109. package/lib/pcpublic/src/components/pcfactory/src/Progress/index.tsx +1 -1
  110. package/lib/pcpublic/src/components/pcfactory/src/QRCode/index.tsx +1 -1
  111. package/lib/pcpublic/src/components/pcfactory/src/QuillEditor/index.tsx +1 -1
  112. package/lib/pcpublic/src/components/pcfactory/src/RadarChart/RadarECharts.tsx +1 -1
  113. package/lib/pcpublic/src/components/pcfactory/src/RadarChart/index.tsx +1 -1
  114. package/lib/pcpublic/src/components/pcfactory/src/Rate/index.tsx +1 -1
  115. package/lib/pcpublic/src/components/pcfactory/src/ReactECharts/ReactECharts.tsx +1 -1
  116. package/lib/pcpublic/src/components/pcfactory/src/ReactECharts/index.tsx +1 -1
  117. package/lib/pcpublic/src/components/pcfactory/src/RemoteComponent/components/FishRender.tsx +1 -0
  118. package/lib/pcpublic/src/components/pcfactory/src/RemoteComponent/components/ReactRender.tsx +1 -0
  119. package/lib/pcpublic/src/components/pcfactory/src/RemoteComponent/components/VueRender.tsx +1 -0
  120. package/lib/pcpublic/src/components/pcfactory/src/RemoteComponent/index.tsx +1 -1
  121. package/lib/pcpublic/src/components/pcfactory/src/Select/selectUtils.ts +2 -2
  122. package/lib/pcpublic/src/components/pcfactory/src/StdUpload/DownloadProgress/DownloadProgress.tsx +1 -1
  123. package/lib/pcpublic/src/components/pcfactory/src/StdUpload/UploadItem.tsx +1 -1
  124. package/lib/pcpublic/src/components/pcfactory/src/Steps/constant/checkcircle.tsx +2 -0
  125. package/lib/pcpublic/src/components/pcfactory/src/Steps/constant/vector.tsx +2 -0
  126. package/lib/pcpublic/src/components/pcfactory/src/Steps/index.tsx +1 -1
  127. package/lib/pcpublic/src/components/pcfactory/src/Switch/index.tsx +1 -1
  128. package/lib/pcpublic/src/components/pcfactory/src/Table/hooks/useRowEdit.ts +2 -2
  129. package/lib/pcpublic/src/components/pcfactory/src/TooltipView/hooks/index.tsx +1 -0
  130. package/lib/pcpublic/src/components/pcfactory/src/Tree/index.tsx +23 -6
  131. package/lib/pcpublic/src/components/pcfactory/src/Upload/index.tsx +1 -1
  132. package/lib/pcpublic/src/components/pcfactory/src/VirtualGroup/index.tsx +1 -1
  133. package/lib/pcpublic/src/components/pcfactory/src/WebComponent/WebComponent.tsx +1 -0
  134. package/lib/pcpublic/src/utils/exportCustomData/index.tsx +121 -102
  135. package/lib/public/.eslintignore +55 -0
  136. package/lib/public/public/iconfont.js +1 -1
  137. package/lib/public/src/components/ExpSQLServiceModal/index.tsx +1 -1
  138. package/lib/public/src/components/ImportBusiObjModal/index.tsx +7 -8
  139. package/lib/public/src/components/LoaderHelper/index.tsx +1 -0
  140. package/lib/public/src/components/ProgressComp/ProgressComp.tsx +1 -1
  141. package/lib/public/src/components/ProgressComp/index.tsx +1 -0
  142. package/lib/public/src/components/WaterMark/index.tsx +1 -1
  143. package/lib/public/src/components/common/ExpBusiObjModal/index.tsx +1 -1
  144. package/lib/public/src/hooks/useExportCustomDataFile.ts +2 -3
  145. package/lib/public/src/pages/_preview/index.tsx +2 -1
  146. package/lib/public/src/utils/Context/Container.tsx +1 -1
  147. package/lib/public/src/utils/Context/context.tsx +2 -2
  148. package/lib/public/src/utils/Security/urlEncryption.ts +4 -4
  149. package/lib/public/src/utils/platform/utils/fileUtils.ts +1 -1
  150. package/lib/public/src/utils/preprocess.ts +3 -2
  151. package/lib/public/src/utils/service/defaultResponseInterceptor.ts +13 -13
  152. package/package.json +2 -2
package/es/index.js CHANGED
@@ -227,7 +227,7 @@ export var clearLXPagesDSL = function clearLXPagesDSL(pages) {
227
227
  });
228
228
  };
229
229
  export var getSafeTypeName = function getSafeTypeName(name) {
230
- return name.replaceAll(' ', '').replaceAll('/', '').replaceAll('-', '').replaceAll('(', '').replaceAll(',', '').replaceAll("'", '').replaceAll(',', '').replaceAll(')', '');
230
+ return name.replaceAll(' ', '').replaceAll('/', '').replaceAll('\\', '').replaceAll('-', '').replaceAll('(', '').replaceAll(',', '').replaceAll("'", '').replaceAll(',', '').replaceAll(')', '');
231
231
  };
232
232
  var workerJsUrl = '';
233
233
  export var setWorkerJsUrl = function setWorkerJsUrl(url) {
@@ -0,0 +1 @@
1
+ export declare function renameComponents(data: any): string;
@@ -0,0 +1,70 @@
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
+ export function renameComponents(data) {
8
+ // 读取 JSON 文件
9
+ // const data: JsonData = JSON.parse(jsonContent);
10
+
11
+ // 用于存储已使用的名称计数
12
+ var nameCounters = {};
13
+ var renameObject = {};
14
+
15
+ // 递归处理组件
16
+ function processComponents(components) {
17
+ if (!Array.isArray(components)) return;
18
+ components.forEach(function (component) {
19
+ // 处理当前组件
20
+ if (component.id && /^[A-Za-z]+_\d+$/.test(component.id)) {
21
+ var baseName = component.id.split('_')[0];
22
+ // 生成新的有意义的名字
23
+ var newName = generateMeaningfulName(baseName, component.id, nameCounters);
24
+ component.id = newName;
25
+ }
26
+
27
+ // 递归处理子组件
28
+ if (component.components) {
29
+ processComponents(component.components);
30
+ }
31
+ });
32
+ }
33
+
34
+ // 生成有意义的名称
35
+ function generateMeaningfulName(baseName, label, counters) {
36
+ if (!counters[baseName]) {
37
+ counters[baseName] = 1;
38
+ } else {
39
+ counters[baseName] += 1;
40
+ }
41
+ // 从 Form1 开始,防止变量名和组件名相同
42
+ var rename = "".concat(baseName).concat(counters[baseName]);
43
+ renameObject[label] = rename;
44
+ return rename;
45
+ }
46
+
47
+ // 处理所有组件
48
+ if (data.components) {
49
+ processComponents(data.components);
50
+ }
51
+
52
+ // 将对象转换为字符串
53
+ var jsonString = JSON.stringify(data, null, 4);
54
+
55
+ // 全局替换所有引用
56
+ Object.entries(renameObject).forEach(function (_ref) {
57
+ var _ref2 = _slicedToArray(_ref, 2),
58
+ oldName = _ref2[0],
59
+ newName = _ref2[1];
60
+ // 使用正则表达式确保只替换完整的匹配
61
+ var regex = oldName.trim();
62
+ // @ts-ignore
63
+ jsonString = jsonString.replaceAll(regex, newName);
64
+ });
65
+ return JSON.parse(jsonString);
66
+ // 写回文件
67
+ // fs.writeFileSync('./Page_ceshi1.json', jsonString, 'utf8');
68
+ // console.log('组件重命名完成!');
69
+ // console.log('/重命名映射关系:', renameObject);
70
+ }
@@ -3,7 +3,7 @@ import { LocaleFunction } from '@lingxiteam/types';
3
3
  import { useThrottleFn } from 'ahooks';
4
4
  import Toast from 'antd-mobile-5/es/components/toast';
5
5
  import Animate from 'rc-animate';
6
- import { FC, useState } from 'react';
6
+ import React, { FC, useState } from 'react';
7
7
  import * as ReactDOM from 'react-dom';
8
8
  import Loadable from 'react-loadable';
9
9
  import closeIcon from './assets/closeIcon.png';
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import Loadable from 'react-loadable';
2
3
 
3
4
  const DocViewer = Loadable({
@@ -10,19 +10,19 @@ import { api } from '@/services/api';
10
10
  import { addFileUrlSign } from '@/utils/engine-utils';
11
11
  import { messageApi } from '@/utils/messageApi';
12
12
  import security from '@/utils/Security';
13
- import { LocaleFunction } from '@lingxiteam/types';
13
+ // import { LocaleFunction } from '@lingxiteam/types';
14
14
  import DocViewer from '../DocViewer';
15
15
  import './index.less';
16
16
 
17
17
  interface PreviewFileProps {
18
18
  fileId: string;
19
- isEnableWaterMark?: boolean;
19
+ // isEnableWaterMark?: boolean;
20
20
  file?: any;
21
21
  pdfInfo: any;
22
22
  onClose?: () => void;
23
23
  onLoaded?: (loaded: boolean) => void;
24
- getLocale: LocaleFunction;
25
- language: string;
24
+ // getLocale: LocaleFunction;
25
+ // language: string;
26
26
  }
27
27
 
28
28
  const prefixCls = 'lcdp-preview';
@@ -80,7 +80,7 @@ const LOCAL_PREVIEW_PLUS = [
80
80
  ];
81
81
  pdfjs.GlobalWorkerOptions.workerSrc = pdfjsWorker;
82
82
  const PreviewFile: React.FC<PreviewFileProps> = props => {
83
- const { fileId: fileIdOrUrl, isEnableWaterMark = true, file, pdfInfo, onClose, onLoaded, getLocale, language } = props;
83
+ const { fileId: fileIdOrUrl, file, pdfInfo, onClose, onLoaded } = props;
84
84
  const [loading, setLoading] = useState(false);
85
85
  const [fileDataMap, setFileDataMap] = useState<any>({});
86
86
  const fileCacheMap = useRef<any>({});
@@ -1,6 +1,6 @@
1
1
  import { LingxiForwardRef } from '@lingxiteam/types';
2
2
  import TweenOne from 'rc-tween-one';
3
- import { useEffect, useRef, useState } from 'react';
3
+ import React, { useEffect, useRef, useState } from 'react';
4
4
  import { AnimationOpts, useAnimation } from './useAnimation';
5
5
  import type { AppViewProps } from './useStyle';
6
6
  import useStyle from './useStyle';
@@ -1,5 +1,5 @@
1
1
  import { LingxiForwardRef } from '@lingxiteam/types';
2
- import { useImperativeHandle, useRef } from 'react';
2
+ import React, { useImperativeHandle, useRef } from 'react';
3
3
  import type { ForwardRefProps, MyAudioProps } from './Audio';
4
4
  import AudioLoader from './loader';
5
5
 
@@ -1,3 +1,5 @@
1
+ import React from 'react';
2
+
1
3
  export default (props: any) => {
2
4
  return (
3
5
  <svg width="1.28rem" viewBox="0 0 64 40" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -1,6 +1,6 @@
1
1
  import { LocaleFunction } from '@lingxiteam/types';
2
2
  import { ErrorBlock } from 'antd-mobile-5';
3
- import { FC, useMemo } from 'react';
3
+ import React, { FC, useMemo } from 'react';
4
4
  import useCompState from '../../utils/hooks/useCompState';
5
5
  import EmptySvg from './empty';
6
6
  import './index.less';
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
1
+ import React, { FC } from 'react';
2
2
 
3
3
  /**
4
4
  * 本方法主要用来包裹formItem组件,目的是为了对表单项下划线进行处理
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import classNames from 'classnames';
2
3
  import type { FC } from 'react';
3
4
  import './index.less';
@@ -1,5 +1,5 @@
1
1
  import { DotLoading } from 'antd-mobile-5';
2
- import { FC, useMemo } from 'react';
2
+ import React, { FC, useMemo } from 'react';
3
3
  // import { LocaleFunction } from '@lingxiteam/types';
4
4
  import useCompState from '../../utils/hooks/useCompState';
5
5
 
@@ -1,3 +1,5 @@
1
+ import React from 'react';
2
+
1
3
  export const circleNormalIcon = (onClick: any, className: any) => {
2
4
  return (
3
5
  <span onClick={onClick} className={className}>
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import CustomBtn from '../../../DGroup/CustomBtn';
2
3
  import Icon from '../../../Icon';
3
4
  import '../../index.less';
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { EngineBaseProps } from '@lingxiteam/types';
2
3
  import type { FC } from 'react';
3
4
  import MyIcon from '../../../Icon';
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { LingxiForwardRef } from '@lingxiteam/types';
2
3
  import DformCustom from '../DformCustom';
3
4
  import InnerCalendar, { MyCalendarProps } from './InnerCalendar';
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { LingxiForwardRef } from '@lingxiteam/types';
2
3
  import type { MyCardBodyProps } from './CardBody';
3
4
  import CardBodyLoader from './loader';
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { LingxiForwardRef } from '@lingxiteam/types';
2
3
  import type { MyCardFooterProps } from './CardFooter';
3
4
  import CardFooterLoader from './loader';
@@ -1,6 +1,6 @@
1
1
  import { Form } from '@lingxiteam/dform';
2
2
  import { LingxiForwardRef } from '@lingxiteam/types';
3
- import { useMemo, useRef } from 'react';
3
+ import React, { useMemo, useRef } from 'react';
4
4
  import { FormItem } from '../BasicComponents';
5
5
  import useDefaultValue from '../utils/hooks/useDefaultValue';
6
6
  import { useFormItem } from '../utils/hooks/useFormItem';
@@ -1,6 +1,6 @@
1
1
  import { MultiplePicker } from '@lingxiteam/dform';
2
2
  import { LingxiForwardRef } from '@lingxiteam/types';
3
- import { useEffect, useState } from 'react';
3
+ import React, { useEffect, useState } from 'react';
4
4
  import { DFormWrapper, FormItem } from '../BasicComponents';
5
5
  import { MyIconProps } from '../Icon';
6
6
  import useDefaultValue from '../utils/hooks/useDefaultValue';
@@ -1,7 +1,7 @@
1
+ import React, { useCallback, useEffect, useImperativeHandle, useMemo, useState } from 'react';
1
2
  import { LingxiForwardRef } from '@lingxiteam/types';
2
3
  import DatePicker from 'antd-mobile-5/es/components/date-picker';
3
4
  import Picker from 'antd-mobile-5/es/components/picker';
4
- import { useCallback, useEffect, useImperativeHandle, useMemo, useState } from 'react';
5
5
  import { FormItem } from '../BasicComponents';
6
6
  import { dateToFormatter, subtractDate, toDate, useLocaleFormatter } from '../utils/date';
7
7
  import { useToggleBoolean } from '../utils/hooks/useToggleBoolean';
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { LingxiForwardRef } from '@lingxiteam/types';
2
3
  import DformCustom from '../DformCustom';
3
4
  import InnerDatePicker from './InnerDatePicker';
@@ -1,6 +1,6 @@
1
1
  import { DformDatePicker } from '@lingxiteam/dform';
2
2
  import { LingxiForwardRef } from '@lingxiteam/types';
3
- import { useEffect, useState } from 'react';
3
+ import React, { useEffect, useState } from 'react';
4
4
  import { DFormWrapper } from '../BasicComponents';
5
5
  import { dateToFormatter, toDate, useLocaleFormatter } from '../utils/date';
6
6
  import { useFormItem, UseFormItemProps } from '../utils/hooks/useFormItem';
@@ -1,5 +1,5 @@
1
1
  import { DformImagePicker } from '@lingxiteam/dform';
2
- import { useEffect, useMemo, useRef } from 'react';
2
+ import React, { useEffect, useMemo, useRef } from 'react';
3
3
  import { DFormWrapper } from '../BasicComponents';
4
4
  import { useFormItem, UseFormItemProps } from '../utils/hooks/useFormItem';
5
5
  import UploadHandle from '../utils/upload';
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { DformInput } from '@lingxiteam/dform';
2
3
  import { LingxiForwardRef } from '@lingxiteam/types';
3
4
  import { DFormWrapper, FormItem } from '../BasicComponents';
@@ -1,6 +1,6 @@
1
1
  import { DformInput, INomarInputProps } from '@lingxiteam/dform';
2
2
  import { LingxiForwardRef } from '@lingxiteam/types';
3
- import { useEffect, useMemo, useState } from 'react';
3
+ import React, { useEffect, useMemo, useState } from 'react';
4
4
  import { DFormWrapper } from '../BasicComponents';
5
5
  import { useFormItem } from '../utils/hooks/useFormItem';
6
6
 
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import classnames from 'classnames';
2
3
  import './index.less';
3
4
 
@@ -1,5 +1,5 @@
1
1
  import { EngineBaseProps } from '@lingxiteam/types';
2
- import { FC } from 'react';
2
+ import React, { FC } from 'react';
3
3
 
4
4
  interface ListProps {
5
5
  getEngineApis: EngineBaseProps['getEngineApis'];
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import './index.less';
2
3
 
3
4
  const prefixCls = 'lcdp-dformlist-title';
@@ -1,6 +1,6 @@
1
1
  import { DformPicker } from '@lingxiteam/dform';
2
2
  import { LingxiForwardRef } from '@lingxiteam/types';
3
- import { useEffect, useRef, useState } from 'react';
3
+ import React, { useEffect, useRef, useState } from 'react';
4
4
  import { DFormWrapper, Empty, FormItem } from '../BasicComponents';
5
5
  import { useFormItem, UseFormItemProps } from '../utils/hooks/useFormItem';
6
6
  import { withTransformProps } from '../utils/withTransformProps';
@@ -1,6 +1,6 @@
1
1
  import { RangeDatePicker } from '@lingxiteam/dform';
2
2
  import { LingxiForwardRef } from '@lingxiteam/types';
3
- import { useEffect, useState } from 'react';
3
+ import React, { useEffect, useState } from 'react';
4
4
  import { DFormWrapper } from '../BasicComponents';
5
5
  import Icon from '../Icon';
6
6
  import { dateToFormatter, toDate, useLocaleFormatter } from '../utils/date';
@@ -1,6 +1,6 @@
1
1
  import { DformSelect } from '@lingxiteam/dform';
2
2
  import { LingxiForwardRef } from '@lingxiteam/types';
3
- import { useEffect, useState } from 'react';
3
+ import React, { useEffect, useState } from 'react';
4
4
  import { DFormWrapper, FormItem } from '../BasicComponents';
5
5
  import { reloadSelectDataType } from '../interfaces/types';
6
6
  import useDefaultValue from '../utils/hooks/useDefaultValue';
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { DformSwitch } from '@lingxiteam/dform';
2
3
  import { LingxiForwardRef } from '@lingxiteam/types';
3
4
  import { DFormWrapper, FormItem } from '../BasicComponents';
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { DformTextArea } from '@lingxiteam/dform';
2
3
  import { LingxiForwardRef } from '@lingxiteam/types';
3
4
  import { DFormWrapper, FormItem } from '../BasicComponents';
@@ -2,7 +2,7 @@ import { px2hd } from '@alitajs/f2';
2
2
  import Donut from '@lingxiteam/charts/es/Donut';
3
3
  import { LingXiFC } from '@lingxiteam/types';
4
4
  import classNames from 'classnames';
5
- import { useEffect, useMemo, useState } from 'react';
5
+ import React, { useEffect, useMemo, useState } from 'react';
6
6
  import { setRgbTo16 } from '../utils';
7
7
  import CustomModule, { getJSXHtml } from '../utils/CustomModule';
8
8
  import useAsyncState from '../utils/hooks/useAsyncState';
@@ -1,5 +1,5 @@
1
1
  import { LingxiForwardRef } from '@lingxiteam/types';
2
- import { useImperativeHandle, useState } from 'react';
2
+ import React, { useImperativeHandle, useState } from 'react';
3
3
  import DountLoader from './loader';
4
4
  import { DountDataProps, MyDonutProps } from './PropsType';
5
5
 
@@ -1,7 +1,7 @@
1
1
  import Form, { type FormInstance } from '@lingxiteam/dform';
2
2
  import { DynamicDataFieldItem, DynamicDataType, LingxiForwardRef } from '@lingxiteam/types';
3
3
  import { SpinLoading } from 'antd-mobile-5';
4
- import { CSSProperties, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
4
+ import React, { CSSProperties, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
5
5
  import { DynamicDataContext, DynamicDataProvider } from '../utils/dynamicUtils/DynamicContext';
6
6
  import './index.less';
7
7
  import { useDynamicDataContainer } from './useDynamicDataContainer';
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable no-nested-ternary */
2
2
  import { LingxiForwardRef } from '@lingxiteam/types';
3
3
  import { DotLoading, InfiniteScroll, List, PullToRefresh, Toast } from 'antd-mobile-5';
4
- import { useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
4
+ import React, { useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
5
5
  import { Empty, SpinComp } from '../BasicComponents';
6
6
  import Icon from '../Icon';
7
7
  import './index.less';
@@ -1,3 +1,5 @@
1
+ import React from 'react';
2
+
1
3
  export const leftDirection = (
2
4
  <svg
3
5
  viewBox="0 0 1024 1024"
@@ -1,7 +1,7 @@
1
1
  import { EngineApisType, EngineBaseProps } from '@lingxiteam/types';
2
2
  import { CellClassParams, ICellRendererParams, RowSpanParams, ValueFormatterParams, ValueGetterParams } from 'ag-grid-community';
3
3
  import cloneDeep from 'lodash/cloneDeep';
4
- import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
4
+ import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
5
5
  import HeaderCell from '../components/HeaderCell';
6
6
  import TypeCells from '../components/TypeCells';
7
7
 
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import Qs from 'qs';
2
3
  import { createId } from '../../utils';
3
4
  import CustomModule from '../../utils/CustomModule';
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { FilterItems, FilterProps } from '@lingxiteam/antd-mobile-plus';
2
3
  import { AppForwardRef } from '../BasicComponents';
3
4
 
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { Flex } from '@lingxiteam/antd-mobile-plus';
2
3
  import { AppForwardRef } from '../BasicComponents';
3
4
 
@@ -1,6 +1,6 @@
1
1
  import { DataItem, Grid, GridProps } from '@lingxiteam/antd-mobile-plus';
2
2
  import { LingxiForwardRef } from '@lingxiteam/types';
3
- import { useImperativeHandle, useMemo, useState } from 'react';
3
+ import React, { useImperativeHandle, useMemo, useState } from 'react';
4
4
  import { useDeepCompareEffect } from '../utils/ahooks';
5
5
 
6
6
  export interface MyGridProps extends GridProps {
@@ -1,6 +1,6 @@
1
1
  import GroupColumn from '@lingxiteam/charts/es/GroupColumn';
2
2
  import { LingXiFC } from '@lingxiteam/types';
3
- import { useEffect, useMemo } from 'react';
3
+ import React, { useEffect, useMemo } from 'react';
4
4
  import useAsyncState from '../utils/hooks/useAsyncState';
5
5
  import useHiddenStyle from '../utils/hooks/useHiddenStyle';
6
6
  import { useJsonToParse } from '../utils/hooks/useJsonToParse';
@@ -1,5 +1,5 @@
1
1
  import { LingxiForwardRef } from '@lingxiteam/types';
2
- import { useImperativeHandle, useState } from 'react';
2
+ import React, { useImperativeHandle, useState } from 'react';
3
3
  import GroupColumnLoader from './loader';
4
4
  import { MyGroupColumnProps } from './PropsType';
5
5
 
@@ -1,7 +1,7 @@
1
1
  import { Icon as LegacyIcon } from '@lingxiteam/icons';
2
2
  import { LingxiForwardRef } from '@lingxiteam/types';
3
3
  import classnames from 'classnames';
4
- import { useEffect, useImperativeHandle, useMemo, useState } from 'react';
4
+ import React, { useEffect, useImperativeHandle, useMemo, useState } from 'react';
5
5
  import useHiddenStyle from '../utils/hooks/useHiddenStyle';
6
6
  import { useListenProps } from '../utils/hooks/useListenState';
7
7
  import './index.less';
@@ -1,5 +1,5 @@
1
1
  import { LingxiForwardRef } from '@lingxiteam/types';
2
- import { useMemo } from 'react';
2
+ import React, { useMemo } from 'react';
3
3
  import { withTransformProps } from '../utils/withTransformProps';
4
4
  import IconError from './assets/error.png';
5
5
  import IconPlaceholder from './assets/placeholder.png';
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { LingxiForwardRef } from '@lingxiteam/types';
2
3
  import DformCustom from '../DformCustom';
3
4
  import MyImage, { MyImageProps } from './factoryImage';
@@ -1,5 +1,5 @@
1
1
  import { LingxiForwardRef } from '@lingxiteam/types';
2
- import { useImperativeHandle } from 'react';
2
+ import React, { useImperativeHandle } from 'react';
3
3
  import LXLineChartProps from '../LXLineChart/PropsType';
4
4
  import LXBarChartLoader from './loader';
5
5
 
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { LXChart } from '@lingxiteam/charts-common';
2
3
  import { LingXiFC } from '@lingxiteam/types';
3
4
  import { useFuncExpExecute } from '../utils/hooks/useFuncExpExecute';
@@ -1,5 +1,5 @@
1
1
  import { LingxiForwardRef } from '@lingxiteam/types';
2
- import { useImperativeHandle } from 'react';
2
+ import React, { useImperativeHandle } from 'react';
3
3
  import CharBarLoader from './loader';
4
4
  import ChartLineProps from './PropsType';
5
5
 
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { LXChart } from '@lingxiteam/charts-common';
2
3
  import { LingXiFC } from '@lingxiteam/types';
3
4
  import useHiddenStyle from '../utils/hooks/useHiddenStyle';
@@ -1,5 +1,5 @@
1
1
  import { LingxiForwardRef } from '@lingxiteam/types';
2
- import { useImperativeHandle } from 'react';
2
+ import React, { useImperativeHandle } from 'react';
3
3
  import LXPieChartLoader from './loader';
4
4
  import LXPieChartProps from './PropsType';
5
5
 
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { LXChart } from '@lingxiteam/charts-common';
2
3
  import { LingXiFC } from '@lingxiteam/types';
3
4
  import useHiddenStyle from '../utils/hooks/useHiddenStyle';
@@ -1,5 +1,5 @@
1
1
  import { LingxiForwardRef } from '@lingxiteam/types';
2
- import { useImperativeHandle } from 'react';
2
+ import React, { useImperativeHandle } from 'react';
3
3
  import LXRadarChartLoader from './loader';
4
4
  import LXRadarChartProps from './PropsType';
5
5
 
@@ -1,6 +1,6 @@
1
1
  import Line from '@lingxiteam/charts/es/Line';
2
2
  import { LingXiFC } from '@lingxiteam/types';
3
- import { useEffect, useMemo } from 'react';
3
+ import React, { useEffect, useMemo } from 'react';
4
4
  import useAsyncState from '../utils/hooks/useAsyncState';
5
5
  import useHiddenStyle from '../utils/hooks/useHiddenStyle';
6
6
  import { useJsonToParse } from '../utils/hooks/useJsonToParse';
@@ -1,5 +1,5 @@
1
1
  import { LingxiForwardRef } from '@lingxiteam/types';
2
- import { useImperativeHandle, useState } from 'react';
2
+ import React, { useImperativeHandle, useState } from 'react';
3
3
  import LineLoader from './loader';
4
4
  import { MyLineProps } from './PropsType';
5
5
 
@@ -1,4 +1,4 @@
1
- import { useEffect, useRef, useState } from 'react';
1
+ import React, { useEffect, useRef, useState } from 'react';
2
2
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
3
3
  import { Chart, Geometry, Legend, px2hd } from '@alitajs/f2';
4
4
  import Axis from '@lingxiteam/charts/es/components/Axis';
@@ -1,5 +1,5 @@
1
1
  import { LingxiForwardRef } from '@lingxiteam/types';
2
- import { useImperativeHandle, useState } from 'react';
2
+ import React, { useImperativeHandle, useState } from 'react';
3
3
  import LineColumnLoader from './loader';
4
4
  import { ColumnProps } from './PropsType';
5
5
 
@@ -1,6 +1,6 @@
1
1
  import { LoadMoreListView, LoadMoreListViewProps } from '@lingxiteam/antd-mobile-plus';
2
2
  import { ErrorBlock } from 'antd-mobile-5';
3
- import { useImperativeHandle, useMemo, useRef, useState } from 'react';
3
+ import React, { useImperativeHandle, useMemo, useRef, useState } from 'react';
4
4
  import { AppForwardRef } from '../BasicComponents';
5
5
  import './index.less';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import MultipleProgress from '@lingxiteam/charts/es/MultipleProgress';
2
2
  import { LingXiFC } from '@lingxiteam/types';
3
- import { useEffect } from 'react';
3
+ import React, { useEffect } from 'react';
4
4
  import useAsyncState from '../utils/hooks/useAsyncState';
5
5
  import useHiddenStyle from '../utils/hooks/useHiddenStyle';
6
6
  import { useJsonToParse } from '../utils/hooks/useJsonToParse';
@@ -1,5 +1,5 @@
1
1
  import { LingxiForwardRef } from '@lingxiteam/types';
2
- import { useImperativeHandle, useState } from 'react';
2
+ import React, { useImperativeHandle, useState } from 'react';
3
3
  import DountLoader from './loader';
4
4
  import { MyMultipleProgressProps } from './PropsType';
5
5
 
@@ -1,6 +1,6 @@
1
1
  import { NoticeBarPlus, NoticeBarProps } from '@lingxiteam/antd-mobile-plus';
2
2
  import { LingxiForwardRef } from '@lingxiteam/types';
3
- import { useEffect, useRef, useState } from 'react';
3
+ import React, { useEffect, useRef, useState } from 'react';
4
4
  import useStyle from '../View/useStyle';
5
5
 
6
6
  export interface MyNoticeBarPlusProps extends NoticeBarProps {