mirror of https://github.com/layui/layui
新增 laydate 的 `onConfirm/onNow/onClear` 回调
parent
0d46fef8f0
commit
105540efb8
|
@ -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]();
|
||||
|
|
Loading…
Reference in New Issue