|
|
|
@ -142,7 +142,7 @@ export const StartOfWeek = 1;
|
|
|
|
|
export const BlankSplitChar = "\u200b \u200b"; |
|
|
|
|
|
|
|
|
|
// 一定返回最终的单位
|
|
|
|
|
export function pixFormat(pix, border) { |
|
|
|
|
export let pixFormat = (pix, border) => { |
|
|
|
|
if (!isNumber(pix)) { |
|
|
|
|
return pix; |
|
|
|
|
} |
|
|
|
@ -157,7 +157,11 @@ export function pixFormat(pix, border) {
|
|
|
|
|
return length; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export function toPix(pix, border) { |
|
|
|
|
export function setPixFormat(func) { |
|
|
|
|
pixFormat = func; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export let toPix = (pix, border) => { |
|
|
|
|
if (!isNumber(pix)) { |
|
|
|
|
return pix; |
|
|
|
|
} |
|
|
|
@ -171,4 +175,8 @@ export function toPix(pix, border) {
|
|
|
|
|
return pix; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export function setToPix(func) { |
|
|
|
|
toPix = func; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export function emptyFn() {} |
|
|
|
|