mirror of
https://gitee.com/layui/layui.git
synced 2025-10-27 03:09:32 +08:00
新增 laydate 的 onConfirm/onNow/onClear 回调
This commit is contained in:
@@ -1863,7 +1863,7 @@
|
|||||||
,delete that.endTime
|
,delete that.endTime
|
||||||
);
|
);
|
||||||
that.setValue('');
|
that.setValue('');
|
||||||
that.done(['', {}, {}]).remove();
|
that.done(null, 'onClear').done(['', {}, {}]).remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
// 现在
|
// 现在
|
||||||
@@ -1883,7 +1883,7 @@
|
|||||||
|
|
||||||
that.setValue(that.parse());
|
that.setValue(that.parse());
|
||||||
isStatic && that.calendar();
|
isStatic && that.calendar();
|
||||||
that.done().remove();
|
that.done(null, 'onNow').done().remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
//确定
|
//确定
|
||||||
@@ -1897,7 +1897,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
that.setValue(that.parse());
|
that.setValue(that.parse());
|
||||||
that.done().remove();
|
that.done(null, 'onConfirm').done().remove();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
active[type] && active[type]();
|
active[type] && active[type]();
|
||||||
|
|||||||
Reference in New Issue
Block a user