@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.
- package/es/index.js +1 -1
- package/es/renameComponents.d.ts +1 -0
- package/es/renameComponents.js +70 -0
- package/lib/h5public/src/components/common/BannerModal/index.tsx +1 -1
- package/lib/h5public/src/components/common/DocViewer/index.tsx +1 -0
- package/lib/h5public/src/components/common/PreviewFile/index.tsx +5 -5
- package/lib/h5public/src/components/factory/src/Animation/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/Audio/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/BasicComponents/Empty/empty.tsx +2 -0
- package/lib/h5public/src/components/factory/src/BasicComponents/Empty/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/BasicComponents/FormItem/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/BasicComponents/Spin/index.tsx +1 -0
- package/lib/h5public/src/components/factory/src/BasicComponents/SpinComp/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/BlockSelect/assets/index.tsx +2 -0
- package/lib/h5public/src/components/factory/src/BlockSelect/components/ActionView/index.tsx +1 -0
- package/lib/h5public/src/components/factory/src/BlockSelect/components/Icon/index.tsx +1 -0
- package/lib/h5public/src/components/factory/src/Calendar/index.tsx +1 -0
- package/lib/h5public/src/components/factory/src/CardBody/index.tsx +1 -0
- package/lib/h5public/src/components/factory/src/CardFooter/index.tsx +1 -0
- package/lib/h5public/src/components/factory/src/DAddressPicker/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/DMultiplePicker/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/DatePicker/InnerDatePicker.tsx +1 -1
- package/lib/h5public/src/components/factory/src/DatePicker/index.tsx +1 -0
- package/lib/h5public/src/components/factory/src/DformDate/DatePicker.tsx +1 -1
- package/lib/h5public/src/components/factory/src/DformImagePicker/ImagePicker.tsx +1 -1
- package/lib/h5public/src/components/factory/src/DformInput/index.tsx +1 -0
- package/lib/h5public/src/components/factory/src/DformInputNumber/FormInputNumber.tsx +1 -1
- package/lib/h5public/src/components/factory/src/DformList/Group/index.tsx +1 -0
- package/lib/h5public/src/components/factory/src/DformList/List/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/DformList/Title/index.tsx +1 -0
- package/lib/h5public/src/components/factory/src/DformPicker/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/DformRangePicker/RangePicker.tsx +1 -1
- package/lib/h5public/src/components/factory/src/DformSelect/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/DformSwitch/index.tsx +1 -0
- package/lib/h5public/src/components/factory/src/DformTextArea/index.tsx +1 -0
- package/lib/h5public/src/components/factory/src/Donut/Dount.tsx +1 -1
- package/lib/h5public/src/components/factory/src/Donut/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/DynamicDataContainer/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/DynamicList/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/DynamicTable/assets/index.tsx +2 -0
- package/lib/h5public/src/components/factory/src/DynamicTable/hooks/useCreateColumn.tsx +1 -1
- package/lib/h5public/src/components/factory/src/DynamicTable/hooks/useFormatCell.tsx +1 -0
- package/lib/h5public/src/components/factory/src/FilterItems/index.tsx +1 -0
- package/lib/h5public/src/components/factory/src/Flex/index.tsx +1 -0
- package/lib/h5public/src/components/factory/src/Grid/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/GroupColumn/GroupColumn.tsx +1 -1
- package/lib/h5public/src/components/factory/src/GroupColumn/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/Icon/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/Image/factoryImage.tsx +1 -1
- package/lib/h5public/src/components/factory/src/Image/index.tsx +1 -0
- package/lib/h5public/src/components/factory/src/LXBarChart/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/LXLineChart/ChartLine.tsx +1 -0
- package/lib/h5public/src/components/factory/src/LXLineChart/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/LXPieChart/LXPieChart.tsx +1 -0
- package/lib/h5public/src/components/factory/src/LXPieChart/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/LXRadarChart/LXRadarChat.tsx +1 -0
- package/lib/h5public/src/components/factory/src/LXRadarChart/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/Line/Line.tsx +1 -1
- package/lib/h5public/src/components/factory/src/Line/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/LineColumn/LineColumn.tsx +1 -1
- package/lib/h5public/src/components/factory/src/LineColumn/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/LoadMore/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/MultipleProgress/MultipleProgress.tsx +1 -1
- package/lib/h5public/src/components/factory/src/MultipleProgress/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/NoticeBarPlus/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/Notification/index.tsx +1 -0
- package/lib/h5public/src/components/factory/src/Picker/InnerPicker.tsx +1 -1
- package/lib/h5public/src/components/factory/src/Picker/index.tsx +1 -0
- package/lib/h5public/src/components/factory/src/ProgressBar/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/QRCode/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/RemoteComponent/assets/iconFailComp.tsx +2 -0
- package/lib/h5public/src/components/factory/src/RemoteComponent/components/FishRender.tsx +1 -0
- package/lib/h5public/src/components/factory/src/RemoteComponent/components/ReactRender.tsx +1 -1
- package/lib/h5public/src/components/factory/src/RemoteComponent/components/VueRender.tsx +1 -0
- package/lib/h5public/src/components/factory/src/RemoteComponent/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/Selector/LxSelector.tsx +1 -1
- package/lib/h5public/src/components/factory/src/SideBar/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/SingleProgress/index.tsx +1 -0
- package/lib/h5public/src/components/factory/src/SmallColumnar/SmallColumnar.tsx +1 -1
- package/lib/h5public/src/components/factory/src/SmallColumnar/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/StackColumn/StackColumn.tsx +1 -1
- package/lib/h5public/src/components/factory/src/StackColumn/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/StepBar/constant/checkcircle.tsx +2 -0
- package/lib/h5public/src/components/factory/src/StepBar/constant/vector.tsx +2 -0
- package/lib/h5public/src/components/factory/src/StepProcess/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/TabBar/TabImage/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/TabBar/TabPage/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/TabBar/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/Table/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/VerificationCode/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/VideoPlayer/ViewPlayer.tsx +1 -1
- package/lib/h5public/src/components/factory/src/VideoPlayer/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/View/index.tsx +1 -1
- package/lib/h5public/src/components/factory/src/utils/LoaderHelper.tsx +1 -0
- package/lib/h5public/src/components/factory/src/utils/hooks/useCompState.tsx +1 -1
- package/lib/pcpublic/src/components/pcfactory/src/Cascader/index.tsx +1 -1
- package/lib/pcpublic/src/components/pcfactory/src/ChartBar/index.tsx +1 -1
- package/lib/pcpublic/src/components/pcfactory/src/CheckboxGroup/index.tsx +41 -29
- package/lib/pcpublic/src/components/pcfactory/src/CollapsePanel/index.tsx +1 -1
- package/lib/pcpublic/src/components/pcfactory/src/DynamicDataContainer/index.tsx +1 -1
- package/lib/pcpublic/src/components/pcfactory/src/DynamicTabs/index.tsx +1 -1
- package/lib/pcpublic/src/components/pcfactory/src/FormGroup/TitleComp.tsx +1 -0
- package/lib/pcpublic/src/components/pcfactory/src/FormGroup/index.tsx +1 -1
- package/lib/pcpublic/src/components/pcfactory/src/Gantt/index.tsx +1 -1
- package/lib/pcpublic/src/components/pcfactory/src/GridView/index.tsx +1 -1
- package/lib/pcpublic/src/components/pcfactory/src/Icon/hooks/index.tsx +1 -1
- package/lib/pcpublic/src/components/pcfactory/src/Img/BasicImage/index.tsx +1 -1
- package/lib/pcpublic/src/components/pcfactory/src/Menu/index.tsx +1 -1
- package/lib/pcpublic/src/components/pcfactory/src/Progress/index.tsx +1 -1
- package/lib/pcpublic/src/components/pcfactory/src/QRCode/index.tsx +1 -1
- package/lib/pcpublic/src/components/pcfactory/src/QuillEditor/index.tsx +1 -1
- package/lib/pcpublic/src/components/pcfactory/src/RadarChart/RadarECharts.tsx +1 -1
- package/lib/pcpublic/src/components/pcfactory/src/RadarChart/index.tsx +1 -1
- package/lib/pcpublic/src/components/pcfactory/src/Rate/index.tsx +1 -1
- package/lib/pcpublic/src/components/pcfactory/src/ReactECharts/ReactECharts.tsx +1 -1
- package/lib/pcpublic/src/components/pcfactory/src/ReactECharts/index.tsx +1 -1
- package/lib/pcpublic/src/components/pcfactory/src/RemoteComponent/components/FishRender.tsx +1 -0
- package/lib/pcpublic/src/components/pcfactory/src/RemoteComponent/components/ReactRender.tsx +1 -0
- package/lib/pcpublic/src/components/pcfactory/src/RemoteComponent/components/VueRender.tsx +1 -0
- package/lib/pcpublic/src/components/pcfactory/src/RemoteComponent/index.tsx +1 -1
- package/lib/pcpublic/src/components/pcfactory/src/Select/selectUtils.ts +2 -2
- package/lib/pcpublic/src/components/pcfactory/src/StdUpload/DownloadProgress/DownloadProgress.tsx +1 -1
- package/lib/pcpublic/src/components/pcfactory/src/StdUpload/UploadItem.tsx +1 -1
- package/lib/pcpublic/src/components/pcfactory/src/Steps/constant/checkcircle.tsx +2 -0
- package/lib/pcpublic/src/components/pcfactory/src/Steps/constant/vector.tsx +2 -0
- package/lib/pcpublic/src/components/pcfactory/src/Steps/index.tsx +1 -1
- package/lib/pcpublic/src/components/pcfactory/src/Switch/index.tsx +1 -1
- package/lib/pcpublic/src/components/pcfactory/src/Table/hooks/useRowEdit.ts +2 -2
- package/lib/pcpublic/src/components/pcfactory/src/TooltipView/hooks/index.tsx +1 -0
- package/lib/pcpublic/src/components/pcfactory/src/Tree/index.tsx +23 -6
- package/lib/pcpublic/src/components/pcfactory/src/Upload/index.tsx +1 -1
- package/lib/pcpublic/src/components/pcfactory/src/VirtualGroup/index.tsx +1 -1
- package/lib/pcpublic/src/components/pcfactory/src/WebComponent/WebComponent.tsx +1 -0
- package/lib/pcpublic/src/utils/exportCustomData/index.tsx +121 -102
- package/lib/public/.eslintignore +55 -0
- package/lib/public/public/iconfont.js +1 -1
- package/lib/public/src/components/ExpSQLServiceModal/index.tsx +1 -1
- package/lib/public/src/components/ImportBusiObjModal/index.tsx +7 -8
- package/lib/public/src/components/LoaderHelper/index.tsx +1 -0
- package/lib/public/src/components/ProgressComp/ProgressComp.tsx +1 -1
- package/lib/public/src/components/ProgressComp/index.tsx +1 -0
- package/lib/public/src/components/WaterMark/index.tsx +1 -1
- package/lib/public/src/components/common/ExpBusiObjModal/index.tsx +1 -1
- package/lib/public/src/hooks/useExportCustomDataFile.ts +2 -3
- package/lib/public/src/pages/_preview/index.tsx +2 -1
- package/lib/public/src/utils/Context/Container.tsx +1 -1
- package/lib/public/src/utils/Context/context.tsx +2 -2
- package/lib/public/src/utils/Security/urlEncryption.ts +4 -4
- package/lib/public/src/utils/platform/utils/fileUtils.ts +1 -1
- package/lib/public/src/utils/preprocess.ts +3 -2
- package/lib/public/src/utils/service/defaultResponseInterceptor.ts +13 -13
- 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';
|
|
@@ -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,
|
|
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,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,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,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,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,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';
|
|
@@ -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,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,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,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,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,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 {
|