mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2025-04-12 21:50:23 +08:00
add lodash to eval scope
This commit is contained in:
parent
afc8d8d32f
commit
8b883ba716
@ -71,6 +71,7 @@ const TreeSelectImpl: ComponentImplementation<Static<typeof PropsSchema>> = ({
|
||||
ref={popContainerRef}
|
||||
>
|
||||
<TreeSelect
|
||||
showArrow={true}
|
||||
multiple={multiple}
|
||||
treeData={treeData}
|
||||
value={value}
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { toNumber, mapValues, isArray, isPlainObject, set } from 'lodash-es';
|
||||
import _, { toNumber, mapValues, isArray, isPlainObject, set } from 'lodash-es';
|
||||
import dayjs from 'dayjs';
|
||||
import 'dayjs/locale/zh-cn';
|
||||
import isLeapYear from 'dayjs/plugin/isLeapYear';
|
||||
@ -22,6 +22,7 @@ type ExpChunk = {
|
||||
// TODO: use web worker
|
||||
const builtIn = {
|
||||
dayjs,
|
||||
_,
|
||||
// TODO: It is a custom dependency, should not be add here
|
||||
arrayToTree,
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user