mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-02-28 21:20:28 +00:00
fix: 🐛 若全量引入 lodash 则在小程序下会跑不通,所以改成引入 lodash/clone
This commit is contained in:
parent
27a9800705
commit
a1a3b68287
@ -1,6 +1,6 @@
|
||||
import moment from 'moment';
|
||||
|
||||
import { clone } from 'lodash';
|
||||
import clone from 'lodash/clone';
|
||||
|
||||
const formatPrice = function formatPrice(price, unit) {
|
||||
return Number(price).toFixed(2) + unit;
|
||||
|
||||
@ -243,7 +243,8 @@
|
||||
package: 'lodash',
|
||||
version: '*',
|
||||
exportName: 'clone',
|
||||
destructuring: true,
|
||||
destructuring: false,
|
||||
main: '/clone',
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user