diff --git a/components/calendar/calendar.wxml b/components/calendar/calendar.wxml index 04ec320..c807158 100644 --- a/components/calendar/calendar.wxml +++ b/components/calendar/calendar.wxml @@ -19,11 +19,7 @@ - {{ - computed.getButtonDisabled(type, currentDate) - ? confirmDisabledText - : confirmText - }} + {{ computed.getButtonDisabled(type, currentDate) ? confirmDisabledText : confirmText }} \ No newline at end of file diff --git a/components/common/utils.js b/components/common/utils.js index 778b2e5..4884a32 100644 --- a/components/common/utils.js +++ b/components/common/utils.js @@ -33,15 +33,15 @@ export function addUnit(value) { export function requestAnimationFrame(cb) { const systemInfo = getSystemInfoSync(); if (systemInfo.platform === 'devtools') { - return setTimeout(() => { - cb(); - }, 1000 / 30); + return setTimeout(() => { + cb(); + }, 1000 / 30); } return wx - .createSelectorQuery() - .selectViewport() - .boundingClientRect() - .exec(() => { - cb(); - }); - } \ No newline at end of file + .createSelectorQuery() + .selectViewport() + .boundingClientRect() + .exec(() => { + cb(); + }); +} \ No newline at end of file