本时支付宝小程序

This commit is contained in:
唐明明
2020-09-24 11:08:03 +08:00
parent 11e0df1cc8
commit 6a67082c25
510 changed files with 20316 additions and 2 deletions

18
node_modules/mini-ali-ui/es/_util/fmtUnit.js generated vendored Executable file
View File

@@ -0,0 +1,18 @@
var jsUnitRpx = 'false';
/* eslint-disable no-continue, prefer-spread */
export default function fmtUnit(oldUnit) {
var getUnit = oldUnit;
if (jsUnitRpx === 'true') {
if (typeof getUnit === 'string' && getUnit === 'px') {
getUnit = 'rpx';
} else if (typeof getUnit === 'number') {
getUnit *= 2;
} else if (typeof getUnit === 'string') {
getUnit = oldUnit.match(/(\d+|\d+\.\d+)(px)/)[1] * 2 + 'rpx';
}
}
return getUnit;
}