新增 laydate 的 `onConfirm/onNow/onClear` 回调

pull/1203/head
贤心 2023-02-16 09:23:31 +08:00
parent 0d46fef8f0
commit 105540efb8
1 changed files with 3 additions and 3 deletions

View File

@ -1863,7 +1863,7 @@
,delete that.endTime
);
that.setValue('');
that.done(['', {}, {}]).remove();
that.done(null, 'onClear').done(['', {}, {}]).remove();
}
// 现在
@ -1883,7 +1883,7 @@
that.setValue(that.parse());
isStatic && that.calendar();
that.done().remove();
that.done(null, 'onNow').done().remove();
}
//确定
@ -1897,7 +1897,7 @@
}
that.setValue(that.parse());
that.done().remove();
that.done(null, 'onConfirm').done().remove();
}
};
active[type] && active[type]();