From 35637bfcdb61bd14af43a4dbcab337c40ad7f8c2 Mon Sep 17 00:00:00 2001 From: xpz2018 <107107461@qq.com> Date: Sat, 12 Jun 2021 17:07:53 +0800 Subject: [PATCH] no message --- components/calendar/calendar.wxml | 6 +----- components/common/utils.js | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 15 deletions(-) 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