白色主题

This commit is contained in:
2023-02-12 19:04:01 +08:00
parent d736a5912f
commit 57ab6fbb49
411 changed files with 1752 additions and 5304 deletions

View File

@@ -24,7 +24,7 @@ let Calendar = class Calendar extends SuperComponent {
classPrefix: name,
months: [],
scrollIntoView: '',
innerConfirmBtn: { content: '确' },
innerConfirmBtn: { content: '确' },
};
this.controlledProps = [
{
@@ -111,8 +111,17 @@ let Calendar = class Calendar extends SuperComponent {
months,
});
},
close(trigger) {
if (this.data.autoClose) {
this.setData({ visible: false });
}
this.triggerEvent('close', { trigger });
},
onVisibleChange() {
this.close('overlay');
},
handleClose() {
this.setData({ visible: false });
this.close('close-btn');
},
handleSelect(e) {
const { date, year, month } = e.currentTarget.dataset;
@@ -132,6 +141,7 @@ let Calendar = class Calendar extends SuperComponent {
onTplButtonTap() {
const rawValue = this.base.getTrimValue();
const value = this.toTime(rawValue);
this.close('confirm-btn');
this._trigger('confirm', { value });
},
toTime(val) {