mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-13 12:13:10 +00:00
chore: remove moment.js
This commit is contained in:
parent
4c032d0d0e
commit
6daca093ef
@ -24,7 +24,6 @@
|
||||
"intl-messageformat": "^9.3.1",
|
||||
"jsonuri": "^2.1.2",
|
||||
"lodash": "^4.17.11",
|
||||
"moment": "^2.24.0",
|
||||
"prop-types": "^15.7.2",
|
||||
"react-is": "^16.10.1",
|
||||
"socket.io-client": "^2.2.0",
|
||||
|
||||
@ -2,9 +2,6 @@
|
||||
/* eslint-disable no-new-func */
|
||||
import logger from './logger';
|
||||
import { isI18nData, RootSchema, NodeSchema, isJSExpression, JSSlot } from '@alilc/lowcode-types';
|
||||
// moment对象配置
|
||||
import _moment from 'moment';
|
||||
import 'moment/locale/zh-cn';
|
||||
import { isEmpty } from 'lodash';
|
||||
import IntlMessageFormat from 'intl-messageformat';
|
||||
import pkg from '../../package.json';
|
||||
@ -12,8 +9,6 @@ import * as ReactIs from 'react-is';
|
||||
import { default as ReactPropTypesSecret } from 'prop-types/lib/ReactPropTypesSecret';
|
||||
import { default as factoryWithTypeCheckers } from 'prop-types/factoryWithTypeCheckers';
|
||||
|
||||
export const moment = _moment;
|
||||
moment.locale('zh-cn');
|
||||
(window as any).sdkVersion = pkg.version;
|
||||
|
||||
export { pick, isEqualWith as deepEqual, cloneDeep as clone, isEmpty, throttle, debounce } from 'lodash';
|
||||
@ -372,4 +367,4 @@ export function serializeParams(obj: any) {
|
||||
}
|
||||
});
|
||||
return result.join('&');
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user