mirror of
https://gitee.com/layui/layui.git
synced 2025-05-02 20:02:50 +08:00
新增 laydate 的 onConfirm/onNow/onClear
回调
This commit is contained in:
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
Block a user